You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by lynwall <ly...@kbmg.com> on 2015/04/21 23:50:01 UTC

Problem Compiling with FlexMojos 7.0.1

I'd appreciate any help compiling my project. I get these errors every time I
compile:

Error: Unable to resolve resource bundle "skins" for locale "en_US".
Error: Unable to resolve resource bundle "effects" for locale "en_US".
Error: Unable to resolve resource bundle "modules" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "validators" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "SharedResources" for locale
"en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "SharedResources" for locale
"en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "skins" for locale "en_US".

My POM:
<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.mycompany.project</groupId>
	<artifactId>MyProject</artifactId>
	<version>4.0.1-SNAPSHOT</version>
	<packaging>swf</packaging>
	<properties>
		<flexmojos.version>7.0.1</flexmojos.version>
		<flex.version>4.14.1.20150325</flex.version>
		<flash.version>16.0</flash.version>
	</properties>
	<build>
		<sourceDirectory>src/main/flex</sourceDirectory>
		<plugins>
			<plugin>
				<groupId>net.flexmojos.oss</groupId>
				<artifactId>flexmojos-maven-plugin</artifactId>
				<version>${flexmojos.version}</version>
				<extensions>true</extensions>
				 <configuration>
                    <locales>
                        <locale>en_US</locale>
                    </locales>
                </configuration>
				<dependencies>
					<dependency>
						<groupId>net.flexmojos.oss</groupId>
						<artifactId>flexmojos-maven-plugin</artifactId>
						<version>${flexmojos.version}</version>
					</dependency>
					<dependency>
						<groupId>org.apache.flex</groupId>
						<artifactId>compiler</artifactId>
						<version>${flex.version}</version>
						<type>pom</type>
					</dependency>
				</dependencies>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<sourceFile>MyApp.mxml</sourceFile>
						<compiledLocales>
						<locale>en_US</locale>
						
					</compiledLocales>
						<fonts>
							<managers>
								<manager>flash.fonts.JREFontManager</manager>
								<manager>flash.fonts.AFEFontManager</manager>
								<manager>flash.fonts.BatikFontManager</manager>
								<manager>flash.fonts.CFFFontManager</manager>
							</managers>
						</fonts>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>net.flexmojos.oss</groupId>
										<artifactId>
											flexmojos-maven-plugin
										</artifactId>
										<versionRange>[7.0.0,)</versionRange>
										<goals>
											<goal>test-compile</goal>
											<goal>compile-swf</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
                    <locales>
                        <locale>en_US</locale>
                    </locales>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.apache.flex.framework</groupId>
			<artifactId>flex-framework</artifactId>
			<version>${flex.version}</version>
			
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.adobe.flash.framework</groupId>
			<artifactId>playerglobal</artifactId>
			<version>${flash.version}</version>
			<type>swc</type>
		</dependency>
		<dependency>
			<groupId>net.flexmojos.oss</groupId>
			<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
			<version>${flexmojos.version}</version>
		</dependency>
		<dependency>
			<groupId>com.adobe.flash</groupId>
			<artifactId>playerglobal</artifactId>
			<version>${flash.version}</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>com.sparkTree</groupId>
			<artifactId>SparkTree</artifactId>
			<version>4.5</version>
			<type>swc</type>
		</dependency>
		<dependency>
			<groupId>com.mycompany.project</groupId>
			<artifactId>myComponents</artifactId>
			<version>4.0.1-SNAPSHOT</version>
			<type>swc</type>
		</dependency>
		<dependency>
			<groupId>com.mycompany.project</groupId>
			<artifactId>MyTheme</artifactId>
			<version>4.0.1-SNAPSHOT</version>
			<type>swc</type>
		</dependency>
	</dependencies>


</project>



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: Problem Compiling with FlexMojos 7.0.1

Posted by alegates <al...@gmail.com>.
OK.  Thank you.




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141p10505.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: Problem Compiling with FlexMojos 7.0.1

Posted by "Wall, Lyn" <Ly...@kbmg.com>.
If I remember correctly, I had mavenized with an older version of the converter. I ended up getting the latest flex-utilities and re-compiling that and running the converter again.  Here is the command line I used:

java -jar C:\workspace\flex-utilities-develop\mavenizer\cli\target\apache-flex-sdk-converter-1.0.0-SNAPSHOT.jar -flexVersion 4.14.1 -flashVersions 16.0 -airVersion 17.0 -platforms WINDOWS,MAC -fontkit -mavenDir destination download convert


Lyn Wall | UI Architect | KBM Group |  (Mob) 281 377 6356 | lyn.wall@kbmg.com

-----Original Message-----
From: alegates [mailto:alegates@gmail.com] 
Sent: Wednesday, June 03, 2015 2:11 PM
To: users@flex.apache.org
Subject: Re: AW: Problem Compiling with FlexMojos 7.0.1

Lyn,

Can you identify exactly what you fixed to correct the original issue? I am having the same problem (below).  I have been through the documentation making various updates but have not had any luck.  Any pointers to which dependency changes fixed the issue would be appreciated.

Thanks,
Allan


Error: Unable to resolve resource bundle "skins" for locale "en_US". 
Error: Unable to resolve resource bundle "effects" for locale "en_US". 
Error: Unable to resolve resource bundle "modules" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "validators" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "SharedResources" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "SharedResources" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "skins" for locale "en_US". 




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141p10503.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: Problem Compiling with FlexMojos 7.0.1

Posted by alegates <al...@gmail.com>.
Lyn,

Can you identify exactly what you fixed to correct the original issue? I am
having the same problem (below).  I have been through the documentation
making various updates but have not had any luck.  Any pointers to which
dependency changes fixed the issue would be appreciated.

Thanks,
Allan


Error: Unable to resolve resource bundle "skins" for locale "en_US". 
Error: Unable to resolve resource bundle "effects" for locale "en_US". 
Error: Unable to resolve resource bundle "modules" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "validators" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "SharedResources" for locale
"en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "SharedResources" for locale
"en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "controls" for locale "en_US". 
Error: Unable to resolve resource bundle "skins" for locale "en_US". 




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141p10503.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: Problem Compiling with FlexMojos 7.0.1

Posted by lynwall <ly...@kbmg.com>.
Thank you Chris! I was able to compile successfully! That article was a huge
help!



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141p10160.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: Problem Compiling with FlexMojos 7.0.1

Posted by Christofer Dutz <ch...@c-ware.de>.
Ok ... so the initial chapter is available at:
https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven

I'll continue with setting up simple projects next.

Chris

________________________________________
Von: Wall, Lyn <Ly...@kbmg.com>
Gesendet: Mittwoch, 22. April 2015 19:12
An: users@flex.apache.org
Betreff: RE: Problem Compiling with FlexMojos 7.0.1

Thanks Chris! I appreciate your help and look forward to the documentation.


Lyn Wall | UI Architect | KBM Group | (Tel) 713 995 2392 | (Mob) 281 377 6356 | lyn.wall@kbmg.com


-----Original Message-----
From: Christofer Dutz [mailto:christofer.dutz@c-ware.de]
Sent: Wednesday, April 22, 2015 12:10 PM
To: users@flex.apache.org
Subject: AW: Problem Compiling with FlexMojos 7.0.1

Hi Lyn,

well I have to admit that I have been working hard on the sdk-converter in the last few days. So a lot has changed here. I was also planning on finally starting to write the new documentation. So I think instead of writing this down in response to your post, I'll write down the stuff in the wiki and post a link here ...

Chris

________________________________________
Von: Wall, Lyn <Ly...@kbmg.com>
Gesendet: Mittwoch, 22. April 2015 17:59
An: users@flex.apache.org
Betreff: RE: Problem Compiling with FlexMojos 7.0.1

Thank you for your response.

I ran the Mavenizer and it added the build number automatically. Is there a way to prevent it from doing that?

I was unable to find com.adobe.fontkit, so I added flex-fontkit instead. I am not getting a transcoding error. Would this  be correct?

        <dependency>
                <groupId>org.apache.flex.compiler</groupId>
                        <artifactId>flex-fontkit</artifactId>
                        <version>${flex.version}</version>
                        <type>jar</type>
        </dependency>

I'm trying to make sure I understand the issue with the lifecycle mapping section and followed your suggestions. Here is my updated POM. I'm still getting the same errors. I

<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.company.project</groupId>
        <artifactId>MyProjectMain</artifactId>
        <version>4.0.1-SNAPSHOT</version>
        <packaging>swf</packaging>
        <properties>
                <flexmojos.version>7.0.1</flexmojos.version>
                <flex.version>4.14.1.20150325</flex.version>
                <flash.version>16.0</flash.version>
        </properties>
        <build>
                <sourceDirectory>src/main/flex</sourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>net.flexmojos.oss</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flexmojos.version}</version>
                                <extensions>true</extensions>


                                <dependencies>
                                        <dependency>
                                                <groupId>org.apache.flex</groupId>
                                                <artifactId>compiler</artifactId>
                                                <version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                <groupId>org.apache.flex.compiler</groupId>
                                                <artifactId>flex-fontkit</artifactId>
                                                <type>jar</type>
                                                <version>${flex.version}</version>
                                        </dependency>
                                </dependencies>
                        </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
                                <!--This plugin's configuration is used to store Eclipse m2e settings
                                        only. It has no influence on the Maven build itself. -->
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        <artifactId>lifecycle-mapping</artifactId>
                                        <version>1.0.0</version>
                                        <configuration>
                                                <sourceFile>MyProjectMain.mxml</sourceFile>
                                                <includeStylesheets>
                                                        <stylesheet>
                                                                <path>MyProjectStyles.css</path>
                                                        </stylesheet>
                                                </includeStylesheets>
                                                <fonts>
                                                        <managers>
                                                                <manager>flash.fonts.AFEFontManager</manager>
                                                                <manager>flash.fonts.CFFFontManager</manager>
                                                        </managers>
                                                </fonts>
                                                <compiledLocales>
                                                        <locale>en_US</locale>
                                                </compiledLocales>
                                                <runtimeLocales>
                                                        <locale>en_US</locale>
                                                </runtimeLocales>
                                                <lifecycleMappingMetadata>
                                                        <pluginExecutions>
                                                                <pluginExecution>
                                                                        <pluginExecutionFilter>
                                                                                <groupId>net.flexmojos.oss</groupId>
                                                                                <artifactId>
                                                                                        flexmojos-maven-plugin
                                                                                </artifactId>
                                                                                <versionRange>[7.0.0,)</versionRange>
                                                                                <goals>
                                                                                        <goal>test-compile</goal>
                                                                                        <goal>compile-swf</goal>
                                                                                </goals>
                                                                        </pluginExecutionFilter>
                                                                        <action>
                                                                                <ignore></ignore>
                                                                        </action>
                                                                </pluginExecution>
                                                        </pluginExecutions>
                                                </lifecycleMappingMetadata>
                                                <dependencies>
                                                        <dependency>
                                                                <groupId>net.flexmojos.oss</groupId>
                                                                <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                                                                <version>${flexmojos.version}</version>
                                                        </dependency>
                                                        <dependency>
                                                                <groupId>org.apache.flex.compiler</groupId>
                                                                <artifactId>flex-fontkit</artifactId>
                                                                <type>jar</type>
                                                                <version>${flex.version}</version>
                                                        </dependency>
                                                </dependencies>
                                        </configuration>
                                </plugin>
                        </plugins>
                </pluginManagement>
        </build>
        <dependencies>
                <dependency>
                        <groupId>org.apache.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                </dependency>

                <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-maven-plugin</artifactId>
                        <version>${flexmojos.version}</version>
                </dependency>
                <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                        <version>${flexmojos.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flash.framework</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>swc</type>
                </dependency>

                <dependency>
                        <groupId>com.adobe.flash</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>pom</type>
                </dependency>

                <dependency>
                        <groupId>org.apache.flex.compiler</groupId>
                        <artifactId>flex-fontkit</artifactId>
                        <type>jar</type>
                        <version>${flex.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.company.project</groupId>
                        <artifactId>MyProjectComponents</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.company.project</groupId>
                        <artifactId>MyProjectTheme</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
        </dependencies>


</project>

Lyn Wall | UI Architect | KBM Group | (Tel) 713 995 2392 | (Mob) 281 377 6356 | lyn.wall@kbmg.com





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Problem Compiling with FlexMojos 7.0.1

Posted by "Wall, Lyn" <Ly...@kbmg.com>.
Thanks Chris! I appreciate your help and look forward to the documentation.


Lyn Wall | UI Architect | KBM Group | (Tel) 713 995 2392 | (Mob) 281 377 6356 | lyn.wall@kbmg.com


-----Original Message-----
From: Christofer Dutz [mailto:christofer.dutz@c-ware.de] 
Sent: Wednesday, April 22, 2015 12:10 PM
To: users@flex.apache.org
Subject: AW: Problem Compiling with FlexMojos 7.0.1

Hi Lyn,

well I have to admit that I have been working hard on the sdk-converter in the last few days. So a lot has changed here. I was also planning on finally starting to write the new documentation. So I think instead of writing this down in response to your post, I'll write down the stuff in the wiki and post a link here ... 

Chris

________________________________________
Von: Wall, Lyn <Ly...@kbmg.com>
Gesendet: Mittwoch, 22. April 2015 17:59
An: users@flex.apache.org
Betreff: RE: Problem Compiling with FlexMojos 7.0.1

Thank you for your response.

I ran the Mavenizer and it added the build number automatically. Is there a way to prevent it from doing that?

I was unable to find com.adobe.fontkit, so I added flex-fontkit instead. I am not getting a transcoding error. Would this  be correct?

        <dependency>
                <groupId>org.apache.flex.compiler</groupId>
                        <artifactId>flex-fontkit</artifactId>
                        <version>${flex.version}</version>
                        <type>jar</type>
        </dependency>

I'm trying to make sure I understand the issue with the lifecycle mapping section and followed your suggestions. Here is my updated POM. I'm still getting the same errors. I

<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.company.project</groupId>
        <artifactId>MyProjectMain</artifactId>
        <version>4.0.1-SNAPSHOT</version>
        <packaging>swf</packaging>
        <properties>
                <flexmojos.version>7.0.1</flexmojos.version>
                <flex.version>4.14.1.20150325</flex.version>
                <flash.version>16.0</flash.version>
        </properties>
        <build>
                <sourceDirectory>src/main/flex</sourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>net.flexmojos.oss</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flexmojos.version}</version>
                                <extensions>true</extensions>


                                <dependencies>
                                        <dependency>
                                                <groupId>org.apache.flex</groupId>
                                                <artifactId>compiler</artifactId>
                                                <version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                <groupId>org.apache.flex.compiler</groupId>
                                                <artifactId>flex-fontkit</artifactId>
                                                <type>jar</type>
                                                <version>${flex.version}</version>
                                        </dependency>
                                </dependencies>
                        </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
                                <!--This plugin's configuration is used to store Eclipse m2e settings
                                        only. It has no influence on the Maven build itself. -->
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        <artifactId>lifecycle-mapping</artifactId>
                                        <version>1.0.0</version>
                                        <configuration>
                                                <sourceFile>MyProjectMain.mxml</sourceFile>
                                                <includeStylesheets>
                                                        <stylesheet>
                                                                <path>MyProjectStyles.css</path>
                                                        </stylesheet>
                                                </includeStylesheets>
                                                <fonts>
                                                        <managers>
                                                                <manager>flash.fonts.AFEFontManager</manager>
                                                                <manager>flash.fonts.CFFFontManager</manager>
                                                        </managers>
                                                </fonts>
                                                <compiledLocales>
                                                        <locale>en_US</locale>
                                                </compiledLocales>
                                                <runtimeLocales>
                                                        <locale>en_US</locale>
                                                </runtimeLocales>
                                                <lifecycleMappingMetadata>
                                                        <pluginExecutions>
                                                                <pluginExecution>
                                                                        <pluginExecutionFilter>
                                                                                <groupId>net.flexmojos.oss</groupId>
                                                                                <artifactId>
                                                                                        flexmojos-maven-plugin
                                                                                </artifactId>
                                                                                <versionRange>[7.0.0,)</versionRange>
                                                                                <goals>
                                                                                        <goal>test-compile</goal>
                                                                                        <goal>compile-swf</goal>
                                                                                </goals>
                                                                        </pluginExecutionFilter>
                                                                        <action>
                                                                                <ignore></ignore>
                                                                        </action>
                                                                </pluginExecution>
                                                        </pluginExecutions>
                                                </lifecycleMappingMetadata>
                                                <dependencies>
                                                        <dependency>
                                                                <groupId>net.flexmojos.oss</groupId>
                                                                <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                                                                <version>${flexmojos.version}</version>
                                                        </dependency>
                                                        <dependency>
                                                                <groupId>org.apache.flex.compiler</groupId>
                                                                <artifactId>flex-fontkit</artifactId>
                                                                <type>jar</type>
                                                                <version>${flex.version}</version>
                                                        </dependency>
                                                </dependencies>
                                        </configuration>
                                </plugin>
                        </plugins>
                </pluginManagement>
        </build>
        <dependencies>
                <dependency>
                        <groupId>org.apache.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                </dependency>

                <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-maven-plugin</artifactId>
                        <version>${flexmojos.version}</version>
                </dependency>
                <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                        <version>${flexmojos.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flash.framework</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>swc</type>
                </dependency>

                <dependency>
                        <groupId>com.adobe.flash</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>pom</type>
                </dependency>

                <dependency>
                        <groupId>org.apache.flex.compiler</groupId>
                        <artifactId>flex-fontkit</artifactId>
                        <type>jar</type>
                        <version>${flex.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.company.project</groupId>
                        <artifactId>MyProjectComponents</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.company.project</groupId>
                        <artifactId>MyProjectTheme</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
        </dependencies>


</project>

Lyn Wall | UI Architect | KBM Group | (Tel) 713 995 2392 | (Mob) 281 377 6356 | lyn.wall@kbmg.com





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: Problem Compiling with FlexMojos 7.0.1

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Lyn,

well I have to admit that I have been working hard on the sdk-converter in the last few days. So a lot has changed here. I was also planning on finally starting to write the new documentation. So I think instead of writing this down in response to your post, I'll write down the stuff in the wiki and post a link here ... 

Chris

________________________________________
Von: Wall, Lyn <Ly...@kbmg.com>
Gesendet: Mittwoch, 22. April 2015 17:59
An: users@flex.apache.org
Betreff: RE: Problem Compiling with FlexMojos 7.0.1

Thank you for your response.

I ran the Mavenizer and it added the build number automatically. Is there a way to prevent it from doing that?

I was unable to find com.adobe.fontkit, so I added flex-fontkit instead. I am not getting a transcoding error. Would this  be correct?

        <dependency>
                <groupId>org.apache.flex.compiler</groupId>
                        <artifactId>flex-fontkit</artifactId>
                        <version>${flex.version}</version>
                        <type>jar</type>
        </dependency>

I'm trying to make sure I understand the issue with the lifecycle mapping section and followed your suggestions. Here is my updated POM. I'm still getting the same errors. I

<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.company.project</groupId>
        <artifactId>MyProjectMain</artifactId>
        <version>4.0.1-SNAPSHOT</version>
        <packaging>swf</packaging>
        <properties>
                <flexmojos.version>7.0.1</flexmojos.version>
                <flex.version>4.14.1.20150325</flex.version>
                <flash.version>16.0</flash.version>
        </properties>
        <build>
                <sourceDirectory>src/main/flex</sourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>net.flexmojos.oss</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flexmojos.version}</version>
                                <extensions>true</extensions>


                                <dependencies>
                                        <dependency>
                                                <groupId>org.apache.flex</groupId>
                                                <artifactId>compiler</artifactId>
                                                <version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                        <dependency>
                                                <groupId>org.apache.flex.compiler</groupId>
                                                <artifactId>flex-fontkit</artifactId>
                                                <type>jar</type>
                                                <version>${flex.version}</version>
                                        </dependency>
                                </dependencies>
                        </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
                                <!--This plugin's configuration is used to store Eclipse m2e settings
                                        only. It has no influence on the Maven build itself. -->
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        <artifactId>lifecycle-mapping</artifactId>
                                        <version>1.0.0</version>
                                        <configuration>
                                                <sourceFile>MyProjectMain.mxml</sourceFile>
                                                <includeStylesheets>
                                                        <stylesheet>
                                                                <path>MyProjectStyles.css</path>
                                                        </stylesheet>
                                                </includeStylesheets>
                                                <fonts>
                                                        <managers>
                                                                <manager>flash.fonts.AFEFontManager</manager>
                                                                <manager>flash.fonts.CFFFontManager</manager>
                                                        </managers>
                                                </fonts>
                                                <compiledLocales>
                                                        <locale>en_US</locale>
                                                </compiledLocales>
                                                <runtimeLocales>
                                                        <locale>en_US</locale>
                                                </runtimeLocales>
                                                <lifecycleMappingMetadata>
                                                        <pluginExecutions>
                                                                <pluginExecution>
                                                                        <pluginExecutionFilter>
                                                                                <groupId>net.flexmojos.oss</groupId>
                                                                                <artifactId>
                                                                                        flexmojos-maven-plugin
                                                                                </artifactId>
                                                                                <versionRange>[7.0.0,)</versionRange>
                                                                                <goals>
                                                                                        <goal>test-compile</goal>
                                                                                        <goal>compile-swf</goal>
                                                                                </goals>
                                                                        </pluginExecutionFilter>
                                                                        <action>
                                                                                <ignore></ignore>
                                                                        </action>
                                                                </pluginExecution>
                                                        </pluginExecutions>
                                                </lifecycleMappingMetadata>
                                                <dependencies>
                                                        <dependency>
                                                                <groupId>net.flexmojos.oss</groupId>
                                                                <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                                                                <version>${flexmojos.version}</version>
                                                        </dependency>
                                                        <dependency>
                                                                <groupId>org.apache.flex.compiler</groupId>
                                                                <artifactId>flex-fontkit</artifactId>
                                                                <type>jar</type>
                                                                <version>${flex.version}</version>
                                                        </dependency>
                                                </dependencies>
                                        </configuration>
                                </plugin>
                        </plugins>
                </pluginManagement>
        </build>
        <dependencies>
                <dependency>
                        <groupId>org.apache.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                </dependency>

                <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-maven-plugin</artifactId>
                        <version>${flexmojos.version}</version>
                </dependency>
                <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                        <version>${flexmojos.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flash.framework</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>swc</type>
                </dependency>

                <dependency>
                        <groupId>com.adobe.flash</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>pom</type>
                </dependency>

                <dependency>
                        <groupId>org.apache.flex.compiler</groupId>
                        <artifactId>flex-fontkit</artifactId>
                        <type>jar</type>
                        <version>${flex.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.company.project</groupId>
                        <artifactId>MyProjectComponents</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.company.project</groupId>
                        <artifactId>MyProjectTheme</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
        </dependencies>


</project>

Lyn Wall | UI Architect | KBM Group | (Tel) 713 995 2392 | (Mob) 281 377 6356 | lyn.wall@kbmg.com





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Problem Compiling with FlexMojos 7.0.1

Posted by "Wall, Lyn" <Ly...@kbmg.com>.
Thank you for your response. 

I ran the Mavenizer and it added the build number automatically. Is there a way to prevent it from doing that?

I was unable to find com.adobe.fontkit, so I added flex-fontkit instead. I am not getting a transcoding error. Would this  be correct?

	<dependency>
		<groupId>org.apache.flex.compiler</groupId>
			<artifactId>flex-fontkit</artifactId>
			<version>${flex.version}</version>
			<type>jar</type>
	</dependency>

I'm trying to make sure I understand the issue with the lifecycle mapping section and followed your suggestions. Here is my updated POM. I'm still getting the same errors. I

<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.company.project</groupId>
	<artifactId>MyProjectMain</artifactId>
	<version>4.0.1-SNAPSHOT</version>
	<packaging>swf</packaging>
	<properties>
		<flexmojos.version>7.0.1</flexmojos.version>
		<flex.version>4.14.1.20150325</flex.version>
		<flash.version>16.0</flash.version> 
	</properties>
	<build>
		<sourceDirectory>src/main/flex</sourceDirectory>
		<plugins>
			<plugin>
				<groupId>net.flexmojos.oss</groupId>
				<artifactId>flexmojos-maven-plugin</artifactId>
				<version>${flexmojos.version}</version>
				<extensions>true</extensions>
			

				<dependencies>
					<dependency>
						<groupId>org.apache.flex</groupId>
						<artifactId>compiler</artifactId>
						<version>${flex.version}</version>
						<type>pom</type>
					</dependency>
					<dependency>
						<groupId>org.apache.flex.compiler</groupId>
						<artifactId>flex-fontkit</artifactId>
						<type>jar</type>
						<version>${flex.version}</version>
					</dependency>
				</dependencies>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings 
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<sourceFile>MyProjectMain.mxml</sourceFile>
						<includeStylesheets>
							<stylesheet>
								<path>MyProjectStyles.css</path>
							</stylesheet>
						</includeStylesheets>
						<fonts>
							<managers>
								<manager>flash.fonts.AFEFontManager</manager>
								<manager>flash.fonts.CFFFontManager</manager>
							</managers>
						</fonts>
						<compiledLocales>
							<locale>en_US</locale>
						</compiledLocales>
						<runtimeLocales>
							<locale>en_US</locale>
						</runtimeLocales>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>net.flexmojos.oss</groupId>
										<artifactId>
											flexmojos-maven-plugin
										</artifactId>
										<versionRange>[7.0.0,)</versionRange>
										<goals>
											<goal>test-compile</goal>
											<goal>compile-swf</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
						<dependencies>
							<dependency>
								<groupId>net.flexmojos.oss</groupId>
								<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
								<version>${flexmojos.version}</version>
							</dependency>
							<dependency>
								<groupId>org.apache.flex.compiler</groupId>
								<artifactId>flex-fontkit</artifactId>
								<type>jar</type>
								<version>${flex.version}</version>
							</dependency>
						</dependencies>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.apache.flex.framework</groupId>
			<artifactId>flex-framework</artifactId>
			<version>${flex.version}</version>
			<type>pom</type>
		</dependency>

		<dependency>
			<groupId>net.flexmojos.oss</groupId>
			<artifactId>flexmojos-maven-plugin</artifactId>
			<version>${flexmojos.version}</version>
		</dependency>
		<dependency>
			<groupId>net.flexmojos.oss</groupId>
			<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
			<version>${flexmojos.version}</version>
		</dependency>
		<dependency>
			<groupId>com.adobe.flash.framework</groupId>
			<artifactId>playerglobal</artifactId>
			<version>${flash.version}</version>
			<type>swc</type>
		</dependency>

		<dependency>
			<groupId>com.adobe.flash</groupId>
			<artifactId>playerglobal</artifactId>
			<version>${flash.version}</version>
			<type>pom</type>
		</dependency>

		<dependency>
			<groupId>org.apache.flex.compiler</groupId>
			<artifactId>flex-fontkit</artifactId>
			<type>jar</type>
			<version>${flex.version}</version>
		</dependency>
		<dependency>
			<groupId>com.company.project</groupId>
			<artifactId>MyProjectComponents</artifactId>
			<version>4.0.1-SNAPSHOT</version>
			<type>swc</type>
		</dependency>
		<dependency>
			<groupId>com.company.project</groupId>
			<artifactId>MyProjectTheme</artifactId>
			<version>4.0.1-SNAPSHOT</version>
			<type>swc</type>
		</dependency>
	</dependencies>


</project>

Lyn Wall | UI Architect | KBM Group | (Tel) 713 995 2392 | (Mob) 281 377 6356 | lyn.wall@kbmg.com





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: Problem Compiling with FlexMojos 7.0.1

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Lyn,

to me it looks as if you got your plugin configuration messed up a little. Parts of the flexmojos plugin configuration is located in the lifecycle-mapping config so it is not available to maven (just to the M2Eclipse plugin). The threadlocaltoolkit is a plugin dependency so it should be added in parallel to the compiler artifact.

How did you create the Mavenized FDK? Did you use the flex-sdk-converter (aka Mavenizer)? A lot of things have changed here ... as I can see you seem to be doing font-releated stuff, with the latest mavenizer you would also need a dependency to "com.adobe:fontkit:1.0:jar" in parallel to the compiler too and the version of the FDK would be "1.14.1" without the build number in fourth position.

Chris


________________________________________
Von: lynwall <ly...@kbmg.com>
Gesendet: Dienstag, 21. April 2015 23:50
An: users@flex.apache.org
Betreff: Problem Compiling with FlexMojos 7.0.1

I'd appreciate any help compiling my project. I get these errors every time I
compile:

Error: Unable to resolve resource bundle "skins" for locale "en_US".
Error: Unable to resolve resource bundle "effects" for locale "en_US".
Error: Unable to resolve resource bundle "modules" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "validators" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "SharedResources" for locale
"en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "SharedResources" for locale
"en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "controls" for locale "en_US".
Error: Unable to resolve resource bundle "skins" for locale "en_US".

My POM:
<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.mycompany.project</groupId>
        <artifactId>MyProject</artifactId>
        <version>4.0.1-SNAPSHOT</version>
        <packaging>swf</packaging>
        <properties>
                <flexmojos.version>7.0.1</flexmojos.version>
                <flex.version>4.14.1.20150325</flex.version>
                <flash.version>16.0</flash.version>
        </properties>
        <build>
                <sourceDirectory>src/main/flex</sourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>net.flexmojos.oss</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flexmojos.version}</version>
                                <extensions>true</extensions>
                                 <configuration>
                    <locales>
                        <locale>en_US</locale>
                    </locales>
                </configuration>
                                <dependencies>
                                        <dependency>
                                                <groupId>net.flexmojos.oss</groupId>
                                                <artifactId>flexmojos-maven-plugin</artifactId>
                                                <version>${flexmojos.version}</version>
                                        </dependency>
                                        <dependency>
                                                <groupId>org.apache.flex</groupId>
                                                <artifactId>compiler</artifactId>
                                                <version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                        </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>

                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        <artifactId>lifecycle-mapping</artifactId>
                                        <version>1.0.0</version>
                                        <configuration>
                                                <sourceFile>MyApp.mxml</sourceFile>
                                                <compiledLocales>
                                                <locale>en_US</locale>

                                        </compiledLocales>
                                                <fonts>
                                                        <managers>
                                                                <manager>flash.fonts.JREFontManager</manager>
                                                                <manager>flash.fonts.AFEFontManager</manager>
                                                                <manager>flash.fonts.BatikFontManager</manager>
                                                                <manager>flash.fonts.CFFFontManager</manager>
                                                        </managers>
                                                </fonts>
                                                <lifecycleMappingMetadata>
                                                        <pluginExecutions>
                                                                <pluginExecution>
                                                                        <pluginExecutionFilter>
                                                                                <groupId>net.flexmojos.oss</groupId>
                                                                                <artifactId>
                                                                                        flexmojos-maven-plugin
                                                                                </artifactId>
                                                                                <versionRange>[7.0.0,)</versionRange>
                                                                                <goals>
                                                                                        <goal>test-compile</goal>
                                                                                        <goal>compile-swf</goal>
                                                                                </goals>
                                                                        </pluginExecutionFilter>
                                                                        <action>
                                                                                <ignore></ignore>
                                                                        </action>
                                                                </pluginExecution>
                                                        </pluginExecutions>
                                                </lifecycleMappingMetadata>
                    <locales>
                        <locale>en_US</locale>
                    </locales>
                                        </configuration>
                                </plugin>
                        </plugins>
                </pluginManagement>
        </build>
        <dependencies>
                <dependency>
                        <groupId>org.apache.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.version}</version>

                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flash.framework</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                        <version>${flexmojos.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flash</groupId>
                        <artifactId>playerglobal</artifactId>
                        <version>${flash.version}</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>com.sparkTree</groupId>
                        <artifactId>SparkTree</artifactId>
                        <version>4.5</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.mycompany.project</groupId>
                        <artifactId>myComponents</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.mycompany.project</groupId>
                        <artifactId>MyTheme</artifactId>
                        <version>4.0.1-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
        </dependencies>


</project>



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-Compiling-with-FlexMojos-7-0-1-tp10141.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.