Bonjour
J'ai un soucis avec le antrun pour ne remplacer que certaines valeurs lors de la creation d'un WAR.
Merci de votre aide
Philippe
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <replace file="${project.build.outputDirectory}/WEB-INF/web.xml" summary="true"> <replacefilter token="%MAJOR_VERSION%" value="${release.major}" /> </replace> </tasks> </configuration> </execution> </executions> </plugin> </plugins>
Partager