-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
192 lines (179 loc) · 8.38 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<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>com.dkirrane.maven.plugins</groupId>
<artifactId>ggitflow-maven</artifactId>
<version>3.0</version>
<name>ggitflow-maven</name>
<packaging>pom</packaging>
<modules>
<module>ggitflow-maven-plugin</module>
<module>ggitflow-maven-archetype</module>
</modules>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netbeans.hint.license>apache20</netbeans.hint.license>
<maven.version>3.0.5</maven.version>
<maven.plugin.version>3.5</maven.plugin.version>
<maven.release.plugin.version>2.5.3</maven.release.plugin.version>
<plexus.component.version>1.6</plexus.component.version>
</properties>
<url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
<scm>
<url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
<connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
<developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
</scm>
<description>Maven Archetype for the Gitflow Maven Plugin</description>
<developers>
<developer>
<id>dkirrane</id>
<name>Desmond Kirrane</name>
<email>[email protected]</email>
</developer>
</developers>
<licenses>
<license>
<name>Apache License Version 2.0, January 2004</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
<!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
<!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
<!-- 2. Run Maven deploy sign from Git terminal:
export M2_HOME=C:/apache-maven-3.0.5
mvn clean deploy -Prelease-sign-artifacts
-->
<!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
<profile>
<id>release-sign-artifacts</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<useAgent>false</useAgent>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>run-its</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>1.8</version>
<configuration>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
<debug>true</debug>
<showErrors>true</showErrors>
<detail>true</detail>
<streamLogs>true</streamLogs>
<projectsDirectory>src/it/projects</projectsDirectory>
<cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
<!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
<addTestClassPath>true</addTestClassPath>
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<goals>
<goal>clean</goal>
<goal>test-compile</goal>
</goals>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!--
Sonatype upload details:
http://central.sonatype.org/pages/ossrh-guide.html
http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
- Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
- Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
- Promote staged artifacts into repository 'Releases'
- Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
- Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
-->
<distributionManagement>
<snapshotRepository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<repositories>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>