[Midpoint-dev] Java version hard-coded

Kramer, David david.kramer at mheducation.com
Fri Apr 4 22:58:14 CEST 2014


Hi.  I’m just starting to look into midPoint.  We got a server up and running, and I want to try out the web service interface using the sample program mentioned on https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample so I got the source code from Git.

I had troubles building part of it:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project test-ng: Compilation failure
[ERROR] Failure executing javac,  but could not parse the error:
[ERROR] javac: invalid target release: 1.7
[ERROR] Usage: javac <options> <source files>
[ERROR] use -help for a list of possible options
[ERROR] -> [Help 1]

I think the problem is caused by testing/systest/pom.xml


                                               <groupId>org.apache.maven.plugins</groupId>

                                                <artifactId>maven-compiler-plugin</artifactId>

                                                <version>2.3.2</version>

                                                <configuration>

                                                        <source>1.7</source>

                                                        <target>1.7</target>

                                                        <fork>true</fork>

                                                        <meminitial>128m</meminitial>

                                                        <maxmem>768m</maxmem>

                                                        <showDeprecation>true</showDeprecation>

                                                        <showWarnings>true</showWarnings>

                                                </configuration>


I’m running 1.7.0_51.  Is it really customary to hard-code Java versions in this way?
Is that the source of the problem?
Can I  just change the target?

Full mvn clean compile output attached.

Thanks.

________________________________
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. McGraw-Hill Education reserves the right, subject to applicable local law, to monitor, review and process the content of any electronic message or information sent to or from McGraw-Hill Education e-mail addresses without informing the sender or recipient of the message. By sending electronic message or information to McGraw-Hill Education e-mail addresses you, as the sender, are consenting to McGraw-Hill Education processing any of your personal data therein.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20140404/7ab550f7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.out
Type: application/octet-stream
Size: 99238 bytes
Desc: build.out
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20140404/7ab550f7/attachment-0001.obj>


More information about the midPoint-dev mailing list