Hello Christian,
I am just starting to use Maven 2, also had some problems to figure this
out, and perhaps I can help you. In my little project I created two
files in the src/main/assembly directory of my project.
The bin.xml looks like:
?xml version=1.0 encoding=UTF-8?
assembly
idbin/id
formats
formattar.gz/format
formatzip/format
/formats
fileSets
fileSet
includes
includeLICENSE*/include
/includes
/fileSet
fileSet
directorytarget/directory
outputDirectory/outputDirectory
includes
include*.jar/include
/includes
/fileSet
/fileSets
/assembly
The src.xml looks like:
?xml version=1.0 encoding=UTF-8?
assembly
idsrc/id
formats
formattar.gz/format
formatzip/format
/formats
fileSets
fileSet
includes
includeLICENSE*/include
includepom.xml/include
/includes
/fileSet
fileSet
directorysrc/directory
/fileSet
/fileSets
/assembly
I am not sure whether it works as intended, but you get the point, I think.
I configured the assembly plugin as follows:
plugin
artifactIdmaven-assembly-plugin/artifactId
executions
execution
idassembly/id
phasepackage/phase
goals
goalassembly/goal
/goals
configuration
descriptors
descriptor
src/main/assembly/bin.xml
/descriptor
descriptor
src/main/assembly/src.xml
/descriptor
/descriptors
/configuration
/execution
/executions
/plugin
That at least creates some files...
Regards,
Dirk
Christian Goetze wrote:
I've read the better builds with maven book, I've looked at
http://maven.apache.org/plugins/maven-assembly-plugin, but I'm still
not sure I understand how this is supposed to work.
I just want end up with a zip file containing all of the jars needed
to run the particular project I'm building.
Alternatively, I'd already be happy with a way to just get the
transitive runtime dependency list out of the build.
Any help would be appreciated, thanks in advance.
--
cg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]