Re: Assembly plugin for multi module project

2006-11-29 Thread pjungwir

Hello,

I hit that error once! It is very confusing, but it means that the resulting
tarball (or whatever) would be empty. In other words, Maven isn't finding
any files to include in the assembly. I guess there is something wrong with
your moduleSet, but I don't know; I haven't used this plugin on
multi-module projects.

Paul



-- 
View this message in context: 
http://www.nabble.com/Assembly-plugin-for-multi-module-project-tf2685658s177.html#a7606167
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Assembly plugin for multi module project

2006-11-24 Thread Timo Wolf

Hi,

Thanks for the help. But I still have some problems.

I do not really understand the reason for the project-build module.
Do you use the module just for creating the assemblies?
I tried to invoke the assembly plugin from the top level directory.
The invokation should call all configured assemblies of the submodules.

Is this possible?

Thanks

Timo


On Nov 23, 2006, at 12:48 PM, Barrie Treloar wrote:


On 11/23/06, Paolo Bacci [EMAIL PROTECTED] wrote:

Nabble archives don't open here, returns timeout everytime.
Does it have protection from brazilian ips? If so, a proxy would  
help.


Barrie Treloar, could you send an example of your assembly  
descriptor?


No Idea why Nabble is blocking you.
The link you want is:
http://www.nabble.com/forum/ViewPost.jtp? 
post=5936062framed=yskin=177
http://www.nabble.com/forum/ViewPost.jtp? 
post=5954911framed=yskin=177



I have cut-n-paste the email here:

http://www.nabble.com/forum/ViewPost.jtp? 
post=5936062framed=yskin=177


My project layout is:
ROOT/
- pom.xml
- module1
- moduleN
- project-build
 - pom.xml

In project-build/pom.xml I have:
   dependencies
   dependency
   groupIdmy.group/groupId
   artifactIdmodule1Artifact/artifactId
   version1.0-SNAPSHOT/version
   typezip/type
   /dependency
   dependency
   groupIdmy.group/groupId
   artifactIdmodule2Artifact/artifactId
   version1.0-SNAPSHOT/version
   classifierbin/classifier
   typezip/type
   /dependency
   dependency
   groupIdmy.group/groupId
   artifactIdmodule3Artifact/artifactId
   version1.0-SNAPSHOT/version
   classifierbin/classifier
   typezip/type
   /dependency
   dependency
   groupIdmy.group/groupId
   artifactIdmodule4Artifact/artifactId
   version1.0-SNAPSHOT/version
   typeear/type
   /dependency
   /dependencies

So my main build collects 4 artifacts:
- a client side eclipse RCP (artifact1) as a zip
- 2 standalone applications (artifact2, artifact3) as binary builds
(these are the attached binary assemblies created when you install
artifact2 and artifact3)
- an ear file (artifact4)

My assembly in project-build/src/main/assembly/bin.xml:
assembly
   idbin/id
   formats
   !-- There is a defect http://jira.codehaus.org/browse/ 
MASSEMBLY-119

that means dir format will attempt to attach this format into
the repository
and will cause the build to fail.
   formatdir/format
   --
   formatzip/format
   /formats
   includeBaseDirectorytrue/includeBaseDirectory
   dependencySets
   dependencySet
 unpackfalse/unpack
 outputFileNameMapping
   ${artifactId}-${baseVersion}.${extension}/ 
outputFileNameMapping

 excludes
   !--
   There is little documentation on this format.
   It is of the form of  
DefaultArtifact.getDependencyConflictId()

   which is groupId:artifactId:type:classifier
   or you can use the short form (hard coded into assembly) of
   groupId:artifactId
   This is a String equality match not a pattern match.

   See Project Transitive Dependencies in site/ 
dependencies.html

   for easy cut and paste values to put in here
   --
   excludecommons-beanutils:commons-beanutils/exclude
   exclude
 commons-beanutils:commons-beanutils-bean-collections/ 
exclude

   excludecommons-beanutils:commons-beanutils-core/exclude
   excludecommons-collections:commons-collections/exclude
   excludecommons-configuration:commons-configuration/ 
exclude

   excludecommons-digester:commons-digester/exclude
   excludecommons-lang:commons-lang/exclude
   excludecommons-logging:commons-logging/exclude
   excludeeasyconf:easyconf/exclude
   excludelog4j:log4j/exclude
   excludeweblogic:weblogic/exclude
   excludexstream:xstream/exclude
 /excludes
   /dependencySet
   /dependencySets
/assembly

You need all those excludes because you dependency on the binary
artifact also depends upon the jars which get included even though
those same jars have already been included in the binary assembly.

http://www.nabble.com/forum/ViewPost.jtp? 
post=5954911framed=yskin=177


Module 1 to Module N have assemblies like src/main/assembly/bin.xml
(which is building a binary distribution for an artifact say
my.group:mouldeA):

I have:

assembly
 idbin/id
 formats
   formatdir/format
   formatzip/format
 /formats
 includeBaseDirectorytrue/includeBaseDirectory
 fileSets
   fileSet
 directorysrc/main/config/directory
 outputDirectoryconfig//outputDirectory
 includes
   include*/include
 /includes
   /fileSet
   fileSet
 directorytarget/directory
 outputDirectory/outputDirectory
 includes
   include${artifactId}-${version}.jar/include
 

Re: Assembly plugin for multi module project

2006-11-23 Thread Paolo Bacci

Nabble archives don't open here, returns timeout everytime.
Does it have protection from brazilian ips? If so, a proxy would help.

Barrie Treloar, could you send an example of your assembly descriptor?

Thx,
Paolo Bacci

On 11/23/06, Barrie Treloar [EMAIL PROTECTED] wrote:


On 11/23/06, Timo Wolf [EMAIL PROTECTED] wrote:
 Hi,

 I have the same problem for some time and cannot find a solution.
 I found lots of users including me have big problems with the
 assembly plugin in multi module projects.

Search the Nabble archives.

I am happily using assembly in multi-module mode, however I use
dependencySets not moduleSets.  If you search for something like
assembly example baerrach you will find the emails (and other emails
with answers similar to this pointing to the original threads)

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




Re: Assembly plugin for multi module project

2006-11-23 Thread Barrie Treloar

On 11/23/06, Paolo Bacci [EMAIL PROTECTED] wrote:

Nabble archives don't open here, returns timeout everytime.
Does it have protection from brazilian ips? If so, a proxy would help.

Barrie Treloar, could you send an example of your assembly descriptor?


No Idea why Nabble is blocking you.
The link you want is:
http://www.nabble.com/forum/ViewPost.jtp?post=5936062framed=yskin=177
http://www.nabble.com/forum/ViewPost.jtp?post=5954911framed=yskin=177


I have cut-n-paste the email here:

http://www.nabble.com/forum/ViewPost.jtp?post=5936062framed=yskin=177

My project layout is:
ROOT/
- pom.xml
- module1
- moduleN
- project-build
 - pom.xml

In project-build/pom.xml I have:
   dependencies
   dependency
   groupIdmy.group/groupId
   artifactIdmodule1Artifact/artifactId
   version1.0-SNAPSHOT/version
   typezip/type
   /dependency
   dependency
   groupIdmy.group/groupId
   artifactIdmodule2Artifact/artifactId
   version1.0-SNAPSHOT/version
   classifierbin/classifier
   typezip/type
   /dependency
   dependency
   groupIdmy.group/groupId
   artifactIdmodule3Artifact/artifactId
   version1.0-SNAPSHOT/version
   classifierbin/classifier
   typezip/type
   /dependency
   dependency
   groupIdmy.group/groupId
   artifactIdmodule4Artifact/artifactId
   version1.0-SNAPSHOT/version
   typeear/type
   /dependency
   /dependencies

So my main build collects 4 artifacts:
- a client side eclipse RCP (artifact1) as a zip
- 2 standalone applications (artifact2, artifact3) as binary builds
(these are the attached binary assemblies created when you install
artifact2 and artifact3)
- an ear file (artifact4)

My assembly in project-build/src/main/assembly/bin.xml:
assembly
   idbin/id
   formats
   !-- There is a defect http://jira.codehaus.org/browse/MASSEMBLY-119
that means dir format will attempt to attach this format into
the repository
and will cause the build to fail.
   formatdir/format
   --
   formatzip/format
   /formats
   includeBaseDirectorytrue/includeBaseDirectory
   dependencySets
   dependencySet
 unpackfalse/unpack
 outputFileNameMapping
   ${artifactId}-${baseVersion}.${extension}/outputFileNameMapping
 excludes
   !--
   There is little documentation on this format.
   It is of the form of DefaultArtifact.getDependencyConflictId()
   which is groupId:artifactId:type:classifier
   or you can use the short form (hard coded into assembly) of
   groupId:artifactId
   This is a String equality match not a pattern match.

   See Project Transitive Dependencies in site/dependencies.html
   for easy cut and paste values to put in here
   --
   excludecommons-beanutils:commons-beanutils/exclude
   exclude
 commons-beanutils:commons-beanutils-bean-collections/exclude
   excludecommons-beanutils:commons-beanutils-core/exclude
   excludecommons-collections:commons-collections/exclude
   excludecommons-configuration:commons-configuration/exclude
   excludecommons-digester:commons-digester/exclude
   excludecommons-lang:commons-lang/exclude
   excludecommons-logging:commons-logging/exclude
   excludeeasyconf:easyconf/exclude
   excludelog4j:log4j/exclude
   excludeweblogic:weblogic/exclude
   excludexstream:xstream/exclude
 /excludes
   /dependencySet
   /dependencySets
/assembly

You need all those excludes because you dependency on the binary
artifact also depends upon the jars which get included even though
those same jars have already been included in the binary assembly.

http://www.nabble.com/forum/ViewPost.jtp?post=5954911framed=yskin=177

Module 1 to Module N have assemblies like src/main/assembly/bin.xml
(which is building a binary distribution for an artifact say
my.group:mouldeA):

I have:

assembly
 idbin/id
 formats
   formatdir/format
   formatzip/format
 /formats
 includeBaseDirectorytrue/includeBaseDirectory
 fileSets
   fileSet
 directorysrc/main/config/directory
 outputDirectoryconfig//outputDirectory
 includes
   include*/include
 /includes
   /fileSet
   fileSet
 directorytarget/directory
 outputDirectory/outputDirectory
 includes
   include${artifactId}-${version}.jar/include
 /includes
   /fileSet
 /fileSets
 files
   file
 sourcesrc/main/scripts/start_debug.bat/source
 filteredfalse/filtered
   /file
   file
 sourcesrc/main/scripts/start.bat/source
 filteredfalse/filtered
   /file
   file
 sourcesrc/main/scripts/stop.bat/source
 filteredfalse/filtered
   /file
 /files
 dependencySets
   dependencySet
 outputDirectorylib/outputDirectory
 unpackfalse/unpack
 outputFileNameMapping
  

Assembly plugin for multi module project

2006-11-22 Thread Paolo Bacci

Hi,

I need to make an assembly of my project to make tests on windows. I read
this manual
http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
but i keep getting the same error message:

[INFO]


[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating assembly: You must set at least one file.

[INFO]




My project is set up as:

Parent
child1
child2
child3

I can build the .jar with mvn package command, but when I try to run mvn
assembly:assembly, it returns me the error from above.
I've tried using the default descriptor, but it creates an empty file, so
I've searched for an descriptor example and after that started using this
descriptor:

assembly

  idbin/id
formats
formattar.gz/format
/formats
   includeBaseDirectoryfalse/includeBaseDirectory
 moduleSets
  moduleSet
   includes
includecom.longadata.scapintegration.api/include
includecom.longadata.scapintegration.core/include
includecom.longadata.scapintegration.model/include
   /includes
   binaries

outputDirectorymodules/scap-integration-branch/outputDirectory
 includeDependenciestrue/includeDependencies
 unpackfalse/unpack
   /binaries
  /moduleSet
 /moduleSets
/assembly



Both of them are not giving me the expected result.
Does anybody has any clue about what could be possibly wrong?

thx,
Paolo Bacci.


Re: Assembly plugin for multi module project

2006-11-22 Thread Timo Wolf

Hi,

I have the same problem for some time and cannot find a solution.
I found lots of users including me have big problems with the
assembly plugin in multi module projects.

Please help if possible.

Timo


On Nov 22, 2006, at 8:53 PM, Paolo Bacci wrote:


Hi,

I need to make an assembly of my project to make tests on windows.  
I read

this manual
http://maven.apache.org/plugins/maven-assembly-plugin/examples/ 
multimodule/module-binary-inclusion-simple.html

but i keep getting the same error message:

[INFO]
- 
---

[ERROR] BUILD ERROR
[INFO]
- 
---

[INFO] Error creating assembly: You must set at least one file.

[INFO]
- 
---



My project is set up as:

Parent
child1
child2
child3

I can build the .jar with mvn package command, but when I try to  
run mvn

assembly:assembly, it returns me the error from above.
I've tried using the default descriptor, but it creates an empty  
file, so
I've searched for an descriptor example and after that started  
using this

descriptor:

assembly

  idbin/id
formats
formattar.gz/format
/formats
   includeBaseDirectoryfalse/includeBaseDirectory
 moduleSets
  moduleSet
   includes
includecom.longadata.scapintegration.api/include
includecom.longadata.scapintegration.core/include
includecom.longadata.scapintegration.model/include
   /includes
   binaries

outputDirectorymodules/scap-integration-branch/outputDirectory
 includeDependenciestrue/includeDependencies
 unpackfalse/unpack
   /binaries
  /moduleSet
 /moduleSets
/assembly



Both of them are not giving me the expected result.
Does anybody has any clue about what could be possibly wrong?

thx,
Paolo Bacci.



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



Re: Assembly plugin for multi module project

2006-11-22 Thread Barrie Treloar

On 11/23/06, Timo Wolf [EMAIL PROTECTED] wrote:

Hi,

I have the same problem for some time and cannot find a solution.
I found lots of users including me have big problems with the
assembly plugin in multi module projects.


Search the Nabble archives.

I am happily using assembly in multi-module mode, however I use
dependencySets not moduleSets.  If you search for something like
assembly example baerrach you will find the emails (and other emails
with answers similar to this pointing to the original threads)

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