<?xml version="1.0"?>
<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>
	<groupId>de.incentergy.test</groupId>
	<artifactId>java-bean-to-code-serializer</artifactId>
	<version>0.8</version>
	<name>Java Bean to Code Serializer</name>
	<description>This code takes a java bean and tries to serialize it as java code that sets recursively all the fields. This is useful if you want to mock an object and already get the object somewhere but you want to put it in the code.</description>
	<url>https://github.com/ManuelB/java-bean-to-code-serializer/</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>
	<properties>
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>
	</properties>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<organization>
		<name>Incentergy GmbH</name>
		<url>http://www.incentergy.de</url>
	</organization>
	<scm>
		<url>https://github.com/ManuelB/java-bean-to-code-serializer.git</url>
		<connection>scm:git:https://github.com/ManuelB/java-bean-to-code-serializer.git</connection>
	</scm>
	<developers>
		<developer>
			<id>Manuel_B</id>
			<name>Manuel Blechschmidt</name>
			<email>manuel.blechschmidt@incentergy.de</email>
		</developer>
	</developers>
	<!--
	     mvn release:prepare
	     mvn release:perform -Darguments="-Dgpg.passphrase='' -DaltDeploymentRepository=sonatype-nexus-staging::default::https://oss.sonatype.org/service/local/staging/deploy/maven2/"
	     #  https://oss.sonatype.org/#stagingRepositories
        -->
	<issueManagement>
		<system>Github</system>
		<url>https://github.com/ManuelB/java-bean-to-code-serializer/issues</url>
	</issueManagement>
	<!-- 
  <ciManagement>
    <system>hudson</system>
    <url>https://dev.apaxo.de:8181/hudson</url>
  </ciManagement>
  -->
  <build>
	  <plugins>
		  <plugin>
			  <groupId>org.jacoco</groupId>
			  <artifactId>jacoco-maven-plugin</artifactId>
			  <version>0.7.5.201505241946</version>
			  <executions>
				  <execution>
					  <id>prepare-agent</id>
					  <goals>
						  <goal>prepare-agent</goal>
					  </goals>
				  </execution>
				  <execution>
					  <id>report</id>
					  <phase>prepare-package</phase>
					  <goals>
						  <goal>report</goal>
					  </goals>
				  </execution>
				  <execution>
					  <id>check</id>
					  <goals>
						  <goal>check</goal>
					  </goals>
					  <configuration>
						  <rules>
							  <rule>
								  <element>BUNDLE</element>
								  <limits>
									  <limit>
										  <counter>COMPLEXITY</counter>
										  <value>COVEREDRATIO</value>
										  <minimum>0.50</minimum>
									  </limit>
								  </limits>
							  </rule>
						  </rules>
					  </configuration>
				  </execution>
			  </executions>
		  </plugin>
		  <plugin>
			  <groupId>org.sonatype.plugins</groupId>
			  <artifactId>nexus-staging-maven-plugin</artifactId>
			  <version>1.6.3</version>
			  <extensions>true</extensions>
			  <configuration>
				  <serverId>ossrh</serverId>
				  <nexusUrl>https://oss.sonatype.org/</nexusUrl>
				  <autoReleaseAfterClose>true</autoReleaseAfterClose>
			  </configuration>
		  </plugin>
		  <plugin>
			  <groupId>org.apache.maven.plugins</groupId>
			  <artifactId>maven-source-plugin</artifactId>
			  <version>2.2.1</version>
			  <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>
			  <version>2.9.1</version>
			  <executions>
				  <execution>
					  <id>attach-javadocs</id>
					  <goals>
						  <goal>jar</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>
</project>
