pom.xml 6.17 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
<?xml version="1.0" encoding="UTF-8"?>
<!--
Matija Obreza's avatar
Matija Obreza committed
3
	Copyright 2018 Global Crop Diversity Trust
Matija Obreza's avatar
Matija Obreza committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

	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.
-->
<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>org.genesys-pgr</groupId>
	<artifactId>application-blocks</artifactId>
21
	<version>2.0</version>
Matija Obreza's avatar
Matija Obreza committed
22
23
24
	<packaging>pom</packaging>
	<name>Application Building Blocks</name>
	<description>This is the shared project pom.</description>
25
	<url>https://gitlab.croptrust.org/genesys-pgr/application-blocks</url>
Matija Obreza's avatar
Matija Obreza committed
26
27
28
29
30
31
32
33

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

34
35
36
37
38
39
40
41
42
	<developers>
		<developer>
			<name>Matija Obreza</name>
			<email>matija.obreza@croptrust.org</email>
			<organization>Global Crop Diversity Trust</organization>
			<organizationUrl>http://www.croptrust.org</organizationUrl>
		</developer>
	</developers>

Matija Obreza's avatar
Matija Obreza committed
43
44
45
46
47
48
49
50
51
	<organization>
		<name>Global Crop Diversity Trust</name>
		<url>https://www.croptrust.org</url>
	</organization>

	<scm>
		<connection>scm:https://gitlab.croptrust.org/genesys-pgr/application-blocks</connection>
		<developerConnection>scm:git:git@gitlab.croptrust.org:genesys-pgr/application-blocks.git</developerConnection>
		<url>git@gitlab.croptrust.org:genesys-pgr/application-blocks.git</url>
52
		<tag>application-blocks-2.0</tag>
Matija Obreza's avatar
Matija Obreza committed
53
54
55
56
57
58
59
	</scm>

	<issueManagement>
		<url>https://gitlab.croptrust.org/genesys-pgr/application-blocks/issues</url>
		<system>Gitlab</system>
	</issueManagement>

60
	<properties>
61
		<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
Matija Obreza's avatar
Matija Obreza committed
62
63
		<jdk.target>1.8</jdk.target>
		<jdk.source>1.8</jdk.source>
64
	</properties>
Matija Obreza's avatar
Matija Obreza committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

	<modules>
		<module>parent</module>
		<module>core</module>
		<module>security</module>
		<module>auditlog</module>
	</modules>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>cobertura-maven-plugin</artifactId>
					<version>2.7</version>
					<executions>
						<execution>
							<id>site</id>
							<phase>pre-site</phase>
							<goals>
								<goal>cobertura</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
90
						<check />
Matija Obreza's avatar
Matija Obreza committed
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
						<formats>
							<format>html</format>
						</formats>
						<aggregate>true</aggregate>
						<outputDirectory>./target/siteCobertura</outputDirectory>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5.3</version>
				<configuration>
					<pushChanges>false</pushChanges>
					<autoVersionSubmodules>true</autoVersionSubmodules>
					<tagNameFormat>application-blocks-@{project.version}</tagNameFormat>
				</configuration>
			</plugin>
112
			<!--cobertura-maven-plugin -->
Matija Obreza's avatar
Matija Obreza committed
113
114
115
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
Matija Obreza's avatar
Matija Obreza committed
116
			</plugin>
Matija Obreza's avatar
Matija Obreza committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
			<!--maven-compiler-plugin -->
			<plugin>
				<inherited>true</inherited>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.1</version>
				<configuration>
					<source>${jdk.source}</source>
					<target>${jdk.target}</target>
					<optimize>true</optimize>
					<showWarnings>true</showWarnings>
					<showDeprecation>false</showDeprecation>
					<failOnWarning>true</failOnWarning>
				</configuration>
			</plugin>
Matija Obreza's avatar
Matija Obreza committed
131
132
		</plugins>
	</build>
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177

	<profiles>
		<profile>
			<id>normal</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>

		<profile>
			<id>release</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.4</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.10.3</version>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
178
						<version>${maven-gpg-plugin.version}</version>
179
180
181
182
183
184
185
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
186
187
188
189
190
191
192
								<!-- gpg: signing failed: No such file or directory -->
								<configuration>
									<gpgArguments>
										<arg>--pinentry-mode</arg>
										<arg>loopback</arg>
									</gpgArguments>
								</configuration>
193
194
195
196
197
198
199
200
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

Matija Obreza's avatar
Matija Obreza committed
201
202
203
204
205
206
207
208
209
210
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<version>2.7</version>
			</plugin>
		</plugins>
	</reporting>

211
212
213
214
215
216
217
218
219
220
221
222
223
	<distributionManagement>
		<repository>
			<id>ossrh</id>
			<name>Sonatype Releases</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
			<id>ossrh</id>
			<name>Sonatype Snapshots</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
			<uniqueVersion>true</uniqueVersion>
		</snapshotRepository>
	</distributionManagement>
Matija Obreza's avatar
Matija Obreza committed
224
</project>