Bonjour,

J'ai une difficultés concernant la compilation d'un projet Flex. Le projet se compile correctement avec ant, mais j'essaye actuellement de le faire passer à Maven.

Je précise avant toute chose que je ne suis pas maitre du projet, et je ne fais pas parti non plus de l'équipe de dev.

Voici mon pom.xml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<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>
  <groupId>BibliothequeIHM4Maven</groupId>
  <artifactId>BibliothequeIHM4Maven</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  		<packaging>swf</packaging>
 
    <pluginRepositories>
        <pluginRepository>
            <id>servebox</id>
            <name>ServeBox Plugin Repository</name>
            <url>http://maven.servebox.org/repository</url>
        </pluginRepository>     
    </pluginRepositories>
    <repositories>
        <repository>
            <id>servebox</id>
            <name>ServeBox Plugin Repository</name>
            <url>http://maven.servebox.org/repository</url>
        </repository>   
    </repositories>
 
  <build>
        <plugins>
            <plugin>
                <groupId>org.servebox.flex</groupId>
                <artifactId>flex-plugin</artifactId>
                <version>2.3.2</version>
                <extensions>true</extensions>
                <inherited>true</inherited>
                <configuration>
                    <mxmlFile>src/Bibliotheque.mxml</mxmlFile>
                    <sourceDirectory>src/com</sourceDirectory>
                </configuration>
            </plugin>
        </plugins>
 
  </build>
 
    <dependencies>
        <dependency> 
        <groupId>com.adobe.flash.core</groupId> 
        <artifactId>playerglobal</artifactId> 
        <version>2.0</version> 
        <scope>provided</scope> 
        <type>swc</type> 
    </dependency> 
    <dependency> 
        <groupId>com.adobe.flex.sdkcore</groupId> 
        <artifactId>framework</artifactId> 
        <version>3.2.0.3958</version> 
        <type>swc</type> 
    </dependency> 
    <dependency> 
        <groupId>com.adobe.flex.sdkcore</groupId> 
        <artifactId>flex</artifactId> 
        <version>3.2.0.3958</version> 
        <type>swc</type> 
    </dependency>  
    <dependency> 
        <groupId>com.adobe.flex.sdkcore</groupId> 
        <artifactId>rpc</artifactId> 
        <version>3.2.0.3958</version> 
        <type>swc</type> 
    </dependency> 
    <dependency> 
        <groupId>com.adobe.flex.sdkcore</groupId> 
        <artifactId>utilities</artifactId> 
        <version>3.2.0.3958</version> 
        <type>swc</type> 
    </dependency>
    <!-- LOCALE -->
    <dependency>
        <groupId>com.adobe.flex.locales.en_US</groupId> 
        <artifactId>framework_rb</artifactId> 
        <version>3.2.0.3958</version> 
        <type>swc</type> 
    </dependency> 
    <dependency>
        <groupId>com.adobe.flex.locales.en_US</groupId> 
        <artifactId>rpc_rb</artifactId> 
        <version>3.2.0.3958</version> 
        <type>swc</type> 
    </dependency>
 
	<dependency>
	    <groupId>org.puremvc</groupId>
	    <artifactId>PureMVC_Java_MultiCore</artifactId>
	    <version>1.0.7</version>
	</dependency>
 
    </dependencies>
 
</project>
Vous remarquerez que j'utilise le plugin "flex-plugin". J'ai ajoutés les dépendances en fonction du site officiel du plugin. La dernière dépendance je l'ai rajouté car le fichier "PureMVC_AS3_MultiCore_1_0_5.swc" était dans le répertoire lib du projet.

Voici le résultat de la commande mvn package
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
V:\Stage\Dev\BibliothequeIHM4Maven>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - BibliothequeIHM4Maven:BibliothequeIHM4Maven:swf:0.0.1-SNAPSHOT
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing flex:test
[WARNING] Removing: test from forked lifecycle, to prevent recursive invocation.
[WARNING] Removing: test from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [flex:test {execution: default-test}]
[INFO] Tests are skipped : you set the property skipTests to true or test source directory not found.
[INFO] Preparing flex:makeswf
[WARNING] Removing: test from forked lifecycle, to prevent recursive invocation.
[WARNING] Removing: test from forked lifecycle, to prevent recursive invocation.
[WARNING] Removing: makeswf from forked lifecycle, to prevent recursive invocation.
[WARNING] Removing: makeswf from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [flex:makeswf {execution: default-makeswf}]
[INFO] Using V:\Stage\Dev\BibliothequeIHM4Maven\src\Bibliotheque.mxml as the main application file.
[INFO] ***************************************************************************
[INFO] Flex Mojo - Making swf using Adobe(R) Flex(TM) compiler API
[INFO] ***************************************************************************
[INFO] Output Directory : V:\Stage\Dev\BibliothequeIHM4Maven\target
[INFO] Loading configuration file V:\Stage\Dev\BibliothequeIHM4Maven\target\compiler-resources\flex-config.xml
[WARNING] Flex compiler warning
[WARNING] Source path entry, 'V:\Stage\Dev\BibliothequeIHM4Maven\src\com', is a subdirectory of source path entry, 'V:\Stage\Dev\BibliothequeIHM4Maven\src'.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\model\AdministrateurModel.as at 14:43)
[ERROR] La dÚfinition de la classe de base Proxy est introuvable.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\mediator\BibliothequeMediator.as at 11:44)
[ERROR] La dÚfinition de la classe de base Mediator est introuvable.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\mediator\BibliothequeMediator.as at 28:28)
[ERROR] La mÚthode marquÚe override doit neutraliser une autre mÚthode.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\mediator\BibliothequeMediator.as at 36:28)
[ERROR] La mÚthode marquÚe override doit neutraliser une autre mÚthode.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\mediator\BibliothequeMediator.as at 45:28)
[ERROR] La mÚthode marquÚe override doit neutraliser une autre mÚthode.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\facade\ApplicationFacade.as at 29:41)
[ERROR] La dÚfinition de la classe de base Facade est introuvable.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\facade\ApplicationFacade.as at 73:31)
[ERROR] La mÚthode marquÚe override doit neutraliser une autre mÚthode.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\facade\ApplicationFacade.as at 89:31)
[ERROR] La mÚthode marquÚe override doit neutraliser une autre mÚthode.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\facade\ApplicationFacade.as at 94:31)
[ERROR] La mÚthode marquÚe override doit neutraliser une autre mÚthode.
[ERROR] Flex compiler error (V:\Stage\Dev\BibliothequeIHM4Maven\src\com\bibliotheque\model\DocumentModel.as at 11:37)
[ERROR] La dÚfinition de la classe de base Proxy est introuvable.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failed. See previous log messages.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Tue Mar 16 16:06:22 CET 2010
[INFO] Final Memory: 17M/67M
[INFO] ------------------------------------------------------------------------
Je ne comprend pas les erreurs que le compilateur me retourne car il ne trouve pas des classes qui sont censés être incluses dans la dernière dépendances que j'ai rajoutés.

Pouvez-vous m'aider SVP?