Hi there - I'm just trying to upgrade our AS3/AIR build from Flex
Mojos 3.x to 4.0-RC1 and also take advantage of the auto-downloaded
ADL for tests.
It all works great on Windows and Linux, but the extraction of the
runtime tar.gz fails on Mac as follows:
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-RC1:test-run (default-test-run) on project toolkit:
Execution default-test-run of goal org.sonatype.flexmojos:flexmojos-
maven-plugin:4.0-RC1:test-run failed: An API incompatibility was
encountered while executing org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-RC1:test-run: java.lang.NoSuchMethodError:
org.codehaus.plexus.util.cli.Commandline.createArg()Lorg/codehaus/
plexus/util/cli/Arg;
Caused by: java.lang.NoSuchMethodError:
org.codehaus.plexus.util.cli.Commandline.createArg()Lorg/codehaus/
plexus/util/cli/Arg;
at
org.codehaus.plexus.archiver.util.ArchiveEntryUtils.chmod(ArchiveEntryUtils.java:
80)
at
org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.extractFile(AbstractZipUnArchiver.java:
253)
at
org.codehaus.plexus.archiver.tar.TarUnArchiver.execute(TarUnArchiver.java:
92)
at
org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:
119)
at
org.sonatype.flexmojos.plugin.AbstractMavenMojo.getUnpackedArtifact(AbstractMavenMojo.java:
606)
at
org.sonatype.flexmojos.plugin.AbstractMavenMojo.resolveAdlVm(AbstractMavenMojo.java:
715)
The dependencies of the project include version 2.0.6 of plexus-utils
(which has the createArg API), and I've ensured that no other
component/plugin is using an earlier version. This is the only plexus-
utils jar that comes up in the error log is:
[ERROR] urls[66] = file:/Users/user/.m2/repository/org/codehaus/plexus/
plexus-utils/2.0.6/plexus-utils-2.0.6.jar
So I was somewhat confused as to how there might be an API conflict in
that class when only one thing imports it, however I ran the whole
list of dependencies through unzip -l and found that adt.jar includes
what is presumably an old version (not that I'm sure how exactly to
check):
.m2/repository/com/adobe/flex/compiler/adt/4.5.0.17689/
adt-4.5.0.17689.jar
org/codehaus/plexus/util/cli/Commandline.class
I'm going to work around this for the moment with an Ant script to do
the unzipping rather than letting plexus-archiver do it, but was just
wondering if there was anything that Flex Mojos could do to avoid this
problem?
Many thanks,
Stephen
--
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/