-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Major
-
Component/s: maven-plugin
-
None
-
Environment:Platform: All, OS: All
I have a very large multi-project build environment. In it, I have several types
of builds that are controlled by the pom.xml file's inheritance capabilities.
One such build type creates an application assembly complete with installer. It
uses the maven-assembly-plugin, and I have written my own assembly descriptor
for the purpose. The individual projects that use this assembly refer to it with
a <descriptor> tag (not a <descriptorRef> tag), and include in the
assembly-plugin setup a <dependencies/> section which specifies the groupId,
artifactId, and version of the assembly descriptor's project.
This configuration works fine when manually invoked from the command line, but
fails with the following error when run from with a Hudson Maven2 build:
==========================================================================
[INFO] [assembly:single
]
[HUDSON] Archiving
/data/users/ci/.hudson/jobs/ITG-MD-CI-Clean-Deploy/workspace/trunk/app.server.mdqd/pom.xml
to
/data/users/ci/.hudson/jobs/ITG-MD-CI-Clean-Deploy/modules/com.itgssi.md$app.server.mdqd/builds/2008-11-18_09-31-44/archive/com.itgssi.md/app.server.mdqd/2.0.3-SNAPSHOT/pom.xml
[HUDSON] Archiving
/data/users/ci/.hudson/jobs/ITG-MD-CI-Clean-Deploy/workspace/trunk/app.server.mdqd/target/app.server.mdqd-2.0.3-SNAPSHOT.jar
to
/data/users/ci/.hudson/jobs/ITG-MD-CI-Clean-Deploy/modules/com.itgssi.md$app.server.mdqd/builds/2008-11-18_09-31-44/archive/com.itgssi.md/app.server.mdqd/2.0.3-SNAPSHOT/app.server.mdqd-2.0.3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error reading assemblies: Descriptor with ID 'self-extracting-jar' not found
==========================================================================
It looks to me that Hudson's archiving intervention breaks something such that
Maven can no longer find the assembly-plugin's dependencies.
Here is an excerpt from the pom.xml file of the application which depends upon
the assembly:
==========================================================================
<build>
<resources>
<resource>
<directory>src/main/etc</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<main-class>com.itgssi.md.loader.fx.driver.GetFXFiles</main-class>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
==========================================================================