1+ <project xmlns="http://maven.apache.org/POM/4.0.0"
2+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+ <modelVersion>4.0.0</modelVersion>
5+
6+ <groupId>io.github.fvarrui</groupId>
7+ <artifactId>javapackager</artifactId>
8+ <version>0.8.9-SNAPSHOT</version>
9+ <packaging>maven-plugin</packaging>
10+
11+ <name>JavaPackager Maven Plugin</name>
12+
13+ <url>https://github.com/fvarrui/JavaPackager</url>
14+
15+ <properties>
16+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+ <maven.compiler.source>1.8</maven.compiler.source>
18+ <maven.compiler.target>1.8</maven.compiler.target>
19+ </properties>
20+
21+
22+ <scm>
23+ <connection>scm:git:git://github.com/fvarrui/JavaPackager.git</connection>
24+ <developerConnection>scm:git:git@github.com:fvarrui/fvarrui.git</developerConnection>
25+ <url>https://github.com/fvarrui/JavaPackager</url>
26+ <tag>HEAD</tag>
27+ </scm>
28+
29+ <dependencies>
30+ <dependency>
31+ <groupId>org.apache.maven</groupId>
32+ <artifactId>maven-plugin-api</artifactId>
33+ <version>3.6.0</version>
34+ </dependency>
35+ <dependency>
36+ <groupId>org.apache.maven.plugin-tools</groupId>
37+ <artifactId>maven-plugin-annotations</artifactId>
38+ <version>3.6.0</version>
39+ <scope>provided</scope>
40+ </dependency>
41+ <dependency>
42+ <groupId>org.codehaus.plexus</groupId>
43+ <artifactId>plexus-utils</artifactId>
44+ <version>3.1.1</version>
45+ </dependency>
46+ <dependency>
47+ <groupId>junit</groupId>
48+ <artifactId>junit</artifactId>
49+ <version>4.12</version>
50+ <scope>test</scope>
51+ </dependency>
52+ <dependency>
53+ <groupId>org.twdata.maven</groupId>
54+ <artifactId>mojo-executor</artifactId>
55+ <version>2.3.0</version>
56+ </dependency>
57+ <dependency>
58+ <groupId>org.apache.commons</groupId>
59+ <artifactId>commons-lang3</artifactId>
60+ <version>3.9</version>
61+ </dependency>
62+ <dependency>
63+ <groupId>commons-io</groupId>
64+ <artifactId>commons-io</artifactId>
65+ <version>2.6</version>
66+ </dependency>
67+ <dependency>
68+ <groupId>org.apache.velocity</groupId>
69+ <artifactId>velocity-engine-core</artifactId>
70+ <version>2.0</version>
71+ </dependency>
72+ </dependencies>
73+
74+ <build>
75+ <plugins>
76+
77+ <plugin>
78+ <groupId>org.apache.maven.plugins</groupId>
79+ <artifactId>maven-plugin-plugin</artifactId>
80+ <version>3.6.0</version>
81+ <executions>
82+ <execution>
83+ <id>help-goal</id>
84+ <goals>
85+ <goal>help</goal>
86+ </goals>
87+ <configuration>
88+ <goalPrefix>javapackager</goalPrefix>
89+ <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
90+ </configuration>
91+ </execution>
92+ </executions>
93+ </plugin>
94+
95+ <!--
96+ <plugin>
97+ <groupId>org.apache.maven.plugins</groupId>
98+ <artifactId>maven-install-plugin</artifactId>
99+ <version>3.0.0-M1</version>
100+ <configuration>
101+ <createChecksum>true</createChecksum>
102+ </configuration>
103+ <executions>
104+ <execution>
105+ <id>release</id>
106+ <phase>install</phase>
107+ <goals>
108+ <goal>install-file</goal>
109+ </goals>
110+ <configuration>
111+ <localRepositoryPath>releases</localRepositoryPath>
112+ <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
113+ </configuration>
114+ </execution>
115+ </executions>
116+ </plugin>
117+
118+ <plugin>
119+ <groupId>net.nicoulaj.maven.plugins</groupId>
120+ <artifactId>checksum-maven-plugin</artifactId>
121+ <version>1.8</version>
122+ <executions>
123+ <execution>
124+ <id>create-artifact-checksums</id>
125+ <phase>package</phase>
126+ <goals>
127+ <goal>artifacts</goal>
128+ </goals>
129+ </execution>
130+ <execution>
131+ <id>create-pom-checksums</id>
132+ <phase>install</phase>
133+ <goals>
134+ <goal>files</goal>
135+ </goals>
136+ <configuration>
137+ <fileSets>
138+ <fileSet>
139+ <directory>${project.basedir}/releases/io/github/fvarrui/javapackager/${project.version}</directory>
140+ <includes>
141+ <include>${project.artifactId}-${project.version}.pom</include>
142+ </includes>
143+ </fileSet>
144+ </fileSets>
145+ </configuration>
146+ </execution>
147+ </executions>
148+ </plugin>
149+
150+ <plugin>
151+ <groupId>org.apache.maven.plugins</groupId>
152+ <artifactId>maven-resources-plugin</artifactId>
153+ <version>3.1.0</version>
154+ <executions>
155+ <execution>
156+ <id>copy-checksums</id>
157+ <phase>install</phase>
158+ <goals>
159+ <goal>copy-resources</goal>
160+ </goals>
161+ <configuration>
162+ <outputDirectory>${project.basedir}/releases/io/github/fvarrui/javapackager/${project.version}</outputDirectory>
163+ <overwrite>true</overwrite>
164+ <resources>
165+ <resource>
166+ <directory>${project.build.directory}</directory>
167+ <includes>
168+ <include>${project.artifactId}-${project.version}.jar.md5</include>
169+ <include>${project.artifactId}-${project.version}.jar.sha1</include>
170+ </includes>
171+ </resource>
172+ </resources>
173+ </configuration>
174+ </execution>
175+ </executions>
176+ </plugin>
177+ -->
178+
179+ <plugin>
180+ <artifactId>maven-deploy-plugin</artifactId>
181+ <version>2.8.2</version>
182+ <executions>
183+ <execution>
184+ <id>default-deploy</id>
185+ <phase>deploy</phase>
186+ <goals>
187+ <goal>deploy</goal>
188+ </goals>
189+ </execution>
190+ </executions>
191+ </plugin>
192+
193+ <plugin>
194+ <groupId>org.apache.maven.plugins</groupId>
195+ <artifactId>maven-release-plugin</artifactId>
196+ <configuration>
197+ <localCheckout>true</localCheckout>
198+ <pushChanges>false</pushChanges>
199+ <mavenExecutorId>forked-path</mavenExecutorId>
200+ <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
201+ </configuration>
202+ <dependencies>
203+ <dependency>
204+ <groupId>org.apache.maven.scm</groupId>
205+ <artifactId>maven-scm-provider-gitexe</artifactId>
206+ <version>1.9.5</version>
207+ </dependency>
208+ </dependencies>
209+ </plugin>
210+
211+ <plugin>
212+ <groupId>org.sonatype.plugins</groupId>
213+ <artifactId>nexus-staging-maven-plugin</artifactId>
214+ <version>1.6.7</version>
215+ <extensions>true</extensions>
216+ <configuration>
217+ <serverId>ossrh</serverId>
218+ <nexusUrl>https://oss.sonatype.org/</nexusUrl>
219+ <autoReleaseAfterClose>true</autoReleaseAfterClose>
220+ </configuration>
221+ </plugin>
222+
223+ </plugins>
224+ </build>
225+
226+ <profiles>
227+
228+ <profile>
229+ <id>run-its</id>
230+ <build>
231+ <plugins>
232+ <plugin>
233+ <groupId>org.apache.maven.plugins</groupId>
234+ <artifactId>maven-invoker-plugin</artifactId>
235+ <version>1.7</version>
236+ <configuration>
237+ <debug>true</debug>
238+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
239+ <pomIncludes>
240+ <pomInclude>*/pom.xml</pomInclude>
241+ </pomIncludes>
242+ <postBuildHookScript>verify</postBuildHookScript>
243+ <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
244+ <settingsFile>src/it/settings.xml</settingsFile>
245+ <goals>
246+ <goal>clean</goal>
247+ <goal>test-compile</goal>
248+ </goals>
249+ </configuration>
250+ <executions>
251+ <execution>
252+ <id>integration-test</id>
253+ <goals>
254+ <goal>install</goal>
255+ <goal>integration-test</goal>
256+ <goal>verify</goal>
257+ </goals>
258+ </execution>
259+ </executions>
260+ </plugin>
261+ </plugins>
262+ </build>
263+ </profile>
264+
265+ <!-- GPG Signature on release -->
266+ <profile>
267+ <id>release-sign-artifacts</id>
268+ <activation>
269+ <property>
270+ <name>performRelease</name>
271+ <value>true</value>
272+ </property>
273+ </activation>
274+ <build>
275+ <plugins>
276+ <plugin>
277+ <groupId>org.apache.maven.plugins</groupId>
278+ <artifactId>maven-gpg-plugin</artifactId>
279+ <version>1.6</version>
280+ <executions>
281+ <execution>
282+ <id>sign-artifacts</id>
283+ <phase>verify</phase>
284+ <goals>
285+ <goal>sign</goal>
286+ </goals>
287+ </execution>
288+ </executions>
289+ </plugin>
290+ </plugins>
291+ </build>
292+ </profile>
293+
294+ </profiles>
295+
296+ <distributionManagement>
297+ <snapshotRepository>
298+ <id>ossrh</id>
299+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
300+ </snapshotRepository>
301+ <repository>
302+ <id>ossrh</id>
303+ <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
304+ </repository>
305+ </distributionManagement>
306+
307+ </project>
0 commit comments