Skip to content

Commit

Permalink
fix to build without GPG keys for mvn install (for TravisCI), and add…
Browse files Browse the repository at this point in the history
… how to build/release this project
  • Loading branch information
tagomoris committed Oct 28, 2014
1 parent 20c6edd commit 33323dd
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 14 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,49 @@ FROM (
WHERE NOT is_crawler(parsed_agent) AND NOT is_unknown(parsed_agent)
```

## Build and test this project

Setup maven, and execute: `mvn test`

If JavaDoc generations puts some warnings for hive udf, specify `mvn install -DskipTests=true -Dmaven.javadoc.skip=true`.

### Release jar into maven central

At first, setup GnuPG and generate your own key.

And setup `settings.xml` (maybe `~/.m2/settings.xml`) like this:
```xml
<settings>
<servers>
<server>
<id>ossrh</id>
<username>YOUR_JIRA_USERNAME</username>
<password>YOUR_JIRA_PASSWORD</password>
</server>
</servers>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>GPG_KEY_PASSPHRASE</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>
```

And run deployment: `mvn clean deploy -DperformRelease=true`

## Build your own woothee.jar with Hive UDFs

1. Install git, JDK and Maven
2. Do `mvn -P hiveudf` with two `-D` options for `hadoop-version` and `hive-version`
* `mvn package -P hiveudf -Dhadoop-version=0.23.11 -Dhive-version=0.13.0`

* * * * *

## Authors
Expand Down
52 changes: 38 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand All @@ -210,6 +196,44 @@
</plugins>
</build>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<excludes>
<exclude>**/hive/**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>hiveudf</id>
<properties>
Expand Down

0 comments on commit 33323dd

Please sign in to comment.