I created a new project with maven and edited the pom.xml so it looks  
like this:

<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>nl.collab.flex.maven</groupId>
   <artifactId>flex-maven-test</artifactId>
   <packaging>swf</packaging>
   <version>1.0-SNAPSHOT</version>
   <properties>
     <flex.home>/Developer/SDKs/Flex</flex.home>
   </properties>
   <build>
   <plugins>
     <plugin>
       <groupId>net.israfil.mojo</groupId>
       <artifactId>maven-flex2-plugin</artifactId>
       <version>1.0-SNAPSHOT</version>
       <extensions>true</extensions>
       <configuration>
         <flexHome>${flex.home}</flexHome>
         <useNetwork>true</useNetwork>
         <dataServicesConfig>src/main/resources/services-config.xml</ 
dataServicesConfig>
         <main>main.mxml</main>
       </configuration>
     </plugin>
   </plugins>
   </build>
   <dependencies>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <version>3.8.1</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
</project>


And when I try 'mvn compile' I get the error below. Is the plugin  
going to be available in the main repository (central)? How do I get  
the plugin to work?

[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: net.israfil.mojo
ArtifactId: maven-flex2-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

   net.israfil.mojo:maven-flex2-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
   central (http://repo1.maven.org/maven2)


[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Feb 05 23:40:52 CET 2007
[INFO] Final Memory: 1M/2M
[INFO]  
------------------------------------------------------------------------

Thanks,

Thijs

Reply via email to