Commits

Eugene Veretennikov committed ab980c5

optimize pom structure

  • Participants
  • Parent commits c0bcb6f

Comments (0)

Files changed (7)

File as3corelib/pom.xml

 <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>as3deps</groupId>
-    <artifactId>as3corelib</artifactId>
-    <packaging>swc</packaging>
-    <version>0.93.0-SNAPSHOT</version>
-    <name>as3corelib</name>
-    <url>https://github.com/mikechambers/as3corelib</url>
-
     <parent>
         <groupId>as3deps</groupId>
         <artifactId>as3deps</artifactId>
-        <version>0.1</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
+    <artifactId>as3corelib</artifactId>
+    <version>0.93.0-SNAPSHOT</version>
+    <packaging>swc</packaging>
+    <name>as3corelib</name>
+    <url>https://github.com/mikechambers/as3corelib</url>
+
     <build>
         <sourceDirectory>src</sourceDirectory>
         <plugins>
             <plugin>
                 <groupId>org.sonatype.flexmojos</groupId>
                 <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <extensions>true</extensions>
-                <configuration>
-                    <configurationReport>true</configurationReport>
-                    <coverageViewerPath/>
-                    <storepass/>
-                    <warnings>
-                        <no-constructor>false</no-constructor>
-                    </warnings>
-                </configuration>
-
                 <dependencies>
                     <dependency>
-                        <groupId>com.adobe.flex</groupId>
-                        <artifactId>compiler</artifactId>
-                        <version>${flexversion}</version>
-                        <type>pom</type>
-                    </dependency>
-                    <dependency>
                         <groupId>com.adobe.flex.compiler</groupId>
                         <artifactId>adt</artifactId>
-                        <version>${flexversion}</version>
+                        <version>${flex.version}</version>
                         <scope>compile</scope>
                     </dependency>
                 </dependencies>
             </plugin>
-            <plugin>
-                <groupId>org.sonatype.flexmojos</groupId>
-                <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>sources</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.codehaus.plexus</groupId>
-                        <artifactId>plexus-archiver</artifactId>
-                        <version>1.0</version>
-                    </dependency>
-                </dependencies>
-            </plugin>
         </plugins>
     </build>
     <dependencies>
             <groupId>com.adobe.flex.framework</groupId>
             <artifactId>air-framework</artifactId>
             <scope>compile</scope>
-            <version>${flexversion}</version>
-            <type>pom</type>
-        </dependency>
-        <dependency>
-            <groupId>com.adobe.flex.framework</groupId>
-            <artifactId>flex-framework</artifactId>
-            <scope>compile</scope>
-            <version>${flexversion}</version>
+            <version>${flex.version}</version>
             <type>pom</type>
         </dependency>
     </dependencies>

File as3signals/pom.xml

 <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>as3deps</groupId>
-    <artifactId>as3signals</artifactId>
-    <packaging>swc</packaging>
-    <version>0.0.1-SNAPSHOT</version>
-    <name>as3signals</name>
-    <url>https://github.com/robertpenner/as3-signals</url>
-
     <parent>
         <groupId>as3deps</groupId>
         <artifactId>as3deps</artifactId>
-        <version>0.1</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
+    <artifactId>as3signals</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>swc</packaging>
+    <name>as3signals</name>
+    <url>https://github.com/robertpenner/as3-signals</url>
     <build>
         <sourceDirectory>src</sourceDirectory>
         <plugins>
             <plugin>
                 <groupId>org.sonatype.flexmojos</groupId>
                 <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <extensions>true</extensions>
-                <configuration>
-                    <configurationReport>true</configurationReport>
-                    <coverageViewerPath/>
-                    <storepass/>
-                </configuration>
-
-                <dependencies>
-                    <dependency>
-                        <groupId>com.adobe.flex</groupId>
-                        <artifactId>compiler</artifactId>
-                        <version>${flexversion}</version>
-                        <type>pom</type>
-                    </dependency>
-                </dependencies>
-            </plugin>
-            <plugin>
-                <groupId>org.sonatype.flexmojos</groupId>
-                <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>sources</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.codehaus.plexus</groupId>
-                        <artifactId>plexus-archiver</artifactId>
-                        <version>1.0</version>
-                    </dependency>
-                </dependencies>
             </plugin>
         </plugins>
     </build>
-    <dependencies>
-        <dependency>
-            <groupId>com.adobe.flex.framework</groupId>
-            <artifactId>flex-framework</artifactId>
-            <scope>compile</scope>
-            <version>${flexversion}</version>
-            <type>pom</type>
-        </dependency>
-    </dependencies>
 </project>

File minimalcomps/pom.xml

 <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>as3deps</groupId>
-    <artifactId>minimalcomps</artifactId>
-    <packaging>swc</packaging>
-    <version>0.9.10-SNAPSHOT</version>
-    <name>minimalcomps</name>
-    <url>http://code.google.com/p/minimalcomps/</url>
-
     <parent>
         <groupId>as3deps</groupId>
         <artifactId>as3deps</artifactId>
-        <version>0.1</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
+    <artifactId>minimalcomps</artifactId>
+    <version>0.9.10-SNAPSHOT</version>
+    <packaging>swc</packaging>
+    <name>minimalcomps</name>
+    <url>http://code.google.com/p/minimalcomps/</url>
+
     <build>
         <sourceDirectory>src</sourceDirectory>
         <plugins>
             <plugin>
                 <groupId>org.sonatype.flexmojos</groupId>
                 <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <extensions>true</extensions>
-                <configuration>
-                    <configurationReport>true</configurationReport>
-                    <coverageViewerPath/>
-                    <storepass/>
-                </configuration>
-
-                <dependencies>
-                    <dependency>
-                        <groupId>com.adobe.flex</groupId>
-                        <artifactId>compiler</artifactId>
-                        <version>${flexversion}</version>
-                        <type>pom</type>
-                    </dependency>
-                </dependencies>
-            </plugin>
-            <plugin>
-                <groupId>org.sonatype.flexmojos</groupId>
-                <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>sources</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.codehaus.plexus</groupId>
-                        <artifactId>plexus-archiver</artifactId>
-                        <version>1.0</version>
-                    </dependency>
-                </dependencies>
             </plugin>
         </plugins>
     </build>
-    <dependencies>
-        <dependency>
-            <groupId>com.adobe.flex.framework</groupId>
-            <artifactId>flex-framework</artifactId>
-            <scope>compile</scope>
-            <version>${flexversion}</version>
-            <type>pom</type>
-        </dependency>
-    </dependencies>
 </project>
     <modelVersion>4.0.0</modelVersion>
     <groupId>as3deps</groupId>
     <artifactId>as3deps</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
     <packaging>pom</packaging>
-    <version>0.1</version>
-    <name>ActionScript 3 Dependencies</name>
+    <name>as3deps - Collection of helpful ActionScript libraries</name>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <flexversion>4.1.0.16248</flexversion>
-        <mojoversion>3.6.1</mojoversion>
+        <flex.version>4.1.0.16248</flex.version>
+        <flexmojos.version>3.8</flexmojos.version>
+        <flexunit.version>4.0-rc-1</flexunit.version>
+        <flashplayer.version>10.0</flashplayer.version>
     </properties>
 
     <modules>
         <module>minimalcomps</module>
     </modules>
 
+    <build>
+        <pluginManagement>
+            <plugins>
+                <!-- Configuration for swc and swf builds -->
+                <plugin>
+                    <groupId>org.sonatype.flexmojos</groupId>
+                    <artifactId>flexmojos-maven-plugin</artifactId>
+                    <version>${flexmojos.version}</version>
+                    <extensions>true</extensions>
+
+                    <configuration>
+                        <debug>true</debug>
+                        <targetPlayer>${flashplayer.version}</targetPlayer>
+                        <configurationReport>true</configurationReport>
+                        <warnings>
+                            <noConstructor>false</noConstructor>
+                        </warnings>
+                    </configuration>
+
+                    <executions>
+                        <execution>
+                            <id>1</id>
+                            <phase>compile-swc</phase>
+                            <goals>
+                                <goal>compile-swc</goal>
+                            </goals>
+                        </execution>
+                        <execution>
+                            <id>2</id>
+                            <phase>compile-swf</phase>
+                            <goals>
+                                <goal>compile-swf</goal>
+                            </goals>
+                        </execution>
+                        <execution>
+                            <id>3</id>
+                            <goals>
+                                <goal>sources</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+
+                    <dependencies>
+                        <dependency>
+                            <groupId>com.adobe.flex</groupId>
+                            <artifactId>compiler</artifactId>
+                            <version>${flex.version}</version>
+                            <type>pom</type>
+                        </dependency>
+                        <dependency>
+                            <groupId>org.codehaus.plexus</groupId>
+                            <artifactId>plexus-archiver</artifactId>
+                            <version>1.0</version>
+                        </dependency>
+                    </dependencies>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.adobe.flex.framework</groupId>
+            <artifactId>flex-framework</artifactId>
+            <version>${flex.version}</version>
+            <type>pom</type>
+        </dependency>
+
+        <dependency>
+            <groupId>com.adobe.flexunit</groupId>
+            <artifactId>flexunit</artifactId>
+            <version>${flexunit.version}</version>
+            <type>swc</type>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
     <repositories>
         <repository>
-            <id>flexmojos-repository</id>
+            <id>flex-mojos-repository</id>
             <url>http://repository.sonatype.org/content/groups/flexgroup//</url>
         </repository>
     </repositories>
     <pluginRepositories>
         <pluginRepository>
-            <id>flexmojos-repository</id>
-            <url>http://repository.sonatype.org/content/groups/flexgroup//</url>
+            <id>flex-mojos-repository</id>
+            <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
         </pluginRepository>
     </pluginRepositories>
 

File protobuf/pom.xml

 <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>as3deps</groupId>
-    <artifactId>protobuf</artifactId>
-    <packaging>swc</packaging>
-    <version>1.0.0_rc3</version>
-    <name>protobuf</name>
-    <url>http://code.google.com/p/protoc-gen-as3/</url>
-
     <parent>
         <groupId>as3deps</groupId>
         <artifactId>as3deps</artifactId>
-        <version>0.1</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
+    <artifactId>protobuf</artifactId>
+    <version>1.0.0_rc3</version>
+    <packaging>swc</packaging>
+    <name>protobuf</name>
+    <url>http://code.google.com/p/protoc-gen-as3/</url>
+
     <build>
         <sourceDirectory>src</sourceDirectory>
         <plugins>
             <plugin>
                 <groupId>org.sonatype.flexmojos</groupId>
                 <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <extensions>true</extensions>
-                <configuration>
-                    <configurationReport>true</configurationReport>
-                    <coverageViewerPath/>
-                    <storepass/>
-                </configuration>
-
-                <dependencies>
-                    <dependency>
-                        <groupId>com.adobe.flex</groupId>
-                        <artifactId>compiler</artifactId>
-                        <version>${flexversion}</version>
-                        <type>pom</type>
-                    </dependency>
-                </dependencies>
-            </plugin>
-            <plugin>
-                <groupId>org.sonatype.flexmojos</groupId>
-                <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>sources</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.codehaus.plexus</groupId>
-                        <artifactId>plexus-archiver</artifactId>
-                        <version>1.0</version>
-                    </dependency>
-                </dependencies>
             </plugin>
         </plugins>
     </build>
-    <dependencies>
-        <dependency>
-            <groupId>com.adobe.flex.framework</groupId>
-            <artifactId>flex-framework</artifactId>
-            <scope>compile</scope>
-            <version>${flexversion}</version>
-            <type>pom</type>
-        </dependency>
-    </dependencies>
 </project>

File robotlegs/pom.xml

 <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>as3deps</groupId>
-    <artifactId>robotlegs</artifactId>
-    <packaging>swc</packaging>
-    <version>1.4.0-SNAPSHOT</version>
-    <name>robotlegs</name>
-    <url>http://robotlegs.org</url>
-
     <parent>
         <groupId>as3deps</groupId>
         <artifactId>as3deps</artifactId>
-        <version>0.1</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
+    <artifactId>robotlegs</artifactId>
+    <version>1.4.0-SNAPSHOT</version>
+    <packaging>swc</packaging>
+    <name>robotlegs</name>
+    <url>http://robotlegs.org</url>
+
     <build>
         <sourceDirectory>src</sourceDirectory>
         <plugins>
             <plugin>
                 <groupId>org.sonatype.flexmojos</groupId>
                 <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <extensions>true</extensions>
-                <configuration>
-                    <configurationReport>true</configurationReport>
-                    <coverageViewerPath/>
-                    <storepass/>
-                    <keepAs3Metadatas>
-                        <name>Inject</name>
-                        <name>PostConstruct</name>
-                    </keepAs3Metadatas>
-                </configuration>
-
-                <dependencies>
-                    <dependency>
-                        <groupId>com.adobe.flex</groupId>
-                        <artifactId>compiler</artifactId>
-                        <version>${flexversion}</version>
-                        <type>pom</type>
-                    </dependency>
-                </dependencies>
-            </plugin>
-            <plugin>
-                <groupId>org.sonatype.flexmojos</groupId>
-                <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>sources</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.codehaus.plexus</groupId>
-                        <artifactId>plexus-archiver</artifactId>
-                        <version>1.0</version>
-                    </dependency>
-                </dependencies>
             </plugin>
         </plugins>
     </build>
             <version>1.5.1-SNAPSHOT</version>
             <type>swc</type>
         </dependency>
-        <dependency>
-            <groupId>com.adobe.flex.framework</groupId>
-            <artifactId>flex-framework</artifactId>
-            <scope>compile</scope>
-            <version>${flexversion}</version>
-            <type>pom</type>
-        </dependency>
     </dependencies>
 </project>

File swiftsuspenders/pom.xml

 <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>as3deps</groupId>
-    <artifactId>swiftsuspenders</artifactId>
-    <packaging>swc</packaging>
-    <version>1.5.1-SNAPSHOT</version>
-    <name>swiftsuspenders</name>
-    <url>http://swiftsuspenders.org</url>
-
     <parent>
         <groupId>as3deps</groupId>
         <artifactId>as3deps</artifactId>
-        <version>0.1</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
+    <artifactId>swiftsuspenders</artifactId>
+    <version>1.5.1-SNAPSHOT</version>
+    <packaging>swc</packaging>
+    <name>swiftsuspenders</name>
+    <url>http://swiftsuspenders.org</url>
+
     <build>
         <sourceDirectory>src</sourceDirectory>
         <plugins>
             <plugin>
                 <groupId>org.sonatype.flexmojos</groupId>
                 <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <extensions>true</extensions>
-                <configuration>
-                    <configurationReport>true</configurationReport>
-                    <coverageViewerPath/>
-                    <storepass/>
-                    <keepAs3Metadatas>
-                        <name>Inject</name>
-                        <name>PostConstruct</name>
-                    </keepAs3Metadatas>
-                </configuration>
-
-                <dependencies>
-                    <dependency>
-                        <groupId>com.adobe.flex</groupId>
-                        <artifactId>compiler</artifactId>
-                        <version>${flexversion}</version>
-                        <type>pom</type>
-                    </dependency>
-                </dependencies>
-            </plugin>
-            <plugin>
-                <groupId>org.sonatype.flexmojos</groupId>
-                <artifactId>flexmojos-maven-plugin</artifactId>
-                <version>${mojoversion}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>sources</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.codehaus.plexus</groupId>
-                        <artifactId>plexus-archiver</artifactId>
-                        <version>1.0</version>
-                    </dependency>
-                </dependencies>
             </plugin>
         </plugins>
     </build>
-    <dependencies>
-        <dependency>
-            <groupId>com.adobe.flex.framework</groupId>
-            <artifactId>flex-framework</artifactId>
-            <scope>compile</scope>
-            <version>${flexversion}</version>
-            <type>pom</type>
-        </dependency>
-    </dependencies>
 </project>