Skip to content

Commit 9adc5b9

Browse files
committed
+ add pom elements and maven plugins for deploy
1 parent 590c3d7 commit 9adc5b9

File tree

1 file changed

+135
-0
lines changed

1 file changed

+135
-0
lines changed

pom.xml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<groupId>com.alibaba.compileflow</groupId>
88
<artifactId>compileflow</artifactId>
99
<version>1.0.0</version>
10+
<name>compileflow</name>
11+
<description>Compileflow is a very lightweight, high-performance, integrable and extensible process engine.</description>
12+
<url>https://github.com/alibaba/compileflow</url>
13+
<inceptionYear>2020</inceptionYear>
1014

1115
<licenses>
1216
<license>
@@ -242,6 +246,10 @@
242246
<!--</execution>-->
243247
<!--</executions>-->
244248
<!--</plugin>-->
249+
<plugin>
250+
<artifactId>maven-deploy-plugin</artifactId>
251+
<version>2.8.2</version>
252+
</plugin>
245253
<plugin>
246254
<groupId>org.sonatype.plugins</groupId>
247255
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -255,4 +263,131 @@
255263
</plugin>
256264
</plugins>
257265
</build>
266+
<profiles>
267+
<profile>
268+
<id>gen-src+doc</id>
269+
<activation>
270+
<property>
271+
<name>performRelease</name>
272+
<value>true</value>
273+
</property>
274+
</activation>
275+
<build>
276+
<plugins>
277+
<plugin>
278+
<artifactId>maven-source-plugin</artifactId>
279+
<version>3.2.1</version>
280+
<executions>
281+
<execution>
282+
<id>attach-sources</id>
283+
<goals>
284+
<goal>jar</goal>
285+
</goals>
286+
</execution>
287+
</executions>
288+
</plugin>
289+
<plugin>
290+
<artifactId>maven-javadoc-plugin</artifactId>
291+
<version>3.2.0</version>
292+
<executions>
293+
<execution>
294+
<id>attach-javadoc</id>
295+
<goals>
296+
<goal>jar</goal>
297+
</goals>
298+
</execution>
299+
</executions>
300+
<configuration>
301+
<source>8</source>
302+
<show>protected</show>
303+
<charset>UTF-8</charset>
304+
<encoding>UTF-8</encoding>
305+
<docencoding>UTF-8</docencoding>
306+
<additionalJOptions>
307+
<additionalJOption>-quiet</additionalJOption>
308+
<additionalJOption>-J-Duser.language=en</additionalJOption>
309+
<additionalJOption>-J-Duser.country=US</additionalJOption>
310+
<additionalJOption>-Xdoclint:none</additionalJOption>
311+
</additionalJOptions>
312+
</configuration>
313+
</plugin>
314+
</plugins>
315+
</build>
316+
</profile>
317+
<profile>
318+
<id>gen-sign</id>
319+
<activation>
320+
<property>
321+
<name>performRelease</name>
322+
<value>true</value>
323+
</property>
324+
</activation>
325+
<build>
326+
<plugins>
327+
<plugin>
328+
<artifactId>maven-gpg-plugin</artifactId>
329+
<version>1.6</version>
330+
<executions>
331+
<execution>
332+
<id>sign-artifacts</id>
333+
<phase>verify</phase>
334+
<goals>
335+
<goal>sign</goal>
336+
</goals>
337+
</execution>
338+
</executions>
339+
</plugin>
340+
</plugins>
341+
</build>
342+
</profile>
343+
<profile>
344+
<id>gen-git-properties</id>
345+
<activation>
346+
<property>
347+
<name>performRelease</name>
348+
<value>true</value>
349+
</property>
350+
</activation>
351+
<build>
352+
<plugins>
353+
<!--
354+
Maven plugin which includes build-time git repository information into an POJO / *.properties).
355+
Make your apps tell you which version exactly they were built from! Priceless in large distributed deployments.
356+
https://github.com/ktoso/maven-git-commit-id-plugin
357+
-->
358+
<plugin>
359+
<groupId>pl.project13.maven</groupId>
360+
<artifactId>git-commit-id-plugin</artifactId>
361+
<version>4.0.2</version>
362+
<executions>
363+
<execution>
364+
<id>get-the-git-infos</id>
365+
<goals>
366+
<goal>revision</goal>
367+
</goals>
368+
</execution>
369+
<execution>
370+
<id>validate-the-git-infos</id>
371+
<goals>
372+
<goal>validateRevision</goal>
373+
</goals>
374+
</execution>
375+
</executions>
376+
<configuration>
377+
<validationProperties>
378+
<!-- verify that the current repository is not dirty -->
379+
<validationProperty>
380+
<name>validating git dirty</name>
381+
<value>${git.dirty}</value>
382+
<shouldMatchTo>false</shouldMatchTo>
383+
</validationProperty>
384+
</validationProperties>
385+
<generateGitPropertiesFile>true</generateGitPropertiesFile>
386+
<generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/scm/${project.groupId}/${project.artifactId}/git.properties</generateGitPropertiesFilename>
387+
</configuration>
388+
</plugin>
389+
</plugins>
390+
</build>
391+
</profile>
392+
</profiles>
258393
</project>

0 commit comments

Comments
 (0)