Is it possible to get the zip version of some module (in this example case module:core-dll)
The zip is deployed to the repository:
http://repo01:8080/archiva/repository/snapshots/../core-dll/distribution/1.0-SNAPSHOT/core-dll-1.0-20111114.163405-1.zip
assembly.xml:
<moduleSets>
<moduleSet>
<includes>
<include>*:core-dll</include>
</includes>
<binaries>
<unpack>false</unpack>
<includeDependencies>false</includeDependencies>
<attachmentClassifier>zip</attachmentClassifier>
<outputDirectory>installation_files\plugins</outputDirectory>
</binaries>
</moduleSet>
</moduleSets>
Error I am getting:
Assembly: package is not configured correctly:
Cannot find attachment with classifier: zip in module project: .. core-dll
You are getting this error because
classifieris not the same as packagingtype. The pom reference gives the details, but suffice to say, the assembly plugin is expectingcore-dll-zip-<version>.jarand notcore-dll-<version>.zipAs for your requirement, not sure why you are using a
moduleSet. Perhaps you should consider usingdependencySet. In this case, assuming thedependencyis defined correctly (with the correct packagingtype), I believe the assembly plugin will include it. I haven’t tried it though.