Hello,

Je cherche à maveniser un projet ant, et j'aimerais y définir de multiple répertoire source et test.

J'ai donc débuter le pom comme ceci,

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
 
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>xxx-app</groupId>
  <artifactId>xxx-webapp</artifactId>
  <version>1.0-SNAPSHOT</version>
  <build>
    <sourceDirectory>src</sourceDirectory>    
    <testSourceDirectory>test_src</testSourceDirectory>
    <plugins>
    	 <plugin>
    	  	<groupId>org.apache.maven.plugins</groupId>
  			<artifactId>maven-compiler-plugin</artifactId> 
			<configuration>
	  			<source>1.5</source> 
	  			<target>1.5</target> 
	  			<encoding>UTF-8</encoding> 
	  			<showWarnings>true</showWarnings> 
  			</configuration>
  	</plugin>    
	<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.3</version>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>src_gen</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
 
    </plugins>
  </build>  
</project>
Mais le problème c'est qu'il n'a pas l'air de comprendre les répertoires inclues dans le plugin build-helper