bonjour,

j'ai un module de type EJB. Ca build bien, mais les jar nécessaires à l'execution (commons-lang par exemple) ne sont pas inclus dans le jar créé.

Comment faire ?

J'ai eu beau rajouter une ligne forçant l'inclusion, rien n'y fait : (ligne en rouge)
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
         <plugin>
            <artifactId>maven-ejb-plugin</artifactId>
            <configuration>
	          <generateClient>true</generateClient>
	          <ejbVersion>2.1</ejbVersion>
               <archive>
                  <manifest>
                     <addClasspath>true</addClasspath>
                  </manifest>
               </archive> 
               <clientIncludes>
					<clientInclude>**/*.xml</clientInclude>
					<clientInclude>**/*.jar</clientInclude>
				</clientIncludes>
            </configuration>
         </plugin>
Voici mon POM en entier si cela peut aider:
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
55
56
57
58
59
60
61
62
63
64
<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.pouet.gng</groupId>
   <artifactId>GNG_EJB</artifactId>
   <packaging>ejb</packaging>
   <version>1.0</version>
   <name>enterprise java beans for GNG project</name>

   <parent>
      <groupId>com.pouet.gng</groupId>
      <artifactId>GNG_POM</artifactId>
      <version>1.0</version>
   </parent>
   
   <dependencies>
    <dependency>
      <groupId>javax.ejb</groupId>
      <artifactId>ejb</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.dbunit</groupId>
      <artifactId>dbunit</artifactId>
      <version>2.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.3</version>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.2.4.sp1</version>
   </dependency>
  </dependencies>
   <build>
      <plugins>
         <plugin>
            <artifactId>maven-ejb-plugin</artifactId>
            <configuration>
	          <generateClient>true</generateClient>
	          <ejbVersion>2.1</ejbVersion>
               <archive>
                  <manifest>
                     <addClasspath>true</addClasspath>
                  </manifest>
               </archive> 
               <clientIncludes>
					<clientInclude>**/*.xml</clientInclude>
					<clientInclude>**/*.jar</clientInclude>
				</clientIncludes>
            </configuration>
         </plugin>      
      </plugins>
   </build>
</project>