This discussion is archived
1 Reply Latest reply: Dec 13, 2012 8:02 AM by 979591 RSS

Maven Build Errors from XMExtensionGuide.pdf - Tools & Frameworks 3.1.0

979591 Newbie
Currently Being Moderated
I've downloaded the required files and have followed the instructions in the XMExtensionGuide, and am receiving the following error when trying to execute:

mvn -Pinstall-api

[INFO] Scanning for projects...
[WARNING] The POM for com.adobe.flex:compiler:pom:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:digest:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:optimizer:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:asdoc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for net.sf.saxon:saxon-dom:jar:9.0 is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.endeca:sample_editors:0.1 (C:\Endeca\ToolsAndFrameworks\3.1.0\editor_sdk\reference\build\maven\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328, com.adobe.flex.compiler:digest:jar:4.5.1.21328, com.adobe.flex.compiler:optimizer:jar:4.5.1.21328, com.adobe.flex.compiler:asdoc:jar:4.5.1.21328, com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-dom:jar:9.0, com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

I've read a few articles online and tried to download the plugin, but the download page gives a 404 error. The closest available was flexmojos-maven-plugin-4.0-alpha-5.jar, so I got that, changed the POM reference and tried again. It got further, but ended up with the same basic errors after a lot of downloading:

-1.0.RC6.jar (13 KB at 36.4 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/com/googlecode/apparat/apparat-core/1.0.RC6/apparat-core-1.0.RC6.jar (18
93 KB at 1332.7 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/scala-lang/scala-library/2.8.0/scala-library-2.8.0.jar (6017 KB at 1
620.4 KB/sec)
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.endeca:sample_editors:0.1 (C:\Endeca\ToolsAndFrameworks\3.1.0\editor_sdk\reference\build\maven
\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-alpha-5 or one of it
s dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex:compiler:pom:4.1.0.1
6076, com.adobe.flex.compiler:mxmlc:jar:4.1.0.16076, com.adobe.flex.compiler:digest:jar:4.1.0.16076, com.adobe.flex.comp
iler:optimizer:jar:4.1.0.16076, com.adobe.flex.compiler:asdoc:jar:4.1.0.16076, com.adobe.flex.compiler:swcdepends:jar:4.
1.0.16076, net.sf.saxon:saxon-dom:jar:9.0, jgoogleanalytics:jgoogleanalytics:jar:0.2: Failure to find com.adobe.flex:com
piler:pom:4.1.0.16076 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be
reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

Any thoughts?
  • 1. Re: Maven Build Errors from XMExtensionGuide.pdf - Tools & Frameworks 3.1.0
    979591 Newbie
    Currently Being Moderated
    Thanks to Ben Trafton for the answer:

    It turns out that Flex compiler dependencies are not hosted on Maven Central, so that is causing the build to fail. This issue would be masked if it is tested in an environment where Maven has access to other repositories with these dependencies (e.g. Endeca Maven repository).
    Specifying an additional repository either in the project POM file or in the Maven settings.xml fixed the problem for me. Based on information on this web page -http://www.adobe.com/devnet/flex/articles/flex-maven-flexmojos-pt1.html, this is what I added into the project pom.xml right before the build element:
    <repositories>
    <repository>
    <id>flex-mojos-repository</id>
    <url>http://repository.sonatype.org/content/groups/flexgroup</url>
    </repository>
    </repositories>
    <pluginRepositories>
    <pluginRepository>
    <id>flex-mojos-repository</id>
    <url>http://repository.sonatype.org/content/groups/flexgroup</url>
    </pluginRepository>
    </pluginRepositories>
    The first build failed for me because of a timeout during artifact download. The second time the build succeeded.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points