Permalink
Browse files

Initial import of plugin source.

git-svn-id: https://svn.codehaus.org/grails/trunk@7522 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
  • Loading branch information...
pledbrook
pledbrook committed Nov 6, 2008
0 parents commit 2308f54c1c5f3f8957151b4499751da2279653f0
Showing with 5,134 additions and 0 deletions.
  1. +356 −0 pom.xml
  2. +335 −0 src/main/java/com/octo/mtg/plugin/AbstractGrailsMojo.java
  3. +107 −0 src/main/java/com/octo/mtg/plugin/CreatePomMojo.java
  4. +40 −0 src/main/java/com/octo/mtg/plugin/GrailsCleanMojo.java
  5. +46 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateAppMojo.java
  6. +48 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateControllerMojo.java
  7. +45 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateDomainClassMojo.java
  8. +48 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateIntegrationTestMojo.java
  9. +45 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateScriptMojo.java
  10. +45 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateServiceMojo.java
  11. +44 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateTaglibMojo.java
  12. +47 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateUnitTestMojo.java
  13. +45 −0 src/main/java/com/octo/mtg/plugin/GrailsCreateWebTestMojo.java
  14. +46 −0 src/main/java/com/octo/mtg/plugin/GrailsGenerateAllMojo.java
  15. +44 −0 src/main/java/com/octo/mtg/plugin/GrailsGenerateControllerMojo.java
  16. +45 −0 src/main/java/com/octo/mtg/plugin/GrailsGenerateViewsMojo.java
  17. +36 −0 src/main/java/com/octo/mtg/plugin/GrailsInstallTemplatesMojo.java
  18. +37 −0 src/main/java/com/octo/mtg/plugin/GrailsPackageMojo.java
  19. +67 −0 src/main/java/com/octo/mtg/plugin/GrailsPackagePluginMojo.java
  20. +36 −0 src/main/java/com/octo/mtg/plugin/GrailsRunAppHttpsMojo.java
  21. +36 −0 src/main/java/com/octo/mtg/plugin/GrailsRunAppMojo.java
  22. +36 −0 src/main/java/com/octo/mtg/plugin/GrailsRunWebTestMojo.java
  23. +36 −0 src/main/java/com/octo/mtg/plugin/GrailsTestAppMojo.java
  24. +36 −0 src/main/java/com/octo/mtg/plugin/GrailsWarMojo.java
  25. +43 −0 src/main/java/com/octo/mtg/plugin/MvnCleanMojo.java
  26. +43 −0 src/main/java/com/octo/mtg/plugin/MvnCompileMojo.java
  27. +74 −0 src/main/java/com/octo/mtg/plugin/MvnConfigDirectoriesMojo.java
  28. +109 −0 src/main/java/com/octo/mtg/plugin/MvnCopyDependenciesMojo.java
  29. +50 −0 src/main/java/com/octo/mtg/plugin/MvnRunWebTestMojo.java
  30. +78 −0 src/main/java/com/octo/mtg/plugin/MvnTestAppMojo.java
  31. +138 −0 src/main/java/com/octo/mtg/plugin/MvnValidateMojo.java
  32. +100 −0 src/main/java/com/octo/mtg/plugin/MvnWarMojo.java
  33. +49 −0 src/main/java/com/octo/mtg/plugin/package.html
  34. +362 −0 src/main/java/com/octo/mtg/plugin/tools/DefaultGrailsServices.java
  35. +69 −0 src/main/java/com/octo/mtg/plugin/tools/DefaultMojoServices.java
  36. +100 −0 src/main/java/com/octo/mtg/plugin/tools/DefaultPomServices.java
  37. +37 −0 src/main/java/com/octo/mtg/plugin/tools/GrailsPluginProject.java
  38. +56 −0 src/main/java/com/octo/mtg/plugin/tools/GrailsProject.java
  39. +128 −0 src/main/java/com/octo/mtg/plugin/tools/GrailsServices.java
  40. +36 −0 src/main/java/com/octo/mtg/plugin/tools/MojoServices.java
  41. +65 −0 src/main/java/com/octo/mtg/plugin/tools/PomServices.java
  42. +108 −0 src/main/java/com/octo/mtg/plugin/tools/RawStreamPumper.java
  43. +24 −0 src/main/java/com/octo/mtg/plugin/tools/package.html
  44. +36 −0 src/site/apt/examples/create-a-grails-app.apt
  45. +31 −0 src/site/apt/examples/mavenize-a-grails-app.apt
  46. +36 −0 src/site/apt/examples/setup-your-IDE.apt
  47. +114 −0 src/site/apt/index.apt
  48. +82 −0 src/site/apt/lifecycles.apt
  49. +115 −0 src/site/apt/usage.apt
  50. +54 −0 src/site/fml/faq.fml
  51. +37 −0 src/site/site.xml
  52. +144 −0 src/test/java/com/octo/mtg/plugin/LoadMojosTest.java
  53. +63 −0 src/test/java/com/octo/mtg/plugin/tools/GrailsServicesTest.java
  54. +89 −0 src/test/java/com/octo/mtg/plugin/tools/PomServicesTest.java
  55. +34 −0 src/test/resources/com/octo/mtg/plugin/create-pom/plugin-config.xml
  56. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-clean/plugin-config.xml
  57. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-app/plugin-config.xml
  58. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-controller/plugin-config.xml
  59. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-domain-class/plugin-config.xml
  60. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-integration-test/plugin-config.xml
  61. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-script/plugin-config.xml
  62. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-service/plugin-config.xml
  63. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-taglib/plugin-config.xml
  64. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-unit-test/plugin-config.xml
  65. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-create-web-test/plugin-config.xml
  66. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-generate-all/plugin-config.xml
  67. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-generate-controller/plugin-config.xml
  68. +35 −0 src/test/resources/com/octo/mtg/plugin/grails-generate-views/plugin-config.xml
  69. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-install-templates/plugin-config.xml
  70. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-package/plugin-config.xml
  71. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-run-app-https/plugin-config.xml
  72. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-run-app/plugin-config.xml
  73. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-run-webtest/plugin-config.xml
  74. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-test-app/plugin-config.xml
  75. +34 −0 src/test/resources/com/octo/mtg/plugin/grails-war/plugin-config.xml
  76. +34 −0 src/test/resources/com/octo/mtg/plugin/maven-clean/plugin-config.xml
  77. +34 −0 src/test/resources/com/octo/mtg/plugin/maven-copy-dependencies/plugin-config.xml
  78. +34 −0 src/test/resources/com/octo/mtg/plugin/maven-run-webtest/plugin-config.xml
  79. +34 −0 src/test/resources/com/octo/mtg/plugin/maven-test-app/plugin-config.xml
  80. +34 −0 src/test/resources/com/octo/mtg/plugin/maven-validate/plugin-config.xml
  81. +34 −0 src/test/resources/com/octo/mtg/plugin/maven-war/plugin-config.xml
  82. +28 −0 src/test/resources/com/octo/mtg/plugin/pom-services/pom.xml
356 pom.xml
@@ -0,0 +1,356 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Copyright 2007 the original author or authors.
+
+ Licensed 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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.grails</groupId>
+ <artifactId>grails-maven-plugin</artifactId>
+ <version>0.4-SNAPSHOT</version>
+ <packaging>maven-plugin</packaging>
+ <name>Maven plugin for GRAILS applications</name>
+ <description>This plugin allows you to integrate GRAILS applications into maven 2 builds.</description>
+ <url>http://forge.octo.com/maven/sites/mtg/grails-maven-plugin</url>
+ <distributionManagement>
+ <repository>
+ <id>codehaus.org</id>
+ <name>Grails Main Repository</name>
+ <url>dav:https://dav.codehaus.org/repository/grails</url>
+ </repository>
+ <snapshotRepository>
+ <id>codehaus.org</id>
+ <name>Grails Snapshots Repository</name>
+ <url>dav:https://dav.codehaus.org/snapshots.repository/grails</url>
+ </snapshotRepository>
+ </distributionManagement>
+ <prerequisites>
+ <maven>2.0.5</maven>
+ </prerequisites>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0.7</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-archiver</artifactId>
+ <version>2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>1.4.5</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy</artifactId>
+ <version>1.5.7</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-plugin-testing-harness</artifactId>
+ <version>1.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <version>1.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.grails</groupId>
+ <artifactId>grails-bootstrap</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generated-helpmojo</id>
+ <goals>
+ <goal>helpmojo</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate</id>
+ <goals>
+ <goal>descriptor</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <outputDirectory>${project.build.directory}/generated-resources/plexus</outputDirectory>
+ </configuration>
+ </execution>
+ <execution>
+ <id>merge</id>
+ <goals>
+ <goal>merge-descriptors</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>${project.build.directory}/generated-resources/plexus/META-INF/plexus/components.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-docck-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <reporting>
+ <plugins>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.0.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>2.4.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-maven-plugin</artifactId>
+ <version>1.3.5</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <tags>
+ <tag>
+ <name>plexus.component</name>
+ <placement>a</placement>
+ <head>This class is a plexus component</head>
+ </tag>
+ <tag>
+ <name>component</name>
+ <placement>a</placement>
+ <head>This property is a component injected by plexus.</head>
+ </tag>
+ <tag>
+ <name>readonly</name>
+ <placement>a</placement>
+ <head>The user cannot override this property from the command line.</head>
+ </tag>
+ <tag>
+ <name>description</name>
+ <placement>a</placement>
+ <head>Description :</head>
+ </tag>
+ <tag>
+ <name>requiresProject</name>
+ <placement>a</placement>
+ <head>This Mojo needs to be launched in a maven 2 project</head>
+ </tag>
+ <tag>
+ <name>goal</name>
+ <placement>a</placement>
+ <head>The goal name for the Mojo :</head>
+ </tag>
+ </tags>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-changelog-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.4.3</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <linkXref>true</linkXref>
+ <minimumTokens>20</minimumTokens>
+ <targetJdk>1.4</targetJdk>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>1.1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>rat-maven-plugin</artifactId>
+ <version>1.0-alpha-3</version>
+ <configuration>
+ <excludes>
+ <exclude>**/it/**</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+ <profiles>
+ <profile>
+ <id>integration-tests</id>
+ <activation>
+ <property>
+ <name>integration-tests</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>shitty-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>clean</goal>
+ <goal>install</goal>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <projects>
+ <fileset>
+ <directory>src/it</directory>
+ <includes>
+ <include>${includeITs}</include>
+ </includes>
+ <excludes>
+ <exclude>${excludeITs}</exclude>
+ </excludes>
+ </fileset>
+ </projects>
+ <parallel>true</parallel>
+ <threadCount>2</threadCount>
+ <flags>-DgrailsHome-0.5.6=${grailsHome-0.5.6} -DgrailsHome-0.6=${grailsHome-0.6}</flags>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <repositories>
+ <repository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <id>codehaus.snapshots</id>
+ <url>http://snapshots.repository.codehaus.org/</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <id>codehaus.snapshots</id>
+ <url>http://snapshots.repository.codehaus.org/</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <properties>
+ <includeITs>**/pom4test.xml</includeITs>
+ <excludeITs>**/run-webtest/pom4test.xml</excludeITs>
+ </properties>
+ </profile>
+ <profile>
+ <id>release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>rat-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
Oops, something went wrong.

0 comments on commit 2308f54

Please sign in to comment.