|
2 | 2 | <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"> |
3 | 3 | <modelVersion>4.0.0</modelVersion> |
4 | 4 |
|
5 | | - <groupId>com.klinec</groupId> |
6 | | - <version>3.0.5.9</version> |
| 5 | + <groupId>com.licel</groupId> |
| 6 | + <version>3.0.5-SNAPSHOT</version> |
7 | 7 | <packaging>jar</packaging> |
8 | 8 | <url>http://maven.apache.org</url> |
9 | 9 |
|
|
41 | 41 | <java.version>1.7</java.version> |
42 | 42 | <jcApiVersion>3.0.5</jcApiVersion> |
43 | 43 | </properties> |
44 | | - |
45 | | - <!-- Maven distribution repositories --> |
| 44 | + |
46 | 45 | <distributionManagement> |
47 | | - <snapshotRepository> |
48 | | - <id>ossrh</id> |
49 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
50 | | - </snapshotRepository> |
51 | 46 | <repository> |
52 | | - <id>ossrh</id> |
53 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 47 | + <id>bintray-jcardsim-maven-jCardSim</id> |
| 48 | + <name>jcardsim-maven-jCardSim</name> |
| 49 | + <url>https://api.bintray.com/maven/jcardsim/maven/jCardSim</url> |
54 | 50 | </repository> |
55 | 51 | </distributionManagement> |
56 | 52 |
|
57 | 53 | <scm> |
58 | | - < connection>scm:git: [email protected]: ph4r05/jcardsim.git</ connection> |
59 | | - < developerConnection>scm:git: [email protected]: ph4r05/jcardsim.git</ developerConnection> |
60 | | - < url> [email protected]: ph4r05/jcardsim.git</ url> |
| 54 | + < connection>scm:git: [email protected]: licel/jcardsim.git</ connection> |
| 55 | + < developerConnection>scm:git: [email protected]: licel/jcardsim.git</ developerConnection> |
| 56 | + < url> [email protected]: licel/jcardsim.git</ url> |
61 | 57 | </scm> |
62 | | - |
63 | | - <!-- Releasing: http://central.sonatype.org/pages/apache-maven.html --> |
| 58 | + |
64 | 59 | <profiles> |
65 | 60 | <profile> |
66 | | - <id>release</id> |
| 61 | + <id>sign</id> |
| 62 | + <activation> |
| 63 | + <property> |
| 64 | + <name>keystoreLocation</name> |
| 65 | + </property> |
| 66 | + </activation> |
67 | 67 | <build> |
68 | 68 | <plugins> |
69 | | - |
70 | | - <!-- Release --> |
71 | | - <plugin> |
72 | | - <groupId>org.sonatype.plugins</groupId> |
73 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
74 | | - <version>1.6.3</version> |
75 | | - <extensions>true</extensions> |
76 | | - <configuration> |
77 | | - <serverId>ossrh</serverId> |
78 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
79 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
80 | | - </configuration> |
81 | | - </plugin> |
82 | | - |
83 | | - <plugin> |
84 | | - <groupId>org.apache.maven.plugins</groupId> |
85 | | - <artifactId>maven-release-plugin</artifactId> |
86 | | - <version>2.5</version> |
87 | | - <configuration> |
88 | | - <autoVersionSubmodules>true</autoVersionSubmodules> |
89 | | - <useReleaseProfile>false</useReleaseProfile> |
90 | | - <releaseProfiles>release</releaseProfiles> |
91 | | - <goals>deploy</goals> |
92 | | - </configuration> |
93 | | - </plugin> |
94 | | - |
95 | | - <!-- Sources & Javadocs --> |
96 | 69 | <plugin> |
97 | 70 | <groupId>org.apache.maven.plugins</groupId> |
98 | 71 | <artifactId>maven-source-plugin</artifactId> |
99 | 72 | <version>2.2.1</version> |
100 | 73 | <executions> |
101 | 74 | <execution> |
102 | 75 | <id>attach-sources</id> |
| 76 | + <phase>verify</phase> |
103 | 77 | <goals> |
104 | 78 | <goal>jar-no-fork</goal> |
105 | 79 | </goals> |
106 | 80 | </execution> |
107 | 81 | </executions> |
108 | | - </plugin> |
| 82 | + </plugin> |
109 | 83 | <plugin> |
110 | 84 | <groupId>org.apache.maven.plugins</groupId> |
111 | 85 | <artifactId>maven-javadoc-plugin</artifactId> |
112 | | - <version>2.9.1</version> |
| 86 | + <version>${maven-javadoc-plugin.version}</version> |
| 87 | + <configuration> |
| 88 | + <author>false</author> |
| 89 | + <bottom> </bottom> |
| 90 | + </configuration> |
| 91 | + </plugin> |
| 92 | + <plugin> |
| 93 | + <groupId>org.apache.maven.plugins</groupId> |
| 94 | + <artifactId>maven-jarsigner-plugin</artifactId> |
| 95 | + <version>1.2</version> |
113 | 96 | <executions> |
114 | 97 | <execution> |
115 | | - <id>attach-javadocs</id> |
| 98 | + <id>sign</id> |
116 | 99 | <goals> |
117 | | - <goal>jar</goal> |
| 100 | + <goal>sign</goal> |
118 | 101 | </goals> |
119 | 102 | </execution> |
120 | | - </executions> |
121 | | - </plugin> |
122 | | - |
123 | | - <!-- GPG signature --> |
124 | | - <plugin> |
125 | | - <groupId>org.apache.maven.plugins</groupId> |
126 | | - <artifactId>maven-gpg-plugin</artifactId> |
127 | | - <version>1.5</version> |
128 | | - <executions> |
129 | 103 | <execution> |
130 | | - <id>sign-artifacts</id> |
131 | | - <phase>verify</phase> |
| 104 | + <id>verify</id> |
132 | 105 | <goals> |
133 | | - <goal>sign</goal> |
| 106 | + <goal>verify</goal> |
134 | 107 | </goals> |
135 | 108 | </execution> |
136 | 109 | </executions> |
137 | | - </plugin> |
| 110 | + <configuration> |
| 111 | + <keystore>${keystoreLocation}</keystore> |
| 112 | + <alias>${keyAlias}</alias> |
| 113 | + <storepass>${keystorePass}</storepass> |
| 114 | + <keypass>${keyPass}</keypass> |
| 115 | + <storetype>${storeType}</storetype> |
| 116 | + </configuration> |
| 117 | + </plugin> |
138 | 118 | </plugins> |
139 | 119 | </build> |
140 | | - </profile> |
| 120 | + </profile> |
141 | 121 | </profiles> |
142 | 122 |
|
143 | 123 | <dependencies> |
|
156 | 136 | <groupId>oracle.javacard</groupId> |
157 | 137 | <artifactId>api_classic</artifactId> |
158 | 138 | <version>${jcApiVersion}</version> |
159 | | - <scope>provided</scope> |
160 | | - <optional>true</optional> |
| 139 | + <scope>compile</scope> |
161 | 140 | </dependency> |
162 | 141 | <dependency> |
163 | 142 | <groupId>org.ow2.asm</groupId> |
|
240 | 219 | </execution> |
241 | 220 | </executions> |
242 | 221 | </plugin> |
243 | | - <plugin> |
| 222 | + <plugin> |
244 | 223 | <groupId>org.apache.maven.plugins</groupId> |
245 | | - <artifactId>maven-surefire-plugin</artifactId> |
246 | | - <version>2.19.1</version> |
247 | | - <configuration> |
248 | | - <argLine>-noverify</argLine> |
249 | | - </configuration> |
250 | | - </plugin> |
| 224 | + <artifactId>maven-surefire-plugin</artifactId> |
| 225 | + <version>2.21.0</version> |
| 226 | + <configuration> |
| 227 | + <argLine>-noverify</argLine> |
| 228 | + </configuration> |
| 229 | + </plugin> |
251 | 230 | <!-- patch --> |
252 | 231 | <plugin> |
253 | 232 | <groupId>org.codehaus.mojo</groupId> |
|
281 | 260 | </configuration> |
282 | 261 | </execution> |
283 | 262 | </executions> |
284 | | - |
285 | 263 | </plugin> |
286 | 264 | <plugin> |
287 | 265 | <groupId>org.apache.maven.plugins</groupId> |
|
314 | 292 | <include>org.bouncycastle:*</include> |
315 | 293 | </includes> |
316 | 294 | <excludes> |
317 | | - <exclude>java.io:*</exclude> |
318 | | - <exclude>java.lang:*</exclude> |
319 | | - <exclude>java.rmi:*</exclude> |
320 | 295 | <exclude>oracle.javacard:*</exclude> |
321 | 296 | <exclude>oracle.javacard:*:*:*</exclude> |
322 | 297 | <exclude>*:api_classic</exclude> |
|
349 | 324 | <include>org.bouncycastle:*</include> |
350 | 325 | </includes> |
351 | 326 | <excludes> |
352 | | - <exclude>java.io:*</exclude> |
353 | | - <exclude>java.lang:*</exclude> |
354 | | - <exclude>java.rmi:*</exclude> |
355 | 327 | <exclude>oracle.javacard:*</exclude> |
356 | 328 | <exclude>oracle.javacard:*:*:*</exclude> |
357 | 329 | <exclude>*:api_classic</exclude> |
|
419 | 391 | <artifactId>maven-antrun-plugin</artifactId> |
420 | 392 | <version>1.8</version> |
421 | 393 | <dependencies> |
422 | | -<!-- <dependency>--> |
423 | | -<!-- <groupId>com.sun</groupId>--> |
424 | | -<!-- <artifactId>tools</artifactId>--> |
425 | | -<!-- <version>1.5.0</version>--> |
426 | | -<!-- <scope>system</scope>--> |
427 | | -<!-- <systemPath>${java.home}/../lib/tools.jar</systemPath>--> |
428 | | -<!-- </dependency>--> |
| 394 | + <dependency> |
| 395 | + <groupId>com.sun</groupId> |
| 396 | + <artifactId>tools</artifactId> |
| 397 | + <version>1.5.0</version> |
| 398 | + <scope>system</scope> |
| 399 | + <systemPath>${java.home}/../lib/tools.jar</systemPath> |
| 400 | + </dependency> |
429 | 401 | <dependency> |
430 | 402 | <groupId>org.apache.ant</groupId> |
431 | 403 | <artifactId>ant-junit</artifactId> |
|
438 | 410 | <configuration> |
439 | 411 | <target> |
440 | 412 | <path id="compileClasspath"> |
441 | | - <file name="${project.build.directory}/${project.artifactId}-${project.version}.jar" /> |
| 413 | + <file name="${project.build.directory}/jcardsim-${project.version}.jar" /> |
442 | 414 | <file name="${user.home}/.m2/repository/junit/junit/${junit.version}/junit-${junit.version}.jar" /> |
443 | 415 | </path> |
444 | 416 |
|
|
448 | 420 | <mkdir dir="${ant.build.dir}/reports"/> |
449 | 421 | <mkdir dir="${ant.build.dir}/bin/unpacked"/> |
450 | 422 | <!-- remove sign --> |
451 | | - <unzip src="${project.build.directory}/${project.artifactId}-${project.version}-android.jar" |
| 423 | + <unzip src="${project.build.directory}/jcardsim-${project.version}-android.jar" |
452 | 424 | dest="${ant.build.dir}/bin/unpacked"> |
453 | 425 | <patternset> |
454 | 426 | <exclude name="**/*.SF"/> |
|
475 | 447 | <fileset dir="${project.basedir}/src/test/resources" /> |
476 | 448 | </copy> |
477 | 449 |
|
478 | | - <echo>Testing shaded JAR: ${project.artifactId}-${project.version}-android.jar</echo> |
| 450 | + <echo>Testing shaded JAR: jcardsim-${project.version}-android.jar</echo> |
479 | 451 | <junit fork="yes" forkmode="once" haltonfailure="yes" printsummary="true"> |
480 | | - <jvmarg value="-noverify"/> |
| 452 | + <jvmarg value="-noverify"/> |
481 | 453 | <classpath> |
482 | 454 | <path refid="testClasspath" /> |
483 | 455 | <pathelement location="${ant.build.dir}/bin" /> |
|
0 commit comments