<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi David,<br>
<br>
I'm pretty sure your maven installation is using Java 1.6 :)<br>
Can you please send us a result of "mvn -version" command?<br>
It should be something like this:<br>
<br>
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)<br>
Maven home: /usr/local/apache-maven-3.0.4<br>
<b>Java version: 1.7.0_51, vendor: Oracle Corporation</b><br>
Java home: /usr/lib/jvm/java-7-oracle/jre<br>
Default locale: en_US, platform encoding: UTF-8<br>
OS name: "linux", version: "3.5.0-48-generic", arch: "amd64",
family: "unix"<br>
<br>
Configuration for source and target to "1.7:" version is necessary,
because it tells version of source code (java files) to javac and
target bytecode (classes) version.<br>
<br>
Best regards<br>
<br>
Vilo<br>
<br>
<div class="moz-cite-prefix">On 04/04/2014 10:58 PM, Kramer, David
wrote:<br>
</div>
<blockquote cite="mid:CF649526.1E5A%25david.kramer@mheducation.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>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 <a
moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample">https://wiki.evolveum.com/display/midPoint/Model+Web+Service+Client+Sample</a> so
I got the source code from Git.</div>
<div><br>
</div>
<div>I had troubles building part of it:</div>
<div>
<div>[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project test-ng: Compilation failure</div>
<div>[ERROR] Failure executing javac, but could not parse the
error:</div>
<div>[ERROR] javac: invalid target release: 1.7</div>
<div>[ERROR] Usage: javac <options> <source files></div>
<div>[ERROR] use -help for a list of possible options</div>
<div>[ERROR] -> [Help 1]</div>
</div>
<div><br>
</div>
<div>I <span style="font-weight: bold;">think</span> the problem
is caused by testing/systest/pom.xml</div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<groupId>org.apache.maven.plugins</groupId></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<artifactId>maven-compiler-plugin</artifactId></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<version>2.3.2</version></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<configuration></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<source>1.7</source></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<target>1.7</target></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<fork>true</fork></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<meminitial>128m</meminitial></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<maxmem>768m</maxmem></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<showDeprecation>true</showDeprecation></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
<showWarnings>true</showWarnings></p>
<p style="margin: 0px; font-size: 12px; font-family: 'Andale
Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0,
0);">
</configuration></p>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I’m running 1.7.0_51. Is it really customary to hard-code
Java versions in this way?</div>
<div>Is that the source of the problem?</div>
<div>Can I just change the target?</div>
<div><br>
</div>
<div>Full mvn clean compile output attached.</div>
<div><br>
</div>
<div>Thanks.</div>
<br>
<hr>
<font color="Gray" face="Arial" size="1">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.<br>
</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint-dev@lists.evolveum.com">midPoint-dev@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint-dev">http://lists.evolveum.com/mailman/listinfo/midpoint-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Viliam Repáň
Evolveum, s.r.o.
tel: +421 910 797978
mail: <a class="moz-txt-link-abbreviated" href="mailto:vilo.repan@evolveum.com">vilo.repan@evolveum.com</a>
</pre>
</body>
</html>