I can't seem to get my project to compile in Flex-Mojos 3.8, as I run into
the following error when trying to run 'mvn install':
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Sample Project Application
[INFO] Sample Project Patient Labs Module
[INFO]
------------------------------------------------------------------------
[INFO] Building Sample Project Application
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing
/home/rfkrocktk/Documents/Projects/Work/sampleproject/pom.xml to
/home/rfkrocktk/.m2/repository/org/sampleproject/sampleproject-app/0.0.1-SNAPSHOT/sampleproject-app-0.0.1-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building Sample Project Patient Labs Module
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [flexmojos:compile-swf {execution: default-compile-swf}]
[INFO] Flexmojos 3.8
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[WARNING] Source file was not defined, flexmojos will guess one.
[INFO] Flex compiler configurations:
-compiler.external-library-path
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/playerglobal/4.1.0.16248/10.0/playerglobal.swc
-compiler.include-libraries=
-compiler.library-path
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/datavisualization/4.1.0.16248/datavisualization-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/flash-integration/4.1.0.16248/flash-integration-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/flex/4.1.0.16248/flex-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/framework/3.2.0.3958/framework-3.2.0.3958.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/osmf/4.1.0.16248/osmf-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/rpc/4.1.0.16248/rpc-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/spark/4.1.0.16248/spark-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/sparkskins/4.1.0.16248/sparkskins-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/textLayout/4.1.0.16248/textLayout-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/utilities/4.1.0.16248/utilities-4.1.0.16248.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/datavisualization/4.1.0.16248/datavisualization-4.1.0.16248-en_US.rb.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/framework/3.2.0.3958/framework-3.2.0.3958-en_US.rb.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/osmf/4.1.0.16248/osmf-4.1.0.16248-en_US.rb.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/rpc/4.1.0.16248/rpc-4.1.0.16248-en_US.rb.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/spark/4.1.0.16248/spark-4.1.0.16248-en_US.rb.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/textLayout/4.1.0.16248/textLayout-4.1.0.16248-en_US.rb.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/flash-integration/4.1.0.16248/flash-integration-4.1.0.16248-en_US.rb.swc
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/playerglobal/4.1.0.16248/playerglobal-4.1.0.16248-en_US.rb.swc
-compiler.theme
/home/rfkrocktk/Documents/Projects/Work/sampleproject/patient-labs-module/target/classes/configs/themes/Spark/spark.css
-compiler.accessible=false
-compiler.allow-source-path-overlap=false
-compiler.as3=true
-compiler.debug=false
-compiler.es=false
-compiler.fonts.managers flash.fonts.JREFontManager
flash.fonts.BatikFontManager flash.fonts.AFEFontManager
flash.fonts.CFFFontManager
-compiler.fonts.local-fonts-snapshot
/home/rfkrocktk/Documents/Projects/Work/sampleproject/patient-labs-module/target/classes/fonts.ser
-compiler.keep-generated-actionscript=false
-licenses.license flashbuilder4
-licenses.license flexbuilder253292.displayedStartPageAtLeastOneTime true
-compiler.locale en_US
-compiler.optimize=true
-compiler.source-path
/home/rfkrocktk/Documents/Projects/Work/sampleproject/patient-labs-module/main/flex
-compiler.strict=true
-use-network=true
-compiler.verbose-stacktraces=false
-compiler.actionscript-file-encoding UTF-8
-target-player 10.0.0
-default-background-color 8821927
-default-frame-rate 24
-default-script-limits 1000 60
-default-size 500 375
-compiler.headless-server=false
-compiler.keep-all-type-selectors=false
-compiler.use-resource-bundle-metadata=true
-metadata.date Mon Feb 07 14:07:22 PST 2011
-metadata.localized-title Sample Project Patient Labs Module x-default
-verify-digests=true
-compiler.namespaces.namespace+=http://ns.adobe.com/mxml/2009,/home/rfkrocktk/Documents/Projects/Work/sampleproject/patient-labs-module/target/classes/config-4.1.0.16248/mxml-2009-manifest.xml
-compiler.namespaces.namespace+=library://ns.adobe.com/flex/spark,/home/rfkrocktk/Documents/Projects/Work/sampleproject/patient-labs-module/target/classes/config-4.1.0.16248/spark-manifest.xml
-compiler.namespaces.namespace+=library://ns.adobe.com/flex/mx,/home/rfkrocktk/Documents/Projects/Work/sampleproject/patient-labs-module/target/classes/config-4.1.0.16248/mx-manifest.xml
-compiler.namespaces.namespace+=http://www.adobe.com/2006/mxml,/home/rfkrocktk/Documents/Projects/Work/sampleproject/patient-labs-module/target/classes/config-4.1.0.16248/mxml-manifest.xml
-static-link-runtime-shared-libraries=false -load-config=
-metadata.language+=en_US
[ERROR]
/home/rfkrocktk/.m2/repository/com/adobe/flex/framework/spark/4.1.0.16248/spark-4.1.0.16248.swc(spark.components:SkinnableContainer):[-1,-1]
Type was not found or was not a compile-time constant:
[mx.core]::IDeferredContentOwner.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error compiling!
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Mon Feb 07 14:07:27 PST 2011
[INFO] Final Memory: 33M/355M
[INFO]
------------------------------------------------------------------------
For a reference, here is my parent project pom.xml:
<?xml version="1.0"?>
<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>org.sampleproject</groupId>
<artifactId>sampleproject-app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Sample Project Application</name>
<packaging>pom</packaging>
<modules>
<module>patient-labs-module</module>
</modules>
</project>
Here is my 'patient-labs-module' pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>sampleproject-app</artifactId>
<groupId>org.sampleproject</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>org.sampleproject</groupId>
<artifactId>patient-labs-module</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>swf</packaging>
<name>Sample Application Patient Labs Module</name>
<properties>
<flex.sdk.version>4.1.0.16248</flex.sdk.version>
</properties>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-unittest-flexunit4</artifactId>
<version>3.8</version>
<type>swc</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>${basedir}/main/flex</sourceDirectory>
<testSourceDirectory>${basedir}/test/flex</testSourceDirectory>
<resources>
<resource>
<directory>${basedir}/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.8</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
What am I doing wrong? It seems pretty basic to me.
--
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/