One Thing you should check, is that eventually some of the libs you reference, 
might have dependencies. Check if any of These reference "com.adobe.flex" 
artifacts. Cause if this is the case, you might be importing different Versions 
of your libs.

And if you post, the error Output, it should make diagnosing the Problem a lot 
easier :-)

Chris

________________________________________
Von: piotr.zarzycki [piotrzarzyck...@gmail.com]
Gesendet: Dienstag, 26. November 2013 09:27
An: users@flex.apache.org
Betreff: Re: AW: AW: AW: AW: New Flexmojos 7.0.0-SNAPSHOT available

This is desktop application and it looks like that:

-pom - ALL - contains list of modules for compile
--pom - AIR - contains Air compiler, dependencies to third party swc
First module:
---pom - LIB - contains list of sub modules

 <modules>
                <module>air-lib</module> - this is first module whitch started 
to compile
and got problem whitch I mentioned above
                <module>air-components-lib</module>
                <module>air-services-lib</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>net.flexmojos.oss</groupId>
                    <artifactId>flexmojos-maven-plugin</artifactId>
                    <version>${flexmojos.version}</version>
                    <extensions>true</extensions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>2.6</version>
                    <configuration>
                        <escapeString>\</escapeString>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
<dependencies>


                <dependency>
                  <groupId>org.spicefactory</groupId>
                  <artifactId>parsley-flex4</artifactId>
                  <type>swc</type>
                 </dependency>

                <dependency>
                  <groupId>org.spicefactory</groupId>
                  <artifactId>spicelib-flex</artifactId>
                  <type>swc</type>
                </dependency>

                <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-as3-flex</artifactId>
            <type>swc</type>
        </dependency>

</dependencies>

----pom - air-lib

  <artifactId>air-lib</artifactId>
    <packaging>swc</packaging>
    <name>${project.artifactId}</name>

    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
           <plugins>
              <plugin>
                  <groupId>net.flexmojos.oss</groupId>
                  <artifactId>flexmojos-maven-plugin</artifactId>
                  <version>${flexmojos.version}</version>
                  <extensions>true</extensions>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>
                                            net.flexmojos.oss
                                        </groupId>
                                        <artifactId>
                                            flexmojos-maven-plugin
                                        </artifactId>
                                        <versionRange>
                                            [${flexmojos.version},)
                                        </versionRange>
                                        <goals>
                                            <goal>compile-swc</goal>
                                            <goal>test-compile</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore>
                                        </ignore>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <dependencies>


        <dependency>
            <groupId>org.apache.flex.framework.air</groupId>
            <artifactId>air-framework</artifactId>
            <version>${flex.version}</version>
            <type>pom</type>
        </dependency>

        <dependency>
            <groupId>org.flexunit</groupId>
            <artifactId>flexunit</artifactId>
            <classifier>flex4</classifier>
            <version>${flexunit.version}</version>
            <type>swc</type>
        </dependency>


        <dependency>
            <groupId>com.hurlant</groupId>
            <artifactId>as3crypto</artifactId>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>com.adobe.cairngorm</groupId>
            <artifactId>persistence</artifactId>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>com.coltware.airxzip</groupId>
            <artifactId>airxzip</artifactId>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>com.adobe.cairngorm</groupId>
            <artifactId>navigationParsley</artifactId>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>com.adobe.cairngorm</groupId>
            <artifactId>contract</artifactId>
            <type>swc</type>
        </dependency>

    </dependencies>


We are using adobe air 2.6, above configuration works with flex mojos 6.0.1.



-----
Flex/Air developer open to new job offers and challenges.
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/New-Flexmojos-7-0-0-SNAPSHOT-available-tp3798p3937.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to