- Updated the archetypes
-- Added pure-swf archetype
-- Added pure-js archetype
-- Fixed some issues in the normal application archetype


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/729304cf
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/729304cf
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/729304cf

Branch: refs/heads/feature/fontawesome
Commit: 729304cf2b7014c41540eb32c0e6f5cfab977350
Parents: f79e7ca
Author: Christofer Dutz <[email protected]>
Authored: Wed Jan 4 20:23:21 2017 +0100
Committer: Christofer Dutz <[email protected]>
Committed: Wed Jan 4 20:23:21 2017 +0100

----------------------------------------------------------------------
 .../main/resources/archetype-resources/pom.xml  |  57 +++++++-
 .../pom.xml                                     |  36 +++++
 .../main/resources/META-INF/maven/archetype.xml |  27 ++++
 .../archetype-resources/.mvn/extensions.xml     |  30 ++++
 .../main/resources/archetype-resources/pom.xml  | 141 +++++++++++++++++++
 .../archetype-resources/src/main/flex/App.mxml  |  30 ++++
 .../pom.xml                                     |  42 ++++++
 .../main/resources/META-INF/maven/archetype.xml |  27 ++++
 .../archetype-resources/.mvn/extensions.xml     |  30 ++++
 .../main/resources/archetype-resources/pom.xml  |  84 +++++++++++
 .../archetype-resources/src/main/flex/App.mxml  |  30 ++++
 archetypes/pom.xml                              |   2 +
 12 files changed, 535 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
 
b/archetypes/flexjs-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
index 23392a6..d3930c7 100644
--- 
a/archetypes/flexjs-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
+++ 
b/archetypes/flexjs-simple-application-archetype/src/main/resources/archetype-resources/pom.xml
@@ -27,6 +27,11 @@
   <version>\${version}</version>
   <packaging>swf</packaging>
 
+  <properties>
+    <compiler.debug>true</compiler.debug>
+    <compiler.output-dir>target/javascript/bin/js-debug</compiler.output-dir>
+  </properties>
+
   <build>
     <sourceDirectory>src/main/flex</sourceDirectory>
     <plugins>
@@ -36,7 +41,6 @@
         <version>${flexjs.compiler.version}</version>
         <extensions>true</extensions>
         <configuration>
-          <flashVersion>${flash.version}</flashVersion>
           <mainClass>App.mxml</mainClass>
         </configuration>
         <executions>
@@ -48,6 +52,7 @@
               <goal>compile-app</goal>
             </goals>
             <configuration>
+              <debug>\${compiler.debug}</debug>
               <outputJavaScript>true</outputJavaScript>
             </configuration>
           </execution>
@@ -60,6 +65,46 @@
           </dependency>
         </dependencies>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <version>2.6</version>
+        <executions>
+          <execution>
+            <id>package-javascript</id>
+            <phase>package</phase>
+            <goals>
+              <goal>war</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <warSourceDirectory>\${compiler.output-dir}</warSourceDirectory>
+          <failOnMissingWebXml>false</failOnMissingWebXml>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>1.11</version>
+        <executions>
+          <execution>
+            <id>attach-war</id>
+            <phase>package</phase>
+            <goals>
+              <goal>attach-artifact</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <artifacts>
+            <artifact>
+              <file>target/\${artifactId}-\${version}.war</file>
+              <type>war</type>
+            </artifact>
+          </artifacts>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
@@ -95,4 +140,14 @@
     </dependency>
   </dependencies>
 
+  <profiles>
+    <profile>
+      <id>release</id>
+      <properties>
+        <compiler.debug>false</compiler.debug>
+        
<compiler.output-dir>target/javascript/bin/js-release</compiler.output-dir>
+      </properties>
+    </profile>
+  </profiles>
+
 </project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-js-archetype/pom.xml
----------------------------------------------------------------------
diff --git a/archetypes/flexjs-simple-application-pure-js-archetype/pom.xml 
b/archetypes/flexjs-simple-application-pure-js-archetype/pom.xml
new file mode 100644
index 0000000..9b9ee94
--- /dev/null
+++ b/archetypes/flexjs-simple-application-pure-js-archetype/pom.xml
@@ -0,0 +1,36 @@
+<?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/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.flex.flexjs.framework</groupId>
+    <artifactId>flexjs-maven-archetypes</artifactId>
+    <version>0.8.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>flexjs-simple-application-pure-js-archetype</artifactId>
+  <version>0.8.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>Apache Flex - FlexJS: Framework: Archetypes: Simple FlexJS Pure-JS 
Application</name>
+  <description>Maven archetype for creating FlexJS Maven project for building 
a simple FlexJS application with only JavaScript output.</description>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/META-INF/maven/archetype.xml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/META-INF/maven/archetype.xml
 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/META-INF/maven/archetype.xml
new file mode 100644
index 0000000..e765a36
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+<archetype 
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0";
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+           
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0
 http://maven.apache.org/xsd/archetype-1.0.0.xsd";>
+  <id>flexjs-simple-application-archetype</id>
+  <resources>
+    <resource>src/main/flex/App.mxml</resource>
+  </resources>
+</archetype>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
new file mode 100644
index 0000000..71ce517
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
@@ -0,0 +1,30 @@
+<?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.
+
+-->
+<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0";
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+            xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 
http://maven.apache.org/xsd/core-extensions-1.0.0.xsd";>
+
+    <extension>
+        <groupId>org.apache.flex.utilities.converter</groupId>
+        <artifactId>flex-sdk-converter-maven-extension</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </extension>
+
+</extensions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/pom.xml
 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/pom.xml
new file mode 100644
index 0000000..fb2f161
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,141 @@
+<?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/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>\${groupId}</groupId>
+  <artifactId>\${artifactId}</artifactId>
+  <version>\${version}</version>
+  <packaging>swf</packaging>
+
+  <properties>
+    <compiler.debug>true</compiler.debug>
+    <compiler.output-dir>target/javascript/bin/js-debug</compiler.output-dir>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main/flex</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.flex.flexjs.compiler</groupId>
+        <artifactId>flexjs-maven-plugin</artifactId>
+        <version>${flexjs.compiler.version}</version>
+        <extensions>true</extensions>
+        <configuration>
+          <mainClass>App.mxml</mainClass>
+          <outputJavaScript>true</outputJavaScript>
+          <debug>\${compiler.debug}</debug>
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.flex.flexjs.compiler</groupId>
+            <artifactId>compiler-jx</artifactId>
+            <version>${flexjs.compiler.version}</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <version>2.6</version>
+        <executions>
+          <execution>
+            <id>package-javascript</id>
+            <phase>package</phase>
+            <goals>
+              <goal>war</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <warSourceDirectory>\${compiler.output-dir}</warSourceDirectory>
+          <failOnMissingWebXml>false</failOnMissingWebXml>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>1.11</version>
+        <executions>
+          <execution>
+            <id>attach-war</id>
+            <phase>package</phase>
+            <goals>
+              <goal>attach-artifact</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <artifacts>
+            <artifact>
+              <file>target/\${artifactId}-\${version}.war</file>
+              <type>war</type>
+            </artifact>
+          </artifacts>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.flex.flexjs.framework</groupId>
+      <artifactId>Core</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <type>swc</type>
+    </dependency>
+
+    <!-- Needed for Flash compilation -->
+    <dependency>
+      <groupId>com.adobe.flash.framework</groupId>
+      <artifactId>playerglobal</artifactId>
+      <version>${flash.version}</version>
+      <type>swc</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Needed for JavaScript compilation -->
+    <dependency>
+      <groupId>org.apache.flex.flexjs.framework</groupId>
+      <artifactId>HTML</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <type>swc</type>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.flex.flexjs.framework</groupId>
+      <artifactId>Language</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <type>swc</type>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>release</id>
+      <properties>
+        <compiler.debug>false</compiler.debug>
+        
<compiler.output-dir>target/javascript/bin/js-release</compiler.output-dir>
+      </properties>
+    </profile>
+  </profiles>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
new file mode 100644
index 0000000..70d8d20
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-js-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
@@ -0,0 +1,30 @@
+<?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.
+
+-->
+<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
+                   xmlns:js="library://ns.apache.org/flexjs/basic" >
+    <js:valuesImpl>
+        <js:SimpleCSSValuesImpl />
+    </js:valuesImpl>
+    <js:initialView>
+        <js:View>
+               <js:Label text="Hello World!" />
+        </js:View>
+    </js:initialView>
+</js:Application>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-swf-archetype/pom.xml
----------------------------------------------------------------------
diff --git a/archetypes/flexjs-simple-application-pure-swf-archetype/pom.xml 
b/archetypes/flexjs-simple-application-pure-swf-archetype/pom.xml
new file mode 100644
index 0000000..ccd35c2
--- /dev/null
+++ b/archetypes/flexjs-simple-application-pure-swf-archetype/pom.xml
@@ -0,0 +1,42 @@
+<?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/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.flex.flexjs.framework</groupId>
+    <artifactId>flexjs-maven-archetypes</artifactId>
+    <version>0.8.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>flexjs-simple-application-pure-swf-archetype</artifactId>
+  <version>0.8.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>Apache Flex - FlexJS: Framework: Archetypes: Simple FlexJS Pure-SWF 
Application</name>
+  <description>Maven archetype for creating FlexJS Maven project for building 
a simple FlexJS application with only Flash output.</description>
+
+  <!--
+  mvn archetype:generate -DarchetypeGroupId=org.apache.flex.flexjs.framework 
-DarchetypeArtifactId=flexjs-simple-application-archetype 
-DarchetypeVersion=0.8.0-SNAPSHOT
+  mvn archetype:generate -DarchetypeGroupId=org.apache.flex.flexjs.framework 
-DarchetypeArtifactId=flexjs-simple-pure-js-application-archetype 
-DarchetypeVersion=0.8.0-SNAPSHOT
+  mvn archetype:generate -DarchetypeGroupId=org.apache.flex.flexjs.framework 
-DarchetypeArtifactId=flexjs-simple-pure-swf-application-archetype 
-DarchetypeVersion=0.8.0-SNAPSHOT
+  -->
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/META-INF/maven/archetype.xml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/META-INF/maven/archetype.xml
 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/META-INF/maven/archetype.xml
new file mode 100644
index 0000000..e765a36
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+<archetype 
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0";
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+           
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0
 http://maven.apache.org/xsd/archetype-1.0.0.xsd";>
+  <id>flexjs-simple-application-archetype</id>
+  <resources>
+    <resource>src/main/flex/App.mxml</resource>
+  </resources>
+</archetype>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
new file mode 100644
index 0000000..71ce517
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/.mvn/extensions.xml
@@ -0,0 +1,30 @@
+<?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.
+
+-->
+<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0";
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+            xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 
http://maven.apache.org/xsd/core-extensions-1.0.0.xsd";>
+
+    <extension>
+        <groupId>org.apache.flex.utilities.converter</groupId>
+        <artifactId>flex-sdk-converter-maven-extension</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </extension>
+
+</extensions>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/pom.xml
 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/pom.xml
new file mode 100644
index 0000000..36e9c57
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,84 @@
+<?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/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>\${groupId}</groupId>
+  <artifactId>\${artifactId}</artifactId>
+  <version>\${version}</version>
+  <packaging>swf</packaging>
+
+  <build>
+    <sourceDirectory>src/main/flex</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.flex.flexjs.compiler</groupId>
+        <artifactId>flexjs-maven-plugin</artifactId>
+        <version>${flexjs.compiler.version}</version>
+        <extensions>true</extensions>
+        <configuration>
+          <mainClass>App.mxml</mainClass>
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.flex.flexjs.compiler</groupId>
+            <artifactId>compiler-jx</artifactId>
+            <version>${flexjs.compiler.version}</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.flex.flexjs.framework</groupId>
+      <artifactId>Core</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <type>swc</type>
+    </dependency>
+
+    <!-- Needed for Flash compilation -->
+    <dependency>
+      <groupId>com.adobe.flash.framework</groupId>
+      <artifactId>playerglobal</artifactId>
+      <version>${flash.version}</version>
+      <type>swc</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Needed for JavaScript compilation -->
+    <dependency>
+      <groupId>org.apache.flex.flexjs.framework</groupId>
+      <artifactId>HTML</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <type>swc</type>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.flex.flexjs.framework</groupId>
+      <artifactId>Language</artifactId>
+      <version>0.8.0-SNAPSHOT</version>
+      <type>swc</type>
+    </dependency>
+  </dependencies>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
----------------------------------------------------------------------
diff --git 
a/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
new file mode 100644
index 0000000..70d8d20
--- /dev/null
+++ 
b/archetypes/flexjs-simple-application-pure-swf-archetype/src/main/resources/archetype-resources/src/main/flex/App.mxml
@@ -0,0 +1,30 @@
+<?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.
+
+-->
+<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
+                   xmlns:js="library://ns.apache.org/flexjs/basic" >
+    <js:valuesImpl>
+        <js:SimpleCSSValuesImpl />
+    </js:valuesImpl>
+    <js:initialView>
+        <js:View>
+               <js:Label text="Hello World!" />
+        </js:View>
+    </js:initialView>
+</js:Application>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/729304cf/archetypes/pom.xml
----------------------------------------------------------------------
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index f56130c..294f1c1 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -35,6 +35,8 @@
 
   <modules>
     <module>flexjs-simple-application-archetype</module>
+    <module>flexjs-simple-application-pure-js-archetype</module>
+    <module>flexjs-simple-application-pure-swf-archetype</module>
     <module>flexjs-simple-library-archetype</module>
   </modules>
 

Reply via email to