-
Notifications
You must be signed in to change notification settings - Fork 80
Development and Release
Tadaya Tsuyukubo edited this page Oct 4, 2013
·
15 revisions
Setting up local development environment for datasource-proxy.
java5+ for runtime.
For development, JDK7 is required to be compatible with JDBC4.1 API(from java7).
In compilation phase, target is set to 1.5, thus distribution(jar file) runs with java5+.
for my reminder
- install PGP
- configure ~/.m2/settings.xml
install for mac
> sudo port install gnupggenerate key-pair
> gpg --gen-key
Real name: Tadaya Tsuyukubo
Email address: [email protected]
Comment:keys are stored in ~/.gnupg
confirm generated key
> gpg --list-keys
> gpg --list-secret-keysto get public key-id, use gpg --list-keys:
> gpg --list-keys
...
pub 2048R/[KEY_ID] 2013-10-04
...distribute public key
> gpg --keyserver hkp://pool.sks-keyservers.net --send-keys [KEY_ID]- need to provide credential for sonatype's staging repository
add to ~/.m2/settings.xml
<settings>
...
<servers>
<!-- for release version staging -->
<server>
<id>sonatype-nexus-staging</id>
<username>your-jira-id</username>
<password>your-jira-pwd</password>
</server>
<!-- for snapshot -->
<server>
<id>sonatype-nexus-snapshots</id>
<username>your-jira-id</username>
<password>your-jira-pwd</password>
</server>
</servers>
...
</settings>- use JIRA (https://issues.sonatype.org) ID and pass.
> git clone [email protected]:ttddyy/datasource-proxy.git
> cd datasource-proxy
# generate javadoc
> git checkout [VERSION_TAG]
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home mvn javadoc:javadoc
# add javadoc to github pages
> git checkout gh-pages
> cp -R target/site/apidocs javadoc/v[VERSION]
> git add javddoc/v[VERSION]
> git commit -m "..."
> git push # or git push origin gh-pages