On 12 February 2014 11:43, Ron Wheeler <[email protected]> wrote: > I am trying to build a timesaving module that will build tar files to be > installed on a server > I have defined a bunch of dependencies in the pom and want to build 2 tar > files by invoking 2 instances of the plug-in. > In each one I want to specify a list of dependencies to be included from the > repository. > in the assembly descriptor I have > dependencySets > dependencySet > includes > include com.artifact-software.taw:taw-localized-iumessage-ws > include com.artifact-software.taw:taw-dataccess-ws: > > I would like it to take just these 2 modules for this tar file. > There are a lot more dependencies that will go in the second invocation of > the assembly plug-in. > > > This gets the following message > > [INFO] --- maven-assembly-plugin:2.4:single (default) @ > taw-webapps-assembler --- > [INFO] Reading assembly descriptor: src/assembly/webapps-tar.xml > [WARNING] The following patterns were never triggered in this artifact > inclusion filter: > o 'com.artifact-software.taw:taw-localized-iumessage-ws' > o 'com.artifact-software.taw:taw-dataccess-ws:' > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 9.658s > [INFO] Finished at: Tue Feb 11 19:54:13 EST 2014 > [INFO] Final Memory: 10M/148M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-assembly-plugin:2.4:single (default) on > project taw-webapps-assembler: Failed to create > assembly: Error creating assembly archive webapps: You must set at least one > file. -> [Help 1] > > What have I misunderstood about the assembly.
I'm assuming you've read the docs. >From >http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html I think the shortened form assumes a "jar" classifier. I'm guessing from your assembly name "webapps-tar.xml" that these might be wars? Have you tried using the long form of the dependency conflict id? >From >http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html What phase to did you attach the plugin to? It may be possible you haven't bound it to a phase that has resolved the dependencies and so there are none for it to find. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
