Maven Findbugs not producing reports in site lifecycle - maven

I'm trying to create the Findbugs HTML report for the site reports. I finally got Findbugs to actually run (before it would skip) because I had to include the goal findbugs in the <build> phase under the find bugs report. However, the findbugs.html report is not being generated even though I have findbugs defined in my <reporting> section.
Here's my configuration for Findbugs:
<build>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<xmlOutput>true</xmlOutput>
</configuration>
<executions>
<execution>
<goals>
<goal>findbugs</goal>
</goals>
</execution>
</executions>
</plugin>
....
<plugins>
</build>
....
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<xmlOutput>true</xmlOutput>
<failOnError>false</failOnError>
<xmlOutput>true</xmlOutput>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
<reporting>
My execution looks like this:
$ mvn clean site
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building project 2.0.4
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # crypto ---
[INFO] Deleting target
[INFO]
[INFO] --- maven-site-plugin:3.3:site (default-site) # crypto ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[INFO] configuring report plugin org.codehaus.mojo:findbugs-maven-plugin:2.5.2
[INFO] configuring report plugin org.apache.maven.plugins:maven-pmd-plugin:3.0.1
[INFO] configuring report plugin org.apache.maven.plugins:maven-javadoc-plugin:2.9.1
[INFO]
[INFO] >>> maven-javadoc-plugin:2.9.1:aggregate (report:aggregate) # crypto >>>
[INFO]
[INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) # crypto ---
Retrieving document at 'src/main/wsdl/Tokenizer.wsdl'.
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) # crypto ---
[INFO] Source directory: target/generated-sources added.
[INFO]
[INFO] <<< maven-javadoc-plugin:2.9.1:aggregate (report:aggregate) # crypto <<<
[INFO]
[INFO] >>> maven-javadoc-plugin:2.9.1:test-aggregate (report:test-aggregate) # crypto >>>
[INFO]
[INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) # crypto ---
Retrieving document at 'src/main/wsdl/SafeNetTokenizer.wsdl'.
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) # crypto ---
[INFO] Source directory: /Users/david/workspace/KeyManagment-trunk/target/generated-sources added.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # crypto ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/david/workspace/KeyManagment-trunk/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # crypto ---
[INFO] Compiling 13 source files to /Users/david/workspace/KeyManagment-trunk/target/classes
[INFO]
[INFO] --- findbugs-maven-plugin:2.5.2:findbugs (default) # crypto ---
[INFO] Fork Value is true
[java] The following classes needed for analysis were missing:
[java] com.ingrian.internal.ilc.IngrianLogger
[java] com.ingrian.security.nae.NAESession
[java] com.ingrian.internal.config.Config
[java] com.ingrian.security.nae.NAEKey
[java] com.ingrian.security.nae.HmacSHA256
[java] com.ingrian.internal.xml.XMLException
[java] com.ingrian.security.nae.NAEAESCipher
[java] com.ingrian.security.nae.IngrianProvider
[java] Warnings generated: 310
[java] Missing classes: 8
[INFO] Done FindBugs Analysis....
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:manifest (bundle-manifest) # crypto ---
[INFO]
[INFO] <<< maven-javadoc-plugin:2.9.1:test-aggregate (report:test-aggregate) # crypto <<<
[INFO]
[INFO] >>> maven-javadoc-plugin:2.9.1:javadoc (report:javadoc) # crypto >>>
[INFO]
[INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) # crypto ---
Retrieving document at 'src/main/wsdl/SafeNetTokenizer.wsdl'.
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) # crypto ---
[INFO] Source directory: /Users/david/workspace/KeyManagment-trunk/target/generated-sources added.
[INFO]
[INFO] <<< maven-javadoc-plugin:2.9.1:javadoc (report:javadoc) # crypto <<<
[INFO]
[INFO] >>> maven-javadoc-plugin:2.9.1:test-javadoc (report:test-javadoc) # crypto >>>
[INFO]
[INFO] --- axis2-wsdl2code-maven-plugin:1.5.6:wsdl2code (default) # crypto ---
Retrieving document at 'src/main/wsdl/SafeNetTokenizer.wsdl'.
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) # crypto ---
[INFO] Source directory: /Users/david/workspace/KeyManagment-trunk/target/generated-sources added.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # crypto ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/david/workspace/KeyManagment-trunk/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # crypto ---
[INFO] Compiling 2 source files to /Users/david/workspace/KeyManagment-trunk/target/classes
[INFO]
[INFO] --- findbugs-maven-plugin:2.5.2:findbugs (default) # crypto ---
[INFO] Fork Value is true
[java] The following classes needed for analysis were missing:
[java] com.ingrian.internal.ilc.IngrianLogger
[java] com.ingrian.security.nae.NAESession
[java] com.ingrian.internal.config.Config
[java] com.ingrian.security.nae.NAEKey
[java] com.ingrian.security.nae.HmacSHA256
[java] com.ingrian.internal.xml.XMLException
[java] com.ingrian.security.nae.NAEAESCipher
[java] com.ingrian.security.nae.IngrianProvider
[java] Warnings generated: 310
[java] Missing classes: 8
[INFO] Done FindBugs Analysis....
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:manifest (bundle-manifest) # crypto ---
[INFO]
[INFO] <<< maven-javadoc-plugin:2.9.1:test-javadoc (report:test-javadoc) # crypto <<<
[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] Skipped "JavaDocs" report, file "apidocs/index.html" already exists for the English version.
[INFO] Skipped "Test JavaDocs" report, file "testapidocs/index.html" already exists for the English version.
[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 "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] Generating "CPD Report" report --- maven-pmd-plugin:3.0.1
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating "PMD Report" report --- maven-pmd-plugin:3.0.1
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating "JavaDocs" report --- maven-javadoc-plugin:2.9.1
[INFO]
Loading source files for package com.ihotelier.crypto...
Loading source files for package com.safenet.tokenization.wsclient...
Constructing Javadoc information...
Standard Doclet version 1.7.0_13
Building tree for all the packages and classes...
Generating ...
4 warnings
[WARNING] Javadoc Warnings
[WARNING] ...
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:30.831s
[INFO] Finished at: Tue Nov 05 14:02:04 EST 2013
[INFO] Final Memory: 40M/115M
[INFO] ------------------------------------------------------------------------
I see findbugs being configured in the beginning of my execution under the maven-site-plugin. I see Findbugs executing (twice!) after maven-compiler-plugin runs. (I may change the goal to process-classes to prevent this double execution. I see 8 errors, but we don't really use those classes. (I need to figure out how to skip over these classes).
Near the end of the build, I see the PMD and CPD Reports being generated (Generating "CPD Report" report), but not Findbugs.
When I look at the build results, I see target/findbugs.xml and target/findbugsXML.xml, but nothing under target/site.
Sorry for the excessive output. I want to make sure I wasn't skipping anything important.

Shows you what I know about Maven. Two things I discovered:
Running site does not execute package (although compile does run -- probably because it's needed for some of the reports).
Findbugs cannot produce a site report unless the package is done first.
I moved findbugs plugin to run in the package phase, so it doesn't run twice, and everything now seems fine.

I think it's similar to the surefire reports issues, so try adding the site plugin to the <pluginManagement> section:
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
</plugins>
</pluginManagement>

Related

A simple example about Maven from a textbook

I am using Apache Maven 3.6.0.
I'm studying a book on Maven, namely this one:
https://books.sonatype.com/mvnex-book/pdf/mvnex-pdf.pdf. Page 7 / 155.
We are given a Sample Maven pom.xml:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.sonatype.mavenbook</groupId>
<artifactId>my-project</artifactId>
<version>1.0-SNAPSHOT</version>
</project>
Then it is written that we should run:
mvn install
I tried, it is OK. Target directory is created.
Then it is written: "Without modification, you can run mvn site".
I did that and get this: https://pastebin.com/9Zrmws9T
Well, it seems that something has to do with maven-site-plugin. But I don't know what this means for me, or whether the book is worth reading, given that it turns such somersaults at the very beginning.
Can I fix this problem with Maven?
Best way to learn maven is to start.
Let maven create an example project from an archetype:
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) > generate-sources # standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.0:generate (default-cli) < generate-sources # standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.0.0:generate (default-cli) # standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository not defined. Using the one from [org.apache.maven.archetypes:maven-archetype-quickstart:1.4] found in catalog remote
Define value for property 'groupId': com.essexboy
Define value for property 'artifactId': site-example
Define value for property 'version' 1.0-SNAPSHOT: :
Define value for property 'package' com.essexboy: :
Confirm properties configuration:
groupId: com.essexboy
artifactId: site-example
version: 1.0-SNAPSHOT
package: com.essexboy
Y: :
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: maven-archetype-quickstart:RELEASE
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.essexboy
[INFO] Parameter: artifactId, Value: site-example
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.essexboy
[INFO] Parameter: packageInPathFormat, Value: com/essexboy
[INFO] Parameter: package, Value: com.essexboy
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: com.essexboy
[INFO] Parameter: artifactId, Value: site-example
[INFO] Project created from Archetype in dir: /home/greg/work/site-example
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.041 s
[INFO] Finished at: 2020-09-30T11:40:30+01:00
[INFO] ------------------------------------------------------------------------
Change directory into your new project where you'll have a pom and some code.
greg#greg-XPS-13-9360:~/work$ cd site-example/
Run the site command
greg#greg-XPS-13-9360:~/work/site-example$ mvn site
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.essexboy:site-example >----------------------
[INFO] Building site-example 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-site-plugin:3.7.1:site (default-site) # site-example ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:3.0.0
[INFO] 15 reports detected for maven-project-info-reports-plugin:3.0.0: ci-management, dependencies, dependency-info, dependency-management, distribution-management, index, issue-management, licenses, mailing-lists, modules, plugin-management, plugins, scm, summary, team
[INFO] Rendering site with default locale English (en)
[INFO] Relativizing decoration links with respect to localized project URL: http://www.example.com
[INFO] Rendering content with org.apache.maven.skins:maven-default-skin:jar:1.2 skin.
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:3.0.0:dependencies
[INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:3.0.0:dependency-info
[INFO] Generating "About" report --- maven-project-info-reports-plugin:3.0.0:index
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:3.0.0:plugin-management
[INFO] Generating "Plugins" report --- maven-project-info-reports-plugin:3.0.0:plugins
[INFO] Generating "Summary" report --- maven-project-info-reports-plugin:3.0.0:summary
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.829 s
[INFO] Finished at: 2020-09-30T11:40:46+01:00
[INFO] ------------------------------------------------------------------------
Your site will be generated under target/site. You can open the index.html in a browser:
Yes, the example from the book didn't seem to work for me either.
However, after I added the following build/plugins section into the pom.xml, mvn site started to work for me:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</build>
Please, also take a look at this answer here:
maven-site plugins 3.3 java.lang.ClassNotFoundException: org.apache.maven.doxia.siterenderer.DocumentContent

Maven don't execute junit test

I'm trying to test this project: https://github.com/deglans/jenktest
but maven say that:
$ mvn clean install
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] jenktest
[INFO] hello
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jenktest 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # jenktest ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # jenktest ---
[INFO] Installing /documenti/deglans/Programs/IdeaProjects/jenktest/pom.xml to /home/deglans/.m2/repository/io/github/deglans/jenktest/0.0.1-SNAPSHOT/jenktest-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hello 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # hello ---
[INFO] Deleting /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # hello ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /documenti/deglans/Programs/IdeaProjects/jenktest/hello/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # hello ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # hello ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # hello ---
[INFO] Building jar: /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/hello-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # hello ---
[INFO] Installing /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/hello-0.0.1-SNAPSHOT.jar to /home/deglans/.m2/repository/io/github/deglans/hello/0.0.1-SNAPSHOT/hello-0.0.1-SNAPSHOT.jar
[INFO] Installing /documenti/deglans/Programs/IdeaProjects/jenktest/hello/pom.xml to /home/deglans/.m2/repository/io/github/deglans/hello/0.0.1-SNAPSHOT/hello-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jenktest ........................................... SUCCESS [ 0.449 s]
[INFO] hello .............................................. SUCCESS [ 1.715 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.360 s
[INFO] Finished at: 2017-12-16T11:41:59+01:00
[INFO] Final Memory: 14M/48M
[INFO] ------------------------------------------------------------------------
What is the warning and why maven completely skip the test phase?
The final purpose of this work is to test email jenkins feature, but for now I'm blocked by this problem...
Thanks
Summary
You need to either rename GreetingTests.java to GreetingTest.java, or update your maven-surefire-plugin. Updating surefire plugin can provide better pattern for inclusions of tests. You can declare it in project's parent POM ./pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- ... -->
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Detail
What is the warning and why maven completely skip the test phase?
Maven didn't skip the test phase. Maven unit tests are executed by maven-surefire-plugin, and it has been triggered correctly:
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # hello ---
You need to rename your test to GreetingTests.java to GreetingTest.java. Because the surefire-plugin:2.12.4 does not recognize pattern *Tests.java, as documented here:
By default, the plugin will automatically include all test classes with the following wildcard patterns:
"**/Test*.java" - includes all of its subdirectories and all java
filenames that start with "Test".
"**/*Test.java" - includes all of its subdirectories and all java
filenames that end with "Test".
"**/*TestCase.java" - includes all of its subdirectories and all java
filenames that end with "TestCase".

How to avoid duplicate forking when generating aggregated javadoc in a multimodule project

I am trying to configure a Maven multimodule project to produce a distribution zip via the assembly plugin, which should include aggregated javadoc for all submodules in the project.
The project structure is (simplified, in reality there's about 20 modules):
Project X Core
+- pom.xml (1)
+- module-A
| +- pom.xml (2)
+-module-B
| +- pom.xml (3)
+-assembly
+- pom.xml (4)
where assembly is the submodule that produces the distribution zip. The root pom lists all submodules as modules, each submodule's pom has, in turn, the root pom as its parent. The assembly plugin is bound to the package phase. All of this works fine.
The problem occurs when I try to create aggregated javadoc (not javadoc jars, but a directory with html), to include in the assembly. To achieve this, I have configured the maven-javadoc-plugin as a build plugin in the root pom, as follows:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>1.6</source>
<encoding>utf8</encoding>
<quiet>true</quiet>
<links>
<link>http://docs.oracle.com/javase/6/docs/api/</link>
</links>
</configuration>
<executions>
<execution>
<id>create-javadoc</id>
<phase>package</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
In addition, I have configured my assembly descriptor, in the assembly submodule, to include a fileSet with the javadocs, picked from the target dir of its parent project:
<fileSet>
<directory>../target/site/apidocs</directory>
<outputDirectory>docs/apidocs</outputDirectory>
</fileSet>
The problem I face with this setup is this: I see the following output when running mvn package:
[INFO] Reactor Build Order:
[INFO]
[INFO] Project X Core
[INFO] Project X: module A
[INFO] Project X: module B
[INFO] Project X: assembly
[INFO] ------------------------------------------------------------------------
[INFO] Building Project X Core 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # projectX-core ---
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.13:check (default) # projectX-core ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0
[INFO]
[INFO] >>> maven-javadoc-plugin:2.10.1:aggregate (create-javadoc) > generate-sources # projectX-core >>>
[INFO]
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking Project X Core 1.0.0-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # projectX-core ---
[INFO]
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking Project X: module A 1.0.0-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # projectX-modA ---
[INFO]
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking Project X: module B 1.0.0-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # projectX-modB ---
Downloading: https://example.org/repositories/snapshots/org/example/project/projectX-modB/1.0.0-SNAPSHOT/modB-1.0.0-20141121.022310-7.jar
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking Project X: Assembly 1.0.0-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Downloading: https://example.org/repositories/snapshots/org/example/project/projectX-modC/1.0.0-SNAPSHOT/maven-metadata.xml
2/2 KB
(snip for brevity)
[INFO] ------------------------------------------------------------------------
[INFO] Building Project X: module A 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # projectX-modA ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # projectX-modA ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/jeen/Projects/projectX/modA/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # projectX-modA ---
[INFO] Compiling 52 source files to /Users/jeen/Projects/projectX/modA/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # projectX-modA ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/jeen/Projects/projectX/modA/util/src/test/resources
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # projectX-modA ---
[INFO] Building jar: /Users/jeen/Projects/projectX/modA/target/modA-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-javadoc-plugin:2.10.1:aggregate (create-javadoc) > generate-sources # projectX-modA >>>
[INFO]
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking Project X Core 1.0.0-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # projectX-core ---
[INFO]
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking Project X Module A 1.0.0-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) # projectX-modA ---
[INFO]
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] Forking ProjectX Module B 1.0.0-SNAPSHOT
[INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.....
This is just a snippet, but these "Forking" messages are repeated a great number of times for each submodule (in fact, in reality about 60 times per module). This worries me: it looks as if there is an awful lot of duplicate work going on. A second thing that worries me is that it apparently downloads remote snapshots of artifacts that are part of the current reactor (see the 'Downloading' messages in the snippet above). I should point out that despite all these duplicate messages, the goal is achieved: the aggregate javadoc is produced, and is included in the assembly.
So, the question is really: what (if anything) am I doing wrong? Should I just ignore these repeating "Forking" messages and the snapshot downloads, or are they an indication of an incorrect setup? If the latter, does anybody have an idea how I should tweak the setup to get this to work correctly?
FWIW I have already tried several alternative configurations, including moving the javadoc plugin config to the assembly submodule, but none of it gave me the expected results.
I've tried to keep it brief and to the point, if additional info is needed let me know.
Running Maven 3.2.3, by the way.
I seem to have found the answer to my own question.
The problem is in the javadoc plugin configuration. Because the plugin is in the aggregator project's build section, it gets inherited by the submodules (which then each execute it in turn, apparently).
Simply making sure the plugin does not get inherited fixed the issue:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<inherited>false</inherited>
...

How can I disable default lifecycle phases in Maven 3?

By disable I mean completely, entirely cut the phase from the lifecycle, so that it is not even invoked.
I might need a custom lifecycle but I could not find an easy way to define it straight in my pom.xml. It appears I need to write a plugin just to list phases I want.
For example, I would like default-testResources, default-testCompile and default-test phases to never happen and turn my build log from this:
[INFO] ------------------------------------------------------------------------
[INFO] Building HelpDesk Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # helpdesk ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\proj\HelpDesk\repo\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # helpdesk ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # helpdesk ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) # helpdesk ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) # helpdesk ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) # helpdesk ---
[INFO] Packaging webapp
[INFO] Assembling webapp [helpdesk] in [d:\proj\HelpDesk\repo\target\helpdesk]
[INFO] Processing war project
[INFO] Copying webapp resources [d:\proj\HelpDesk\repo\src\main\webapp]
[INFO] Webapp assembled in [40 msecs]
[INFO] Building war: d:\proj\HelpDesk\repo\target\helpdesk.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
into this:
[INFO] ------------------------------------------------------------------------
[INFO] Building HelpDesk Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # helpdesk ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory d:\proj\HelpDesk\repo\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) # helpdesk ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) # helpdesk ---
[INFO] Packaging webapp
[INFO] Assembling webapp [helpdesk] in [d:\proj\HelpDesk\repo\target\helpdesk]
[INFO] Processing war project
[INFO] Copying webapp resources [d:\proj\HelpDesk\repo\src\main\webapp]
[INFO] Webapp assembled in [40 msecs]
[INFO] Building war: d:\proj\HelpDesk\repo\target\helpdesk.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
If you want to continue using a predefined packaging (jar, war, etc.) you cannot totally remove them. You may leave the packaging as pom and define your own lifecycle by binding the goals you want to the desired phases, or you may define your own lifecycle entirely. You may also bind a default goal to phase none to prevent the goal from doing any real work as shown.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>default-testResources</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
All that said - khmarbaise's question is a good one. Generally it's not a best practice to change the existing pre-built lifecycles.

How to config maven when installing hoop

I'm trying to build install hoop in ubuntu 12.04 following http://cloudera.github.com/hoop/docs/latest/ServerSetup.html, however, the problem came when the I was doing mvn clean package -Dmaven.test.skip=true site assembly:single, the default configuration of hoop is post bellow,
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.cloudera.hoop</groupId>
<artifactId>hoop-main</artifactId>
<version>0.1.0-SNAPSHOT</version>
<description>Hoop Main</description>
<name>Hoop Main</name>
<packaging>pom</packaging>
<url>http://github.com/cloudera/hoop</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<organization>
<name>Cloudera</name>
<url>http://www.cloudera.com</url>
</organization>
<scm>
<connection>scm:git:git#github.com:cloudera/hoop.git</connection>
<url>https://github.com/cloudera/hoop</url>
</scm>
<distributionManagement>
<repository>
<id>cdh.releases.repo</id>
<url>https://repository.cloudera.com/content/repositories/releases</url>
<name>CDH Releases Repository</name>
</repository>
<snapshotRepository>
<id>cdh.snapshots.repo</id>
<url>https://repository.cloudera.com/content/repositories/snapshots</url>
<name>CDH Snapshots Repository</name>
</snapshotRepository>
</distributionManagement>
<modules>
<module>hoop-project</module>
<module>hoop-testng</module>
<module>hoop-server</module>
<module>hoop-client</module>
<module>hoop-webapp</module>
<module>hoop-docs</module>
<module>hoop-distro</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-3</version>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.7</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.0.0,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>1.6</version>
</requireJavaVersion>
<requireOS>
<family>unix</family>
</requireOS>
</rules>
</configuration>
<executions>
<execution>
<id>clean</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>pre-clean</phase>
</execution>
<execution>
<id>default</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>validate</phase>
</execution>
<execution>
<id>site</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>pre-site</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>post-site</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<attach>false</attach>
<descriptors>
<descriptor>maven/assembly-empty.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<exclude>**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
and the output is paste bellow,
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Hoop Project POM
[INFO] Hoop TestNG
[INFO] Hoop Server
[INFO] Hoop WebApp
[INFO] Hoop Client
[INFO] Hoop Docs
[INFO] Hoop Distro
[INFO] Hoop Main
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop Project POM 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (clean) # hoop-project ---
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) # hoop-project ---
[INFO] Deleting file set: /home/pc/hoop/hoop-project/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (default) # hoop-project ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (site) # hoop-project ---
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # hoop-project ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1
[INFO] Relativizing decoration links with respect to project URL: http://github.com/cloudera/hoop
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.3.1
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-3:single (default-cli) # hoop-project ---
[INFO] Reading assembly descriptor: maven/assembly-empty.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop TestNG 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) # hoop-testng ---
[INFO] Deleting file set: /home/pc/hoop/hoop-testng/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) # hoop-testng ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # hoop-testng ---
[INFO] Compiling 4 source files to /home/pc/hoop/hoop-testng/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) # hoop-testng ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pc/hoop/hoop-testng/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # hoop-testng ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.6:test (default-test) # hoop-testng ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # hoop-testng ---
[INFO] Building jar: /home/pc/hoop/hoop-testng/target/hoop-testng-0.1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # hoop-testng ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1
[INFO] Relativizing decoration links with respect to project URL: http://github.com/cloudera/hoop/hoop-testng
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.3.1
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-3:single (default-cli) # hoop-testng ---
[INFO] Reading assembly descriptor: maven/assembly-empty.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop Server 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) # hoop-server ---
[INFO] Deleting file set: /home/pc/hoop/hoop-server/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) # hoop-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # hoop-server ---
[INFO] Compiling 79 source files to /home/pc/hoop/hoop-server/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) # hoop-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # hoop-server ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.6:test (default-test) # hoop-server ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # hoop-server ---
[INFO] Building jar: /home/pc/hoop/hoop-server/target/hoop-server-0.1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # hoop-server ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1
[INFO] Relativizing decoration links with respect to project URL: http://github.com/cloudera/hoop/hoop-server
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.3.1
[WARNING] The repository url 'http://repository.codehaus.org/' is invalid - Repository 'Codehaus repository' will be blacklisted.
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.3.1
[INFO]
[INFO] >>> maven-javadoc-plugin:2.7:javadoc (default) # hoop-server >>>
[INFO]
[INFO] <<< maven-javadoc-plugin:2.7:javadoc (default) # hoop-server <<<
[INFO]
[INFO] --- maven-javadoc-plugin:2.7:javadoc (default) # hoop-server ---
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.7:javadoc' has not be previously called for the project: 'com.cloudera.hoop:hoop-testng:jar:0.1.0-SNAPSHOT'. Trying to invoke it...
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.7:javadoc' has not be previously called for the project: 'com.cloudera.hoop:hoop-docs:jar:0.1.0-SNAPSHOT'. Trying to invoke it...
[ERROR] MavenInvocationException: Error when invoking Maven, consult the invoker log file: /home/pc/hoop/hoop-server/target/invoker/maven-javadoc-plugin1321551293.txt
[ERROR] Error fetching link: /home/pc/hoop/hoop-webapp/target/site/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /home/pc/hoop/hoop-docs/target/site/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /home/pc/hoop/hoop-distro/target/site/apidocs/package-list. Ignored it.
[INFO]
5 warnings
[WARNING] Javadoc Warnings
[WARNING] /home/pc/hoop/hoop-server/src/main/java/com/cloudera/lib/server/Server.java:684: warning - #return tag has no arguments.
[WARNING] /home/pc/hoop/hoop-server/src/main/java/com/cloudera/lib/server/Server.java:256: warning - Tag #link: can't find serverStatusChange(Status, Status) in com.cloudera.lib.server.Service
[WARNING] /home/pc/hoop/hoop-server/src/main/java/com/cloudera/lib/lang/RunnableCallable.java:68: warning - #return tag cannot be used in method with void return type.
[WARNING] /home/pc/hoop/hoop-server/src/main/java/com/cloudera/hoop/FsPathParam.java:41: warning - #returns is an unknown tag.
[WARNING] /home/pc/hoop/hoop-server/src/main/java/com/cloudera/hoop/Hoop.java:455: warning - #param argument "override," is not a parameter name.
[INFO]
[INFO] --- maven-project-info-reports-plugin:2.3.1:dependencies (default) # hoop-server ---
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-3:single (default-cli) # hoop-server ---
[INFO] Reading assembly descriptor: maven/assembly-empty.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop WebApp 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) # hoop-webapp ---
[INFO] Deleting file set: /home/pc/hoop/hoop-webapp/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) # hoop-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pc/hoop/hoop-webapp/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # hoop-webapp ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) # hoop-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pc/hoop/hoop-webapp/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # hoop-webapp ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.6:test (default-test) # hoop-webapp ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.1:war (default-war) # hoop-webapp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [hoop-webapp] in [/home/pc/hoop/hoop-webapp/target/hoop-webapp-0.1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/pc/hoop/hoop-webapp/src/main/webapp]
[INFO] Webapp assembled in [52 msecs]
[INFO] Building war: /home/pc/hoop/hoop-webapp/target/hoop-webapp-0.1.0-SNAPSHOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # hoop-webapp ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1
[INFO] Relativizing decoration links with respect to project URL: http://github.com/cloudera/hoop/hoop-webapp
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.3.1
[WARNING] The repository url 'http://www.datanucleus.org/downloads/maven2' is invalid - Repository 'datanucleus' will be blacklisted.
[WARNING] The repository url 'https://maven-repository.dev.java.net/nonav/repository' is invalid - Repository 'java.net' will be blacklisted.
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.3.1
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-3:single (default-cli) # hoop-webapp ---
[INFO] Reading assembly descriptor: maven/assembly-empty.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop Client 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) # hoop-client ---
[INFO] Deleting file set: /home/pc/hoop/hoop-client/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) # hoop-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pc/hoop/hoop-client/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # hoop-client ---
[INFO] Compiling 3 source files to /home/pc/hoop/hoop-client/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) # hoop-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pc/hoop/hoop-client/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # hoop-client ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.6:test (default-test) # hoop-client ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # hoop-client ---
[INFO] Building jar: /home/pc/hoop/hoop-client/target/hoop-client-0.1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # hoop-client ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1
[INFO] Relativizing decoration links with respect to project URL: http://github.com/cloudera/hoop/hoop-client
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "About" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Dependency Convergence" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.3.1
[INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.3.1
[INFO]
[INFO] >>> maven-javadoc-plugin:2.7:javadoc (default) # hoop-client >>>
[INFO]
[INFO] <<< maven-javadoc-plugin:2.7:javadoc (default) # hoop-client <<<
[INFO]
[INFO] --- maven-javadoc-plugin:2.7:javadoc (default) # hoop-client ---
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.7:javadoc' has not be previously called for the project: 'com.cloudera.hoop:hoop-webapp:war:0.1.0-SNAPSHOT'. Trying to invoke it...
[ERROR] MavenInvocationException: Error when invoking Maven, consult the invoker log file: /home/pc/hoop/hoop-client/target/invoker/maven-javadoc-plugin395037384.txt
[ERROR] Error fetching link: /home/pc/hoop/hoop-webapp/target/site/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /home/pc/hoop/hoop-docs/target/site/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /home/pc/hoop/hoop-distro/target/site/apidocs/package-list. Ignored it.
[INFO]
[INFO] --- maven-project-info-reports-plugin:2.3.1:dependencies (default) # hoop-client ---
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-3:single (default-cli) # hoop-client ---
[INFO] Reading assembly descriptor: maven/assembly-hoop-client.xml
[INFO] Copying files to /home/pc/hoop/hoop-client/target/hoop-client-lib
[WARNING] Assembly file: /home/pc/hoop/hoop-client/target/hoop-client-lib is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hoop Docs 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) # hoop-docs ---
[INFO] Deleting file set: /home/pc/hoop/hoop-docs/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) # hoop-docs ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pc/hoop/hoop-docs/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # hoop-docs ---
[INFO] Compiling 1 source file to /home/pc/hoop/hoop-docs/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) # hoop-docs ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pc/hoop/hoop-docs/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # hoop-docs ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.6:test (default-test) # hoop-docs ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # hoop-docs ---
[INFO] Building jar: /home/pc/hoop/hoop-docs/target/hoop-docs-0.1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) # hoop-docs ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1
[INFO] Relativizing decoration links with respect to project URL: http://github.com/cloudera/hoop/hoop-docs
[INFO] Rendering site with org.apache.maven.skins:maven-stylus-skin:jar:1.2 skin.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Hoop Project POM .................................. SUCCESS [7.496s]
[INFO] Hoop TestNG ....................................... SUCCESS [3:19.250s]
[INFO] Hoop Server ....................................... SUCCESS [4:11.171s]
[INFO] Hoop WebApp ....................................... SUCCESS [1:52.368s]
[INFO] Hoop Client ....................................... SUCCESS [4:30.761s]
[INFO] Hoop Docs ......................................... FAILURE [0.509s]
[INFO] Hoop Distro ....................................... SKIPPED
[INFO] Hoop Main ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:02.178s
[INFO] Finished at: Tue Jun 05 17:45:37 CST 2012
[INFO] Final Memory: 53M/724M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project hoop-docs: Error during site generation: error in opening zip file -> [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 possib

Resources