Permalink
Browse files

RAVE-59: Create automation for building of demo package

See: http://issues.apache.org/jira/browse/RAVE-59
- Intermediate commit:
  - adding a "dist" profile to automate the building (run with mvn -P dist from rave-project)
    - enforce maven-clean-plugin to execute to ensure cleanly build artifacts and demo packages 
    - ensure default goal maven install to get rave-shindig and rave-portal properly build and (locally) installed first
    - execute cargo:configure and cargo:package during/after rave-portal install 
- Still to do:
  - add an maven assembly configuration to add additional needed configuration files (overrides) and docs in the demo package
  - execute maven assembly plugin to build the final package

git-svn-id: https://svn.apache.org/repos/asf/incubator/rave/trunk@1135663 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 3835513 commit b6d1509689267d0528aeca15c9d09a8aa58a58a3 @ate ate committed Jun 14, 2011
Showing with 47 additions and 0 deletions.
  1. +22 −0 pom.xml
  2. +25 −0 rave-portal/pom.xml
View
22 pom.xml
@@ -335,4 +335,26 @@
<module>rave-portal</module>
</modules>
+ <profiles>
+ <profile>
+ <id>dist</id>
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <plugins>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>
View
@@ -286,5 +286,30 @@ if needed you can specify it on the command line with -Djavaagent="..." -->
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>dist</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <version>${cargo.version}</version>
+ <executions>
+ <execution>
+ <id>dist</id>
+ <phase>install</phase>
+ <goals>
+ <goal>configure</goal>
+ <goal>package</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>

0 comments on commit b6d1509

Please sign in to comment.