Well i found the answer in the next page: http://www.sonatype.com/books/mvnref-book/reference/flex-dev-sect-config-build.html#flex-dev-sect-proxy-nexus
regards! On 18 ago, 23:21, jvfacio <[email protected]> wrote: > Hi all, > > I try to create a new flex project following the next instructions : > > https://docs.sonatype.org/display/FLEXMOJOS/Compiling+a+Flex+Applicat... > > 1.- create the flex project > > mvn archetype:generate -DarchetypeRepository=http:// > repository.sonatype.org/content/groups/flexgroup/ - > DarchetypeGroupId=org.sonatype.flexmojos - > DarchetypeArtifactId=flexmojos-archetypes-application - > DarchetypeVersion=3.0.0 > > [INFO] Scanning for projects... > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Maven Stub Project (No POM) 1 > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] >>> maven-archetype-plugin:2.0-alpha-5:generate (default-cli) @ > standalone-pom >>> > [INFO] > [INFO] <<< maven-archetype-plugin:2.0-alpha-5:generate (default-cli) @ > standalone-pom <<< > [INFO] > [INFO] --- maven-archetype-plugin:2.0-alpha-5:generate (default-cli) @ > standalone-pom --- > [INFO] Generating project in Interactive mode > [INFO] Archetype defined by properties > Define value for property 'groupId': : com.mycompany > Define value for property 'artifactId': : mycompany-ria > Define value for property 'version': 1.0-SNAPSHOT: : > Define value for property 'package': com.mycompany: : > Confirm properties configuration: > groupId: com.mycompany > artifactId: mycompany-ria > version: 1.0-SNAPSHOT > package: com.mycompany > Y: : Y > [INFO] > ---------------------------------------------------------------------------- > [INFO] Using following parameters for creating OldArchetype: flexmojos- > archetypes-application:3.0.0 > [INFO] > ---------------------------------------------------------------------------- > [INFO] Parameter: groupId, Value: com.mycompany > [INFO] Parameter: packageName, Value: com.mycompany > [INFO] Parameter: package, Value: com.mycompany > [INFO] Parameter: artifactId, Value: mycompany-ria > [INFO] Parameter: basedir, Value: C:\testMVN\spring_mvn_blaze_flex > \flex > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [INFO] ********************* End of debug info from resources from > generated POM *********************** > [INFO] OldArchetype created in dir: C:\testMVN\spring_mvn_blaze_flex > \flex\mycompany-ria > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 24.312s > [INFO] Finished at: Wed Aug 18 23:13:17 CDT 2010 > [INFO] Final Memory: 7M/247M > [INFO] > ------------------------------------------------------------------------ > [WARNING] The requested profile "flex-mojos" could not be activated > because it does not exist. > > the execute "mvn clean install" > > C:\testMVN\spring_mvn_blaze_flex\flex\mycompany-ria>mvn clean install > [INFO] Scanning for projects... > [WARNING] Missing POM for com.adobe.flex:compiler:pom:3.2.0.3958 > [WARNING] Missing POM for org.graniteds:granite-generator:jar:1.1.0 > [WARNING] Missing POM for com.adobe.flex.compiler:asdoc:zip:template: > 3.2.0.3958 > [ERROR] The build could not read 1 project -> [Help 1] > [ERROR] The project com.mycompany:mycompany-ria:1.0-SNAPSHOT (C: > \testMVN\spring_mvn_blaze_flex\flex\mycompany-ria\pom. > xml) has 2 errors > [ERROR] Unresolveable build extension: Plugin > org.sonatype.flexmojos:flexmojos-maven-plugin:3.0.0 or one of its depe > ndencies could not be resolved: Missing: > ---------- > 1) com.adobe.flex:compiler:pom:3.2.0.3958 > Path to dependency: > 1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin: > 3.0.0 > 2) com.adobe.flex:compiler:pom:3.2.0.3958 > > 2) org.graniteds:granite-generator:jar:1.1.0 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.graniteds - > DartifactId=granite-generator -Dversion=1.1.0 -Dpackaging=jar -D > file=/path/to/file > > Alternatively, if you host your own repository you can deploy the > file there: > mvn deploy:deploy-file -DgroupId=org.graniteds - > DartifactId=granite-generator -Dversion=1.1.0 -Dpackaging=jar -Dfi > le=/path/to/file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin: > 3.0.0 > 2) org.graniteds:granite-generator:jar:1.1.0 > > 3) com.adobe.flex.compiler:asdoc:zip:template:3.2.0.3958 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=com.adobe.flex.compiler - > DartifactId=asdoc -Dversion=3.2.0.3958 -Dclassifier=te > mplate -Dpackaging=zip -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the > file there: > mvn deploy:deploy-file -DgroupId=com.adobe.flex.compiler - > DartifactId=asdoc -Dversion=3.2.0.3958 -Dclassifier=temp > late -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] - > DrepositoryId=[id] > > Path to dependency: > 1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin: > 3.0.0 > 2) com.adobe.flex.compiler:asdoc:zip:template:3.2.0.3958 > > ---------- > 3 required artifacts are missing. > > for artifact: > org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.0.0 > > from the specified remote repositories: > nexus (http://localhost:8080/nexus-webapp-1.7.1/content/groups/ > public, releases=true, snapshots=true) > -> [Help 2] > [ERROR] Unknown packaging: swf @ line 30, column 14 > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with > the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help > 1]http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingExcep... > [ERROR] [Help > 2]http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExce... > > I show you my settings.xml file > > <settings> > <mirrors> > <mirror> > <id>nexus</id> > <mirrorOf>*</mirrorOf> > <url>http://localhost:8080/nexus-webapp-1.7.1/content/groups/ > public</url> > </mirror> > </mirrors> > <profiles> > <profile> > <id>nexus</id> > > <repositories> > <repository> > <id>central</id> > <url>http://central</url> > <releases><enabled>true</enabled></releases> > <snapshots><enabled>true</enabled></snapshots> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>central</id> > <url>http://central</url> > <releases><enabled>true</enabled></releases> > <snapshots><enabled>true</enabled></snapshots> > </pluginRepository> > </pluginRepositories> > </profile> > </profiles> > <activeProfiles> > > <activeProfile>nexus</activeProfile> > <activeProfile>flex-mojos</activeProfile> > </activeProfiles> > > </settings> > > In nexus repository this are the configuration of the flex-mojos- > repository > > Repository ID: flex-mojos-repository > Repository Name: flex mojos repository > Repository Type: proxy > Repository Policy: Release > Repository Format: maven2 > Contained in groups: > > Remote URL:http://repository.sonatype.org/content/groups/flexgroup/ > > Any idea what happen?? -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
