m2e doesn't generate site with maven-archetype-quickstart - maven

Our project team would like to switch from ant to maven for our build and CI so I'm getting to grips with it by following the Sonatype "Maven By Example" book.
I'm using m2e, with the internal maven that m2e installs.
I've created a project using the maven-archetype-quickstart and have not modified it in any way. It builds just fine, however when I run as.. with goal "site" nothing is produced in my project's target folder, or anywhere else that I can find. Here's the output:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building quickstart 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-site-plugin:2.0.1:site (default-site) # quickstart ---
Downloading: http://repo1.maven.org/maven2/org/apache/maven/skins/maven-default- skin/maven-metadata.xml
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/skins/maven-default-skin/maven-metadata.xml (370 B at 2.0 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.759s
[INFO] Finished at: Fri May 25 08:46:54 BST 2012
[INFO] Final Memory: 10M/110M
[INFO] ------------------------------------------------------------------------
Is this because I'm using the internal m2e maven? do I need to install maven separately?

First of all, from my experience, it is definitely good idea to use external Maven installation with m2e. I had some troubles (of other kind) with embedded Maven and I don't recommend using it.
Now about your problem: I don't know if it's m2e's embedded Maven or some kind of your mistake or misunderstanding, but I've just generated simple project using the same quickstart archetype and everything works ok. I have output like this:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building tester 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # tester ---
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.4
[INFO] Relativizing decoration links with respect to project URL: http://maven.apache.org
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.4
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.4
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.046s
[INFO] Finished at: Fri May 25 10:10:35 CEST 2012
[INFO] Final Memory: 9M/28M
[INFO] ------------------------------------------------------------------------
And - as expected - site is generated under target/site.

Related

How to find the problem when a maven packaging stage last indefinitely?

I have a fairly large maven project that if compiled (using mvn package or mvn install), stuck on a packaging stage for 10+ hours:
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- maven-source-plugin:3.1.0:jar-no-fork (attach-sources) # spookystuff-mldsl ---
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-source-plugin:3.1.0:test-jar-no-fork (attach-sources) # spookystuff-mldsl ---
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-test-sources.jar
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:test-jar (default) # spookystuff-mldsl ---
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-tests.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) # spookystuff-mldsl ---
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/.flattened-pom.xml to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT.pom
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-javadoc.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-javadoc.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-sources.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-sources.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-test-sources.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-test-sources.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-tests.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-tests.jar
(this is the last line of output)
The build output can be observed on CI server, with similar output:
https://app.codeship.com/projects/166836/builds/48698210?pipeline=103aace8-047a-47e4-9cb9-018c3ce0693a
I don't know what have caused this behaviour, but I suspect that a bug in maven-shade-plugin has caused dependency reduced pom generation to move into a indefinitely loop. How can I confirm this hypothesis collect enough evidence to report to the plugin maintainers?

Bintray 409 conflict - mvn release plugin uploading jar twice?

I'm struggling to push releases to Bintray in full.
From what I can tell, the issue seems to be caused by the maven release plugin trying to push the sources jar twice -- hence the HTTP 409 conflict response being returned.
So far I've not been able to locate the cause. Help would be appreciated!
I can see the jars on bintray up to the point that it fails, indicating it doesn't seem to be a credentials issue
Appending ;override=1 to the end of the url seemingly allows the release to succeed (I'm still new at this, so not 100% sure what I should be seeing)
Another collaborator is able to release fine - he's using a slightly older version of maven (downgrading from 3.6 to 3.5 is my next step, but it seems unusual/odd/unlikely?)
mvn test/package/install etc are fine - no concerns there
the version number is a full release number, not a snapshot (e.g. 1.2.3, not 1.2.3-SNAPSHOT)
edit: similar results are found using both Windows and Ubuntu (virtualbox guest)
Here's a snippet of what I believe to be the relevant parts of the mvn output, but can post more if needed.
[INFO] [INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) # YYY-core ---
[INFO] [INFO] Installing /home/XXX/YYY/target/checkout/YYY-core/target/YYY-core-VERSION.jar to /home/XXX/.m2/repository/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION.jar
[INFO] [INFO] Installing /home/XXX/YYY/target/checkout/YYY-core/pom.xml to /home/XXX/.m2/repository/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION.pom
[INFO] [INFO] Installing /home/XXX/YYY/target/checkout/YYY-core/target/YYY-core-VERSION-sources.jar to /home/XXX/.m2/repository/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-sources.jar
[INFO] [INFO] Installing /home/XXX/YYY/target/checkout/YYY-core/target/YYY-core-VERSION-sources.jar to /home/XXX/.m2/repository/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-sources.jar
[INFO] [INFO] Installing /home/XXX/YYY/target/checkout/YYY-core/target/YYY-core-VERSION-javadoc.jar to /home/XXX/.m2/repository/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-javadoc.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) # YYY-core ---
[INFO] [INFO] Uploading to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION.jar
[INFO] [INFO] Uploaded to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION.jar (1.2 MB at 112 kB/s)
[INFO] [INFO] Uploading to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION.pom
[INFO] [INFO] Uploaded to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION.pom (4.9 kB at 824 B/s)
[INFO] [INFO] Uploading to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-sources.jar
[INFO] [INFO] Uploaded to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-sources.jar (781 kB at 96 kB/s)
[INFO] [INFO] Uploading to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-sources.jar
[INFO] [INFO] Uploading to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-javadoc.jar
[INFO] [INFO] Uploaded to bintray-YYY-ZZZ: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-javadoc.jar (3.8 MB at 218 kB/s)
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary for YYY-parent VERSION:
[INFO] [INFO]
[INFO] [INFO] YYY-parent ...................... SUCCESS [ 18.058 s]
[INFO] [INFO] YYY-core ........................ FAILURE [01:37 min]
[INFO] [INFO] YYY-core-testing ................ SKIPPED
[INFO] [INFO] YYY-B-core ...................... SKIPPED
[INFO] [INFO] YYY-B-testing ................... SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 01:56 min
[INFO] [INFO] Finished at: 2020-03-28T03:33:28Z
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) on project YYY-core: ArtifactDeployerException: Failed to deploy artifacts: Could not transfer artifact com.github.YYY:YYY-core:jar:sources:VERSION from/to bintray-YYY-ZZZ (https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1): Failed to transfer file: https://api.bintray.com/maven/YYY/ZZZ/YYY/;publish=1/com/github/YYY/YYY-core/VERSION/YYY-core-VERSION-sources.jar. Return code is: 409, ReasonPhrase: Conflict. -> [Help 1]
Since your pom file isn't attached, I am relying on this example.
The 409 conflict is because you are publishing the same file name to the same path twice.
From the attached logs it looks like you are deploying YYY-core-VERSION-sources.jar twice (it has 2 entries of Installing and Uploading in the log). This means that you are trying to publish a jar with the same name and to the same path. This causes the conflict.
I don't know from the input you gave why you have two identical sources files. One solution, as you have mentioned, is to use the override flag ;override=1 as shown in the Upload API example. I would also take a look why you have 2 files while another collaborator has, probably, only one.

VSTS Maven build - no JUnit tests run

[Update: Problem cause found! read below]
Problem: VSTS Maven build does not seem to run JUnit, does not show any JUnit results, does not seem to produce any JUnit testreports.
In VSTS, we have a Java project with a Contact and TestContact class with 1 testcase;
source\module\src\main\java\nl\customer\model\situation\Contact.java
source\module\src\test\java\nl\customer\model\ContactTest.java
source\module\pom.xml
Running Maven from Eclipse works fine. Console shows Maven using Surefire reports, running/passing the 1 unit test.
Running the project with Maven on a Windows PC also works:
mvn test
Logging:
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Domain Model
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 30 resources
[INFO] skip non existing resourceDirectory C:\project\source\projectdomain\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # module ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\project\source\module\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # module ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) # module ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running nl.customer.module.ContactTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in nl.customer.module.ContactTest
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.109 s
[INFO] Finished at: 2018-01-09T14:05:03+01:00
[INFO] Final Memory: 10M/196M
[INFO] ------------------------------------------------------------------------
In VSTS, using the Maven build step (goal: install) succeeds, but the log does not show anything about JUnit, even with system.debug = true.
Consequently, trying the "Publish test results" always fails (both when using a seperate build task or the Publish TFS option in the maven build task).
It seems I have found the cause of the problem: in VSTS, the Maven build task has the option
Set MAVEN_OPTS to
In our build definition, this was set to
-Xmx1024m -X
The first parameter is correct, it sets the maximum memory.
The second parameter is incorrect. If you want Maven to give debug output, you should put the "-X" parameter under Goal(s).
There is no real warning about the second parameter in the logging.

Report mojo is not executed on Jenkins

I am working in checkstyle,
I am using Jenkins, Maven 3.0.4. Checkstyle Jenkins plugin not installed.
I have 1 parent and 6 child projects.
I added checkstyle maven plugin to parentproject, childproject1, childproject6
in Parent:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.10</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>
in Child projects:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.10</version>
<configuration>
<configLocation>../parentProject/checkstyle.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>
I run clean site command in my Eclipe,
It gave everything perfect what i expected. ie it giving checkstyle report for those 3 projects only.
Same code i copied to Jenkins workspace(job and workspace already) created.
it not working any thing it is creating for last project even not for checkstyle, creating for normal site plugin. I am not able to understand why maven behavior is different for different locations even same version of it.
The log is:
In Jenkins output:
tarted by user anonymous
[EnvInject] - Loading node environment variables.
Building in workspace /opt/cibuild/.jenkins/workspace/Daily-myporjectModulesBuild-StaticAnalysis_New
Updating http://mysvnurl/childProject2 at revision '2013-09-27T03:49:04.800 +0000'
At revision 5020
WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
Updating http://mysvnurl/childProject3 at revision '2013-09-27T03:49:04.800 +0000'
At revision 5020
WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
Updating http://mysvnurl/childProject4 at revision '2013-09-27T03:49:04.800 +0000'
At revision 5020
WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
Updating http://mysvnurl/childProject7 at revision '2013-09-27T03:49:04.800 +0000'
At revision 5020
WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
no change for http://mysvnurl/childProject2 since the previous build
no change for http://mysvnurl/childProject3 since the previous build
no change for http://mysvnurl/childProject4 since the previous build
no change for http://mysvnurl/childProject7 since the previous build
Parsing POMs
[childProject2] $ /mycompany/software/jdk1.7.0_07/bin/java -cp /opt/cibuild/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/mycompany/software/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /mycompany/software/apache-maven-3.0.4 /opt/cibuild/.jenkins/war/WEB-INF/lib/remoting-2.23.jar /opt/cibuild/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 39163
<===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven: -B -f /opt/cibuild/.jenkins/workspace/Daily-myporjectModulesBuild-StaticAnalysis_New/childProject2/pom.xml clean site
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building childProject2 1.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # childProject2 ---
[INFO] Deleting /opt/cibuild/.jenkins/workspace/Daily-myporjectModulesBuild-StaticAnalysis_New/childProject2/target
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # childProject2 ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7
[WARNING] The repository url 'http://repo.maven.apache.org/maven2' is invalid - Repository 'central2' will be blacklisted.
[CHECKSTYLE] No report found for mojo site
[JENKINS] Archiving site from /opt/cibuild/.jenkins/workspace/Daily-myporjectModulesBuild-StaticAnalysis_New/childProject2/target/site to /opt/cibuild/.jenkins/jobs/Daily-myporjectModulesBuild-StaticAnalysis_New/site
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.188s
[INFO] Finished at: Fri Sep 27 03:49:45 GMT 2013
[INFO] Final Memory: 20M/59M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving /opt/cibuild/.jenkins/workspace/Daily-myporjectModulesBuild-StaticAnalysis_New/childProject2/pom.xml to /opt/cibuild/.jenkins/jobs/Daily-myporjectModulesBuild-StaticAnalysis_New/modules/com.mycompany.mypro.services$childProject2/builds/2013-09-27_03-49-13/archive/com.mycompany.mypro.services/childProject2/1.5.0.0/childProject2-1.5.0.0.pom
Waiting for Jenkins to finish collecting data
channel stopped
Finished: SUCCESS
================================================================================================================================================
In Eclipse, output:
--------------------
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] parentProject
[INFO] childProject1
[INFO] childProject2
[INFO] childProject3
[INFO] childProject4
[INFO] childProject5
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building parentProject 1.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # parentProject ---
[INFO] Deleting C:\workspaces\sitesMapTrunk\parentProject\target
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # parentProject ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Checkstyle" report --- maven-checkstyle-plugin:2.10
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO]
[INFO] There are 243 checkstyle errors.
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Modules" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building childProject1 1.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # childProject1 ---
[INFO] Deleting C:\workspaces\sitesMapTrunk\childProject1\target
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # childProject1 ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Checkstyle" report --- maven-checkstyle-plugin:2.10
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building childProject2 1.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # childProject2 ---
[INFO] Deleting C:\workspaces\sitesMapTrunk\childProject2\target
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # childProject2 ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building childProject3 1.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # childProject3 ---
[INFO] Deleting C:\workspaces\sitesMapTrunk\childProject3\target
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # childProject3 ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7
[WARNING] The repository url 'http://repository.springsource.com/maven/bundles/external' is invalid - Repository 'com.springsource.repository.bundles.external' will be blacklisted.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building childProject4 1.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # childProject4 ---
[INFO] Deleting C:\workspaces\sitesMapTrunk\childProject4\target
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # childProject4 ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Checkstyle" report --- maven-checkstyle-plugin:2.10
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO]
[INFO] There are 3 checkstyle errors.
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7
[WARNING] The repository url 'http://repository.springsource.com/maven/bundles/external' is invalid - Repository 'com.springsource.repository.bundles.external' will be blacklisted.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building childProject5 1.5.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # childProject5 ---
[INFO] Deleting C:\workspaces\sitesMapTrunk\childProject5\target
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # childProject5 ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.10
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Modules" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7
[WARNING] The repository url 'http://repository.springsource.com/maven/bundles/external' is invalid - Repository 'com.springsource.repository.bundles.external' will be blacklisted.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parentProject ..................................... SUCCESS [22.917s]
[INFO] childProject1 ..................................... SUCCESS [11.073s]
[INFO] childProject2 ....................................... SUCCESS [14.076s]
[INFO] childProject3 .................................... SUCCESS [34.339s]
[INFO] childProject4 ...................................... SUCCESS [29.662s]
[INFO] childProject5 .................................... SUCCESS [28.539s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:20.837s
[INFO] Finished at: Fri Sep 27 16:47:10 IST 2013
[INFO] Final Memory: 36M/449M
[INFO] ------------------------------------------------------------------------
I configure my svn project locations in different order instead of parent-child order.

Maven Dependency Plugin appendOutput Parameter is Failing?

UPDATE: This issue seems to have resolved itself. I could still produce it on a copy of the source code, but it was a temporary copy that I deleted before realizing I would need it to pin this issue down. I'm continuing to track this and see if I can identify a root cause. If not, I will close the issue.
When I run mvn dependency:list -DoutputFile=/path/to/file.txt -DappendOutput=true from the root directory of a multi-module Maven project, the resultant output file only contains the dependencies of the last module declared in the modules section of the root pom.xml file. Is there something different I need to do to get the output of each submodule to append to the output file?
Configuration:
Maven 3.0.3
maven-dependency-plugin 2.6
When I'm using the following command: -
mvn dependency:list -DoutputFile=/path/to/file.txt -DappendOutput=true
The result is invalid and the Maven told me that
[INFO] --- maven-dependency-plugin:2.1:list (default-cli) # ...
Then I change to specify the version
mvn org.apache.maven.plugins:maven-dependency-plugin:2.6:list -DoutputFile=/path/to/file.txt -DappendOutput=true
The result is valid and the Maven told me that
[INFO] --- maven-dependency-plugin:2.6:list (default-cli) # ...
I would suggest you to ensure that the executing is the version 2.6. Anyhow I always use the following command as
mvn dependency:list > /path/to/file.txt
IMHO the result is better and more clear for each module as the following example: -
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] my-parent
[INFO] my-sub1
[INFO] my-sub2
[INFO]
[INFO] -------------------------------------------------------------------
[INFO] Building my-parent
[INFO] -------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:list (default-cli) # my-parent ---
[INFO]
[INFO] The following files have been resolved:
...
[INFO] -------------------------------------------------------------------
[INFO] Building my-sub1
[INFO] -------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:list (default-cli) # my-sub1 ---
[INFO]
[INFO] The following files have been resolved:
...
[INFO] -------------------------------------------------------------------
[INFO] Building my-sub2
[INFO] -------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:list (default-cli) # my-sub2 ---
[INFO]
[INFO] The following files have been resolved:
...
[INFO]
[INFO] -------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] my-parent ........................................ SUCCESS [0.745s]
[INFO] my-sub1 .......................................... SUCCESS [0.675s]
[INFO] my-sub2 .......................................... SUCCESS [0.671s]
[INFO] -------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] -------------------------------------------------------------------
[INFO] Total time: 2.938s
[INFO] Finished at: Fri Mar 01 17:01:39 ICT 2013
[INFO] Final Memory: 17M/218M
[INFO] -------------------------------------------------------------------
I hope this may help.
Regards,
Charlee Ch.

Resources