Bonjour,

J'ai un curieux problème avec le plugin exec-maven-plugin.
Voici le fragment de mon POM incriminé :

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
 
<build>
 
		<plugins>
 
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<configuration>
					<executable>java</executable>
					<workingDirectory>${project.build.directory}</workingDirectory>
					<arguments>
						<argument>-classpath</argument>
						<classpath />
						<argument>foo.bar.Main</argument>
					</arguments>
				</configuration>
			</plugin>
 
		</plugins>
	</build>
Et voici la réponse de Maven à la commande "mvn exec:exec":

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
 
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building MonProjet
[INFO]    task-segment: [exec:exec]
[INFO] ----------------------------------------------------------------------------
[INFO] [exec:exec]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Command execution failed.
 
Embedded error: Error while executing process.
/chemin/vers/mon/projet/java: not found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Dec 08 08:53:37 CET 2006
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
Et pourtant j'ai l'éxecutable java dans mon path ...

Merci