Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2-beta-2
-
Fix Version/s: 2.2-beta-3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
I've configure the assembly plugin in my project like so:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>$
-$
{version}</finalName>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly</id><!-- this is used for inheritance merges -->
<phase>package</phase><!-- append to the packaging phase. -->
<goals>
<goal>attached</goal><!-- goals == mojos -->
</goals>
</execution>
</executions>
</plugin>
Note, that my project is producing a JAR artifact in addition to the zip/tar.gz artifacts produced by the assembly plugin. However, the assembly plugin in beta-2 feels the need to make the zip assembly the primary assembly and make it a jar!
[INFO] [install:install]
[INFO] Installing c:\workspaces\cxf\workspace\mule-transport-restlet\target\mule-transport-restlet-1.0-SNAPSHOT.zip to c:\repo\org\mule\transports\mule-transport-restlet\1.0-SNAPSHOT\mule-transport-restlet-1.0-SNAPSHOT.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from muleforge.webdav.snapshots
Uploading: https://dav.muleforge.org/snapshots.repository/restlet//org/mule/transports/mule-transport-restlet/1.0-SNAPSHOT/mule-transport-restlet-1.0-20080321.175727-2.jar
During that last line Maven is uploading the zip as the jar!
Reverting back to 2.2-beta-1 fixies this.
Issue Links
- is related to
-
MASSEMBLY-156
appendAssemblyId cannot be false
-
-
MASSEMBLY-291
attach the resulting assembly not working as expected
-
This issue appears to be caused by the fix to 156. Previously it was possible (and valid) to append neither of the assemblyId or classifier if for instance you want three outputs - $
{project.build.finalName}.zip ${project.build.finalName}.tar.gz $
{project.build.finalName}.tar.bz2 as the main project artifact.