Permalink
Browse files

Fix dashboard build to run without manual intervention

Change-Id: Ic5708cdfa4c389f39c501c83f9d79d0581d6d99c
  • Loading branch information...
1 parent e2d6733 commit 4893750edf054fef2c154edacc02aa10c9956024 @dsyer dsyer committed Jun 25, 2012
Showing with 115 additions and 19 deletions.
  1. +4 −0 .gitignore
  2. +15 −15 dashboard/BUILD-NOTES
  3. +96 −4 dashboard/pom.xml
View
@@ -1,3 +1,7 @@
+*~
+#*
+.#*
+*#
.idea
.bundle
.yardoc
View
@@ -1,16 +1,16 @@
-* GChart isn't published in a Maven repository. Therefore follow this process:
--- Download http://code.google.com/p/clientsidegchart/downloads/detail?name=gchart-2.7.zip
--- Unzip it
--- From the unzipped directory, execute:
- mvn install:install-file -Dfile=gchart.jar \
- -DgroupId=com.googlecode.gchart -DartifactId=gchart \
- -Dversion=2.7 -Dpackaging=jar \
- -DgeneratePom=true -DcreateChecksum=true
+Build with Maven 3.0.4 (http://mirror.lividpenguin.com/pub/apache/maven/binaries/apache-maven-3.0.4-bin.tar.gz):
-* Guava-gwt isn't published in a Maven repository, either. Therefore follow this process:
--- Download http://guava-libraries.googlecode.com/files/guava-r09.zip
--- Unzip it
--- From the unzipped directory, execute:
- mvn install:install-file -Dfile=guava-r09-gwt.jar \
- -DgroupId=com.google.guava -DartifactId=guava -Dversion=r09 -Dclassifier=gwt \
- -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true
+ $ mvn package
+ $ ls target/*.war
+ target/dashboard-1.0-SNAPSHOT-xxxxx.war
+
+Or run directly with
+
+ $ mvn tomcat:run-war
+
+The app will start at http://localhost:8080/dashboard.
+
+Once you have built the war file, if you stop and want to start the
+server again and haven't made any changes, you will find this useful:
+
+ $ mvn tomcat:run-war -Dgwt.compiler.skip=true
View
@@ -20,6 +20,8 @@
<slf4j.version>1.6.2</slf4j.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
+ <context.path>/dashboard</context.path>
+ <m2eclipse.wtp.contextRoot>/dashboard</m2eclipse.wtp.contextRoot>
<project.build.properties>build.properties</project.build.properties>
</properties>
@@ -98,13 +100,12 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
- <version>r09</version>
+ <version>12.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>r09</version>
- <classifier>gwt</classifier>
+ <artifactId>guava-gwt</artifactId>
+ <version>12.0</version>
</dependency>
<dependency>
<groupId>com.google.gwt.inject</groupId>
@@ -300,6 +301,97 @@
</executions>
</plugin>
</plugins>
+ <pluginManagement>
+ <plugins>
+ <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <versionRange>[2.3.0-1,)</versionRange>
+ <goals>
+ <goal>i18n</goal>
+ <goal>generateAsync</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.bsc.maven</groupId>
+ <artifactId>maven-processor-plugin</artifactId>
+ <versionRange>[2.0.3,)</versionRange>
+ <goals>
+ <goal>process</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <versionRange>[1.6,)</versionRange>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <versionRange>[1.0-alpha-2,)</versionRange>
+ <goals>
+ <goal>read-project-properties</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>tomcat-maven-plugin</artifactId>
+ <configuration>
+ <path>${context.path}</path>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.tomcat.maven</groupId>
+ <artifactId>tomcat7-maven-plugin</artifactId>
+ <configuration>
+ <path>${context.path}</path>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
</build>
+ <repositories>
+ <repository>
+ <id>spring-external</id>
+ <name>Spring Framework External Repository</name>
+ <url>http://maven.springframework.org.s3.amazonaws.com/external</url>
+ </repository>
+ </repositories>
+
</project>

0 comments on commit 4893750

Please sign in to comment.