-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
since version 1.0.4 I get the following errror during the build of war files
...
INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
/opt/reactor/continousintegration/hudson/jobs/PE2/workspace/trunk/cp-reactor/enterprise-manager/cp-em-war/target/cp-em-war-1.0-SNAPSHOT
[INFO] Assembling webapp cp-em-war in
/opt/reactor/continousintegration/hudson/jobs/PE2/workspace/trunk/cp-reactor/enterprise-manager/cp-em-war/target/cp-em-war-1.0-SNAPSHOT
[INFO] Generating war
/opt/reactor/continousintegration/hudson/jobs/PE2/workspace/trunk/cp-reactor/enterprise-manager/cp-em-war/target/cp-em-war-1.0-SNAPSHOT.war
[HUDSON] Archiving
/opt/reactor/continousintegration/hudson/jobs/PE2/workspace/trunk/cp-reactor/enterprise-manager/cp-em-war/pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error assembling WAR
Embedded error: The attribute "Hudson-Build-Number" may not occur more than once
in the same section
...
The configuration for my war plugin looks like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!-warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes->
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
I guess that Hudson tries to set an attribute in the MANIFEST.MF resulting in
the above error state.
[JENKINS-503] Cannot build war files with war plugin. Embedded error: The attribute "Hudson-Build-Number" may not occur more than once
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Component/s | New: maven-plugin [ 16033 ] | |
Component/s | Original: maven2 [ 15487 ] |
Workflow | Original: JNJira [ 130576 ] | New: JNJira + In-Review [ 199936 ] |