|
2 | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 3 | <modelVersion>4.0.0</modelVersion> |
4 | 4 |
|
5 | | - <groupId>com.licel</groupId> |
| 5 | + <properties> |
| 6 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 7 | + <netbeans.hint.license>apache20</netbeans.hint.license> |
| 8 | + <maven-javadoc-plugin.version>2.10.1</maven-javadoc-plugin.version> |
| 9 | + <ant.build.dir>${project.build.directory}/antrun/build</ant.build.dir> |
| 10 | + <junit.version>4.13.2</junit.version> |
| 11 | + <java.version>1.7</java.version> |
| 12 | + <jcApiVersion>3.0.5</jcApiVersion> |
| 13 | + <maven.compiler.target>1.7</maven.compiler.target> |
| 14 | + <maven.compiler.source>1.7</maven.compiler.source> |
| 15 | + <asm.version>9.2</asm.version> |
| 16 | + <github.dev.host>github.com</github.dev.host> |
| 17 | + <group.id>com.licel</group.id> |
| 18 | + </properties> |
| 19 | + |
| 20 | + <groupId>${group.id}</groupId> |
6 | 21 | <version>3.0.5-SNAPSHOT</version> |
7 | 22 | <packaging>jar</packaging> |
8 | | - <url>http://maven.apache.org</url> |
| 23 | + <url>https://github.com/${github.username}/jcardsim</url> |
9 | 24 |
|
10 | 25 | <artifactId>jcardsim</artifactId> |
11 | | - <name>Java Card Runime Environment Simulator</name> |
| 26 | + <name>Java Card Runtime Environment Simulator</name> |
12 | 27 | <description>jCardSim is open-source library contains implementation of Java Card API</description> |
13 | 28 |
|
14 | 29 | <organization> |
|
22 | 37 | <name>jCardSim Team</name> |
23 | 38 | <organization>Licel Corporation</organization> |
24 | 39 | </developer> |
| 40 | + <developer> |
| 41 | + <email>${github.mail}</email> |
| 42 | + <name>${github.name}</name> |
| 43 | + </developer> |
25 | 44 | </developers> |
26 | 45 |
|
27 | 46 | <licenses> |
28 | 47 | <license> |
29 | 48 | <name>Apache 2</name> |
30 | | - <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 49 | + <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
31 | 50 | <distribution>repo</distribution> |
32 | 51 | </license> |
33 | 52 | </licenses> |
34 | 53 |
|
35 | | - <properties> |
36 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
37 | | - <netbeans.hint.license>apache20</netbeans.hint.license> |
38 | | - <maven-javadoc-plugin.version>2.10.1</maven-javadoc-plugin.version> |
39 | | - <ant.build.dir>${project.build.directory}/antrun/build</ant.build.dir> |
40 | | - <junit.version>4.13.2</junit.version> |
41 | | - <java.version>1.7</java.version> |
42 | | - <jcApiVersion>3.0.5</jcApiVersion> |
43 | | - <asm.version>9.2</asm.version> |
44 | | - </properties> |
45 | | - |
46 | 54 | <distributionManagement> |
| 55 | + <snapshotRepository> |
| 56 | + <id>ossrh</id> |
| 57 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 58 | + </snapshotRepository> |
47 | 59 | <repository> |
48 | | - <id>bintray-jcardsim-maven-jCardSim</id> |
49 | | - <name>jcardsim-maven-jCardSim</name> |
50 | | - <url>https://api.bintray.com/maven/jcardsim/maven/jCardSim</url> |
| 60 | + <id>ossrh</id> |
| 61 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
51 | 62 | </repository> |
52 | 63 | </distributionManagement> |
53 | 64 |
|
54 | 65 | <scm> |
55 | | - < connection>scm:git: [email protected]: licel/jcardsim.git</ connection> |
56 | | - <developerConnection>scm:git:git@github.com:licel/jcardsim.git</developerConnection> |
57 | | - < url> [email protected]: licel/jcardsim.git</ url> |
| 66 | + < connection>scm:git: [email protected]: ${github.username}/jcardsim.git</ connection> |
| 67 | + <developerConnection>scm:git:git@${github.dev.host}:${github.username}/jcardsim.git</developerConnection> |
| 68 | + < url> [email protected]: ${github.username}/jcardsim.git</ url> |
58 | 69 | </scm> |
59 | 70 |
|
60 | 71 | <profiles> |
61 | 72 | <profile> |
62 | | - <id>sign</id> |
63 | | - <activation> |
64 | | - <property> |
65 | | - <name>keystoreLocation</name> |
66 | | - </property> |
67 | | - </activation> |
| 73 | + <id>release</id> |
68 | 74 | <build> |
69 | 75 | <plugins> |
70 | 76 | <plugin> |
|
84 | 90 | <plugin> |
85 | 91 | <groupId>org.apache.maven.plugins</groupId> |
86 | 92 | <artifactId>maven-javadoc-plugin</artifactId> |
87 | | - <version>${maven-javadoc-plugin.version}</version> |
| 93 | + <version>3.2.0</version> |
88 | 94 | <configuration> |
| 95 | + <links> |
| 96 | + <link>https://docs.oracle.com/javase/7/docs/api/</link> |
| 97 | + <link>https://docs.oracle.com/javase/7/docs/jre/api/security/smartcardio/spec/</link> |
| 98 | + </links> |
89 | 99 | <author>false</author> |
| 100 | + <source>7</source> |
90 | 101 | <bottom><![CDATA[ ]]></bottom> |
91 | 102 | </configuration> |
92 | | - </plugin> |
93 | | - <plugin> |
94 | | - <groupId>org.apache.maven.plugins</groupId> |
95 | | - <artifactId>maven-jarsigner-plugin</artifactId> |
96 | | - <version>1.2</version> |
97 | 103 | <executions> |
98 | 104 | <execution> |
99 | | - <id>sign</id> |
| 105 | + <id>attach-javadocs</id> |
100 | 106 | <goals> |
101 | | - <goal>sign</goal> |
| 107 | + <goal>jar</goal> |
102 | 108 | </goals> |
103 | 109 | </execution> |
| 110 | + </executions> |
| 111 | + </plugin> |
| 112 | + <plugin> |
| 113 | + <groupId>org.apache.maven.plugins</groupId> |
| 114 | + <artifactId>maven-gpg-plugin</artifactId> |
| 115 | + <version>1.5</version> |
| 116 | + <executions> |
104 | 117 | <execution> |
105 | | - <id>verify</id> |
| 118 | + <id>sign-artifacts</id> |
| 119 | + <phase>verify</phase> |
106 | 120 | <goals> |
107 | | - <goal>verify</goal> |
| 121 | + <goal>sign</goal> |
108 | 122 | </goals> |
| 123 | + <configuration> |
| 124 | + <keyname>${gpg.keyname}</keyname> |
| 125 | + </configuration> |
109 | 126 | </execution> |
110 | 127 | </executions> |
| 128 | + </plugin> |
| 129 | + <plugin> |
| 130 | + <groupId>org.sonatype.plugins</groupId> |
| 131 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 132 | + <version>1.6.7</version> |
| 133 | + <extensions>true</extensions> |
111 | 134 | <configuration> |
112 | | - <keystore>${keystoreLocation}</keystore> |
113 | | - <alias>${keyAlias}</alias> |
114 | | - <storepass>${keystorePass}</storepass> |
115 | | - <keypass>${keyPass}</keypass> |
116 | | - <storetype>${storeType}</storetype> |
| 135 | + <serverId>ossrh</serverId> |
| 136 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 137 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 138 | + <skipStagingRepositoryClose>true</skipStagingRepositoryClose> |
| 139 | + <keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure> |
117 | 140 | </configuration> |
118 | 141 | </plugin> |
119 | 142 | </plugins> |
|
157 | 180 | <plugins> |
158 | 181 | <plugin> |
159 | 182 | <groupId>org.apache.maven.plugins</groupId> |
160 | | - <artifactId>maven-compiler-plugin</artifactId> |
161 | | - <version>3.8.1</version> |
| 183 | + <artifactId>maven-release-plugin</artifactId> |
| 184 | + <version>2.5.3</version> |
162 | 185 | <configuration> |
163 | | - <source>${java.version}</source> |
164 | | - <target>${java.version}</target> |
| 186 | + <autoVersionSubmodules>true</autoVersionSubmodules> |
| 187 | + <useReleaseProfile>false</useReleaseProfile> |
| 188 | + <releaseProfiles>release</releaseProfiles> |
| 189 | + <goals>deploy nexus-staging:release</goals> |
165 | 190 | </configuration> |
166 | 191 | </plugin> |
167 | 192 | <plugin> |
|
249 | 274 | </dependency> |
250 | 275 | </dependencies> |
251 | 276 | </plugin> |
252 | | - <plugin> |
253 | | - <groupId>org.apache.maven.plugins</groupId> |
254 | | - <artifactId>maven-javadoc-plugin</artifactId> |
255 | | - <version>${maven-javadoc-plugin.version}</version> |
256 | | - <configuration> |
257 | | - <links> |
258 | | - <link>https://docs.oracle.com/javase/7/docs/api/</link> |
259 | | - <link>https://docs.oracle.com/javase/7/docs/jre/api/security/smartcardio/spec/</link> |
260 | | - </links> |
261 | | - <author>false</author> |
262 | | - <source>7</source> |
263 | | - </configuration> |
264 | | - </plugin> |
265 | 277 | <plugin> |
266 | 278 | <groupId>org.apache.maven.plugins</groupId> |
267 | 279 | <artifactId>maven-shade-plugin</artifactId> |
|
0 commit comments