You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by deckrider+mvn <de...@gmail.com> on 2007/11/19 20:24:38 UTC
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency plugin and version
Posted by deckrider <de...@gmail.com>.
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 <de...@gmail.com> 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 <de...@gmail.com> 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 <br...@reply.infinity.nu> 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: deckrider@gmail.com [mailto:deckrider@gmail.com] On Behalf Of
> > > deckrider+mvn
> > > Sent: Monday, November 19, 2007 2:25 PM
> > > To: users@maven.apache.org
> > > 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency plugin and version
Posted by deckrider <de...@gmail.com>.
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 <de...@gmail.com> 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 <br...@reply.infinity.nu> 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: deckrider@gmail.com [mailto:deckrider@gmail.com] On Behalf Of
> > deckrider+mvn
> > Sent: Monday, November 19, 2007 2:25 PM
> > To: users@maven.apache.org
> > 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
>
> --
> ASCII ribbon campaign:
> () against HTML email
> /\ against Microsoft attachments
> Information: http://www.expita.com/nomime.html
>
--
ASCII ribbon campaign:
() against HTML email
/\ against Microsoft attachments
Information: http://www.expita.com/nomime.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency plugin and version
Posted by deckrider <de...@gmail.com>.
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 <br...@reply.infinity.nu> 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: deckrider@gmail.com [mailto:deckrider@gmail.com] On Behalf Of
> deckrider+mvn
> Sent: Monday, November 19, 2007 2:25 PM
> To: users@maven.apache.org
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
ASCII ribbon campaign:
() against HTML email
/\ against Microsoft attachments
Information: http://www.expita.com/nomime.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: dependency plugin and version
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
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: deckrider@gmail.com [mailto:deckrider@gmail.com] On Behalf Of
deckrider+mvn
Sent: Monday, November 19, 2007 2:25 PM
To: users@maven.apache.org
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org