This is a sample of how to set up your GXT 3 project to build from nightlies and support-only builds using your support credentials. We build every night if changes have been merged into trunk, and make that available for viewing at http://staging.sencha.com:8080/examples-dev/ as well as from our maven repository.
Created
October 1, 2012 15:53
-
-
Save niloc132/3812647 to your computer and use it in GitHub Desktop.
GXT maven config sample with support subscription
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.sencha.gxt</groupId> | |
<artifactId>hackathon</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<properties> | |
<gwt.version>2.4.0</gwt.version> | |
<gxt.version>3.0.2-SNAPSHOT</gxt.version> | |
<java.version>1.6</java.version> | |
</properties> | |
<repositories> | |
<!-- Add the repositories you are interested in, reusing the id to reference the credentials --> | |
<repository> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<id>gxt-commercial-release</id> | |
<name>Sencha GXT Commercial Releases</name> | |
<url>https://maven.sencha.com/repo/support-commercial-release</url> | |
</repository> | |
<repository> | |
<snapshots /> | |
<id>gxt-commercial-snapshot</id> | |
<name>Sencha GXT Commercial Snapshots</name> | |
<url>https://maven.sencha.com/repo/support-commercial-snapshot/</url> | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>com.sencha.gxt</groupId> | |
<artifactId>gxt</artifactId> | |
<version>${gxt.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.google.gwt</groupId> | |
<artifactId>gwt-user</artifactId> | |
<version>${gwt.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>gwt-maven-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<localRepository /> | |
<interactiveMode /> | |
<usePluginRegistry /> | |
<offline /> | |
<pluginGroups /> | |
<servers> | |
<!-- List support credentials in your settings.xml file --> | |
<!-- Probably only need to list the pair once, sharing ids --> | |
<server> | |
<id>gxt-commercial-snapshot</id> | |
<username>email</username> | |
<password>password</password> | |
</server> | |
<server> | |
<id>gxt-commercial-releases</id> | |
<username>email</username> | |
<password>password</password> | |
</server> | |
</servers> | |
<mirrors /> | |
<proxies /> | |
<profiles /> | |
<activeProfiles /> | |
</settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment