Bonjour
J'aimerai ajouter des .jar dans un dossier particulier de mon archive war.
Je me suis basé sur la documentation suivante :
Overriding the default destination directory of a web resource
By default web resources are copied to the root of the war, as shown in the previous example. To override the default destination directory, specify the target path.
[...]
<configuration>
<webResources>
<resource>
[...]
<resource>
<directory>configurations</directory>
<!-- override the destination directory for this resource -->
<targetPath>WEB-INF</targetPath>
<!-- enable filtering -->
<filtering>true</filtering>
<excludes>
<exclude>**/properties<exclude>
</excludes>
</resource>
</resource>
</webResources>
</configuration>
[...]
http://maven.apache.org/plugins/mave...resources.html
Cependant les jar à inclure sont, malgré l'utilisation de la balise TargetPath, toujours placés à la racine du war.
Partager