You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/06/15 08:31:14 UTC

[40/48] git commit: [flex-utilities] [refs/heads/develop] - move maven-flex-plugin under flex-maven-tools

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as
new file mode 100644
index 0000000..5ad0c38
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/StockDataJSONItemConverter.as
@@ -0,0 +1,38 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+import org.apache.flex.collections.converters.JSONItemConverter;
+
+    public class StockDataJSONItemConverter extends JSONItemConverter
+    {
+        public function StockDataJSONItemConverter()
+        {
+            super();
+        }
+        
+        override public function convertItem(data:String):Object
+        {
+            var obj:Object = super.convertItem(data);
+			if (obj['query']['results'] == null)
+				return 'No Quote Available';
+            return obj['query']['results']['quote']['Ask'];
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as
new file mode 100644
index 0000000..636ed30
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/controllers/MyController.as
@@ -0,0 +1,92 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package controllers
+{
+	import org.apache.flex.core.Application;
+	import org.apache.flex.core.IDocument;
+	import org.apache.flex.events.Event;
+	
+	
+	import models.MyModel;
+	
+	public class MyController implements IDocument
+	{
+		public function MyController(app:Application = null)
+		{
+			if (app)
+			{
+				this.app = app as FlexJSTest_basic;
+				app.addEventListener("viewChanged", viewChangeHandler);
+			}
+		}
+		
+		private var queryBegin:String = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22";
+		private var queryEnd:String = "%22)%0A%09%09&env=http%3A%2F%2Fdatatables.org%2Falltables.env&format=json";
+		private var app:FlexJSTest_basic;
+		
+		private function viewChangeHandler(event:Event):void
+		{
+			app.initialView.addEventListener("buttonClicked", buttonClickHandler);
+			app.initialView.addEventListener("listChanged", listChangedHandler);
+			app.initialView.addEventListener("cityListChanged", cityListChangeHandler);
+			app.initialView.addEventListener("transferClicked", transferClickHandler);
+			app.initialView.addEventListener("comboBoxChanged", comboBoxChangeHandler);
+		}
+		
+		private function buttonClickHandler(event:Event):void
+		{
+			var sym:String = MyInitialView(app.initialView).symbol;
+			app.service.url = queryBegin + sym + queryEnd;
+			app.service.send();
+			app.service.addEventListener("complete", completeHandler);
+		}
+		
+		private function completeHandler(event:Event):void
+		{
+			MyModel(app.model).labelText = app.collection.getItemAt(0) as String;
+		}
+		
+		private function listChangedHandler(event:Event):void
+		{
+			MyModel(app.model).labelText = MyInitialView(app.initialView).symbol;
+		}
+		
+		private function cityListChangeHandler(event:Event):void
+		{
+			MyModel(app.model).labelText = MyInitialView(app.initialView).city;
+		}
+		
+		private function transferClickHandler(event:Event):void
+		{
+			MyModel(app.model).labelText = MyInitialView(app.initialView).inputText;
+		}
+		
+		private function comboBoxChangeHandler(event:Event):void
+		{
+			MyModel(app.model).labelText = MyInitialView(app.initialView).comboBoxValue;
+		}
+		
+		public function setDocument(document:Object, id:String = null):void
+		{
+			this.app = document as FlexJSTest_basic;
+			app.addEventListener("viewChanged", viewChangeHandler);
+		}
+		
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as
new file mode 100644
index 0000000..1dc23e6
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/flexjs/flexjs-hello-world/src/main/flex/models/MyModel.as
@@ -0,0 +1,59 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package models
+{
+	import org.apache.flex.events.Event;
+	import org.apache.flex.events.EventDispatcher;
+	
+	public class MyModel extends EventDispatcher
+	{
+		public function MyModel()
+		{
+		}
+		
+		private var _labelText:String;
+		
+		public function get labelText():String
+		{
+			return _labelText;
+		}
+		
+		public function set labelText(value:String):void
+		{
+			if (value != _labelText)
+			{
+				_labelText = value;
+				dispatchEvent(new Event("labelTextChanged"));
+			}
+		}
+        
+        private var _strings:Array = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"];
+        public function get strings():Array
+        {
+            return _strings;
+        }
+		
+		private var _cities:Array = ["London", "Miami", "Paris", "Sydney", "Tokyo"];
+		public function get cities():Array
+		{
+			return _cities;
+		}
+
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml
new file mode 100644
index 0000000..8d01b07
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/flexjs/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples</groupId>
+        <artifactId>parent</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.flex.examples.flexjs</groupId>
+    <artifactId>flexjs</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>flexjs-hello-world</module>
+    </modules>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml
new file mode 100644
index 0000000..be807ff
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>i18n</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>compiled-locales</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>swf</module>
+        <module>war</module>
+    </modules>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml
new file mode 100644
index 0000000..4c23e35
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/pom.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>compiled-locales</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>compiled-locales-swf</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>swf</packaging>
+
+    <build>
+        <sourceDirectory>src/main/flex</sourceDirectory>
+        <plugins>
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <debug>true</debug>
+                    <localesCompiled>
+                        <locale>en_US</locale>
+                        <locale>de_DE</locale>
+                    </localesCompiled>
+                </configuration>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.flex</groupId>
+                        <artifactId>compiler</artifactId>
+                        <version>4.14.1</version>
+                        <type>pom</type>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.flex</groupId>
+            <artifactId>framework</artifactId>
+            <version>4.14.1</version>
+            <type>pom</type>
+        </dependency>
+        <dependency>
+            <groupId>com.adobe.flash.framework</groupId>
+            <artifactId>playerglobal</artifactId>
+            <version>14.0</version>
+            <type>swc</type>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml
new file mode 100644
index 0000000..a449ab7
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/flex/Main.mxml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+               xmlns:s="library://ns.adobe.com/flex/spark">
+
+    <fx:Metadata>
+        [ResourceBundle("myresources")]
+    </fx:Metadata>
+
+    <fx:Script>
+      <![CDATA[
+        import mx.collections.ArrayCollection;
+
+        import spark.events.IndexChangeEvent;
+
+        [Bindable]
+        private var locales:ArrayCollection = new ArrayCollection([{label:"English", locale:"en_US"},
+            {label:"German", locale:"de_DE"}]);
+
+        private function onLanguageChange(event:IndexChangeEvent):void {
+            resourceManager.localeChain = [localeSelector.selectedItem.locale];
+        }
+
+        ]]>
+   </fx:Script>
+
+    <s:VGroup>
+        <s:ComboBox id="localeSelector" dataProvider="{locales}" change="onLanguageChange(event)"/>
+        <s:Label text="{resourceManager.getString('myresources','greeting')}"/>
+    </s:VGroup>
+
+</s:Application>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties
new file mode 100644
index 0000000..f792b93
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/de_DE/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+greeting=Hallo Welt!
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties
new file mode 100644
index 0000000..ba8ac99
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/swf/src/main/locales/en_US/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+greeting=Hello World!
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml
new file mode 100644
index 0000000..b68bd30
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/pom.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>compiled-locales</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>compiled-locales-war</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>war</packaging>
+
+    <!--
+        Properties used in the wrapper template, used by maven-war-plugin to
+        perform the filtering.
+    -->
+    <properties>
+        <swf>compiled-locales-swf-1.0.0-SNAPSHOT</swf>
+        <width>100%</width>
+        <height>100%</height>
+        <title>My First Application</title>
+        <useBrowserHistory>true</useBrowserHistory>
+        <bgcolor>white</bgcolor>
+        <version_major>10</version_major>
+        <version_minor>2</version_minor>
+        <version_revision>0</version_revision>
+        <expressInstallSwf>expressInstall.swf</expressInstallSwf>
+        <application>application</application>
+    </properties>
+
+    <build>
+        <plugins>
+            <!--
+                Copy all the flex related resources (SWFs, RSLs, ...)
+            -->
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>copy-flex-resources</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.flex</groupId>
+                        <artifactId>compiler</artifactId>
+                        <version>4.14.1</version>
+                        <type>pom</type>
+                    </dependency>
+                </dependencies>
+            </plugin>
+            <!--
+                Builds the war and copies the flex default wrapper template.
+            -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.4</version>
+                <configuration>
+                    <overlays>
+                        <overlay>
+                            <groupId>org.apache.flex.wrapper</groupId>
+                            <artifactId>swfobject</artifactId>
+                            <type>war</type>
+                            <filtered>true</filtered>
+                        </overlay>
+                    </overlays>
+                </configuration>
+            </plugin>
+            <!--
+                Make the war project "runnable" by running mvn jetty:run
+            -->
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>maven-jetty-plugin</artifactId>
+                <version>6.1.17</version>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.flex.examples.i18n</groupId>
+            <artifactId>compiled-locales-swf</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <type>swf</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.flex.wrapper</groupId>
+            <artifactId>swfobject</artifactId>
+            <version>4.14.1</version>
+            <type>war</type>
+            <scope>runtime</scope>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..8dd835a
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/compiled-locales/war/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         id="WebApp_ID" version="2.5">
+
+    <display-name>war war</display-name>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml
new file mode 100644
index 0000000..bff39bc
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>i18n</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>locale-chains</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>swf</module>
+        <module>war</module>
+    </modules>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml
new file mode 100644
index 0000000..6d71468
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/pom.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>locale-chains</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>locale-chains-swf</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>swf</packaging>
+
+    <build>
+        <sourceDirectory>src/main/flex</sourceDirectory>
+        <plugins>
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <debug>true</debug>
+                    <localesCompiled>
+                        <locale>en_US</locale>
+                        <locale>en_GB,en_US</locale>
+                        <locale>de_DE</locale>
+                        <locale>de_AT,de_DE</locale>
+                    </localesCompiled>
+                </configuration>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.flex</groupId>
+                        <artifactId>compiler</artifactId>
+                        <version>4.14.1</version>
+                        <type>pom</type>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.flex</groupId>
+            <artifactId>framework</artifactId>
+            <version>4.14.1</version>
+            <type>pom</type>
+        </dependency>
+        <dependency>
+            <groupId>com.adobe.flash.framework</groupId>
+            <artifactId>playerglobal</artifactId>
+            <version>14.0</version>
+            <type>swc</type>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml
new file mode 100644
index 0000000..3f2cdad
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/flex/Main.mxml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+               xmlns:s="library://ns.adobe.com/flex/spark">
+
+    <fx:Metadata>
+        [ResourceBundle("myresources")]
+    </fx:Metadata>
+
+    <fx:Script>
+      <![CDATA[
+        import mx.collections.ArrayCollection;
+
+        import spark.events.IndexChangeEvent;
+
+        [Bindable]
+        private var locales:ArrayCollection = new ArrayCollection([
+            {label:"US English", locale:"en_US"},
+            {label:"British English", locale:"en_GB,en_US"},
+            {label:"German", locale:"de_DE,en_US"},
+            {label:"Austrian German", locale:"de_AT,de_DE,en_US"}
+        ]);
+
+        private function onLanguageChange(event:IndexChangeEvent):void {
+            resourceManager.localeChain = getLocaleChain(localeSelector.selectedItem.locale);
+        }
+
+        private function getLocaleChain(str:String):Array {
+            var result:Array = [];
+            for each(var locale:String in str.split(",")) {
+                result.push(locale);
+            }
+            return result;
+        }
+
+        ]]>
+   </fx:Script>
+
+    <s:VGroup>
+        <s:ComboBox id="localeSelector" dataProvider="{locales}" change="onLanguageChange(event)"/>
+        <s:Label text="{resourceManager.getString('myresources','hotDrink')}"/>
+        <s:Label text="{resourceManager.getString('myresources','coldDrink')}"/>
+        <s:Label text="{resourceManager.getString('myresources','strangeDrink')}"/>
+    </s:VGroup>
+
+</s:Application>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties
new file mode 100644
index 0000000..c48d822
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_AT/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+hotDrink=Haferl Kaffee
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties
new file mode 100644
index 0000000..ca4e20e
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/de_DE/myresources.properties
@@ -0,0 +1,20 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+hotDrink=Tasse Kaffee
+coldDrink=Bier
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties
new file mode 100644
index 0000000..b020332
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_GB/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+hotDrink=Cup of tee
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties
new file mode 100644
index 0000000..6959d2c
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/swf/src/main/locales/en_US/myresources.properties
@@ -0,0 +1,21 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+hotDrink=Cup of coffee
+coldDrink=Beer
+strangeDrink=Red Bull
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml
new file mode 100644
index 0000000..e837c60
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/pom.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>locale-chains</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>locale-chains-war</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>war</packaging>
+
+    <!--
+        Properties used in the wrapper template, used by maven-war-plugin to
+        perform the filtering.
+    -->
+    <properties>
+        <swf>locale-chains-swf-1.0.0-SNAPSHOT</swf>
+        <width>100%</width>
+        <height>100%</height>
+        <title>My First Application</title>
+        <useBrowserHistory>true</useBrowserHistory>
+        <bgcolor>white</bgcolor>
+        <version_major>10</version_major>
+        <version_minor>2</version_minor>
+        <version_revision>0</version_revision>
+        <expressInstallSwf>expressInstall.swf</expressInstallSwf>
+        <application>application</application>
+    </properties>
+
+    <build>
+        <plugins>
+            <!--
+                Copy all the flex related resources (SWFs, RSLs, ...)
+            -->
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>copy-flex-resources</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.flex</groupId>
+                        <artifactId>compiler</artifactId>
+                        <version>4.14.1</version>
+                        <type>pom</type>
+                    </dependency>
+                </dependencies>
+            </plugin>
+            <!--
+                Builds the war and copies the flex default wrapper template.
+            -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.4</version>
+                <configuration>
+                    <overlays>
+                        <overlay>
+                            <groupId>org.apache.flex.wrapper</groupId>
+                            <artifactId>swfobject</artifactId>
+                            <type>war</type>
+                            <filtered>true</filtered>
+                        </overlay>
+                    </overlays>
+                </configuration>
+            </plugin>
+            <!--
+                Make the war project "runnable" by running mvn jetty:run
+            -->
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>maven-jetty-plugin</artifactId>
+                <version>6.1.17</version>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.flex.examples.i18n</groupId>
+            <artifactId>locale-chains-swf</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <type>swf</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.flex.wrapper</groupId>
+            <artifactId>swfobject</artifactId>
+            <version>4.14.1</version>
+            <type>war</type>
+            <scope>runtime</scope>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..8dd835a
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/locale-chains/war/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         id="WebApp_ID" version="2.5">
+
+    <display-name>war war</display-name>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml
new file mode 100644
index 0000000..26c6cc0
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/pom.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples</groupId>
+        <artifactId>parent</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.flex.examples.i18n</groupId>
+    <artifactId>i18n</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>compiled-locales</module>
+        <module>runtime-locales</module>
+        <module>locale-chains</module>
+    </modules>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml
new file mode 100644
index 0000000..3a3a8d2
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>i18n</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>runtime-locales</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>swf</module>
+        <module>war</module>
+    </modules>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml
new file mode 100644
index 0000000..54818c6
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/pom.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>runtime-locales</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>runtime-locales-swf</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>swf</packaging>
+
+    <build>
+        <sourceDirectory>src/main/flex</sourceDirectory>
+        <plugins>
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <debug>true</debug>
+                    <localesRuntime>
+                        <locale>en_US</locale>
+                        <locale>de_DE</locale>
+                    </localesRuntime>
+                </configuration>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.flex</groupId>
+                        <artifactId>compiler</artifactId>
+                        <version>4.14.1</version>
+                        <type>pom</type>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.flex</groupId>
+            <artifactId>framework</artifactId>
+            <version>4.14.1</version>
+            <type>pom</type>
+        </dependency>
+        <dependency>
+            <groupId>com.adobe.flash.framework</groupId>
+            <artifactId>playerglobal</artifactId>
+            <version>14.0</version>
+            <type>swc</type>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml
new file mode 100644
index 0000000..db86365
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/flex/Main.mxml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+               xmlns:s="library://ns.adobe.com/flex/spark"
+               creationComplete="onCreationComplete(event)">
+
+    <fx:Metadata>
+        [ResourceBundle("myresources")]
+    </fx:Metadata>
+
+    <fx:Script>
+      <![CDATA[
+        import mx.collections.ArrayCollection;
+        import mx.events.FlexEvent;
+        import mx.events.ResourceEvent;
+        import mx.modules.ModuleBase;
+
+        import spark.events.IndexChangeEvent;
+
+        // Actually I don't quite know why I need to do this ...
+        // without it, I get an error, that this class is missing.
+        private var tst:ModuleBase = null;
+
+        [Bindable]
+        private var locales:ArrayCollection = new ArrayCollection([{label: "English", locale: "en_US"},
+            {label: "German", locale: "de_DE"}]);
+
+        private function onCreationComplete(event:FlexEvent):void {
+            if("en" == Capabilities.language) {
+                localeSelector.selectedItem = locales.getItemAt(0);
+            } else if("de" == Capabilities.language) {
+                localeSelector.selectedItem = locales.getItemAt(1);
+            }
+            onLanguageChange();
+        }
+
+        private function onLanguageChange(event:IndexChangeEvent = null):void {
+            var selectedLocale:String = String(localeSelector.selectedItem.locale);
+
+            // Ensure that you are not loading the same resource module more than once.
+            if (resourceManager.getLocales().indexOf(selectedLocale) != -1) {
+                completeHandler(null);
+            } else {
+                var resourceModuleURL:String =
+                        "./locales/runtime-locales-swf-1.0.0-SNAPSHOT-" + selectedLocale + ".swf";
+                var eventDispatcher:IEventDispatcher = resourceManager.loadResourceModule(resourceModuleURL);
+                eventDispatcher.addEventListener(ResourceEvent.COMPLETE, completeHandler);
+            }
+        }
+
+        private function completeHandler(event:ResourceEvent):void {
+            resourceManager.localeChain = [localeSelector.selectedItem.locale];
+        }
+
+        ]]>
+   </fx:Script>
+
+    <s:VGroup>
+        <s:ComboBox id="localeSelector" dataProvider="{locales}" change="onLanguageChange(event)"/>
+        <s:Label text="{resourceManager.getString('myresources','greeting')}"/>
+    </s:VGroup>
+
+</s:Application>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties
new file mode 100644
index 0000000..f792b93
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/de_DE/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+greeting=Hallo Welt!
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties
new file mode 100644
index 0000000..ba8ac99
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/swf/src/main/locales/en_US/myresources.properties
@@ -0,0 +1,19 @@
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+greeting=Hello World!
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml
new file mode 100644
index 0000000..d1d753e
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/pom.xml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.i18n</groupId>
+        <artifactId>runtime-locales</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>runtime-locales-war</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>war</packaging>
+
+    <!--
+        Properties used in the wrapper template, used by maven-war-plugin to
+        perform the filtering.
+    -->
+    <properties>
+        <swf>runtime-locales-swf-1.0.0-SNAPSHOT</swf>
+        <width>100%</width>
+        <height>100%</height>
+        <title>My First Application</title>
+        <useBrowserHistory>true</useBrowserHistory>
+        <bgcolor>white</bgcolor>
+        <version_major>10</version_major>
+        <version_minor>2</version_minor>
+        <version_revision>0</version_revision>
+        <expressInstallSwf>expressInstall.swf</expressInstallSwf>
+        <application>application</application>
+    </properties>
+
+    <build>
+        <plugins>
+            <!--
+                Copy all the flex related resources (SWFs, RSLs, ...)
+            -->
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>copy-flex-resources</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.flex</groupId>
+                        <artifactId>compiler</artifactId>
+                        <version>4.14.1</version>
+                        <type>pom</type>
+                    </dependency>
+                </dependencies>
+            </plugin>
+            <!--
+                Builds the war and copies the flex default wrapper template.
+            -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.4</version>
+                <configuration>
+                    <overlays>
+                        <overlay>
+                            <groupId>org.apache.flex.wrapper</groupId>
+                            <artifactId>swfobject</artifactId>
+                            <type>war</type>
+                            <filtered>true</filtered>
+                        </overlay>
+                    </overlays>
+                </configuration>
+            </plugin>
+            <!--
+                Make the war project "runnable" by running mvn jetty:run
+            -->
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>maven-jetty-plugin</artifactId>
+                <version>6.1.17</version>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.flex.examples.i18n</groupId>
+            <artifactId>runtime-locales-swf</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+            <type>swf</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.flex.wrapper</groupId>
+            <artifactId>swfobject</artifactId>
+            <version>4.14.1</version>
+            <type>war</type>
+            <scope>runtime</scope>
+        </dependency>
+    </dependencies>
+
+</project>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..8dd835a
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/i18n/runtime-locales/war/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         id="WebApp_ID" version="2.5">
+
+    <display-name>war war</display-name>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/mobile/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/mobile/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/mobile/pom.xml
new file mode 100644
index 0000000..44b1683
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/mobile/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples</groupId>
+        <artifactId>parent</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.flex.examples.mobile</groupId>
+    <artifactId>mobile</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>simple-air</module>
+    </modules>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/pom.xml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/pom.xml b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/pom.xml
new file mode 100644
index 0000000..c49e789
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/pom.xml
@@ -0,0 +1,110 @@
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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>
+
+    <parent>
+        <groupId>org.apache.flex.examples.mobile</groupId>
+        <artifactId>mobile</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>simple-air</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>air</packaging>
+
+    <build>
+        <sourceDirectory>src/main/flex</sourceDirectory>
+        <plugins>
+            <plugin>
+                <groupId>net.flexmojos.oss</groupId>
+                <artifactId>flexmojos-maven-plugin</artifactId>
+                <version>7.1.0-SNAPSHOT</version>
+                <extensions>true</extensions>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>sign-air</goal>
+                        </goals>
+                    </execution>
+                </executions>
+
+                <configuration>
+                    <!-- Strangely I get linker errors, if I comment in this line -->
+                    <!--keepGeneratedActionscript>true</keepGeneratedActionscript-->
+
+                    <storepass>flexmojos</storepass>
+                    <descriptorTemplate>${basedir}/src/main/resources/descriptor.xml</descriptorTemplate>
+                    <debug>true</debug>
+                </configuration>
+
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.flex</groupId>
+                        <artifactId>compiler</artifactId>
+                        <version>4.14.1</version>
+                        <type>pom</type>
+                    </dependency>
+                    <dependency>
+                        <groupId>com.adobe.air.compiler</groupId>
+                        <artifactId>adt</artifactId>
+                        <version>17.0</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.flex</groupId>
+            <artifactId>framework</artifactId>
+            <version>4.14.1</version>
+            <type>pom</type>
+        </dependency>
+
+        <!-- Add the components optimized for mobile use -->
+        <dependency>
+            <groupId>org.apache.flex.framework</groupId>
+            <artifactId>mobile</artifactId>
+            <version>4.14.1</version>
+            <type>pom</type>
+        </dependency>
+
+        <!-- Add the default mobile skin -->
+        <dependency>
+            <groupId>org.apache.flex.framework.themes</groupId>
+            <artifactId>mobile</artifactId>
+            <version>4.14.1</version>
+            <type>swc</type>
+            <scope>theme</scope>
+        </dependency>
+
+        <!-- Air runtime dependencies -->
+        <dependency>
+            <groupId>com.adobe.air</groupId>
+            <artifactId>framework</artifactId>
+            <version>17.0</version>
+            <type>pom</type>
+        </dependency>
+    </dependencies>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/air/sign.p12
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/air/sign.p12 b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/air/sign.p12
new file mode 100644
index 0000000..0be9fc3
Binary files /dev/null and b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/air/sign.p12 differ

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/SimpleAirMobileApplication.mxml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/SimpleAirMobileApplication.mxml b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/SimpleAirMobileApplication.mxml
new file mode 100644
index 0000000..09845f7
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/SimpleAirMobileApplication.mxml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:TabbedViewNavigatorApplication
+        xmlns:fx="http://ns.adobe.com/mxml/2009"
+        xmlns:s="library://ns.adobe.com/flex/spark">
+
+    <s:ViewNavigator label="tab1" firstView="tabs.Tab1"/>
+    <s:ViewNavigator label="tab2" firstView="tabs.Tab2"/>
+
+</s:TabbedViewNavigatorApplication>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml
new file mode 100644
index 0000000..dfe492c
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab1.mxml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
+
+  <s:Label text="tab1"/>
+
+</s:View>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/bfa34a48/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml
----------------------------------------------------------------------
diff --git a/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml
new file mode 100644
index 0000000..e3a3783
--- /dev/null
+++ b/flex-maven-tools/maven-flex-plugin/examples/mobile/simple-air/src/main/flex/tabs/Tab2.mxml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
+
+  <s:Label text="tab2"/>
+
+</s:View>