[Midpoint-dev] Can't compile midPoint

Kramer, David david.kramer at mheducation.com
Mon Apr 14 20:26:05 CEST 2014


I tried checking out the latest code again and running "mvn clean install -DskipTests” and got all the same kinds of warnings as before, but I got a BUILD SUCCESS at the end.  I guess whatever the problem was in the source got fixed.

When I ran it without skipTests the only test that failed was the SQL test, and I’m guessing that needs some kind of setup to run successfully.

Still having problems with Javadoc creation, but that’s not a show-stopper
[INFO] --- maven-javadoc-plugin:2.9.1:jar (javadoc-jar) @ midpoint-api ---
[WARNING] Missing POM for commons-collections:commons-collections-testframework:jar:3.2.1
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc' has not been previously called for the module: 'com.evolveum.midpoint.infra:util:jar:2.3-SNAPSHOT'. Trying to invoke it...
[WARNING] Creating fake javadoc directory to prevent repeated invocations: /Users/david_kramer/devel/midpoint/infra/util/target/apidocs
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc' has not been previously called for the module: 'com.evolveum.midpoint.infra:schema:jar:2.3-SNAPSHOT'. Trying to invoke it...
[WARNING] Creating fake javadoc directory to prevent repeated invocations: /Users/david_kramer/devel/midpoint/infra/schema/target/apidocs
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc' has not been previously called for the module: 'com.evolveum.midpoint.infra:common:jar:2.3-SNAPSHOT'. Trying to invoke it...
[WARNING] Creating fake javadoc directory to prevent repeated invocations: /Users/david_kramer/devel/midpoint/infra/common/target/apidocs
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc' has not been previously called for the module: 'com.evolveum.midpoint.model:model-api:jar:2.3-SNAPSHOT'. Trying to invoke it...
[WARNING] Creating fake javadoc directory to prevent repeated invocations: /Users/david_kramer/devel/midpoint/model/model-api/target/apidocs
[ERROR] Error fetching link: /Users/david_kramer/devel/midpoint/infra/util/target/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /Users/david_kramer/devel/midpoint/infra/schema/target/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /Users/david_kramer/devel/midpoint/infra/common/target/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /Users/david_kramer/devel/midpoint/model/model-api/target/apidocs/package-list. Ignored it.

The sample client builds too, so I guess I’m good for now.   Thanks.

From: Viliam Repan <vilo.repan at evolveum.com<mailto:vilo.repan at evolveum.com>>
Date: Wednesday, April 9, 2014 at 3:36 AM
To: McGraw Hill Companies <david.kramer at mheducation.com<mailto:david.kramer at mheducation.com>>
Cc: "midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>" <midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>>
Subject: Re: [Midpoint-dev] Can't compile midPoint

Hi David,

sometimes it happens that our master branch is broken by mistake, you can always check our CI server
https://bamboo.evolveum.com project MidPoint, plan master. if it's green, branch is compilable and tests finished with sucsess.
If it's red, you can check details of that run, because it still can be compiled, only tests are failing.

Can you please try to build it with comman "mvn clean install -DskipTests"?
If that fails please send us result of "mvn -version" command.

Best regards,

Vilo


On 04/08/2014 11:11 PM, Kramer, David wrote:
It didn’t like the attachment, so I pastebinned the logs

http://pastebin.com/vkDmdcn7

Sorry for the multiple emails.

From: <Kramer>, McGraw Hill Companies <david.kramer at mheducation.com<mailto:david.kramer at mheducation.com>>
Date: Tuesday, April 8, 2014 at 5:00 PM
To: "midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>" <midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>>
Subject: Re: [Midpoint-dev] Can't compile midPoint

Sorry, I forgot to attach the full logs.

From: <Kramer>, McGraw Hill Companies <david.kramer at mheducation.com<mailto:david.kramer at mheducation.com>>
Date: Tuesday, April 8, 2014 at 4:46 PM
To: "midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>" <midpoint-dev at lists.evolveum.com<mailto:midpoint-dev at lists.evolveum.com>>
Subject: [Midpoint-dev] Can't compile midPoint

NOTE: This is a new development environment on a new Mac computer that I’m relatively unfamiliar with.  I am also getting many errors trying to build midPoint itself locally, even after fixing my Java version problems.  Some or all of this may be due to problems with my development environment, but it doesn’t look that way to me.

I have midPoint cloned in git, and I did a git pull to make sure I’m up-to-date and have no changed files.  The full “mvn compile” output is attached, but the nature of the errors lead me to believe that there is something more basic wrong.

In the beginning of the build, I get LOTS of errors like:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.evolveum.midpoint:parent:pom:2.3-SNAPSHOT
[WARNING] 'profiles.profile[default].plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-jar-plugin @ line 654, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 605, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 671, column 29
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:aspectj-maven-plugin is missing. @ line 781, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 624, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 654, column 29
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.evolveum.midpoint.tools:test-ng:jar:2.3-SNAPSHOT
[WARNING] 'profiles.profile[default].plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-jar-plugin @ com.evolveum.midpoint:parent:2.3-SNAPSHOT, /Users/david_kramer/devel/midpoint/build-system/pom.xml, line 654, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ com.evolveum.midpoint:parent:2.3-SNAPSHOT, /Users/david_kramer/devel/midpoint/build-system/pom.xml, line 605, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ com.evolveum.midpoint:parent:2.3-SNAPSHOT, /Users/david_kramer/devel/midpoint/build-system/pom.xml, line 671, column 29
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:aspectj-maven-plugin is missing. @ com.evolveum.midpoint:parent:2.3-SNAPSHOT, /Users/david_kramer/devel/midpoint/build-system/pom.xml, line 781, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ com.evolveum.midpoint:parent:2.3-SNAPSHOT, /Users/david_kramer/devel/midpoint/build-system/pom.xml, line 624, column 29
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ com.evolveum.midpoint:parent:2.3-SNAPSHOT, /Users/david_kramer/devel/midpoint/build-system/pom.xml, line 654, column 29
[WARNING]

I also noticed this a few times:
[WARNING] Not executing aspectJ compiler as the project is not a Java classpath-capable package
That may be related to:
[WARNING] bad version number found in /Users/david_kramer/.m2/repository/org/aspectj/aspectjrt/1.7.3/aspectjrt-1.7.3.jar expected 1.7.4 found 1.7.3

Oddly, I tried deleting /Users/david_kramer/.m2/repository/org/aspectj/aspectjrt and rebuilding and it downloaded 1.7.3 again.  I see that 1.7.4 is the latest in http://mvnrepository.com
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ midpoint ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building midPoint Super pom 2.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus.magnolia-cms.com/content/repositories/public/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom
Downloading: http://nexus.magnolia-cms.com/content/repositories/magnolia.public.releases/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom
Downloading: http://nexus.magnolia-cms.com/content/repositories/magnolia.public.sites/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom
Downloading: http://nexus.magnolia-cms.com/content/repositories/magnolia.public.snapshots/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom
Downloading: http://nexus.magnolia-cms.com/content/repositories/thirdparty/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom
Downloading: http://nexus.magnolia-cms.com/content/repositories/thirdparty.customized/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom
Downloading: http://nexus.magnolia-cms.com/content/repositories/thirdparty.licensed/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom
Downloading: http://nexus.evolveum.com/nexus/content/groups/public/org/aspectj/aspectjtools/1.7.3/aspectjtools-1.7.3.pom

I do see that build-system/pom.xml says "<aspectj.version>1.7.3</aspectj.version>”, and didn’t see any references to 1.7.4 in any of the pom files.

Lastly, The build ends with:
[INFO] ------------------------------------------------------------------------
[INFO] Building midPoint Model - api client 2.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- gitdescribe-maven-plugin:1.3:gitdescribe (git-describe) @ model-client ---
[INFO] Setting Git Describe: git-v2.3devel-1491-g7b5f25e
[INFO]
[INFO] --- maven-dependency-plugin:2.8:unpack (unpack-schema-files) @ model-client ---
[INFO] Configured Artifact: com.evolveum.midpoint.infra:prism:2.3-SNAPSHOT:jar
[INFO] Configured Artifact: com.evolveum.midpoint.infra:schema:2.3-SNAPSHOT:jar
[INFO] Unpacking /Users/david_kramer/devel/midpoint/infra/prism/target/classes to /Users/david_kramer/devel/midpoint/model/model-client/target/midpoint-schema with includes "**/*.xsd,**/*.dtd,**/*.wsdl" and excludes ""
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] midPoint Project .................................. SUCCESS [  0.003 s]
[INFO] midPoint Super pom ................................ SUCCESS [  1.279 s]
…
[INFO] midPoint Notifications - impl ..................... SUCCESS [  3.204 s]
[INFO] midPoint Model - integration tests ................ SUCCESS [  0.127 s]
[INFO] midPoint Model - api client ....................... FAILURE [  0.802 s]
[INFO] midPoint Report - impl ............................ SKIPPED
[INFO] midPoint Workflow - impl .......................... SKIPPED
[INFO] midPoint User Interface ........................... SKIPPED
[INFO] midPoint User Interface - admin web gui en_US ..... SKIPPED
[INFO] midPoint User Interface - admin web gui sk_SK ..... SKIPPED
[INFO] midPoint User Interface - admin web gui ........... SKIPPED
[INFO] midPoint Samples - Test ........................... SKIPPED
[INFO] midPoint Samples - Model client sample ............ SKIPPED
[INFO] midPoint Samples .................................. SKIPPED
[INFO] midPoint Testing - Sanity ......................... SKIPPED
[INFO] midPoint Testing - Consistency mechanism .......... SKIPPED
[INFO] midPoint Testing Infrastructure ................... SKIPPED
[INFO] midPoint API Distribution ......................... SKIPPED
[INFO] midPoint Distribution ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:26 min
[INFO] Finished at: 2014-04-08T14:12:57-05:00
[INFO] Final Memory: 44M/396M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack (unpack-schema-files) on project model-client: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98. -> [Help 1]

This doesn’t appear to be related to the aspectj problem, but it’s possible.

Any insight anyone has on this would be appreciated.



________________________________
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.

________________________________
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.

________________________________
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.



_______________________________________________
midPoint-dev mailing list
midPoint-dev at lists.evolveum.com<mailto:midPoint-dev at lists.evolveum.com>http://lists.evolveum.com/mailman/listinfo/midpoint-dev


--
Ing. Viliam Repáň
Evolveum, s.r.o.

tel: +421 910 797978
mail: vilo.repan at evolveum.com<mailto:vilo.repan at evolveum.com>

________________________________
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/20140414/c6f802e0/attachment-0001.html>


More information about the midPoint-dev mailing list