You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rémy <re...@gmail.com> on 2008/11/18 14:54:39 UTC
Includes files in a war
Hi,
I generate war files with Maven. I want to include jar files (applets) in a
lib folder in the base repository. I don't know how doing that.
I've got this project structure :
|-- pom.xml
|-- lib
| `-- I want to put here the applets
`-- WEB-INF
|-- web.xml
`-- lib
I try with the antrun plugin, but I dont know how to acces the artefact
(applets) in the Maven repository.
I think it's possible doing that with war overlays, but isn't a shame to
generate a war with the applets.
Thanks.
Rémy.
--
View this message in context: http://www.nabble.com/Includes-files-in-a-war-tp20560039p20560039.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Includes files in a war
Posted by Rémy <re...@gmail.com>.
Hello,
It's works with "maven-dependency-plugin".
http://www.developpez.net/forums/d645553/java/edi-outils-java/maven/include-fichiers-war/#post3795257
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<id>copy</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>fr.xxx</groupId>
<artifactId>actiClient</artifactId>
<version>2.1.1.1</version>
<type>jar</type>
<overWrite>true</overWrite>
<destFileName>actiClient.jar</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/${name}-${version}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Rémy.
Walid "jo" Gedeon wrote:
>
> Hello Rémy,
> Take a look at this link from the maven-war-plugin site examples section:
>
> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
>
> HTH --w
>
> On Tue, Nov 18, 2008 at 2:54 PM, Rémy <re...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> I generate war files with Maven. I want to include jar files (applets) in
>> a
>> lib folder in the base repository. I don't know how doing that.
>>
>> I've got this project structure :
>>
>> |-- pom.xml
>> |-- lib
>> | `-- I want to put here the applets
>> `-- WEB-INF
>> |-- web.xml
>> `-- lib
>>
>> I try with the antrun plugin, but I dont know how to acces the artefact
>> (applets) in the Maven repository.
>>
>> I think it's possible doing that with war overlays, but isn't a shame to
>> generate a war with the applets.
>>
>> Thanks.
>>
>> Rémy.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Includes-files-in-a-war-tp20560039p20560039.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Includes-files-in-a-war-tp20560039p20577430.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Includes files in a war
Posted by Rémy <re...@gmail.com>.
Hello,
Thanks.
I use this plugin to include resources (css, js...) in the war. The applets
aren't in CVS, so I can't include them in the war with this plugin.
Rémy.
Walid "jo" Gedeon wrote:
>
> Hello Rémy,
> Take a look at this link from the maven-war-plugin site examples section:
>
> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
>
> HTH --w
>
> On Tue, Nov 18, 2008 at 2:54 PM, Rémy <re...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> I generate war files with Maven. I want to include jar files (applets) in
>> a
>> lib folder in the base repository. I don't know how doing that.
>>
>> I've got this project structure :
>>
>> |-- pom.xml
>> |-- lib
>> | `-- I want to put here the applets
>> `-- WEB-INF
>> |-- web.xml
>> `-- lib
>>
>> I try with the antrun plugin, but I dont know how to acces the artefact
>> (applets) in the Maven repository.
>>
>> I think it's possible doing that with war overlays, but isn't a shame to
>> generate a war with the applets.
>>
>> Thanks.
>>
>> Rémy.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Includes-files-in-a-war-tp20560039p20560039.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Includes-files-in-a-war-tp20560039p20562861.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Includes files in a war
Posted by "Walid \"jo\" Gedeon" <wg...@gmail.com>.
Hello Rémy,
Take a look at this link from the maven-war-plugin site examples section:
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
HTH --w
On Tue, Nov 18, 2008 at 2:54 PM, Rémy <re...@gmail.com> wrote:
>
> Hi,
>
> I generate war files with Maven. I want to include jar files (applets) in a
> lib folder in the base repository. I don't know how doing that.
>
> I've got this project structure :
>
> |-- pom.xml
> |-- lib
> | `-- I want to put here the applets
> `-- WEB-INF
> |-- web.xml
> `-- lib
>
> I try with the antrun plugin, but I dont know how to acces the artefact
> (applets) in the Maven repository.
>
> I think it's possible doing that with war overlays, but isn't a shame to
> generate a war with the applets.
>
> Thanks.
>
> Rémy.
>
>
> --
> View this message in context:
> http://www.nabble.com/Includes-files-in-a-war-tp20560039p20560039.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>