Permalink
Browse files

Use grails-app packaging

Fix pom
Update readme
  • Loading branch information...
1 parent 9d38fcb commit bfb984b67ac9eab0c3110dbf8ff9956dec5313e9 @aeisenberg aeisenberg committed Sep 17, 2012
Showing with 32 additions and 21 deletions.
  1. +3 −3 README.md
  2. +29 −18 src/main/resources/archetype-resources/pom.xml
View
@@ -16,9 +16,9 @@ Where grailsVersion is your grails distribution version, in your terminal/consol
mvn archetype:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=${grailsVersion} -DgroupId=example -DartifactId=my-app -DarchetypeRepository=http://repo.grails.org/grails/core/
mvn initialize
-You can add the following properties to your generate command :
-* -Dtype=plugin to create a grails plugin pom, and -Dbinary=true if you wish your plugin to be packaged as a jar.
-For further usage refer to the Grails documentation on maven : http://grails.org/doc/latest/guide/commandLine.html#4.5 Ant and Maven
+For further usage refer to the Grails documentation on maven : http://grails.org/doc/latest/guide/commandLine.html#antAndMaven
+
+If you want to use a snapshot version of grails-maven-plugin, then you must uncomment the snapshot repositories inside of the generated pom.xml.
License
---
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
- <packaging>war</packaging>
+ <packaging>grails-app</packaging>
<version>${version}</version>
<name>A custom grails project</name>
@@ -122,28 +122,14 @@
<fork></fork>
</configuration>
<extensions>true</extensions>
- <executions>
- <execution>
- <goals>
- <goal>init</goal>
- <goal>maven-clean</goal>
- <goal>validate</goal>
- <goal>config-directories</goal>
- <goal>maven-compile</goal>
- <goal>maven-test</goal>
- <goal>maven-war</goal>
- <goal>maven-functional-test</goal>
- </goals>
- </execution>
- </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>1.6</source>
+ <target>1.6</target>
</configuration>
</plugin>
</plugins>
@@ -159,8 +145,33 @@
<id>grails-plugins</id>
<name>grails-plugins</name>
<url>http://repo.grails.org/grails/plugins</url>
- </repository>
+ </repository>
+ <!-- uncomment the following snapshot repository if you want to use snapshot versions of the grails-maven-plugin -->
+ <!--
+ <repository>
+ <id>grails-plugins-snapshots</id>
+ <name>grails-maven-plugins</name>
+ <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ -->
</repositories>
+
+<!-- uncomment the following snapshot repository if you want to use snapshot versions of the grails-maven-plugin -->
+<!--
+<pluginRepositories>
+ <pluginRepository>
+ <id>grails-maven-plugins</id>
+ <name>grails-maven-plugins</name>
+ <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+</pluginRepositories>
+-->
<profiles>
<profile>

0 comments on commit bfb984b

Please sign in to comment.