|
5 | 5 | <modelVersion>4.0.0</modelVersion> |
6 | 6 |
|
7 | 7 | <groupId>software.xdev</groupId> |
8 | | - <artifactId>{ARTIFACT-ID}</artifactId> |
9 | | - <version>1.0-SNAPSHOT</version> |
| 8 | + <artifactId>xdev-swing-framework-template</artifactId> |
| 9 | + <version>1.0.0-SNAPSHOT</version> |
| 10 | + <packaging>jar</packaging> |
10 | 11 |
|
11 | | -<!-- |
12 | | - Need to me modified and uncomment, if used. |
13 | | - <name>{NAME}</name> |
14 | | - <description>{DESCRIPTION}</description> |
15 | | - <url>https://github.com/xdev-software/{URL}</url> |
| 12 | + |
| 13 | + <name>xdev-swing-framework-template</name> |
| 14 | + <description>xdev-swing-framework-template</description> |
| 15 | + <url>https://github.com/xdev-software/xdev-swing-framework-template</url> |
16 | 16 |
|
17 | 17 | <scm> |
18 | | - <url>https://github.com/xdev-software/{URL}</url> |
19 | | - <connection>https://github.com/xdev-software/{URL}.git</connection> |
20 | | - </scm> |
21 | | ---> |
| 18 | + <url>https://github.com/xdev-software/xdev-swing-framework-template</url> |
| 19 | + <connection>https://github.com/xdev-software/xdev-swing-framework-template.git</connection> |
| 20 | + </scm> |
| 21 | + |
| 22 | + <inceptionYear>2023</inceptionYear> |
| 23 | + |
22 | 24 | <organization> |
23 | 25 | <name>XDEV Software</name> |
24 | | - <url>https://xdev-software.com</url> |
| 26 | + <url>https://xdev.software</url> |
25 | 27 | </organization> |
26 | 28 |
|
27 | | - <inceptionYear>2003</inceptionYear> |
28 | 29 | <developers> |
29 | | - <developer> |
30 | | - <name>XDEV Software</name> |
31 | | - <organization>XDEV Software</organization> |
32 | | - <url>https://www.xdev-software.com</url> |
33 | | - </developer> |
34 | | - </developers> |
| 30 | + <developer> |
| 31 | + <name>XDEV Software</name> |
| 32 | + <organization>XDEV Software</organization> |
| 33 | + <url>https://xdev.software</url> |
| 34 | + </developer> |
| 35 | + </developers> |
35 | 36 |
|
36 | 37 | <licenses> |
37 | 38 | <license> |
38 | 39 | <name>GNU Lesser General Public License version 3</name> |
39 | 40 | <url>https://www.gnu.org/licenses/lgpl-3.0.en.html</url> |
| 41 | + <distribution>repo</distribution> |
40 | 42 | </license> |
41 | 43 | </licenses> |
42 | 44 |
|
43 | 45 | <properties> |
44 | | - <maven.compiler.source>1.8</maven.compiler.source> |
45 | | - <maven.compiler.target>1.8</maven.compiler.target> |
| 46 | + <javaVersion>1.8</javaVersion> |
| 47 | + <maven.compiler.source>${javaVersion}</maven.compiler.source> |
| 48 | + <maven.compiler.target>${javaVersion}</maven.compiler.target> |
| 49 | + |
46 | 50 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
47 | | - <xdev.xapi.version>6.0.1</xdev.xapi.version> |
48 | | - <license.licenseName>lgpl_v3</license.licenseName> |
| 51 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
49 | 52 | </properties> |
50 | 53 |
|
51 | | - <dependencies> |
52 | | - <dependency> |
53 | | - <groupId>com.xdev-software</groupId> |
54 | | - <artifactId>xapi</artifactId> |
55 | | - <version>${xdev.xapi.version}</version> |
56 | | - </dependency> |
57 | | - </dependencies> |
58 | | - |
59 | 54 | <repositories> |
60 | 55 | <!-- The order of definitions matters. Explicitly defining central here |
61 | 56 | to make sure it has the highest priority. --> |
62 | | - <repository> |
63 | | - <id>central</id> |
64 | | - <url>https://repo.maven.apache.org/maven2</url> |
65 | | - <snapshots> |
66 | | - <enabled>false</enabled> |
67 | | - </snapshots> |
68 | | - </repository> |
| 57 | + <repository> |
| 58 | + <id>central</id> |
| 59 | + <url>https://repo.maven.apache.org/maven2</url> |
| 60 | + <snapshots> |
| 61 | + <enabled>false</enabled> |
| 62 | + </snapshots> |
| 63 | + </repository> |
69 | 64 | </repositories> |
70 | 65 |
|
71 | | - |
72 | | - <pluginRepositories> |
73 | | - <!-- The order of definitions matters. Explicitly defining central here |
74 | | - to make sure it has the highest priority. --> |
75 | | - <pluginRepository> |
76 | | - <id>central</id> |
77 | | - <url>https://repo.maven.apache.org/maven2</url> |
78 | | - <snapshots> |
79 | | - <enabled>false</enabled> |
80 | | - </snapshots> |
81 | | - </pluginRepository> |
82 | | - </pluginRepositories> |
83 | | - |
84 | | - <distributionManagement> |
85 | | - <snapshotRepository> |
86 | | - <id>ossrh</id> |
87 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
88 | | - </snapshotRepository> |
89 | | - <repository> |
90 | | - <id>ossrh</id> |
91 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
92 | | - </repository> |
93 | | - </distributionManagement> |
94 | 66 |
|
95 | | - <build> |
96 | | - <plugins> |
| 67 | + <pluginRepositories> |
| 68 | + <!-- The order of definitions matters. Explicitly defining central here |
| 69 | + to make sure it has the highest priority. --> |
| 70 | + <pluginRepository> |
| 71 | + <id>central</id> |
| 72 | + <url>https://repo.maven.apache.org/maven2</url> |
| 73 | + <snapshots> |
| 74 | + <enabled>false</enabled> |
| 75 | + </snapshots> |
| 76 | + </pluginRepository> |
| 77 | + </pluginRepositories> |
| 78 | + |
| 79 | + <distributionManagement> |
| 80 | + <snapshotRepository> |
| 81 | + <id>ossrh</id> |
| 82 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 83 | + </snapshotRepository> |
| 84 | + <repository> |
| 85 | + <id>ossrh</id> |
| 86 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 87 | + </repository> |
| 88 | + </distributionManagement> |
97 | 89 |
|
98 | | - <plugin> |
99 | | - <groupId>org.apache.maven.plugins</groupId> |
100 | | - <artifactId>maven-clean-plugin</artifactId> |
101 | | - <version>3.1.0</version> |
102 | | - </plugin> |
103 | | - <plugin> |
104 | | - <groupId>org.apache.maven.plugins</groupId> |
105 | | - <artifactId>maven-deploy-plugin</artifactId> |
106 | | - <version>3.0.0-M1</version> |
107 | | - </plugin> |
108 | | - <plugin> |
109 | | - <groupId>org.apache.maven.plugins</groupId> |
110 | | - <artifactId>maven-install-plugin</artifactId> |
111 | | - <version>3.0.0-M1</version> |
112 | | - </plugin> |
113 | | - <plugin> |
114 | | - <groupId>org.apache.maven.plugins</groupId> |
115 | | - <artifactId>maven-jar-plugin</artifactId> |
116 | | - <version>3.2.0</version> |
117 | | - </plugin> |
118 | | - <plugin> |
119 | | - <groupId>org.apache.maven.plugins</groupId> |
120 | | - <artifactId>maven-resources-plugin</artifactId> |
121 | | - <version>3.2.0</version> |
122 | | - </plugin> |
123 | | - <plugin> |
124 | | - <groupId>org.apache.maven.plugins</groupId> |
125 | | - <artifactId>maven-site-plugin</artifactId> |
126 | | - <version>3.9.1</version> |
127 | | - </plugin> |
| 90 | + <dependencies> |
128 | 91 |
|
| 92 | + </dependencies> |
| 93 | + |
| 94 | + <build> |
| 95 | + <plugins> |
129 | 96 | <plugin> |
130 | | - <groupId>org.apache.maven.plugins</groupId> |
131 | | - <artifactId>maven-source-plugin</artifactId> |
132 | | - <version>3.2.1</version> |
| 97 | + <groupId>com.mycila</groupId> |
| 98 | + <artifactId>license-maven-plugin</artifactId> |
| 99 | + <version>4.1</version> |
| 100 | + <configuration> |
| 101 | + <properties> |
| 102 | + <email>${project.organization.url}</email> |
| 103 | + </properties> |
| 104 | + <licenseSets> |
| 105 | + <licenseSet> |
| 106 | + <header>com/mycila/maven/plugin/license/templates/APACHE-2.txt</header> |
| 107 | + <includes> |
| 108 | + <include>src/main/java/**</include> |
| 109 | + <include>src/test/java/**</include> |
| 110 | + </includes> |
| 111 | + </licenseSet> |
| 112 | + </licenseSets> |
| 113 | + </configuration> |
133 | 114 | <executions> |
134 | 115 | <execution> |
135 | | - <id>attach-sources</id> |
136 | | - <phase>verify</phase> |
| 116 | + <id>first</id> |
137 | 117 | <goals> |
138 | | - <goal>jar-no-fork</goal> |
| 118 | + <goal>format</goal> |
139 | 119 | </goals> |
| 120 | + <phase>process-sources</phase> |
140 | 121 | </execution> |
141 | 122 | </executions> |
142 | 123 | </plugin> |
143 | 124 |
|
144 | 125 | <plugin> |
145 | 126 | <groupId>org.apache.maven.plugins</groupId> |
146 | | - <artifactId>maven-surefire-plugin</artifactId> |
147 | | - <version>3.0.0-M5</version> |
| 127 | + <artifactId>maven-compiler-plugin</artifactId> |
| 128 | + <version>3.10.1</version> |
| 129 | + <configuration> |
| 130 | + <source>${maven.compiler.source}</source> |
| 131 | + <target>${maven.compiler.target}</target> |
| 132 | + <compilerArgs> |
| 133 | + <arg>-proc:none</arg> |
| 134 | + </compilerArgs> |
| 135 | + </configuration> |
148 | 136 | </plugin> |
149 | 137 | <plugin> |
150 | 138 | <groupId>org.apache.maven.plugins</groupId> |
151 | | - <artifactId>maven-enforcer-plugin</artifactId> |
152 | | - <version>3.0.0-M3</version> |
| 139 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 140 | + <version>3.4.1</version> |
153 | 141 | <executions> |
154 | 142 | <execution> |
155 | | - <id>enforce-maven</id> |
| 143 | + <id>attach-javadocs</id> |
| 144 | + <phase>verify</phase> |
156 | 145 | <goals> |
157 | | - <goal>enforce</goal> |
| 146 | + <goal>jar</goal> |
158 | 147 | </goals> |
159 | | - <configuration> |
160 | | - <rules> |
161 | | - <requireMavenVersion> |
162 | | - <version>3.5.4</version> |
163 | | - </requireMavenVersion> |
164 | | - <requireJavaVersion> |
165 | | - <version>1.8</version> |
166 | | - </requireJavaVersion> |
167 | | - </rules> |
168 | | - </configuration> |
169 | 148 | </execution> |
170 | 149 | </executions> |
171 | | - </plugin> |
172 | | - |
173 | | - <plugin> |
174 | | - <groupId>org.apache.maven.plugins</groupId> |
175 | | - <artifactId>maven-compiler-plugin</artifactId> |
176 | | - <version>3.8.1</version> |
177 | 150 | <configuration> |
178 | | - <compilerId>eclipse</compilerId> |
179 | | - <source>1.8</source> |
180 | | - <target>1.8</target> |
| 151 | + <quiet>true</quiet> |
| 152 | + <doclint>none</doclint> |
181 | 153 | </configuration> |
182 | | - <dependencies> |
183 | | - <dependency> |
184 | | - <groupId>org.codehaus.plexus</groupId> |
185 | | - <artifactId>plexus-compiler-eclipse</artifactId> |
186 | | - <version>2.8.8</version> |
187 | | - </dependency> |
188 | | - </dependencies> |
189 | 154 | </plugin> |
190 | | - |
191 | 155 | <plugin> |
192 | | - <groupId>org.codehaus.mojo</groupId> |
193 | | - <artifactId>license-maven-plugin</artifactId> |
194 | | - <version>2.0.0</version> |
195 | | - |
| 156 | + <groupId>org.apache.maven.plugins</groupId> |
| 157 | + <artifactId>maven-source-plugin</artifactId> |
| 158 | + <version>3.2.1</version> |
196 | 159 | <executions> |
197 | 160 | <execution> |
198 | | - <id>first</id> |
| 161 | + <id>attach-sources</id> |
| 162 | + <phase>verify</phase> |
199 | 163 | <goals> |
200 | | - <goal>update-file-header</goal> |
| 164 | + <goal>jar-no-fork</goal> |
201 | 165 | </goals> |
202 | | - <phase>process-sources</phase> |
203 | | - <configuration> |
204 | | - <roots> |
205 | | - <root>src/main/java</root> |
206 | | - <root>src/test/java</root> |
207 | | - </roots> |
208 | | - </configuration> |
209 | 166 | </execution> |
210 | 167 | </executions> |
211 | 168 | </plugin> |
212 | | - |
213 | 169 | </plugins> |
214 | 170 | </build> |
215 | | - |
| 171 | + <profiles> |
| 172 | + <profile> |
| 173 | + <id>ossrh</id> |
| 174 | + <build> |
| 175 | + <plugins> |
| 176 | + <plugin> |
| 177 | + <groupId>org.apache.maven.plugins</groupId> |
| 178 | + <artifactId>maven-gpg-plugin</artifactId> |
| 179 | + <version>3.0.1</version> |
| 180 | + <executions> |
| 181 | + <execution> |
| 182 | + <id>sign-artifacts</id> |
| 183 | + <phase>verify</phase> |
| 184 | + <goals> |
| 185 | + <goal>sign</goal> |
| 186 | + </goals> |
| 187 | + <configuration> |
| 188 | + <!-- Fixes "gpg: signing failed: Inappropriate ioctl for device" --> |
| 189 | + <!-- Prevent `gpg` from using pinentry programs --> |
| 190 | + <gpgArguments> |
| 191 | + <arg>--pinentry-mode</arg> |
| 192 | + <arg>loopback</arg> |
| 193 | + </gpgArguments> |
| 194 | + </configuration> |
| 195 | + </execution> |
| 196 | + </executions> |
| 197 | + </plugin> |
| 198 | + |
| 199 | + <plugin> |
| 200 | + <groupId>org.sonatype.plugins</groupId> |
| 201 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 202 | + <version>1.6.13</version> |
| 203 | + <extensions>true</extensions> |
| 204 | + <configuration> |
| 205 | + <serverId>ossrh</serverId> |
| 206 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 207 | + <!-- Sometimes OSSRH is really slow --> |
| 208 | + <stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes> |
| 209 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 210 | + </configuration> |
| 211 | + </plugin> |
| 212 | + </plugins> |
| 213 | + </build> |
| 214 | + </profile> |
| 215 | + </profiles> |
216 | 216 | </project> |
0 commit comments