Author: kmorin Date: 2009-08-26 12:27:48 +0200 (Wed, 26 Aug 2009) New Revision: 1585 Added: trunk/maven-guix-swing-archetype/ trunk/maven-guix-swing-archetype/pom.xml trunk/maven-guix-swing-archetype/src/ trunk/maven-guix-swing-archetype/src/main/ trunk/maven-guix-swing-archetype/src/main/java/ trunk/maven-guix-swing-archetype/src/main/resources/ trunk/maven-guix-swing-archetype/src/main/resources/META-INF/ trunk/maven-guix-swing-archetype/src/main/resources/META-INF/maven/ trunk/maven-guix-swing-archetype/src/main/resources/META-INF/maven/archetype.xml trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/pom.xml trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/main/ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/main/java/ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/main/java/myApp.guix trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/main/resources/ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/test/ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/test/java/ trunk/maven-guix-swing-archetype/src/test/ trunk/maven-guix-swing-archetype/src/test/java/ Log: Create the archetype to generate a new Guix project for swing Property changes on: trunk/maven-guix-swing-archetype ___________________________________________________________________ Added: svn:ignore + target Added: trunk/maven-guix-swing-archetype/pom.xml =================================================================== --- trunk/maven-guix-swing-archetype/pom.xml (rev 0) +++ trunk/maven-guix-swing-archetype/pom.xml 2009-08-26 10:27:48 UTC (rev 1585) @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>guix</artifactId> + <groupId>org.nuiton</groupId> + <version>1.0.0-SNAPSHOT</version> + </parent> + <name>${artifactId}</name> + <groupId>org.nuiton.guix</groupId> + <artifactId>maven-guix-swing-archetype</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>jar</packaging> +</project> \ No newline at end of file Added: trunk/maven-guix-swing-archetype/src/main/resources/META-INF/maven/archetype.xml =================================================================== --- trunk/maven-guix-swing-archetype/src/main/resources/META-INF/maven/archetype.xml (rev 0) +++ trunk/maven-guix-swing-archetype/src/main/resources/META-INF/maven/archetype.xml 2009-08-26 10:27:48 UTC (rev 1585) @@ -0,0 +1,6 @@ +<archetype> + <id>maven-guix-swing-archetype</id> + <sources> + <source>src/main/java/myApp.guix</source> + </sources> +</archetype> Added: trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/pom.xml =================================================================== --- trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/pom.xml (rev 0) +++ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/pom.xml 2009-08-26 10:27:48 UTC (rev 1585) @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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> + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + <parent> + <groupId>org.nuiton</groupId> + <artifactId>mavenpom</artifactId> + <version>1.0.1</version> + </parent> + + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <version>${version}</version> + + <dependencies> + <dependency> + <groupId>org.nuiton.guix</groupId> + <artifactId>maven-guix-plugin</artifactId> + <version>${version}</version> + </dependency> + </dependencies> + + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + <name>${artifactId}</name> + <description></description> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>jar</packaging> + + <properties> + <maven.jar.main.class>${groupId}.Main</maven.jar.main.class> + </properties> + + + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <build> + <resources> + <resource> + <directory>src/main/java</directory> + <includes> + <include>**/*.guix</include> + <include>**/*.jaxx</include> + </includes> + </resource> + <resource> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + </resources> + + <pluginManagement> + <plugins> + + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <classpathPrefix>./lib/</classpathPrefix> + </manifest> + </archive> + </configuration> + </plugin> + + </plugins> + + </pluginManagement> + <plugins> + + <plugin> + <groupId>org.nuiton.guix</groupId> + <artifactId>maven-guix-plugin</artifactId> + <version>1.0.0-SNAPSHOT</version> + <configuration> + <targetDirectory>target/generatedFiles/</targetDirectory> + <guixFilesBaseDir>src/main/java</guixFilesBaseDir> + <guixFilesDir>src/main/java</guixFilesDir> + <mainClass>${groupId}.myApp</mainClass> + <launcherName>Main</launcherName> + <generationLanguage>Swing</generationLanguage> + </configuration> + <executions> + <execution> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <artifactId>maven-dependency-plugin</artifactId> + <configuration> + <outputDirectory>${project.build.directory}/lib</outputDirectory> + </configuration> + </plugin> + + </plugins> + </build> + +</project> Added: trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/main/java/myApp.guix =================================================================== --- trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/main/java/myApp.guix (rev 0) +++ trunk/maven-guix-swing-archetype/src/main/resources/archetype-resources/src/main/java/myApp.guix 2009-08-26 10:27:48 UTC (rev 1585) @@ -0,0 +1,3 @@ +<Application title="myApp" size="200,100"> + <Label text="Hello world" /> +</Application> \ No newline at end of file