Author: kmorin Date: 2009-08-26 12:28:12 +0200 (Wed, 26 Aug 2009) New Revision: 1586 Added: trunk/maven-guix-gwt-archetype/ trunk/maven-guix-gwt-archetype/pom.xml trunk/maven-guix-gwt-archetype/src/ trunk/maven-guix-gwt-archetype/src/main/ trunk/maven-guix-gwt-archetype/src/main/java/ trunk/maven-guix-gwt-archetype/src/main/resources/ trunk/maven-guix-gwt-archetype/src/main/resources/META-INF/ trunk/maven-guix-gwt-archetype/src/main/resources/META-INF/maven/ trunk/maven-guix-gwt-archetype/src/main/resources/META-INF/maven/archetype.xml trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/pom.xml trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/java/ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/java/client/ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/java/client/myApp.guix trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/resources/ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/test/ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/test/java/ trunk/maven-guix-gwt-archetype/src/test/ trunk/maven-guix-gwt-archetype/src/test/java/ trunk/maven-guix-gwt-archetype/src/test/resources/ Log: Create the archetype to generate a new Guix project for Gwt Property changes on: trunk/maven-guix-gwt-archetype ___________________________________________________________________ Added: svn:ignore + target Added: trunk/maven-guix-gwt-archetype/pom.xml =================================================================== --- trunk/maven-guix-gwt-archetype/pom.xml (rev 0) +++ trunk/maven-guix-gwt-archetype/pom.xml 2009-08-26 10:28:12 UTC (rev 1586) @@ -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-gwt-archetype</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>jar</packaging> +</project> Added: trunk/maven-guix-gwt-archetype/src/main/resources/META-INF/maven/archetype.xml =================================================================== --- trunk/maven-guix-gwt-archetype/src/main/resources/META-INF/maven/archetype.xml (rev 0) +++ trunk/maven-guix-gwt-archetype/src/main/resources/META-INF/maven/archetype.xml 2009-08-26 10:28:12 UTC (rev 1586) @@ -0,0 +1,6 @@ +<archetype> + <id>maven-guix-swing-archetype</id> + <sources> + <source>src/main/java/client/myApp.guix</source> + </sources> +</archetype> Added: trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/pom.xml =================================================================== --- trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/pom.xml (rev 0) +++ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/pom.xml 2009-08-26 10:28:12 UTC (rev 1586) @@ -0,0 +1,295 @@ +<?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> + + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-servlet</artifactId> + <version>${gwt.version}</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-user</artifactId> + <version>${gwt.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-dev</artifactId> + <version>${gwt.version}</version> + <type>zip</type> + <classifier>${platform}-libs</classifier> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-dev</artifactId> + <version>${gwt.version}</version> + <classifier>${platform}</classifier> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>com.google.code.gwtx</groupId> + <artifactId>gwtx</artifactId> + <version>1.5.0</version> + </dependency> + + <dependency> + <groupId>net.sf.gwt-widget</groupId> + <artifactId>gwt-widgets</artifactId> + <version>0.2.0</version> + </dependency> + + <dependency> + <groupId>com.google.code.gwt-math</groupId> + <artifactId>gwt-math</artifactId> + <version>2.0.3</version> + </dependency> + + <dependency> + <groupId>com.google.code.gwtx</groupId> + <artifactId>gwtx</artifactId> + <version>1.5.0</version> + </dependency> + </dependencies> + + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + <name>${artifactId}</name> + <description></description> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>war</packaging> + + <properties> + <gwt.version>1.7.0</gwt.version> + </properties> + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <build> + <resources> + <resource> + <directory>src/main/java</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <directory>target/generatedFiles/java</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.mortbay.jetty</groupId> + <artifactId>maven-jetty-plugin</artifactId> + </plugin> + + <!-- configure the GWT-Maven plugin --> + <plugin> + <groupId>com.totsp.gwt</groupId> + <artifactId>maven-googlewebtoolkit2-plugin</artifactId> + <version>2.0-RC1</version> + <configuration> + <logLevel>INFO</logLevel> + <compileTargets> + <value>${groupId}.Index</value> + </compileTargets> + <runTarget>${groupId}.Index/Index.html</runTarget> + <style>DETAILED</style> + <noServer>false</noServer> + <extraJvmArgs>-Xmx512m</extraJvmArgs> + <!-- this parameter is VERY important with automatic mode - has to match the version in your declared deps --> + <!-- if this does not match (default if left out is 1.5.3) you will have mysterious errors --> + <gwtVersion>${gwt.version}</gwtVersion> + </configuration> + <executions> + <execution> + <goals> + <goal>compile</goal> + </goals> + </execution> + </executions> + </plugin> + <!-- Use the dependency plugin to unpack gwt-dev-PLATFORM-libs.zip --> + <!-- + (this is a replacement for the old "automatic" mode - useful if you + don't have GWT installed already, or you just want a maven way to + handle gwt deps) + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>unpack</id> + <phase>compile</phase> + <goals> + <goal>unpack</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-dev</artifactId> + <version>${gwt.version}</version> + <classifier>${platform}-libs</classifier> + <type>zip</type> + <overWrite>false</overWrite> + <outputDirectory>${settings.localRepository}/com/google/gwt/gwt-dev/${gwt.version}</outputDirectory> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + <!-- + If you want to use the target/web.xml file mergewebxml produces, + tell the war plugin to use it. + Also, exclude what you want from the final artifact here. + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <configuration> + <warSourceDirectory>target/generatedFiles/webapp</warSourceDirectory> + <warSourceExcludes>.gwt-tmp/**</warSourceExcludes> + </configuration> + </plugin> + + <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}.client.myApp</mainClass> + <launcherName>${groupId}.Index</launcherName> + <generationLanguage>GWT</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> + + <profiles> + <profile> + <id>gwt-dev-windows</id> + <properties> + <platform>windows</platform> + </properties> + <activation> + <activeByDefault>true</activeByDefault> + <os> + <family>windows</family> + </os> + </activation> + </profile> + <profile> + <id>gwt-dev-mac</id> + <properties> + <platform>mac</platform> + </properties> + <activation> + <activeByDefault>false</activeByDefault> + <os> + <family>mac</family> + </os> + </activation> + </profile> + <profile> + <id>gwt-dev-linux</id> + <activation> + <activeByDefault>true</activeByDefault> + <os> + <name>Linux</name> + </os> + </activation> + <properties> + <platform>linux</platform> + </properties> + </profile> + </profiles> + + <repositories> + <repository> + <id>gwt-maven</id> + <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>gwt-maven-plugins</id> + <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url> + </pluginRepository> + </pluginRepositories> +</project> Added: trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/java/client/myApp.guix =================================================================== --- trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/java/client/myApp.guix (rev 0) +++ trunk/maven-guix-gwt-archetype/src/main/resources/archetype-resources/src/main/java/client/myApp.guix 2009-08-26 10:28:12 UTC (rev 1586) @@ -0,0 +1,3 @@ +<Application title="myApp"> + <Label text="Hello world" /> +</Application> \ No newline at end of file