Skip to content

Commit

Permalink
Added Sonatype-required information to pom.xml, settings.xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
fschueler committed Dec 8, 2014
1 parent dbc64b5 commit 06e263b
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.metadata/*
.project
.settings
settings.xml
target
*.swp
*.class
Expand Down
148 changes: 144 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,47 @@
<artifactId>peel</artifactId>
<version>1.0-SNAPSHOT</version>

<name>peel</name>
<name>${project.groupId}:${project.artifactId}</name>
<description>Peel is a framework for automatic large-scale experiments for massively-parallel systems
and algorithms. It enables the conduction of fully automated and higly configurable experiments
that can be executed from a simple command line interface.</description>
<url>https://github.com/stratosphere/peel</url>
<packaging>pom</packaging>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<developers>
<developer>
<name>Alexander Alexandrov</name>
<email>[email protected]</email>
<organization>Database Systems and Information Management Group, TU Berlin</organization>
<organizationUrl>https://www.dima.tu-berlin.de/</organizationUrl>
</developer>
<developer>
<name>Andreas Kunft</name>
<email>[email protected]</email>
<organization>Database Systems and Information Management Group, TU Berlin</organization>
<organizationUrl>https://www.dima.tu-berlin.de/</organizationUrl>
</developer>
<developer>
<name>Felix Schüler</name>
<email>[email protected]</email>
<organization>Complex and Distributed IT Systems, TU Berlin</organization>
<organizationUrl>https://www.cit.tu-berlin.de/</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:[email protected]:stratosphere/peel.git</connection>
<developerConnection>scm:git:[email protected]:stratosphere/peel.git</developerConnection>
<url>[email protected]:stratosphere/peel.git</url>
</scm>

<properties>
<!-- Common -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -23,6 +61,11 @@
<build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
<maven-surefire-plugin.version>2.7</maven-surefire-plugin.version>
<scalatest-maven-plugin.version>1.0-RC2</scalatest-maven-plugin.version>
<maven-release-plugin.version>2.5</maven-release-plugin.version>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
<nexus-staging-maven-plugin.version>1.6.3</nexus-staging-maven-plugin.version>

<!-- Java -->
<java.version>1.7</java.version>
Expand Down Expand Up @@ -58,13 +101,22 @@
</properties>


<!-- use of repositories is discouraded by sonatype
<repositories>
<repository>
<id>oss.sonatype.org</id>
<name>sonatype sapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
</repositories>-->

<!-- Sonatype distribution management -->
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<dependencyManagement>
<dependencies>
Expand All @@ -85,7 +137,7 @@
<version>${scala.version}</version>
</dependency>

<!-- fab -->
<!-- peel -->
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>peel-core</artifactId>
Expand Down Expand Up @@ -183,7 +235,6 @@
</dependencies>
</dependencyManagement>


<build>
<plugins>
<!-- Scala compiler -->
Expand Down Expand Up @@ -301,9 +352,98 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>

<!-- profile for Sonatype releases -->
<profiles>
<profile>
<!-- used for SNAPSHOT and regular releases -->
<id>docs-and-source</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version><!--$NO-MVN-MAN-VER$-->
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version><!--$NO-MVN-MAN-VER$-->
<configuration>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<useReleaseProfile>false</useReleaseProfile>
<arguments>${arguments} -Psonatype-oss-release</arguments>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

<modules>
<module>peel-core</module>
<module>peel-dist</module>
Expand Down
22 changes: 22 additions & 0 deletions settings.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<settings>
<servers>
<server>
<id>ossrh</id>
<username>your-jira-id</username>
<password>your-jira-pwd</password>
</server>
</servers>

<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>the_pass_phrase</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>

0 comments on commit 06e263b

Please sign in to comment.