Adding comments to dependencies in POM
I have in the past wasted hours of effort trying to weed out dependency issues where something has been added for reasons unknown. Removal leads to breakage. It would be helpful if, inside a POM, it were possible to add a comment element to a dependency. I realise this is possible as an XML comment, however having a POM field would let documentation engines record the comment. The same could be said for dependencies inside dependencyManagement. It would of course have the side effect of auto completion within IDEs showing authors how to officially comment on the reason for that work. An idea. James
Re: Adding comments to dependencies in POM
A very good idea I think. Please add it as an improvement in JIRA and it could be implemented in a future pom model version. /Anders (mobile) Den 27 aug 2014 09:13 skrev James Green james.mk.gr...@gmail.com: I have in the past wasted hours of effort trying to weed out dependency issues where something has been added for reasons unknown. Removal leads to breakage. It would be helpful if, inside a POM, it were possible to add a comment element to a dependency. I realise this is possible as an XML comment, however having a POM field would let documentation engines record the comment. The same could be said for dependencies inside dependencyManagement. It would of course have the side effect of auto completion within IDEs showing authors how to officially comment on the reason for that work. An idea. James
Re: maven 3.1.1 crashes on GC overhead limit exceeded with millions of org.eclipse.aether.graph.DefaultDependencyNode
after enabling debug log I got 1.1G log full of lines of this: [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for apache.snapshots (http://repository.apache.org/snapshots). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). and finally: [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [DEBUG] Using mirror tbmirror (http://mvnrepo.taobao.ali.com/mvn/repository) for central (http://repo.maven.apache.org/maven2). [ERROR] GC overhead limit exceeded - [Help 1] java.lang.OutOfMemoryError: GC overhead limit exceeded at org.codehaus.plexus.util.xml.Xpp3Dom.init(Xpp3Dom.java:123) at org.codehaus.plexus.util.xml.Xpp3Dom.init(Xpp3Dom.java:97) at org.codehaus.plexus.util.xml.Xpp3Dom.init(Xpp3Dom.java:123) at org.codehaus.plexus.util.xml.Xpp3Dom.init(Xpp3Dom.java:97) at org.codehaus.plexus.util.xml.Xpp3Dom.init(Xpp3Dom.java:123) at org.codehaus.plexus.util.xml.Xpp3Dom.init(Xpp3Dom.java:97) at org.apache.maven.model.ConfigurationContainer.clone(ConfigurationContainer.java:92) at org.apache.maven.model.Plugin.clone(Plugin.java:113) at org.apache.maven.model.PluginContainer.clone(PluginContainer.java:63) at org.apache.maven.model.PluginConfiguration.clone(PluginConfiguration.java:48) at org.apache.maven.model.BuildBase.clone(BuildBase.java:113) at org.apache.maven.model.Build.clone(Build.java:98) at org.apache.maven.model.Model.clone(Model.java:330) at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:274) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:361) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:461) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:573) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:573) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:573) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:573) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:573) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:573) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:573) at
No test to run, No code to compile
I have been struggling with this for days and i really want to move on can somebody please help me, i am getting the following console output: T E S T S Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-easyb-plugin:1.4:test (default) @ gameoflife --- [INFO] C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\src\test\stories does not exists. Skipping easyb testing [INFO] [INFO] --- maven-surefire-plugin:2.10:test (integration-tests) @ gameoflife --- [INFO] No tests to run. [INFO] Surefire report directory: C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\target\surefire-reports T E S T S Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- jacoco-maven-plugin:0.6.3.201306030806:report (jacoco-site) @ gameoflife --- [INFO] Skipping JaCoCo for project with packaging type 'pom' [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ gameoflife --- [INFO] Installing C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\pom.xml to C:\Windows\system32\config\systemprofile.m2\repository\com\wakaleo\gameoflife\gameoflife\1.0-SNAPSHOT\gameoflife-1.0-SNAPSHOT.pom [INFO] [INFO] [INFO] Building gameoflife-build 1.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife-build --- [INFO] Deleting C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ gameoflife-build --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gameoflife-build --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- jacoco-maven-plugin:0.6.3.201306030806:prepare-agent (jacoco-initialize) @ gameoflife-build --- [INFO] argLine set to -javaagent:C:\Windows\system32\config\systemprofile.m2\repository\org\jacoco\org.jacoco.agent\0.6.3.201306030806\org.jacoco.agent-0.6.3.201306030806-runtime.jar=destfile=C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target\jacoco.exec [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ gameoflife-build --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ gameoflife-build --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ gameoflife-build --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ gameoflife-build --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-surefire-plugin:2.10:test (unit-tests) @ gameoflife-build --- [INFO] No tests to run. [INFO] Surefire report directory: C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target\surefire-reports -- View this message in context: http://maven.40175.n5.nabble.com/No-test-to-run-No-code-to-compile-tp5803100.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.1.1 crashes on GC overhead limit exceeded with millions of org.eclipse.aether.graph.DefaultDependencyNode
On 27 August 2014 17:05, Juven Xu juvens...@gmail.com wrote: after enabling debug log I got 1.1G log full of lines of this: [DEBUG] Using mirror tbmirror ( http://mvnrepo.taobao.ali.com/mvn/repository) for sonatype-nexus-snapshots ( https://oss.sonatype.org/content/repositories/snapshots). Have you confirmed that your mirror is working as expected?
Re: maven 3.1.1 crashes on GC overhead limit exceeded with millions of org.eclipse.aether.graph.DefaultDependencyNode
yes I can confirm the mirror is ok. I've built many projects with the same mirror, but only this project crashes. -- View this message in context: http://maven.40175.n5.nabble.com/maven-3-1-1-crashes-on-GC-overhead-limit-exceeded-with-millions-of-org-eclipse-aether-graph-DefaultDe-tp5803092p5803102.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.1.1 crashes on GC overhead limit exceeded with millions of org.eclipse.aether.graph.DefaultDependencyNode
Did you try increasing memory for maven through MAVEN_OPTS, maybe something like -Xmx1024m or more ? Kristian 2014-08-27 10:37 GMT+02:00 Juven Xu juvens...@gmail.com: yes I can confirm the mirror is ok. I've built many projects with the same mirror, but only this project crashes. -- View this message in context: http://maven.40175.n5.nabble.com/maven-3-1-1-crashes-on-GC-overhead-limit-exceeded-with-millions-of-org-eclipse-aether-graph-DefaultDe-tp5803092p5803102.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding comments to dependencies in POM
+1 I think this would be a good idea, let us know about the issue, so we can vote on it. Domi On 27.08.2014, at 09:12, James Green james.mk.gr...@gmail.com wrote: I have in the past wasted hours of effort trying to weed out dependency issues where something has been added for reasons unknown. Removal leads to breakage. It would be helpful if, inside a POM, it were possible to add a comment element to a dependency. I realise this is possible as an XML comment, however having a POM field would let documentation engines record the comment. The same could be said for dependencies inside dependencyManagement. It would of course have the side effect of auto completion within IDEs showing authors how to officially comment on the reason for that work. An idea. James - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding comments to dependencies in POM
I think it should be solved with a separate namespace, so the model parsing stays pure without metadata irrelevant for Maven. And it should already work right now, no need for the pom xsd to change, since the Maven pom-parser should ignore these kinds of elements/attributes. Robert Op Wed, 27 Aug 2014 12:15:00 +0200 schreef domi d...@fortysix.ch: +1 I think this would be a good idea, let us know about the issue, so we can vote on it. Domi On 27.08.2014, at 09:12, James Green james.mk.gr...@gmail.com wrote: I have in the past wasted hours of effort trying to weed out dependency issues where something has been added for reasons unknown. Removal leads to breakage. It would be helpful if, inside a POM, it were possible to add a comment element to a dependency. I realise this is possible as an XML comment, however having a POM field would let documentation engines record the comment. The same could be said for dependencies inside dependencyManagement. It would of course have the side effect of auto completion within IDEs showing authors how to officially comment on the reason for that work. An idea. James - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.1.1 crashes on GC overhead limit exceeded with millions of org.eclipse.aether.graph.DefaultDependencyNode
I wonder if this might be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=418250 ? On 27 Aug 2014, at 04:35, Juven Xu juvens...@gmail.com wrote: maven: 3.1.1 jdk: 1.7.0_25 Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode) the error message is: [INFO] Building buy-client 1.1.8-o2o630-SNAPSHOT [INFO] [WARNING] The POM for com.taobao.logistics:logistics-common:jar:2.4.5 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for com.taobao.thboss:thboss-common:jar:1.0.2-20131230.121421-32 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for com.taobao.hbaseextend:hbase-client:jar:1.0.1-20121211.063750-2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for com.taobao.hbaseextend:hbasetransit-client:jar:1.0.1-20121211.064048-1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for com.taobao.sharereport:share-report-common:jar:1.5.1-20121030.080558-17 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for com.taobao.trade:tradeback-client:jar:1.0.0-20131118.063752-35 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [ERROR] GC overhead limit exceeded - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError the jvm is full and a log of full gc happening, gc stat: S0 S1 E O P YGC YGCTFGCFGCT GCT 0.00 0.00 100.00 100.00 67.33 505.92539 101.650 107.575 0.00 0.00 100.00 100.00 67.33 505.92539 101.650 107.575 0.00 0.00 100.00 100.00 67.33 505.92539 101.650 107.575 0.00 0.00 100.00 100.00 67.33 505.92540 104.805 110.730 0.00 0.00 100.00 100.00 67.33 505.92540 104.805 110.730 0.00 0.00 100.00 100.00 67.33 505.92540 104.805 110.730 0.00 0.00 100.00 100.00 67.33 505.92541 107.840 113.765 0.00 0.00 100.00 100.00 67.33 505.92541 107.840 113.765 0.00 0.00 100.00 100.00 67.33 505.92541 107.840 113.765 0.00 0.00 100.00 100.00 67.33 505.92542 110.864 116.788 0.00 0.00 100.00 100.00 67.33 505.92542 110.864 116.788 0.00 0.00 100.00 100.00 67.33 505.92542 110.864 116.788 0.00 0.00 95.86 100.00 67.33 505.92542 114.029 119.954 0.00 0.00 100.00 100.00 67.33 505.92543 114.029 119.954 0.00 0.00 100.00 100.00 67.33 505.92543 114.029 119.954 0.00 0.00 100.00 100.00 67.33 505.92543 114.029 119.954 0.00 0.00 100.00 100.00 67.33 505.92544 117.087 123.011 and the vm is full of org.eclipse.aether.graph.DefaultDependencyNode $ jmap -histo 4072 | head -30 num #instances #bytes class name -- 1: 5019593 281097208 org.eclipse.aether.graph.DefaultDependencyNode 2: 6075641 145815384 java.util.ArrayList 3: 6076588 116705216 [Ljava.lang.Object; 4: 2375373 76011936 org.eclipse.aether.internal.impl.DataPool$GraphKey 5: 2439860 58556640 java.util.HashMap$Entry 6:231529 34940048 [Ljava.util.HashMap$Entry; 7:231420 34810936 [Lorg.eclipse.aether.graph.Exclusion; 8:598180 28712640 org.eclipse.aether.repository.RemoteRepository 9:839969 26879008 java.util.LinkedHashMap$Entry 10:597260 15767704 [Lorg.eclipse.aether.repository.RemoteRepository; 11:208071 11651976 java.util.LinkedHashMap 12:5972889556608 java.util.Arrays$ArrayList 13:5972699556304 java.util.Collections$UnmodifiableRandomAccessList 14:1254797259280 [C 15: 290993530504 constMethodKlass 16:1978513165616 java.util.Collections$SingletonList 17:1977063163296 java.util.HashMap$KeySet 18:1974763159616 java.util.LinkedHashSet 19:1973493157584 org.eclipse.aether.util.graph.selector.AndDependencySelector 20:197347
[ANN] Apache Maven EJB Plugin Version 2.4 Released
The Apache Maven team is pleased to announce the release of the Apache Maven EJB Plugin, version 2.4 This plugin generates J2EE Enterprise Javabean (EJB) file as well as the associated client jar. http://maven.apache.org/plugins/maven-ejb-plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId version2.4/version /plugin Release Notes - Apache Maven EJB Version 2.4 Bugs: * [MEJB-28] - outputDirectory is not created before packaging * [MEJB-50] - Empty src/main/java causes ejb plugin to fail * [MEJB-52] - need to update dependency of maven-archiver to 2.5 Improvements: * [MEJB-56] - Add Maven version used to Created-By entry in manifest * [MEJB-58] - Documentation fails to mention where and how the plugin gets ejb-jar.xml from * [MEJB-64] - Upgrade to Maven 2.2.1 compatiblity * [MEJB-65] - Upgrade maven-filtering to 1.2 * [MEJB-66] - Upgrade plexus-archiver to 2.4.4 * [MEJB-68] - MavenProject/MavenSession Injection as a paremeter instead as a component. Tasks: * [MEJB-59] - use maven-plugin-tools' java 5 annotations * [MEJB-62] - This version of the EJB Plugin uses Maven Archiver 2.4 hardcoded in Javadoc Enjoy, -The Apache Maven team Karl-Heinz Marbaise - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Atomic deploy at end to repo manager like Nexus
Hi Per last Maven hangout, Jason and Karl had a discussion and code shared on topic. unzip [1] nexus plugin was mentioned Can you share this knowledge? For my case, I have a multiple module multiple platform builds orchestrated by CI ( jenkins) I like to to delay all the deployments, all the way to the end, zip the up, and deploy to nexus which will correctly unpack and merge to one of the repositories ( ie snapshot or staging ) Thanks -D [1] http://wiki.eclipse.org/Tycho/Nexus_Unzip_Plugin
Re: Atomic deploy at end to repo manager like Nexus
Hi Dan, are you using deployAtEnd / installAtEnd options of maven-install-plugin, maven-deploy-plugin ? or do you have any issues with that ? On 8/27/14 10:36 PM, Dan Tran wrote: Hi Per last Maven hangout, Jason and Karl had a discussion and code shared on topic. unzip [1] nexus plugin was mentioned Can you share this knowledge? For my case, I have a multiple module multiple platform builds orchestrated by CI ( jenkins) I like to to delay all the deployments, all the way to the end, zip the up, and deploy to nexus which will correctly unpack and merge to one of the repositories ( ie snapshot or staging ) Kind regards Karl-Heinz Marbaise - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Atomic deploy at end to repo manager like Nexus
Hi Karl, My build spans multiple hosts ( with helps from Jenkis), so deployAtEnd is not good enough. -D On Wed, Aug 27, 2014 at 1:39 PM, Karl Heinz Marbaise khmarba...@gmx.de wrote: Hi Dan, are you using deployAtEnd / installAtEnd options of maven-install-plugin, maven-deploy-plugin ? or do you have any issues with that ? On 8/27/14 10:36 PM, Dan Tran wrote: Hi Per last Maven hangout, Jason and Karl had a discussion and code shared on topic. unzip [1] nexus plugin was mentioned Can you share this knowledge? For my case, I have a multiple module multiple platform builds orchestrated by CI ( jenkins) I like to to delay all the deployments, all the way to the end, zip the up, and deploy to nexus which will correctly unpack and merge to one of the repositories ( ie snapshot or staging ) Kind regards Karl-Heinz Marbaise - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org