Bonjour
Je crée une dépendance vers une librairie dans le pom de mon WAR, mais je souhaiterais qu'il ne me l'ajoute pas dans le répertoire lib du WAR mais uniquement faire une référence dans le classpath du Manifest.
j'arrive à exlcure la librairie crée en dépendance mais il me rajoute quand même les dépendances transitive de ce dernier
voici mon POM
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>fr.axabanque</groupId> <artifactId>crm.tarification</artifactId> <version>1.1-SNAPSHOT</version> </parent> <name>${parent.artifactId}.rules.httprx</name> <artifactId>${parent.artifactId}.rules.httprx</artifactId> <packaging>war</packaging> <dependencies> <dependency> <groupId>ilog</groupId> <artifactId>httprx</artifactId> <version>6.5.1</version> <type>war</type> <scope>runtime</scope> </dependency> <dependency> <groupId>${parent.groupId}</groupId> <artifactId>${parent.artifactId}.impl</artifactId> <version>${pom.version}</version> <!-- exclue la librairie du war --> <optional>true</optional> <type>jar</type> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <archive> <!-- ajoute les dépendances dans le classpath du Manifest --> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> </plugins> </build> </project>
Partager