Hi,

I have a simple air application that fails to do air packaging with
following error:

[INFO] Flexmojos 3.8
[INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
file
[WARNING] Skipping test run. Runner not found: C:\root\Sphericall
\Unicode\Applic
ations\spring-sphericall\MPCPROTSimulator\target\test-classes
[WARNING] The parameter expression: 'project.build.resources' used in
mojo: 'sig
n-air' has been deprecated. Use 'project.resources' instead.
[INFO] [flexmojos:sign-air {execution: default}]
[INFO] Flexmojos 3.8
[INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
file
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error invoking AIR api

Embedded error: Files "C:\root\Sphericall\Unicode\Applications\spring-
sphericall
\MPCPROTSimulator\target\MPCPROTSimulator.swf" and "C:\root\Sphericall
\Unicode\A
pplications\spring-sphericall\MPCPROTSimulator\target
\MPCPROTSimulator.swf" have
 conflicting package paths
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error invoking
AIR api
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:719)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
invoking AIR ap
i
        at
org.sonatype.flexmojos.air.SignAirMojo.execute(SignAirMojo.java:341)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
        ... 17 more
Caused by: java.lang.IllegalArgumentException: Files "C:\root
\Sphericall\Unicode
\Applications\spring-sphericall\MPCPROTSimulator\target
\MPCPROTSimulator.swf" an
d "C:\root\Sphericall\Unicode\Applications\spring-sphericall
\MPCPROTSimulator\ta
rget\MPCPROTSimulator.swf" have conflicting package paths
        at com.adobe.ucf.Packager.addSourceWithPath(Packager.java:159)
        at
com.adobe.air.ADTPackager.addSourceWithPath(ADTPackager.java:147)
        at
org.sonatype.flexmojos.air.SignAirMojo.addSourceWithPath(SignAirMojo.
java:199)
        at
org.sonatype.flexmojos.air.SignAirMojo.execute(SignAirMojo.java:285)
        ... 19 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 37 seconds
[INFO] Finished at: Mon Feb 07 16:25:08 CST 2011
[INFO] Final Memory: 30M/247M
[INFO]
------------------------------------------------------------------------
C:\root\Sphericall\Unicode\Applications\spring-sphericall
\MPCPROTSimulator>

It compiles the code in to .swf file well and puts it under target
folder of my project, but it fails to build and .air file out of it.
The error message seem to complain about conflicting package paths
which is taking me nowhere... Following is my pom.xml.

<?xml version="1.0" encoding="utf-8"?>
<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>com.necsphere.mpcprotsimulator</groupId>
  <artifactId>MPCPROTSimulator</artifactId>
  <packaging>swf</packaging>
  <version>1.0.0.1</version>
  <name>MPCPROTSimulator</name>
  <url>http://maven.apache.org</url>
  <parent>
    <groupId>com.spherecom.spring</groupId>
    <artifactId>spring-sphericall-RiaService</artifactId>
    <version>8.0.0.360</version>
  </parent>
  <build>
    <finalName>MPCPROTSimulator</finalName>
    <sourceDirectory>${basedir}/src</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.sonatype.flexmojos</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flex-mojos.version}</version>
        <extensions>true</extensions>
        <configuration>
          <flexBuilderCompatibility>true</flexBuilderCompatibility>
          <targetPlayer>10.0.0</targetPlayer>
          <incremental>false</incremental>
          <debug>false</debug>
          <optimize>true</optimize>
          <showWarnings>true</showWarnings>
          <strict>false</strict>
          <keystore>${basedir}/../../AIRClient/src/assets/certificate/
NECSphere Air Certification.p12</keystore>
          <storepass>123456</storepass>
          <sourceFile>${basedir}/src/MPCPROTSimulator.mxml</
sourceFile>
          <descriptorTemplate>${basedir}/src/MPCPROTSimulator-app.xml</
descriptorTemplate>
          <ignoreVersionIssues>true</ignoreVersionIssues>
          <configurationReport>true</configurationReport>
          <includeFileSets>
            <fileSet>
              <directory>${basedir}/target</directory>
              <includes>
                <include>MPCPROTSimulator.swf</include>
              </includes>
            </fileSet>
          </includeFileSets>
          <runtimeLocales>
            <locale>en_US</locale>
            <locale>ja_JP</locale>
            <locale>de_DE</locale>
            <locale>fr_FR</locale>
          </runtimeLocales>
          <compiledLocales>
            <locale>en_US</locale>
            <locale>ja_JP</locale>
            <locale>de_DE</locale>
            <locale>fr_FR</locale>
          </compiledLocales>
          <locales>
            <locale>en_US</locale>
            <locale>ja_JP</locale>
            <locale>de_DE</locale>
            <locale>fr_FR</locale>
          </locales>
          <mergeResourceBundle>true</mergeResourceBundle>
          <resourceBundlePath>${basedir}/locale/{locale}</
resourceBundlePath>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>sign-air</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>com.adobe.flex</groupId>
            <artifactId>compiler</artifactId>
            <version>${flex.sdk.version}</version>
            <type>pom</type>
          </dependency>
          <dependency>
            <groupId>com.adobe.flex.compiler</groupId>
            <artifactId>asdoc</artifactId>
            <version>${flex.sdk.version}</version>
            <classifier>template</classifier>
            <type>zip</type>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>flex-mojos-repository</id>
      <url>http://repository.sonatype.org/content/groups/flexgroup/</
url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>air-framework</artifactId>
      <version>${flex.sdk.version}</version>
      <type>pom</type>
    </dependency>
    <dependency>
      <groupId>com.necsphere.mpcprot</groupId>
      <artifactId>MPCPROT</artifactId>
      <version>8.0.0.360</version>
      <type>swc</type>
      <exclusions>
        <exclusion>
          <groupId>com.adobe.flex.framework</groupId>
          <artifactId>playerglobal</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>


Any help is highly appreciated!

Thanks,
sachin_rt

-- 
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/

Reply via email to