-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
107 lines (95 loc) · 4.22 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
<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>io.filipvde</groupId>
<artifactId>base-pom-java-maven-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>base-pom-java-maven-parent</name>
<url>https://github.com/filipve1994/base-pom-java-maven</url>
<developers>
<developer>
<id>fve</id>
<name>FVDE</name>
<email>[email protected]</email>
<organization>fve</organization>
<organizationUrl>https://fve.io/about/#community</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/filipve1994/base-pom-java-maven.git</connection>
<developerConnection>scm:git:ssh://github.com/filipve1994/base-pom-java-maven.git</developerConnection>
<url>https://github.com/filipve1994/base-pom-java-maven/tree/master</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>21</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
<maven-jar-use-timestamp-insteadof-snapshot-as-prefixforjar>false</maven-jar-use-timestamp-insteadof-snapshot-as-prefixforjar>
</properties>
<dependencies>
</dependencies>
<!--
The <distributionManagement> section in the Maven pom.xml file specifies
where project artifacts should be deployed (published).
-->
<distributionManagement>
<!-- this is to publish to the same repo as the package -->
<!-- <repository>-->
<!-- <id>github</id>-->
<!-- <name>Github</name>-->
<!-- <url>https://maven.pkg.github.com/filipve1994/tutorial-lib</url>-->
<!-- </repository>-->
<!-- <snapshotRepository>-->
<!-- <id>github</id>-->
<!-- <url>https://maven.pkg.github.com/filipve1994/tutorial-lib</url>-->
<!-- </snapshotRepository>-->
<!-- this creates 1 repo with all projects pushed to -->
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/filipve1994/private-maven-packages-repo</url>
</repository>
<snapshotRepository>
<id>github</id>
<url>https://maven.pkg.github.com/filipve1994/private-maven-packages-repo</url>
</snapshotRepository>
</distributionManagement>
<build>
<!-- <finalName>tutorial-lib</finalName>-->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<source>${maven.compiler.source}</source>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<!-- this will change the unique timestamp in the name to -SNAPSHOT.jar -->
<!-- false => domain-1.0-SNAPSHOT.jar -->
<!-- true => domain-1.0-20240404.184611-1.jar -->
<useUniqueVersions>${maven-jar-use-timestamp-insteadof-snapshot-as-prefixforjar}</useUniqueVersions>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/</url>
</license>
</licenses>
</project>