Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Fix dashboard build to run without manual intervention
Browse files Browse the repository at this point in the history
Change-Id: Ic5708cdfa4c389f39c501c83f9d79d0581d6d99c
  • Loading branch information
dsyer committed Jun 26, 2012
1 parent e2d6733 commit 4893750
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -1,3 +1,7 @@
*~
#*
.#*
*#
.idea .idea
.bundle .bundle
.yardoc .yardoc
Expand Down
30 changes: 15 additions & 15 deletions dashboard/BUILD-NOTES
@@ -1,16 +1,16 @@
* GChart isn't published in a Maven repository. Therefore follow this process: Build with Maven 3.0.4 (http://mirror.lividpenguin.com/pub/apache/maven/binaries/apache-maven-3.0.4-bin.tar.gz):
-- 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


* Guava-gwt isn't published in a Maven repository, either. Therefore follow this process: $ mvn package
-- Download http://guava-libraries.googlecode.com/files/guava-r09.zip $ ls target/*.war
-- Unzip it target/dashboard-1.0-SNAPSHOT-xxxxx.war
-- From the unzipped directory, execute:
mvn install:install-file -Dfile=guava-r09-gwt.jar \ Or run directly with
-DgroupId=com.google.guava -DartifactId=guava -Dversion=r09 -Dclassifier=gwt \
-Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true $ 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
100 changes: 96 additions & 4 deletions dashboard/pom.xml
Expand Up @@ -20,6 +20,8 @@
<slf4j.version>1.6.2</slf4j.version> <slf4j.version>1.6.2</slf4j.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory> <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> <project.build.properties>build.properties</project.build.properties>
</properties> </properties>


Expand Down Expand Up @@ -98,13 +100,12 @@
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>r09</version> <version>12.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava-gwt</artifactId>
<version>r09</version> <version>12.0</version>
<classifier>gwt</classifier>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.gwt.inject</groupId> <groupId>com.google.gwt.inject</groupId>
Expand Down Expand Up @@ -300,6 +301,97 @@
</executions> </executions>
</plugin> </plugin>
</plugins> </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> </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> </project>

0 comments on commit 4893750

Please sign in to comment.