blob: 25bb9a5c6c2f34196f0adf6fdbfc3d2280ae6071 [file] [log] [blame]
rchandia@google.com96dc36b2011-09-09 17:31:05 +00001push-gwt.sh packages and deploys GWT to a local or remote Maven
2repository
3
4To build GWT from trunk and deploy to your local repo:
5
6> cd trunk
7> ant clean dist-dev
8> maven/push-gwt.sh
9
10Follow the prompts to set the GWT version # and path to the
11distribution ZIP (it will automatically find it in build/dist if
12you've just built it). By default, the script deploys to your local
13Maven repo.
14
15To deploy to a remote repo:
16
17Set GWT_MAVEN_REPO_URL and GWT_MAVEN_REPO_ID as noted in the
18script. If the remote repo requires a username and password, define
19the repo in your ~/.m2/settings.xml as below and set GWT_MAVEN_REPO_ID
20= server id. In this example, GWT_MAVEN_REPO_ID would be "sonatype".
21
22> cd trunk
23> ant clean dist # must be dist, not dist-dev, to generate Javadocs
24> maven/push-gwt.sh
25
26~/.m2/settings.xml:
27<settings>
28 <localRepository>${env.M2_REPO}</localRepository>
29 <servers>
30 <server>
31 <id>sonatype</id>
32 <username>sonatype_username</username>
33 <password>sonatype_password</password>
34 </server>
35 </servers>
36</settings>
37
38If the remote repo requires jar signing as does Sonatype (Maven
39Central), set up GPG on your local machine then enter the passphrase
40when prompted. When deploying locally, you can enter a passphrase to
41sign the jars for testing or press Enter to skip signing altogether.