Bonjour
je suis entrain de créer une application J2EE (JSF + EJB).
Lorsque je clean puis j'installe mon application (mvn clean install) j'ai l'erreur suivante :

ERREUR

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] There was a problem creating the EJB archive: C:\ProjetSite\mySiteWeb\myEJBModule\target\classes isn't a directory.
Stacktrace
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: There was a problem creating the EJB archive: C:\ProjetSite\mySiteWeb\myEJBModule\ta
rget\classes isn't a directory.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: There was a problem creating the EJB archive: C:\ProjetSite\mySiteWeb\myEJBModule
\target\classes isn't a directory.
at org.apache.maven.plugin.ejb.EjbMojo.execute(EjbMojo.java:331)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: C:\ProjetSite\mySiteWeb\myEJBModule\target\classes isn't a directory.
at org.codehaus.plexus.archiver.AbstractArchiver.addFileSet(AbstractArchiver.java:258)
at org.codehaus.plexus.archiver.AbstractArchiver.addDirectory(AbstractArchiver.java:244)
at org.codehaus.plexus.archiver.AbstractArchiver.addDirectory(AbstractArchiver.java:232)
at org.apache.maven.plugin.ejb.EjbMojo.execute(EjbMojo.java:300)
... 19 more
Fichier 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 
<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<artifactId>mySiteWeb</artifactId>
		<groupId>mySiteWebGroupId</groupId>
		<version>1.0</version>
	</parent>
	<groupId>mySiteWebGroupId.mySiteWeb</groupId>
	<artifactId>myEJBModule</artifactId>
	<version>1.0</version>
	<name>myEJBModule</name>
	<url>http://maven.apache.org</url>
	<packaging>ejb</packaging>
	<dependencies>
		<!-- 3.2. Specify dependencies on EJB libraries. -->
		<dependency>
			<groupId>javax</groupId>
			<artifactId>javaee-api</artifactId>
			<version>6.0</version>
			<!-- 3.2.1. This library is provided by EJB Container. -->
			<scope>provided</scope>
		</dependency>
		<!-- 3.3. Specify dependencies on internal libraries. -->
		<dependency>
			<groupId>mySiteWebGroupId.mySiteWeb</groupId>
			<artifactId>myJavaModule</artifactId>
			<version>1.0</version>
			<!-- 3.3.1. This library is required at runtime. -->
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
 
	</dependencies>
	<build>
		<!-- 4.1. Specify the final name of the artifact. -->
		<finalName>myEJBModuleFinalName</finalName>
		<defaultGoal>package</defaultGoal>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<!-- 4.5. Specify used Java version. -->
					<source>1.5</source>
					<target>1.5</target>
					<!-- 4.6. Specify files to include. -->
					<includes>
						<include>**/ejb/**</include>
					</includes>
					<!-- 4.7. Nothing to exclude. -->
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ejb-plugin</artifactId>
				<version>2.3</version>
				<configuration>
					<ejbVersion>3.0</ejbVersion>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
</project>


Merci d'avance.