You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ron Wheeler <rw...@artifact-software.com> on 2014/02/12 02:13:12 UTC

maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

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.

-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Ron Wheeler <rw...@artifact-software.com>.
On 13/02/2014 4:23 PM, Barrie Treloar wrote:
> On 13 February 2014 23:25, Ron Wheeler <rw...@artifact-software.com> wrote:
>> Good point.
>> After I fixed the spelling, it works fine.
>>
>> Is was a great help to have a second set of eyes to find my stupid mistakes.
>>
>> It would have been nice to have a better error message.
>>
>>
>> [WARNING] The following patterns were never triggered in this artifact
>> inclusion filter:
>> o  'com.artifact-software.taw:taw-localized-iumessage-ws:war'
>> o  'com.artifact-software.taw:taw-dataccess-ws:war'
>>
>> A "file not found" would have been more helpful.
>> I tested to see if the file was not found by adding a deliberate spelling
>> mistake but I drew the wrong conclusion when I got the same error message.
> You're welcome to make a patch :)
You probably don't want me writing patches!
I could probably drive your car but you would not be very happy if I 
tried to help you by reprogramming your engine control unit to get more 
horsepower.
I person who is using Maven to build tar files and webapps is not 
necessarily the best person to start mucking with internals.

>
> I dont think it is working with files at the point it is doing all the
> checking, especially if the filter has a * in it.

The message could be clearer about what it was complaining about: "Found 
Include in a Dependency Set that is not declared as a dependency"
If the message is triggered by other events, perhaps it might need to be 
a bit more general.

"The following patterns were never triggered in this artifact inclusion filter"

makes one think that the problem has something to do with the flow 
control ("triggered") rather than the artifact itself.
It looks like the message has more to do with the way the plug-in is 
structured internally than the way the configuration is specified.

Ron


> I guess you could use
> http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#getLevenshteinDistance%28java.lang.CharSequence,%20java.lang.CharSequence%29
>
> And if they are close include a "Did you mean this instead?"
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Barrie Treloar <ba...@gmail.com>.
On 13 February 2014 23:25, Ron Wheeler <rw...@artifact-software.com> wrote:
> Good point.
> After I fixed the spelling, it works fine.
>
> Is was a great help to have a second set of eyes to find my stupid mistakes.
>
> It would have been nice to have a better error message.
>
>
> [WARNING] The following patterns were never triggered in this artifact
> inclusion filter:
> o  'com.artifact-software.taw:taw-localized-iumessage-ws:war'
> o  'com.artifact-software.taw:taw-dataccess-ws:war'
>
> A "file not found" would have been more helpful.
> I tested to see if the file was not found by adding a deliberate spelling
> mistake but I drew the wrong conclusion when I got the same error message.

You're welcome to make a patch :)

I dont think it is working with files at the point it is doing all the
checking, especially if the filter has a * in it.

I guess you could use
http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#getLevenshteinDistance%28java.lang.CharSequence,%20java.lang.CharSequence%29

And if they are close include a "Did you mean this instead?"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Ron Wheeler <rw...@artifact-software.com>.
Good point.
After I fixed the spelling, it works fine.

Is was a great help to have a second set of eyes to find my stupid mistakes.

It would have been nice to have a better error message.

[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'com.artifact-software.taw:taw-localized-iumessage-ws:war'
o  'com.artifact-software.taw:taw-dataccess-ws:war'

A "file not found" would have been more helpful.
I tested to see if the file was not found by adding a deliberate 
spelling mistake but I drew the wrong conclusion when I got the same 
error message.

Ron


On 12/02/2014 6:11 PM, Barrie Treloar wrote:
> On 13 February 2014 02:24, Ron Wheeler <rw...@artifact-software.com> wrote:
>> I did a debug run and I think that the log shows where the includes get
>>      <id>webapps</id>
>>     <formats>
>>        <format>tar</format>
>>     </formats>
>>     <includeBaseDirectory>false</includeBaseDirectory>
>>     <dependencySets>
>>      <dependencySet>
>>        <outputDirectory>/target</outputDirectory>
>>        <useProjectArtifact>false</useProjectArtifact>
>>        <unpack>false</unpack>
>>        <scope>runtime</scope>
>>        <includes>
>>
>> <include>com.artifact-software.taw:taw-localized-iumessage-ws:war</include>
>> <include>com.artifact-software.taw:taw-dataccess-ws:war</include>
>>        </includes>
>>      </dependencySet>
>>    </dependencySets>
> [del]
>> [DEBUG] com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2 was removed by one or more filters.
>> [DEBUG] com.artifact_software.taw:taw-dataaccess-ws:war:1.0.2 was removed by one or more filters.
>>
>> [WARNING] The following patterns were never triggered in this artifact
>> inclusion filter:
>> o  'com.artifact-software.taw:taw-localized-iumessage-ws:war'
>> o  'com.artifact-software.taw:taw-dataccess-ws:war'
> [del]
>>> http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html
>>> defines the spec for "dependency conflict id" and it does not include
>>> version.
>>>
>>> It is either
>>> * short form = groupId:artifactId
>>> * long form = groupId:artifactId:type:classifier
> I'm guiding you blind since I've not done this before.
> The output is telling us that the pattern
> 'com.artifact-software.taw:taw-localized-iumessage-ws:war'
> does not match the artifact
> com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2
>
> And there is your problem.
> You have an _ in your groupid for the artifact, but not your include filter.
>
> I've been looking at maven-common-artifact-filters-1.4
> PatternIncludesArtifactFilter.matchAgainst(). since I thought that may
> you needed a trailing : on the long id.
>
> But it does the "right thing" with as much of the pattern you provide
> - and wildcards the rest.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Barrie Treloar <ba...@gmail.com>.
On 13 February 2014 02:24, Ron Wheeler <rw...@artifact-software.com> wrote:
> I did a debug run and I think that the log shows where the includes get
>     <id>webapps</id>
>    <formats>
>       <format>tar</format>
>    </formats>
>    <includeBaseDirectory>false</includeBaseDirectory>
>    <dependencySets>
>     <dependencySet>
>       <outputDirectory>/target</outputDirectory>
>       <useProjectArtifact>false</useProjectArtifact>
>       <unpack>false</unpack>
>       <scope>runtime</scope>
>       <includes>
>
> <include>com.artifact-software.taw:taw-localized-iumessage-ws:war</include>
> <include>com.artifact-software.taw:taw-dataccess-ws:war</include>
>       </includes>
>     </dependencySet>
>   </dependencySets>
[del]
> [DEBUG] com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2 was removed by one or more filters.
> [DEBUG] com.artifact_software.taw:taw-dataaccess-ws:war:1.0.2 was removed by one or more filters.
>
> [WARNING] The following patterns were never triggered in this artifact
> inclusion filter:
> o  'com.artifact-software.taw:taw-localized-iumessage-ws:war'
> o  'com.artifact-software.taw:taw-dataccess-ws:war'
[del]
>> http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html
>> defines the spec for "dependency conflict id" and it does not include
>> version.
>>
>> It is either
>> * short form = groupId:artifactId
>> * long form = groupId:artifactId:type:classifier

I'm guiding you blind since I've not done this before.
The output is telling us that the pattern
'com.artifact-software.taw:taw-localized-iumessage-ws:war'
does not match the artifact
com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2

And there is your problem.
You have an _ in your groupid for the artifact, but not your include filter.

I've been looking at maven-common-artifact-filters-1.4
PatternIncludesArtifactFilter.matchAgainst(). since I thought that may
you needed a trailing : on the long id.

But it does the "right thing" with as much of the pattern you provide
- and wildcards the rest.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Ron Wheeler <rw...@artifact-software.com>.
Thanks for the help.
Here are more details from the pom and assembly.

I did a debug run and I think that the log shows where the includes get 
excluded

[DEBUG] com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2 
was removed by one or more filters.
[DEBUG] com.artifact_software.taw:taw-dataaccess-ws:war:1.0.2 was 
removed by one or more filters.

You can see this in context below.
They make it through the scope filter but are getting rejected in 
another filter that does not get applied when "includes" are not specified.


BTW:
1) If I comment out the includes, I get all the dependencies from the 
pom packed into a giant tar.
It appears that when the includes are added,the plug-in recognizes the 
includes and thinks that I might want them to be used so it warns me
2) If I add "xxx" in the middle of the name 
(com.artifact-software.taw:taw-localized-iumessagexxx-ws:war) in the 
include, I get the same "not triggered" message so it appears that the 
plug-in suspects that I want to do an include but I have missed a 
required directive and it doesn't get to the point of referencing the 
pom to find the dependencies since it never sees the bogus artifact name 
as a problem.
We use the assembly plug-in a lot so I would like to stick with it for 
consistency but I way try shade or a simple ANT script

         <dependency>
<groupId>com.artifact_software.taw</groupId>
<artifactId>taw-localized-uimessage-ws</artifactId>
             <version>${project.version}</version>
             <type>war</type>
             <scope>runtime</scope>
         </dependency>
         <dependency>
<groupId>com.artifact_software.taw</groupId>
             <artifactId>taw-dataaccess-ws</artifactId>
             <version>${project.version}</version>
             <type>war</type>
             <scope>runtime</scope>
         </dependency>


     <id>webapps</id>
    <formats>
       <format>tar</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <dependencySets>
     <dependencySet>
       <outputDirectory>/target</outputDirectory>
       <useProjectArtifact>false</useProjectArtifact>
       <unpack>false</unpack>
       <scope>runtime</scope>
       <includes>
<include>com.artifact-software.taw:taw-localized-iumessage-ws:war</include>
<include>com.artifact-software.taw:taw-dataccess-ws:war</include>
       </includes>
     </dependencySet>
   </dependencySets>

         <plugin>
<artifactId>maven-assembly-plugin</artifactId>
                 <configuration>
                     <descriptors>
<descriptor>src/assembly/webapps-tar.xml
                         </descriptor>
                     </descriptors>
<appendAssemblyId>true</appendAssemblyId>
                     <attach>true</attach>
                 </configuration>

             </plugin>


Log
lots of stuff then
[DEBUG] Resolving project dependencies transitively.
[DEBUG] com.artifact_software.taw:taw-webapps-assembler:jar:1.0.2 
(selected for null)
[DEBUG] Using mirror nexus 
(http://repo.artifact-software.com:8081/nexus/content/groups/public) for 
central (http://repo1.maven.org/maven2).
[DEBUG] 
com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2:runtime 
(selected for runtime)
[DEBUG] Using mirror nexus 
(http://repo.artifact-software.com:8081/nexus/content/groups/public) for 
central (http://repo1.maven.org/maven2).
[DEBUG] com.artifact_software.taw:taw-dataaccess-ws:war:1.0.2:runtime 
(selected for runtime)
[DEBUG] While resolving dependencies of 
com.artifact_software.taw:taw-webapps-assembler:jar:1.0.2:
[DEBUG] Statistics for Scope filter [null-scope=true, compile=true, 
runtime=true, test=false, provided=false, system=false]
... many lines that look ok
... cannot find something that it would like to have

[DEBUG] Cannot find ArtifactResolver with hint: project-cache-aware
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
java.util.NoSuchElementException
       role: org.apache.maven.artifact.resolver.ArtifactResolver
   roleHint: project-cache-aware


... stack dump


************************* THIS LOOKS LIKE THE POINT WHERE THE INCLUDES 
GET DROPPED

[DEBUG] Processing DependencySet (output=/target)
[DEBUG] Filtering dependency artifacts WITHOUT transitive dependency 
path information.
[DEBUG] com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2 
was removed by one or more filters.
[DEBUG] com.artifact_software.taw:taw-dataaccess-ws:war:1.0.2 was 
removed by one or more filters.
... restof dependencies also removed



[DEBUG] Statistics for Includes filter:
o 'com.artifact-software.taw:taw-localized-iumessage-ws:war'
o 'com.artifact-software.taw:taw-dataccess-ws:war'

[WARNING] The following patterns were never triggered in this artifact 
inclusion filter:
o  'com.artifact-software.taw:taw-localized-iumessage-ws:war'
o  'com.artifact-software.taw:taw-dataccess-ws:war'

[DEBUG] The following artifacts were removed by this artifact inclusion 
filter:
com.artifact_software.taw:taw-localized-uimessage-ws:war:1.0.2
com.artifact_software.taw:taw-dataaccess-ws:war:1.0.2
.
. list of other dependencies that I will add once I get this to wok
.
com.artifact_software.taw:taw-profile-edit:war:1.0.2
[DEBUG] Adding 0 dependency artifacts.
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 7.154s
[INFO] Finished at: Wed Feb 12 10:40:22 EST 2014
[INFO] Final Memory: 12M/209M
[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]
org.apache.maven.lifecycle.LifecycleExecutionException: 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.
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
     at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
     at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
     at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
     at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
     at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
     at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
     at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to 
create assembly: Error creating assembly archive webapps: You must set 
at least o
ne file.
     at 
org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:495)
     at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
     ... 20 more
Caused by: 
org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error 
creating assembly archive webapps: You must set at least one file.
     at 
org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:190)
     at 
org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:436)
     ... 22 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: You must set 
at least one file.
     at 
org.codehaus.plexus.archiver.tar.TarArchiver.execute(TarArchiver.java:159)
     at 
org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:910)
     at 
org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:512)
     at 
org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:186)
     ... 23 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


On 12/02/2014 8:56 AM, Barrie Treloar wrote:
>>>> 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?
>> I am not sure what you mean by this.
>> The dependency specification in the pom has the right type.
>> I tried adding the version and type in the assembly file and just got an
>> error message with a more specific file name.
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html
> defines the spec for "dependency conflict id" and it does not include
> version.
>
> It is either
> * short form = groupId:artifactId
> * long form = groupId:artifactId:type:classifier
>
> Can you paste in your pom values for the dependency, as well as the
> snippet from your assembly file.
>
> I'm suggesting that you may not be able to use
> <include>com.artifact-software.taw:taw-localized-iumessage-ws</include>
> but instead need
> <include>com.artifact-software.taw:taw-localized-iumessage-ws:war:</include>
>
>> I have not specified a specific phase but I assume that the plug-in is being
>> triggered since the error comes from the plug-in.
>>
>> I did read the docs but there is no example showing including of specific
>> dependencies.
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
> Has the example you want to look at.
> It has the assembly descriptior, the pom that describes the plugin
> management, and the actual pom that defines the dependencies and
> invokes the assembly plugin.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Barrie Treloar <ba...@gmail.com>.
>> >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?
>
> I am not sure what you mean by this.
> The dependency specification in the pom has the right type.
> I tried adding the version and type in the assembly file and just got an
> error message with a more specific file name.

http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html
defines the spec for "dependency conflict id" and it does not include
version.

It is either
* short form = groupId:artifactId
* long form = groupId:artifactId:type:classifier

Can you paste in your pom values for the dependency, as well as the
snippet from your assembly file.

I'm suggesting that you may not be able to use
<include>com.artifact-software.taw:taw-localized-iumessage-ws</include>
but instead need
<include>com.artifact-software.taw:taw-localized-iumessage-ws:war:</include>

> I have not specified a specific phase but I assume that the plug-in is being
> triggered since the error comes from the plug-in.
>
> I did read the docs but there is no example showing including of specific
> dependencies.

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
Has the example you want to look at.
It has the assembly descriptior, the pom that describes the plugin
management, and the actual pom that defines the dependencies and
invokes the assembly plugin.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Ron Wheeler <rw...@artifact-software.com>.
On 11/02/2014 9:06 PM, Barrie Treloar wrote:
> On 12 February 2014 11:43, Ron Wheeler <rw...@artifact-software.com> 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?
I am not sure what you mean by this.
The dependency specification in the pom has the right type.
I tried adding the version and type in the assembly file and just got an 
error message with a more specific file name.

I have not specified a specific phase but I assume that the plug-in is 
being triggered since the error comes from the plug-in.

I did read the docs but there is no example showing including of 
specific dependencies.

Ron


>
> >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.
>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-assembly-plugin:2.4 The following patterns were never triggered in this artifact inclusion filter

Posted by Barrie Treloar <ba...@gmail.com>.
On 12 February 2014 11:43, Ron Wheeler <rw...@artifact-software.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org