Hi,
Thanks for replying but how can I do that?
I tried the following which don't work. I just the property file and not the
jar file:
Gunnar
<?xml version="1.0" encoding="ISO-8859-1"?>
<assembly>
<id>bin</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<files>
<file>
<source>src/main/resources/safe-default.properties</source>
<destName>safe-default.properties</destName>
<outputDirectory>/props</outputDirectory>
<lineEnding>unix</lineEnding>
<fileMode>0640</fileMode>
</file>
<!--
<file>
<filtered>false</filtered>
<source>
target/serf-safe-1.1.3-SNAPSHOT-safe-jar.jar
</source>
<outputDirectory></outputDirectory>
</file>
-->
</files>
<filesets>
<fileset>
<directory>target</directory>
<outputDirectory></outputDirectory>
<includes>
<include>*-safe-jar.jar</include>
</includes>
</fileset>
</filesets>
<!--
<moduleSets>
<moduleSet>
<binaries>
<includes>
<include>
target/serf-safe-1.1.3-SNAPSHOT-safe-jar.jar
</include>
</includes>
<outputDirectory></outputDirectory>
</binaries>
</moduleSet>
</moduleSets>
-->
</assembly>
> -----Ursprungligt meddelande-----
> Från: John Casey [mailto:[EMAIL PROTECTED]
> Skickat: den 8 oktober 2007 17:48
> Till: Maven Users List
> Ämne: Re: SV: Assembly plugin, help
>
> Can you use a fileSet, and specify an include pattern that
> will always pickup the jar-with-dependencies, but ignore the
> original jar?
> That should allow you to use a wildcard and avoid pinning
> things down to a certain project version.
>
> -john
>
> On Oct 8, 2007, at 11:43 AM, <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > Thanks for the answer, but creating the jar with
> dependencies is not
> > the problem.
> > It is in the next step where I need to create the zip file where I
> > can't use wild cards to point to my newly created jar file.
> >
> > I don't use any classifiers.
> >
> > Regards
> > Gunnar
> >
> >
> >> -----Ursprungligt meddelande-----
> >> Från: Graham Leggett [mailto:[EMAIL PROTECTED]
> >> Skickat: den 8 oktober 2007 15:36
> >> Till: Maven Users List
> >> Kopia: [email protected]
> >> Ämne: Re: Assembly plugin, help
> >>
> >> On Mon, October 8, 2007 3:26 pm, [EMAIL PROTECTED]
> >> wrote:
> >>
> >>> I'm using the assembly plugin and have a problem.
> >>>
> >>> I'm using it in 2 steps, first I create a jar file with
> >> dependencies.
> >>> This works fine.
> >>>
> >>> In the next step I want to zip the jar together with files from a
> >>> property directory.
> >>> This works fine if I put in the full filename including
> >> version in the
> >>> assembly descriptor.
> >>> But I don't want to be dependent on a specific version.
> >>>
> >>> So what can I do?
> >>
> >> Use the default assembly for jar-with-dependencies as
> described here:
> >>
> >> http://maven.apache.org/plugins/maven-assembly-plugin/descript
> >> or-refs.html#jar-with-dependencies
> >>
> >> The dependencyset used is "any dependency resolved by your
> pom". You
> >> problem is then reduced to making sure your pom file for
> the assembly
> >> depends correctly on the right version of your artifact.
> >>
> >> The way we make sure our assembly always corresponds with the
> >> original artifact is to place the original artifact and
> the assembly
> >> into a multi-module build, and then use ${pom.version}
> everywhere we
> >> need the version. All the modules in the multi-module build get
> >> released together.
> >>
> >> One caveat: the assembly plugin doesn't like to mix multi-module
> >> builds and classifiers together, if you don't use classifiers it
> >> should "just work".
> >>
> >> Regards,
> >> Graham
> >> --
> >>
> >>
> >>
> >>
> ---------------------------------------------------------------------
> >> 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]
> >
>
> ---
> John Casey
> Committer and PMC Member, Apache Maven
> mail: jdcasey at commonjava dot org
> blog: http://www.ejlife.net/blogs/john
> rss: http://feeds.feedburner.com/ejlife/john
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]