Just wanted to report back that I finally go this to work by doing
this (thanks for the clues along the way):
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>${project.build.directory}/dependency</directory>
<includes>
<include>**/*.jar</include>
<include>**/*.jnlp</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dependency-maven-plugin</artifactId>
<executions>
<execution>
<!--
Copy the webstart bundle in as a resource
before packaging starts.
-->
<phase>process-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
On Nov 19, 2007 4:19 PM, deckrider <[EMAIL PROTECTED]> wrote:
> Ok, I got this to include only what I want by changing the phase from
> 'process-resources' to 'package'. However, because of the
> dependencies, the jars are placed under WEB-INF/lib in the war file,
> which is not correct.
>
>
> On Nov 19, 2007 3:53 PM, deckrider <[EMAIL PROTECTED]> wrote:
> > Hmm, I'm having trouble getting 'unpack-dependencies' to work the way
> > I want. It seems that much more is included in my war file than
> > 'unpack' would give (and unpack would give exactly what I wanted).
> >
> > Originally I was trying to follow this:
> >
> > http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/examples/war_bundle_1.html
> >
> > But I would like to use <= 8.0.0 rather than hard coding 8.1.3 and
> > incrementing for each version.
> >
> >
> > On Nov 19, 2007 3:00 PM, Brian E. Fox <[EMAIL PROTECTED]> wrote:
> > > The dependency plugin doesn't support versions in the copy/unpack goals.
> > > You could try the unpack-dependencies goal instead since that allows
> > > maven core to resolve it. You would then use the filters to get only the
> > > file you want.
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> > > deckrider+mvn
> > > Sent: Monday, November 19, 2007 2:25 PM
> > > To: [email protected]
> > > Subject: dependency plugin and version
> > >
> > > Hi, is there a way I can change version below to take the latest
> > > greater than 8.0.0 instead of hard-coding the version as I do below?
> > > I tried using: "<version>[8,)</version>" but that did not work.
> > >
> > > <plugin>
> > > <groupId>org.codehaus.mojo</groupId>
> > > <artifactId>dependency-maven-plugin</artifactId>
> > > <executions>
> > > <execution>
> > > <!--
> > > Copy the webstart bundle in as a resource
> > > before packaging starts.
> > > -->
> > > <phase>process-resources</phase>
> > > <goals>
> > > <goal>unpack</goal>
> > > </goals>
> > > </execution>
> > > </executions>
> > > <configuration>
> > > <artifactItems>
> > > <artifactItem>
> > > <groupId>com.vzb.impact</groupId>
> > > <artifactId>webstart-test</artifactId>
> > > <version>8.1.2</version>
> > > <type>zip</type>
> > > </artifactItem>
> > >
> > > <outputDirectory>${project.build.directory}/${project.build.finalName}</
> > > outputDirectory>
> > > </configuration>
> > > </plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]