maven-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Jenkins Server <jenk...@builds.apache.org>
Subject Build failed in Jenkins: maven-plugins-windows » Apache Maven Shade Plugin #1569
Date Thu, 05 May 2016 03:35:19 GMT
See <https://builds.apache.org/job/maven-plugins-windows/org.apache.maven.plugins$maven-shade-plugin/1569/changes>

Changes:

[schulte] o Updated to 'plexus-utils-3.0.23'.
o Updated to stop suppressing exceptions incorrectly when closing resources.
  Most of the time the 'IOUtils.closeQuietly' methods of 'commons-io' and
  the 'IOUtil.close' method of 'plexus-utils' are used incorrectly. They
  are meant to be used in 'finally' blocks to not suppress an exception
  already thrown in the 'try' block. The documentation of the
  'IOUtils.closeQuietly' methods explicitly contains usage examples.
  As soon as 'commons-io' or 'plexus-utils' is targetted at Java 1.7, those
  methods should get deprecated and people should be told to use the
  try-with-resources statement instead.

------------------------------------------
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Maven Shade Plugin 3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ maven-shade-plugin ---
[INFO] Deleting F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-bytecode-version) @ maven-shade-plugin
---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (ban-known-bad-maven-versions) @ maven-shade-plugin
---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (ensure-no-container-api) @ maven-shade-plugin
---
[INFO] 
[INFO] --- apache-rat-plugin:0.11:check (rat-check) @ maven-shade-plugin ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: rel-path-test-files/**
[INFO] Exclude: src/it/dep-reduced-pom-use-base-version/repo/org/apache/maven/its/shade/drp/a/0.1-SNAPSHOT/_maven.repositories
[INFO] Exclude: src/it/mshade-123/sample.txt
[INFO] Exclude: src/it/MSHADE-133/src/main/resources/myConfig.yml
[INFO] Exclude: src/it/rerun-with-reloc/src/main/resources/some-ordinary-resource.txt
[INFO] Exclude: src/it/rerun-without-reloc/src/main/resources/some-ordinary-resource.txt
[INFO] Exclude: src/it/MSHADE-182/src/main/resources/META-INF/services/relocateme.Service
[INFO] Exclude: src/it/MSHADE-182/target/classes/META-INF/services/relocateme.Service
[INFO] Exclude: src/it/MSHADE-182/build.log
[INFO] Exclude: DEPENDENCIES
[INFO] 295 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 270 licence.
[INFO] 
[INFO] --- maven-plugin-plugin:3.4:helpmojo (generate-helpmojo) @ maven-shade-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Mojo extractor with id: java-annotations found 0 mojo descriptors.
[INFO] Mojo extractor with id: java-javadoc found 0 mojo descriptors.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ maven-shade-plugin ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ maven-shade-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\src\main\resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ maven-shade-plugin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 31 source files to F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\target\classes
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java:
F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\src\main\java\org\apache\maven\plugins\shade\mojo\ShadeMojo.java
uses or overrides a deprecated API.
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java:
Recompile with -Xlint:deprecation for details.
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/pom/MavenJDOMWriter.java:
F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\src\main\java\org\apache\maven\plugins\shade\pom\MavenJDOMWriter.java
uses unchecked or unsafe operations.
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/pom/MavenJDOMWriter.java:
Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-plugin-plugin:3.4:descriptor (default-descriptor) @ maven-shade-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Mojo extractor with id: java-annotations found 2 mojo descriptors.
[INFO] Mojo extractor with id: java-javadoc found 0 mojo descriptors.
[INFO] 
[INFO] --- plexus-component-metadata:1.5.5:generate-metadata (default) @ maven-shade-plugin
---
[INFO] Discovered 1 component descriptors(s)
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ maven-shade-plugin
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ maven-shade-plugin
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 17 source files to F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\target\test-classes
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/mojo/ShadeMojoTest.java:
F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\src\test\java\org\apache\maven\plugins\shade\mojo\ShadeMojoTest.java
uses or overrides a deprecated API.
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/mojo/ShadeMojoTest.java:
Recompile with -Xlint:deprecation for details.
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/mojo/ShadeMojoTest.java:
F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\src\test\java\org\apache\maven\plugins\shade\mojo\ShadeMojoTest.java
uses unchecked or unsafe operations.
[INFO] /F:/jenkins/jenkins-slave/workspace/maven-plugins-windows/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/mojo/ShadeMojoTest.java:
Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- plexus-component-metadata:1.5.5:generate-test-metadata (default) @ maven-shade-plugin
---
[INFO] Discovered 1 component descriptors(s)
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ maven-shade-plugin ---
[INFO] Surefire report directory: F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.maven.plugins.shade.DefaultShaderTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.194 sec - in org.apache.maven.plugins.shade.DefaultShaderTest
Running org.apache.maven.plugins.shade.filter.MinijarFilterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec - in org.apache.maven.plugins.shade.filter.MinijarFilterTest
Running org.apache.maven.plugins.shade.filter.SimpleFilterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.apache.maven.plugins.shade.filter.SimpleFilterTest
Running org.apache.maven.plugins.shade.mojo.ArtifactIdTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in org.apache.maven.plugins.shade.mojo.ArtifactIdTest
Running org.apache.maven.plugins.shade.mojo.ArtifactSelectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.apache.maven.plugins.shade.mojo.ArtifactSelectorTest
Running org.apache.maven.plugins.shade.mojo.RelativizePathTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in org.apache.maven.plugins.shade.mojo.RelativizePathTest
Running org.apache.maven.plugins.shade.mojo.ShadeMojoTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.688 sec - in org.apache.maven.plugins.shade.mojo.ShadeMojoTest
Running org.apache.maven.plugins.shade.relocation.SimpleRelocatorParameterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.maven.plugins.shade.relocation.SimpleRelocatorParameterTest
Running org.apache.maven.plugins.shade.relocation.SimpleRelocatorTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in org.apache.maven.plugins.shade.relocation.SimpleRelocatorTest
Running org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformerTest
Running org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformerTest
Running org.apache.maven.plugins.shade.resource.AppendingTransformerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.maven.plugins.shade.resource.AppendingTransformerTest
Running org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 sec - in org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformerTest
Running org.apache.maven.plugins.shade.resource.ServiceResourceTransformerTest
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.1 sec <<< FAILURE!
- in org.apache.maven.plugins.shade.resource.ServiceResourceTransformerTest
relocatedClasses(org.apache.maven.plugins.shade.resource.ServiceResourceTransformerTest) 
Time elapsed: 0.1 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<borg.foo.Service[]
> but was:<borg.foo.Service[
]
>
	at org.junit.Assert.assertEquals(Assert.java:125)
	at org.junit.Assert.assertEquals(Assert.java:147)
	at org.apache.maven.plugins.shade.resource.ServiceResourceTransformerTest.relocatedClasses(ServiceResourceTransformerTest.java:76)

concatenation(org.apache.maven.plugins.shade.resource.ServiceResourceTransformerTest)  Time
elapsed: 0 sec  <<< FAILURE!
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:92)
	at org.junit.Assert.assertTrue(Assert.java:43)
	at org.junit.Assert.assertTrue(Assert.java:54)
	at org.apache.maven.plugins.shade.resource.ServiceResourceTransformerTest.concatenation(ServiceResourceTransformerTest.java:141)

Running org.apache.maven.plugins.shade.resource.XmlAppendingTransformerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.maven.plugins.shade.resource.XmlAppendingTransformerTest

Results :

Failed tests: 
  ServiceResourceTransformerTest.concatenation:141 null
  ServiceResourceTransformerTest.relocatedClasses:76 expected:<borg.foo.Service[]
> but was:<borg.foo.Service[
]
>

Tests run: 32, Failures: 2, Errors: 0, Skipped: 0

[ERROR] There are test failures.

Please refer to F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\target\surefire-reports
for the individual test results.
[JENKINS] Recording test results
[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ maven-shade-plugin ---
[INFO] Building jar: F:\jenkins\jenkins-slave\workspace\maven-plugins-windows\maven-shade-plugin\target\maven-shade-plugin-3.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-plugin-plugin:3.4:addPluginArtifactMetadata (default-addPluginArtifactMetadata)
@ maven-shade-plugin ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.15:check (checkstyle-check) @ maven-shade-plugin ---
[INFO] There are 3 errors reported by Checkstyle 6.1.1 with config/maven_checks.xml ruleset.
[ERROR] src\main\java\org\apache\maven\plugins\shade\DefaultShader.java[200:25] (whitespace)
WhitespaceAround: '=' is not followed by whitespace.
[INFO] Ignored 2 errors, 1 violation remaining.

Mime
View raw message