If you want to use a different flex sdk than the default you have to
provide a dependency to the compiler manually.
Have a look at 
http://dev.c-ware.de/confluence/display/PUBLIC/Configuring+your+poms
chapter "Things I recommend to change"
This should take care of that problem.


Chris


2011/5/11 Evan Klein <[email protected]>:
> I didn't sorry about that.. Without that, I'm getting this:
>
> [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> plugin:4.0-beta-7:compile-swf (default-compile-swf) on project sample-
> flex-app: Execution default-compile-swf of goal
> org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-beta-7:compile-swf
> failed: Flex compiler and flex framework versions doesn't match.
> Compiler: '4.5.0.19786' - Framework: '4.1.0.16248'
>
> On May 11, 11:45 am, Marvin Froeder <[email protected]> wrote:
>> Did you read the HUGE warning that came with ignoreVersionIssues?
>>
>>
>>
>>
>>
>>
>>
>> On Wed, May 11, 2011 at 12:43 PM, Evan Klein <[email protected]> wrote:
>> > I have a pom here which i'm using to compile a SWC:
>>
>> > The pom is here:
>>
>> > <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/xsd/maven-4.0.0.xsd";>
>> >        <modelVersion>4.0.0</modelVersion>
>> >        <groupId>com.vlad</groupId>
>> >        <artifactId>sample-flex-app</artifactId>
>> >        <version>1.0.0-SNAPSHOT</version>
>> >        <packaging>swf</packaging>
>>
>> >        <build>
>> >                <sourceDirectory>src</sourceDirectory>
>> >                <plugins>
>> >                        <plugin>
>> >                                <groupId>org.sonatype.flexmojos</groupId>
>>
>> >  <artifactId>flexmojos-maven-plugin</artifactId>
>> >                                <version>4.0-beta-7</version>
>> >                                <extensions>true</extensions>
>> >                                <configuration>
>>
>> >  <ignoreVersionIssues>true</ignoreVersionIssues>
>> >                                </configuration>
>> >                        </plugin>
>> >                        <plugin>
>> >                                <groupId>org.apache.maven.plugins</groupId>
>>
>> >  <artifactId>maven-resources-plugin</artifactId>
>> >                                <version>2.5</version>
>> >                        </plugin>
>> >                </plugins>
>> >        </build>
>>
>> >        <dependencies>
>> >                <dependency>
>> >                        <groupId>com.adobe.flex.framework</groupId>
>> >                        <artifactId>flex-framework</artifactId>
>> >                        <version>4.1.0.16248</version>
>> >                        <type>pom</type>
>> >                </dependency>
>>
>> >                <dependency>
>> >                        <groupId>com.vlad</groupId>
>> >                        <artifactId>sample-flex-library</artifactId>
>> >                        <version>1.0.0-SNAPSHOT</version>
>> >                        <type>swc</type>
>> >                </dependency>
>>
>> >        </dependencies>
>> > </project>
>>
>> > However, this is the error i'm getting:
>>
>> > [ERROR] _Main_mx_managers_SystemManager.as:[16,15] Definition
>> > mx.core:RSLData could not be found.import mx.core.RSLData;
>>
>> > The full output is here:
>>
>> > Evan-Kleins-MacBook-Pro:sample-flex-app esklein$ mvn clean install
>> > [INFO] Scanning for projects...
>> > [WARNING] The POM for net.sf.saxon:saxon-dom:jar:9.0 is invalid,
>> > transitive dependencies (if any) will not be available, enable debug
>> > logging for more details
>> > [INFO]
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Building sample-flex-app 1.0.0-SNAPSHOT
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO]
>> > [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ sample-
>> > flex-app ---
>> > [INFO] Deleting /Users/esklein/ws/vlad/Sources/sample-flex-app/target
>> > [INFO]
>> > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
>> > sample-flex-app ---
>> > [debug] execute contextualize
>> > [WARNING] Using platform encoding (MacRoman actually) to copy filtered
>> > resources, i.e. build is platform dependent!
>> > [INFO] skip non existing resourceDirectory /Users/esklein/ws/vlad/
>> > Sources/sample-flex-app/src/main/resources
>> > [INFO]
>> > [INFO] --- flexmojos-maven-plugin:4.0-beta-7:compile-swf (default-
>> > compile-swf) @ sample-flex-app ---
>> > [INFO] Flexmojos 4.0-beta-7
>> > [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
>> > file
>> > [WARNING] No themes are explicitly defined in the <theme> section or
>> > in any scope="theme" dependencies. Flexmojos is now attempting to
>> > figure out which themes to include. (to avoid this warning you should
>> > explicitly state your theme dependencies)
>> > [WARNING] Added the spark.css theme because spark.swc was included as
>> > a dependency
>> > [INFO] Writing configuration dump to /Users/esklein/ws/vlad/Sources/
>> > sample-flex-app/target/sample-flex-app-1.0.0-SNAPSHOT-configs.xml
>> > [ERROR] _Main_mx_managers_SystemManager.as:[16,15] Definition
>> > mx.core:RSLData could not be found.import mx.core.RSLData;
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] BUILD FAILURE
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Total time: 8.062s
>> > [INFO] Finished at: Wed May 11 11:39:43 EDT 2011
>> > [INFO] Final Memory: 11M/81M
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
>> > plugin:4.0-beta-7:compile-swf (default-compile-swf) on project sample-
>> > flex-app: Got 1 errors building project, check logs -> [Help 1]
>> > [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/MojoFailureException
>> > Evan-Kleins-MacBook-Pro:sample-flex-app esklein$ mvn clean install
>> > [INFO] Scanning for projects...
>> > [WARNING] The POM for net.sf.saxon:saxon-dom:jar:9.0 is invalid,
>> > transitive dependencies (if any) will not be available, enable debug
>> > logging for more details
>> > [INFO]
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Building sample-flex-app 1.0.0-SNAPSHOT
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO]
>> > [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ sample-
>> > flex-app ---
>> > [INFO] Deleting /Users/esklein/ws/vlad/Sources/sample-flex-app/target
>> > [INFO]
>> > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
>> > sample-flex-app ---
>> > [debug] execute contextualize
>> > [WARNING] Using platform encoding (MacRoman actually) to copy filtered
>> > resources, i.e. build is platform dependent!
>> > [INFO] skip non existing resourceDirectory /Users/esklein/ws/vlad/
>> > Sources/sample-flex-app/src/main/resources
>> > [INFO]
>> > [INFO] --- flexmojos-maven-plugin:4.0-beta-7:compile-swf (default-
>> > compile-swf) @ sample-flex-app ---
>> > [INFO] Flexmojos 4.0-beta-7
>> > [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
>> > file
>> > [WARNING] No themes are explicitly defined in the <theme> section or
>> > in any scope="theme" dependencies. Flexmojos is now attempting to
>> > figure out which themes to include. (to avoid this warning you should
>> > explicitly state your theme dependencies)
>> > [WARNING] Added the spark.css theme because spark.swc was included as
>> > a dependency
>> > [INFO] Writing configuration dump to /Users/esklein/ws/vlad/Sources/
>> > sample-flex-app/target/sample-flex-app-1.0.0-SNAPSHOT-configs.xml
>> > [ERROR] _Main_mx_managers_SystemManager.as:[16,15] Definition
>> > mx.core:RSLData could not be found.import mx.core.RSLData;
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] BUILD FAILURE
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Total time: 8.177s
>> > [INFO] Finished at: Wed May 11 11:41:01 EDT 2011
>> > [INFO] Final Memory: 11M/81M
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
>> > plugin:4.0-beta-7:compile-swf (default-compile-swf) on project sample-
>> > flex-app: Got 1 errors building project, check logs -> [Help 1]
>> > [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/MojoFailureException
>> > Evan-Kleins-MacBook-Pro:sample-flex-app esklein$
>>
>> > Thanks for the help in advance..
>>
>> > --
>> > 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/
>
> --
> 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/
>

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