From 2e2cce2798880d98e12d0a8cab4d02252b8c31a9 Mon Sep 17 00:00:00 2001 From: woemler Date: Sat, 19 Mar 2016 10:00:16 -0400 Subject: [PATCH] Some POM additions for deployment to Maven Central. --- centromere-core/pom.xml | 56 ++++++++++++++++- centromere-mongodb/pom.xml | 58 +++++++++++++++++- centromere-parent/pom.xml | 34 +++++++++-- centromere-sql/pom.xml | 58 +++++++++++++++++- .../centromere/sql/GenericJdbcRepository.java | 6 +- .../centromere/sql/sqlbuilder/SqlBuilder.java | 2 +- centromere-web/pom.xml | 60 +++++++++++++++++-- 7 files changed, 254 insertions(+), 20 deletions(-) diff --git a/centromere-core/pom.xml b/centromere-core/pom.xml index 196874c..20c1f99 100644 --- a/centromere-core/pom.xml +++ b/centromere-core/pom.xml @@ -24,7 +24,7 @@ org.oncoblocks.centromere centromere-parent - 0.3.0-SNAPSHOT + 0.3.0 ../centromere-parent @@ -32,6 +32,9 @@ Oncoblocks: Centromere Core jar + Genomic data warehouse and RESTful web services framework. Core components for creating data models, repository interfaces, and data import pipelines. + https://github.com/oncoblocks/centromere + The Apache License, Version 2.0 @@ -54,6 +57,17 @@ git@github.com:oncoblocks/centromere.git + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + @@ -115,7 +129,7 @@ - centromere-core + ${project.artifactId}-${project.version} maven-compiler-plugin @@ -134,6 +148,44 @@ + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + diff --git a/centromere-mongodb/pom.xml b/centromere-mongodb/pom.xml index 7bc36fc..077637c 100644 --- a/centromere-mongodb/pom.xml +++ b/centromere-mongodb/pom.xml @@ -25,7 +25,7 @@ org.oncoblocks.centromere centromere-parent - 0.3.0-SNAPSHOT + 0.3.0 ../centromere-parent @@ -33,6 +33,9 @@ Oncoblocks: Centromere MongoDB jar + Genomic data warehouse and RESTful web services framework. Repository integration for MongoDB databases. + https://github.com/oncoblocks/centromere + The Apache License, Version 2.0 @@ -55,13 +58,24 @@ git@github.com:oncoblocks/centromere.git + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + org.oncoblocks.centromere centromere-core - 0.3.0-SNAPSHOT + 0.3.0 @@ -117,7 +131,7 @@ - centromere-mongodb + ${project.artifactId}-${project.version} maven-compiler-plugin @@ -136,6 +150,44 @@ + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + diff --git a/centromere-parent/pom.xml b/centromere-parent/pom.xml index d2a3542..a5e00ed 100644 --- a/centromere-parent/pom.xml +++ b/centromere-parent/pom.xml @@ -23,15 +23,17 @@ org.oncoblocks.centromere centromere-parent - 0.3.0-SNAPSHOT + 0.3.0 Oncoblocks: Centromere Parent pom + Genomic data warehouse and RESTful web services framework. Parent POM file. + https://github.com/oncoblocks/centromere + ../centromere-core ../centromere-mongodb ../centromere-sql - ../centromere-web @@ -57,6 +59,17 @@ git@github.com:oncoblocks/centromere.git + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + 2.0.1.RELEASE @@ -79,9 +92,22 @@ - centromere-parent + ${project.artifactId}-${project.version} - + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + diff --git a/centromere-sql/pom.xml b/centromere-sql/pom.xml index bd305f0..c4ce67b 100644 --- a/centromere-sql/pom.xml +++ b/centromere-sql/pom.xml @@ -24,7 +24,7 @@ org.oncoblocks.centromere centromere-parent - 0.3.0-SNAPSHOT + 0.3.0 ../centromere-parent @@ -32,6 +32,9 @@ Oncoblocks: Centromere SQL jar + Genomic data warehouse and RESTful web services framework. Repository integration for SQL databases. + https://github.com/oncoblocks/centromere + The Apache License, Version 2.0 @@ -54,13 +57,24 @@ git@github.com:oncoblocks/centromere.git + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + org.oncoblocks.centromere centromere-core - 0.3.0-SNAPSHOT + 0.3.0 @@ -88,7 +102,7 @@ - centromere-sql + ${project.artifactId}-${project.version} maven-compiler-plugin @@ -107,6 +121,44 @@ + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + diff --git a/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/GenericJdbcRepository.java b/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/GenericJdbcRepository.java index 3b4b5d6..81e7974 100644 --- a/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/GenericJdbcRepository.java +++ b/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/GenericJdbcRepository.java @@ -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); @@ -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 List idToObjectList(ID id) { if (id instanceof Object[]) diff --git a/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/sqlbuilder/SqlBuilder.java b/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/sqlbuilder/SqlBuilder.java index 485b73c..4a3b444 100644 --- a/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/sqlbuilder/SqlBuilder.java +++ b/centromere-sql/src/main/java/org/oncoblocks/centromere/sql/sqlbuilder/SqlBuilder.java @@ -60,7 +60,7 @@ * ORDER BY name ASC, address DESC * LIMIT 10, 50 * - * List parameters = sqlBuilder.getQueryParameterValues; + * sqlBuilder.getQueryParameterValues; * * Should return a list with { 'active', 'Joe' } * diff --git a/centromere-web/pom.xml b/centromere-web/pom.xml index b8f10bd..2d3f914 100644 --- a/centromere-web/pom.xml +++ b/centromere-web/pom.xml @@ -25,7 +25,7 @@ org.oncoblocks.centromere centromere-parent - 0.3.0-SNAPSHOT + 0.3.0 ../centromere-parent @@ -33,6 +33,9 @@ Oncoblocks: Centromere Web jar + Genomic data warehouse and RESTful web services framework. Web services components. + https://github.com/oncoblocks/centromere + The Apache License, Version 2.0 @@ -60,6 +63,17 @@ 1.2.0 + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + @@ -67,7 +81,7 @@ org.oncoblocks.centromere centromere-core - 0.3.0-SNAPSHOT + 0.3.0 @@ -158,7 +172,7 @@ org.oncoblocks.centromere centromere-mongodb - 0.3.0-SNAPSHOT + 0.3.0 test @@ -205,7 +219,7 @@ - centromere-web + ${project.artifactId}-${project.version} maven-compiler-plugin @@ -224,6 +238,44 @@ + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + +