Skip to content

Commit

Permalink
maven setup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmosmann committed Feb 21, 2011
1 parent ea29c05 commit 8916b81
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 0 deletions.
198 changes: 198 additions & 0 deletions pom.xml
@@ -0,0 +1,198 @@
<?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/maven-v4_0_0.xsd">

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>5</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>de.flapdoodle.embedmongo</groupId>
<artifactId>de.flapdoodle.embedmongo</artifactId>
<name>Flapdoodle Embedded MongoDB</name>
<version>1.0-SNAPSHOT</version>

<description>A embedded mongodb ...</description>
<url>http://github.com/michaelmosmann/embedmongo.flapdoodle.de</url>

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



<scm>
<connection>scm:git:git@github.com:michaelmosmann/embedmongo.flapdoodle.de.git</connection>
<developerConnection>scm:git:git@github.com:michaelmosmann/embedmongo.flapdoodle.de.git</developerConnection>
<url>git@github.com:michaelmosmann/embedmongo.flapdoodle.de.git</url>
</scm>

<!--
https://docs.sonatype.org/display/Repository/Central+Sync+Requirements
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
-->
<build>
<plugins>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/live/**</exclude>
<exclude>**/examples/**</exclude>
</excludes>
</configuration>
</plugin>

<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<configuration>
<!--
<basedir>${basedir}</basedir>
-->
<header>${basedir}/src/etc/header.txt</header>
<!--
<validHeaders>
<validHeader>/otherSupportedHeader.txt</validHeader>
<validHeader>http://www.company.com/yetAnotherSupportedHeader.txt</validHeader>
</validHeaders>
-->
<quiet>false</quiet>
<failIfMissing>true</failIfMissing>
<strictCheck>true</strictCheck>
<aggregate>false</aggregate>
<includes>
<include>src/**</include>
<include>**/test/**</include>
</includes>
<!--
<excludes> <exclude>target/**</exclude>
<exclude>.clover/**</exclude> </excludes>
<useDefaultExcludes>true</useDefaultExcludes>
-->
<!--
<mapping> <jwc>XML_STYLE</jwc>
<application>XML_STYLE</application>
<myFileExtension>JAVADOC_STYLE</myFileExtension> </mapping>
<useDefaultMapping>true</useDefaultMapping>
-->
<properties>
<lic.year>2011</lic.year>
<lic.email>michael@mosmann.de</lic.email>
<lic.username>Michael Mosmann</lic.username>
</properties>
<encoding>UTF-8</encoding>
<!--
<headerDefinitions> <headerDefinition>def1.xml</headerDefinition>
<headerDefinition>def2.xml</headerDefinition> </headerDefinitions>
-->
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>2.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>r07</version>
</dependency>

<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>2.0</version>
</dependency>
</dependencies>

</project>
3 changes: 3 additions & 0 deletions refreshLicense.sh
@@ -0,0 +1,3 @@
#!/bin/sh
mvn license:format

5 changes: 5 additions & 0 deletions release.sh
@@ -0,0 +1,5 @@
#!/bin/sh
mvn release:clean
mvn release:prepare
mvn release:perform

15 changes: 15 additions & 0 deletions src/etc/header.txt
@@ -0,0 +1,15 @@
Copyright (C) ${lic.year} ${lic.username} <${lic.email}>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


0 comments on commit 8916b81

Please sign in to comment.