Filtering problems with assembly plugin called from parent POM

2010-01-13 Thread adamd1234

Hi all,

I have a most peculiar case within my compilation that is causing my
assembly plug-in to not filter certain files. First of all I bound my
assembly phase to the package phase for ease of assembling artefacts.  The
POM is defined as so:


org.apache.maven.plugins
maven-assembly-plugin


assemble
package

single



   
src/main/assembly/package.xml

false





The package.xml contains assembly defines and the most prominent and the one
regarding my problem is the resource set defined as so:



src/main/resources
unix
true
bin
0755
   0755

*.sh
*.bat



Now here is the problem; when I do a mvn package on this artefact filtering
occurs normally but when I do the same on its parent everything works as
normal but filtering is skipped (note that this didn't occur when assembly
phase was unbound and called separately). What even weirder is that if I
explicitly define every file to be filtered by using  tag not filesets
then filtering occurs normally from the POM. Does anyone have an idea of why
this coul be happening?

Regards
Adam.
-- 
View this message in context: 
http://old.nabble.com/Filtering-problems-with-assembly-plugin-called-from-parent-POM-tp27148460p27148460.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Problems with assembly

2009-01-29 Thread philion
Greetings,

I am trying to use a top-level POM to assemble all the artifacts of
several modules into a single assembly for delivery (exactly what the
assembly plugin is for, I think). I've got it almost there, but I keep
running into a strange problem: "[WARNING] The following patterns were
never triggered in this artifact inclusion filter"

Specifically, for most of the modules, I use the moduleSet in the
following bin.xml:


zip

zip





com.verdiem.polaris:api
com.verdiem.polaris:core


lib
false





This works great, with the following in the top-level POM:


maven-assembly-plugin



src/main/assembly/bin.xml




The file is there and everything is good and as expected.

However, one of the modules I need to build as a
"jar-with-dependencies" and include in a different part of the
assembly. To do that, I've got another module, "extentions", with the
following:


maven-assembly-plugin

  
assemble-extension
package

single




jar-with-dependencies






When this is commented out in the "extensions/pom.xml", everything
works (except for building the needed jar-with-deps). When it is not
commented out, I get the following error:

[INFO] [assembly:single {execution: assemble-extension}]
[INFO] Reading assembly descriptor: src/main/assembly/bin.xml
[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'com.verdiem.polaris:api'
o  'com.verdiem.polaris:core'

[WARNING] NOTE: Currently, inclusion of module dependencies may
produce unpredictable results if a version conflict occurs.
[INFO] 
[ERROR] BUILD ERROR

My hope is that I can get the jar-with-dependencies built and then
included in the final assembly with a fileSet in the bin.xml.

I have also tried this using another module specifically for the final
assembly, but I cannot get the moduleSet to work in that module.

Any ideas on how I can get the assembly working?

Thanks,

- philion

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



Problems with assembly plugin

2006-10-04 Thread Dave Hoffer
I am trying to integrate the assembly plugin into my project...but it
doesn't include any files, why?

My descriptor file (assembly-bin.xml) contains:


  bin
  
zip
  
  

  repository

  


The docs say this will include all dependencies.  My pom looks like:


org.apache.maven.plugins
maven-assembly-plugin
2.0-beta-1

 
src/main/assembly/assembly-bin.xml
  install



When I run mvn assembly:assembly the install.zip file is empty.  What am
I doing wrong?

-dh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]