mam-dev / foss-parent

Parent POM for 1-and-1 open source projects using Maven.
http://1and1.github.io/foss-parent/github-report.html
Apache License 2.0
10 stars 4 forks source link

Parent POM for 1-and-1 open source projects.

Contains common configuration for projects that use github and Sonatype OSS Repository Hosting. Default License is Apache 2.0.

Build Status Build Status Release [GitHub license]()

Changelog

http://1and1.github.io/foss-parent/github-report.html

How to use the POM

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>net.oneandone.maven.poms</groupId>
        <artifactId>foss-parent</artifactId>
        <version>${project.version}</version>
    </parent>
    <groupId>sample-groupId</groupId>
    <artifactId>sample-project</artifactId>
    <version>1-SNAPSHOT</version>
    [...]
</project>

Latest releases

... may be found at Maven Central.

Rules for versions

Releasing a project

... to Maven Central via Sonatype OSS Repository Hosting:

<settings>
  <servers>
    <server>
      <id>sonatype-nexus-snapshots</id>
      <username>sonatype-user</username>
      <password>sonatype-pwd</password>
    </server>
    <server>
      <id>sonatype-nexus-staging</id>
      <username>sonatype-user</username>
      <password>sonatype-pwd</password>
    </server>
  </servers>
</settings>

TODO: http://www.sonatype.com/books/nexus-book/reference/staging-sect-managing-plugin.html

Deploy site to github

To deploy a site to github using maven-scm-publish-plugin:

Adjust license headers

mvn license:format