Skip to main content
Inspiring
July 27, 2012
Answered

[ERROR] Unresolveable build extension

  • July 27, 2012
  • 1 reply
  • 14064 views
Please download the attached file to view this post
This topic has been closed for replies.
Correct answer StevenErat

For everyone else, I'm cross referencing this related forum thread: http://forums.adobe.com/thread/780055

There, the poster used Maven 2.x and encountered the same missing dependencies as above, however no solution was supplied in any reply.  Although, the last poster in that thread commented that for the errors regarding "legacy" dependencies when using Maven 3.x are resolved by using Maven 2.x because Maven 3 doesn't support legacy repos.


After contacting the lead architect for the FlexPMD project, he recommended that I build from flex-pmd-java-parent instead of flex-pmd-parent.  Having made that change the build succeeded with Maven 2.

I'll point out that the Developer Documentation does mention the version of Maven required, and it suggests building form flex-pmd-parent rather than flex-pmd-java-parent.

Here's the tail of my build results showing success:

 

[INFO] [jar:jar {execution: default-jar}]

[INFO] Building jar: /opt/flexpmd/trunk/flex-pmd-metrics-maven-plugin/target/flex-pmd-metrics-maven-plugin-1.3-SNAPSHOT.jar

[INFO] [plugin:addPluginArtifactMetadata {execution: default-addPluginArtifactMetadata}]

[INFO] [license:check {execution: default}]

[INFO] Checking licenses...

[INFO]

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] ------------------------------------------------------------------------

[INFO] Adobe Flex PMD Java Parent ............................ SUCCESS [2.930s]

[INFO] As3 Parser API ........................................ SUCCESS [2.847s]

[INFO] As3 Maven plugin Utils ................................ SUCCESS [0.791s]

[INFO] Adobe Flex PMD RuleSet test resources ................. SUCCESS [1.482s]

[INFO] Adobe Flex PMD Files .................................. SUCCESS [3.772s]

[INFO] As3 Parser ............................................ SUCCESS [1.993s]

[INFO] Adobe Flex PMD RuleSet API ............................ SUCCESS [4.163s]

[INFO] Adobe Flex PMD RuleSet ................................ SUCCESS [23.814s]

[INFO] Adobe Flex CPD (Copy and Past Detector) ............... SUCCESS [2.668s]

[INFO] Adobe Flex CPD Ant task ............................... SUCCESS [9.320s]

[INFO] Adobe Flex PMD Core ................................... SUCCESS [9.003s]

[INFO] Adobe Flex CPD Maven plugin ........................... SUCCESS [3.718s]

[INFO] Adobe Flex PMD Command line API ....................... SUCCESS [2.308s]

[INFO] Adobe Flex CPD Command line ........................... SUCCESS [4.136s]

[INFO] Adobe Flex PMD Ant task ............................... SUCCESS [11.027s]

[INFO] Adobe Flex PMD Maven plugin ........................... SUCCESS [12.468s]

[INFO] Adobe Flex PMD Command line ........................... SUCCESS [5.865s]

[INFO] Adobe Flex Metrics .................................... SUCCESS [5.169s]

[INFO] Adobe Flex Metrics command line ....................... SUCCESS [3.986s]

[INFO] Adobe Flex Metrics Ant task ........................... SUCCESS [4.423s]

[INFO] Adobe Flex Metrics Maven plugin ....................... SUCCESS [7.796s]

[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2 minutes 5 seconds

[INFO] Finished at: Thu Aug 02 10:07:27 EDT 2012

[INFO] Final Memory: 49M/101M

[INFO] ------------------------------------------------------------------------

1 reply

Participant
July 30, 2012

What version of Maven is being used for this build?  Could it be that the version of Maven used for artifacts at http://dist.codehaus.org is out of sync with what you are using locally?  Perhaps something like this (http://stackoverflow.com/questions/6006391/how-to-use-a-maven-1-repository-with-maven-2) is happening.  If you are using Maven 3 try dropping back to Maven 2 if possible.

A couple more links which may give you useful info:

Are the com.adobe.flex.compiler artifacts missing?  http://forum.springsource.org/showthread.php?99051-setup-always-failed-maven-dependency-missing

Do you need to point at the maven 2 repository for codehaus?  http://jira.codehaus.org/browse/HAUS-1058

I hope this is useful info.

Inspiring
July 30, 2012

Thank you for the assistance.  Ah, yes, I see that there are mentions of 'legacy' and 'artifacts might fail'.    The project's Developer Documentation didn't state which version of Maven is required, so I installed the latest.  I see that those docs mention "m2" as a Maven plugin for Eclipse, perhaps the m2 refers to version 2. I'll try downgrading.  Thanks!

Inspiring
July 30, 2012

I wish it could have been *that* easy.   I'll keep working on it, but the problem now is that when using the same command 'mvn package amd', Maven complains that amd is an invalid task.

$ mvn package amd

[INFO] Scanning for projects...

[INFO] Reactor build order:

[INFO]   Adobe Flex PMD

[INFO]   Adobe Flex PMD Java Parent

[INFO]   As3 Maven plugin Utils

[INFO]   As3 Parser API

[INFO]   Adobe Flex PMD RuleSet test resources

[INFO]   Adobe Flex PMD Files

[INFO]   As3 Parser

[INFO]   Adobe Flex PMD RuleSet API

[INFO]   Adobe Flex PMD RuleSet

[INFO]   Adobe Flex PMD Core

[INFO]   Adobe Flex PMD Maven plugin

[INFO]   Adobe Flex CPD (Copy and Past Detector)

[INFO]   Adobe Flex CPD Maven plugin

[INFO]   Adobe Flex Metrics

[INFO]   Adobe Flex Metrics Maven plugin

[INFO]   Adobe Flex PMD Flex Parent

[INFO]   FlexUnit theme

[INFO]   Adobe Flex PMD Flex lib

[INFO]   Adobe Flex PMD Ruleset creator

[INFO]   Adobe Flex PMD Violations viewer

[INFO]   Adobe Flex PMD Flex/Java Parent

[INFO]   Adobe Flex PMD Mac OSX Automator workflow

[INFO]   Adobe Flex PMD Ant task

[INFO]   Adobe Flex PMD Command line API

[INFO]   Adobe Flex PMD Command line

[INFO]   Adobe Flex CPD Ant task

[INFO]   Adobe Flex CPD Command line

[INFO]   Adobe Flex Metrics Ant task

[INFO]   Adobe Flex Metrics command line

[INFO]   Adobe Flex PMD All-in-one bundle

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Invalid task 'amd': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: < 1 second

[INFO] Finished at: Mon Jul 30 14:44:20 EDT 2012

[INFO] Final Memory: 4M/81M

[INFO] ------------------------------------------------------------------------