Hi Kalle,
We are in fact using 2.2-beta-1, but I am unable to pull in the secondary
artifacts of the dependencies. I tried various forms of the following (with
and without the <attachmentClassifier> tag):
<moduleSets>
<moduleSet>
<binaries>
<attachmentClassifier>conf-resources</attachmentClassifier>
<includeDependencies>true</includeDependencies>
<unpack>true</unpack>
<outputFileNameMapping>local</outputFileNameMapping>
<dependencySets>
<dependencySet>
<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
<outputDirectory>local</outputDirectory>
<includes>
<include>*:conf-resources</include>
</includes>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</binaries>
</moduleSet>
</moduleSets>
The error I get is this:
[INFO] [assembly:assembly {execution: make-assembly}]
[INFO] Reading assembly descriptor:
C:\Projects\rme\discovery-probes\server\cmp-server.xml
[WARNING] NOTE: Currently, inclusion of module dependencies may produce
unpredictable results if a version conflict occurs.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to create assembly: Error creating assembly archive: You must
set at least one file.
There positively is a dependency that has a conf-resources.zip secondary
artifact, but it seems that it is not seen by the assembly plugin. I'm not
sure exactly what the post your pointed me to is referring to, but I do not
think this is working in 2.2-beta-1. If you have any other ideas, please
let me know. I appreciate your assistance! :)
John
Kalle Korhonen-2 wrote:
>
> Hmm... seems that my information is old: 2.2-beta-1 claims support for
> classifiers in a dependencyset - though I think I had some issue with it
> the
> last time I had to include secondary artifacts with classifiers. See
> http://jira.codehaus.org/browse/MASSEMBLY-107. Please report back if it
> works for you.
>
> You vote by signing-up and signing in, then clicking on vote on the
> particular JIRA issue.
>
> Kalle
>
> On 11/2/07, jpanelli <[EMAIL PROTECTED]> wrote:
>>
>>
>> Kalle, thank you very much. This gives me a direction to go at least. I
>> will vote right now, provided I can figure out how to do that.
>>
>> John
>>
>>
>> Kalle Korhonen-2 wrote:
>> >
>> > Unfortunately the assembly plugin doesn't understand the concept of
>> > classifiers at the moment. There are numerous bugs open on the issue -
>> > please vote on them if you haven't done so yet.
>> >
>> > I've solved the problem using a dependency plugin to copy the
>> dependencies
>> > with classifiers to a target location, then using assembly's fileset on
>> > them.
>> >
>> > Kalle
>> >
>> > On 11/2/07, jpanelli <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> We have some dependencies that have a secondary artifact with a
>> >> classifier
>> >> called "conf-resources". The secondary artifact is a zip that
>> contains
>> >> binary files that we want to include in an assembly. We can include
>> the
>> >> secondary artifact in the assembly when it is a module with this
>> assmbly
>> >> descriptor:
>> >>
>> >> <moduleSet>
>> >> <includes>
>> >> <include>*:smar:*</include>
>> >> </includes>
>> >> <binaries>
>> >> <attachmentClassifier>conf-resources</attachmentClassifier>
>> >> <includeDependencies>true</includeDependencies>
>> >> <unpack>true</unpack>
>> >> <outputFileNameMapping>local</outputFileNameMapping>
>> >> </binaries>
>> >> </moduleSet>
>> >>
>> >> However, when the secondary artifact is in attached to a dependency,
>> >> there
>> >> is no <attachmentClassifier> tag inside of <dependencySet>, so we can
>> not
>> >> figure out how to structure the assembly descriptor to include it in
>> the
>> >> assembly. We've tried numerous things. Is it even possible to do
>> this?
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/How-do-I-get-secondary-artifacts-of-dependencies-into-an-assembly--tf4741283s177.html#a13558032
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-do-I-get-secondary-artifacts-of-dependencies-into-an-assembly--tf4741283s177.html#a13558772
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/How-do-I-get-secondary-artifacts-of-dependencies-into-an-assembly--tf4741283s177.html#a13590820
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]