Skip to content

Commit

Permalink
Some POM additions for deployment to Maven Central.
Browse files Browse the repository at this point in the history
  • Loading branch information
woemler committed Mar 19, 2016
1 parent 3b42b59 commit 2e2cce2
Show file tree
Hide file tree
Showing 7 changed files with 254 additions and 20 deletions.
56 changes: 54 additions & 2 deletions centromere-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@
<parent>
<groupId>org.oncoblocks.centromere</groupId>
<artifactId>centromere-parent</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.3.0</version>
<relativePath>../centromere-parent</relativePath>
</parent>

<artifactId>centromere-core</artifactId>
<name>Oncoblocks: Centromere Core</name>
<packaging>jar</packaging>

<description>Genomic data warehouse and RESTful web services framework. Core components for creating data models, repository interfaces, and data import pipelines.</description>
<url>https://github.com/oncoblocks/centromere</url>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
Expand All @@ -54,6 +57,17 @@
<url>git@github.com:oncoblocks/centromere.git</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<dependencies>

<!-- Spring -->
Expand Down Expand Up @@ -115,7 +129,7 @@
</dependencies>

<build>
<finalName>centromere-core</finalName>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -134,6 +148,44 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</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>

Expand Down
58 changes: 55 additions & 3 deletions centromere-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@
<parent>
<groupId>org.oncoblocks.centromere</groupId>
<artifactId>centromere-parent</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.3.0</version>
<relativePath>../centromere-parent</relativePath>
</parent>

<artifactId>centromere-mongodb</artifactId>
<name>Oncoblocks: Centromere MongoDB</name>
<packaging>jar</packaging>

<description>Genomic data warehouse and RESTful web services framework. Repository integration for MongoDB databases.</description>
<url>https://github.com/oncoblocks/centromere</url>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
Expand All @@ -55,13 +58,24 @@
<url>git@github.com:oncoblocks/centromere.git</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<dependencies>

<!-- Centromere -->
<dependency>
<groupId>org.oncoblocks.centromere</groupId>
<artifactId>centromere-core</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.3.0</version>
</dependency>

<!-- Spring -->
Expand Down Expand Up @@ -117,7 +131,7 @@
</dependencies>

<build>
<finalName>centromere-mongodb</finalName>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -136,6 +150,44 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</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>

Expand Down
34 changes: 30 additions & 4 deletions centromere-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@

<groupId>org.oncoblocks.centromere</groupId>
<artifactId>centromere-parent</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.3.0</version>
<name>Oncoblocks: Centromere Parent</name>
<packaging>pom</packaging>

<description>Genomic data warehouse and RESTful web services framework. Parent POM file.</description>
<url>https://github.com/oncoblocks/centromere</url>

<modules>
<module>../centromere-core</module>
<module>../centromere-mongodb</module>
<module>../centromere-sql</module>
<!--<module>../centromere-data-import</module>-->
<module>../centromere-web</module>
</modules>

Expand All @@ -57,6 +59,17 @@
<url>git@github.com:oncoblocks/centromere.git</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<properties>
<spring.platform.version>2.0.1.RELEASE</spring.platform.version>
</properties>
Expand All @@ -79,9 +92,22 @@
</dependencies>

<build>
<finalName>centromere-parent</finalName>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>

<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>

Expand Down
58 changes: 55 additions & 3 deletions centromere-sql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@
<parent>
<groupId>org.oncoblocks.centromere</groupId>
<artifactId>centromere-parent</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.3.0</version>
<relativePath>../centromere-parent</relativePath>
</parent>

<artifactId>centromere-sql</artifactId>
<name>Oncoblocks: Centromere SQL</name>
<packaging>jar</packaging>

<description>Genomic data warehouse and RESTful web services framework. Repository integration for SQL databases.</description>
<url>https://github.com/oncoblocks/centromere</url>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
Expand All @@ -54,13 +57,24 @@
<url>git@github.com:oncoblocks/centromere.git</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<dependencies>

<!-- Centromere -->
<dependency>
<groupId>org.oncoblocks.centromere</groupId>
<artifactId>centromere-core</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.3.0</version>
</dependency>

<!-- JdbcRepository -->
Expand Down Expand Up @@ -88,7 +102,7 @@
</dependencies>

<build>
<finalName>centromere-sql</finalName>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -107,6 +121,44 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public GenericJdbcRepository(DataSource dataSource,
/**
* Creates a new {@link SqlBuilder} instance.
*
* @return
* @return {@link SqlBuilder}
*/
protected SqlBuilder getSqlBuilder(){
return new SqlBuilder(tableDescription);
Expand Down Expand Up @@ -365,8 +365,8 @@ public void truncateTable() {
/**
* Converts an {@code ID} instance into a collection of objects.
*
* @param id
* @return
* @param id primary key ID object
* @return list of objects comprising the primary key
*/
protected static <ID> List<Object> idToObjectList(ID id) {
if (id instanceof Object[])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
* ORDER BY name ASC, address DESC
* LIMIT 10, 50
*
* List<Object> parameters = sqlBuilder.getQueryParameterValues;
* sqlBuilder.getQueryParameterValues;
*
* Should return a list with { 'active', 'Joe' }
*
Expand Down
Loading

0 comments on commit 2e2cce2

Please sign in to comment.