|
5 | 5 | <modelVersion>4.0.0</modelVersion> |
6 | 6 |
|
7 | 7 | <groupId>org.magicdb.magic</groupId> |
| 8 | + <artifactId>magiclib</artifactId> |
8 | 9 | <version>1.0.0</version> |
9 | 10 |
|
10 | | - <!-- FIXME change it to the project's website --> |
| 11 | + <name>Magic library</name> |
11 | 12 | <url></url> |
12 | | - <organization> |
13 | | - <name>Optima SC Inc.</name> |
14 | | - <url>http://www.optimasc.com</url> |
15 | | - </organization> |
| 13 | + <inceptionYear>2016</inceptionYear> |
| 14 | + <description>Resource identification library based on an extensible 'magic' database.</description> |
| 15 | + |
| 16 | + |
16 | 17 |
|
17 | 18 |
|
18 | 19 | <licenses> |
|
50 | 51 | </contributor> |
51 | 52 |
|
52 | 53 | </contributors> |
| 54 | + <organization> |
| 55 | + <name>Optima SC Inc.</name> |
| 56 | + <url>http://www.optimasc.com</url> |
| 57 | + </organization> |
| 58 | + |
| 59 | + <!-- TODO: The repository location : This example is for ossrh-demo under |
| 60 | + user simpligility. This is used for maven central deployment. --> |
| 61 | + <scm> |
| 62 | + <connection>scm:git:git://github.com/simpligility/ossrh-demo.git</connection> |
| 63 | + <developerConnection>scm:git:ssh://github.com:simpligility/ossrh-demo.git</developerConnection> |
| 64 | + <url>http://github.com/simpligility/ossrh-demo/tree/master</url> |
| 65 | + </scm> |
| 66 | + |
| 67 | + <distributionManagement> |
| 68 | + <snapshotRepository> |
| 69 | + <id>ossrh</id> |
| 70 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 71 | + </snapshotRepository> |
| 72 | + <repository> |
| 73 | + <id>ossrh</id> |
| 74 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 75 | + </repository> |
| 76 | + </distributionManagement> |
| 77 | + |
| 78 | + <!-- Define the build profiles, the default one build with JDK 1.6 runtime, |
| 79 | + other one called 'jdk14' requires JDK 1.5 or 1.6 installed and active, |
| 80 | + it permits to build java code with generics that outputs the JDK 1.4 |
| 81 | + class format. It is important to understand that JDK 1.4 and JDK 1.7 |
| 82 | + will assume there are no generic types when compiling with these classes. |
| 83 | + |
| 84 | + See animal sniffer usage later on to ensure that the JDK 1.4 can successfully |
| 85 | + run on CDC FP systems in regards to the API's. |
| 86 | + --> |
| 87 | + <profiles> |
| 88 | + <profile> |
| 89 | + <id>default</id> |
| 90 | + <activation> |
| 91 | + <activeByDefault>true</activeByDefault> |
| 92 | + </activation> |
53 | 93 | <properties> |
54 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
55 | 94 | <maven.compiler.source>1.6</maven.compiler.source> |
56 | 95 | <maven.compiler.target>1.6</maven.compiler.target> |
| 96 | + <finalName>${project.artifactId}-${project.version}</finalName> |
57 | 97 | </properties> |
| 98 | + </profile> |
| 99 | + <profile> |
| 100 | + <id>jdk14</id> |
| 101 | + <properties> |
| 102 | + <maven.compiler.source>1.5</maven.compiler.source> |
| 103 | + <maven.compiler.target>jsr14</maven.compiler.target> |
| 104 | + <finalName>${project.artifactId}-${project.version}-jdk14</finalName> |
| 105 | + </properties> |
| 106 | + </profile> |
| 107 | + </profiles> |
| 108 | + |
| 109 | + <properties> |
| 110 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 111 | + <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format> |
| 112 | + </properties> |
58 | 113 |
|
59 | 114 | <dependencies> |
60 | 115 | <dependency> |
|
66 | 121 | </dependencies> |
67 | 122 |
|
68 | 123 | <build> |
| 124 | + <finalName>${finalName}</finalName> |
69 | 125 | <plugins> |
70 | 126 | <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> |
71 | 127 | <plugin> |
|
77 | 133 | <artifactId>maven-resources-plugin</artifactId> |
78 | 134 | <version>3.0.2</version> |
79 | 135 | </plugin> |
| 136 | + |
| 137 | + <!-- Permits to check against CDC FP 1.1 with JSR 280 API compatibility --> |
| 138 | + <!-- Call using mvn animal-sniffer:check --> |
| 139 | + <plugin> |
| 140 | + <groupId>org.codehaus.mojo</groupId> |
| 141 | + <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 142 | + <version>1.8</version> |
| 143 | + <configuration> |
| 144 | + <signature> |
| 145 | + <groupId>com.optimasc.signatures</groupId> |
| 146 | + <artifactId>cdc11fpxml</artifactId> |
| 147 | + <version>1.0-SNAPSHOT</version> |
| 148 | + </signature> |
| 149 | + </configuration> |
| 150 | + </plugin> |
80 | 151 | <plugin> |
81 | 152 | <artifactId>maven-compiler-plugin</artifactId> |
82 | | - <version>3.6.2</version> |
| 153 | + <version>2.3.2</version> |
| 154 | + <configuration> |
| 155 | + <source>${maven.compiler.source}</source> |
| 156 | + <target>${maven.compiler.target}</target> |
| 157 | + </configuration> |
83 | 158 | </plugin> |
84 | 159 | <plugin> |
85 | 160 | <artifactId>maven-surefire-plugin</artifactId> |
|
96 | 171 | <classpathPrefix>../lib/</classpathPrefix> |
97 | 172 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
98 | 173 | </manifest> |
| 174 | + <manifestEntries> |
| 175 | + <Build_Target>${maven.compiler.target}</Build_Target> |
| 176 | + </manifestEntries> |
99 | 177 | </archive> |
100 | 178 | </configuration> |
101 | 179 | </plugin> |
|
154 | 232 | <goal>javadoc</goal> |
155 | 233 | </goals> |
156 | 234 | </execution> |
| 235 | + <execution> |
| 236 | + <id>attach-javadocs</id> |
| 237 | + <goals> |
| 238 | + <goal>jar</goal> |
| 239 | + </goals> |
| 240 | + </execution> |
157 | 241 | </executions> |
158 | 242 | </plugin> |
159 | 243 |
|
|
164 | 248 | <configuration> |
165 | 249 | <classifier>src</classifier> |
166 | 250 | </configuration> |
| 251 | + <executions> |
| 252 | + <execution> |
| 253 | + <id>attach-sources</id> |
| 254 | + <goals> |
| 255 | + <goal>jar-no-fork</goal> |
| 256 | + </goals> |
| 257 | + </execution> |
| 258 | + </executions> |
167 | 259 | </plugin> |
168 | 260 |
|
169 | 261 | <plugin> |
|
187 | 279 | </executions> |
188 | 280 | </plugin> |
189 | 281 |
|
| 282 | + <plugin> |
| 283 | + <groupId>org.apache.maven.plugins</groupId> |
| 284 | + <artifactId>maven-gpg-plugin</artifactId> |
| 285 | + <version>1.5</version> |
| 286 | + <executions> |
| 287 | + <execution> |
| 288 | + <id>sign-artifacts</id> |
| 289 | + <phase>verify</phase> |
| 290 | + <goals> |
| 291 | + <goal>sign</goal> |
| 292 | + </goals> |
| 293 | + </execution> |
| 294 | + </executions> |
| 295 | + </plugin> |
| 296 | + |
| 297 | + <plugin> |
| 298 | + <groupId>org.sonatype.plugins</groupId> |
| 299 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 300 | + <version>1.6.7</version> |
| 301 | + <extensions>true</extensions> |
| 302 | + <configuration> |
| 303 | + <serverId>ossrh</serverId> |
| 304 | + <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
| 305 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 306 | + </configuration> |
| 307 | + </plugin> |
190 | 308 |
|
191 | 309 | <plugin> |
192 | 310 | <groupId>org.apache.maven.plugins</groupId> |
|
251 | 369 | </plugins> |
252 | 370 | </reporting> |
253 | 371 |
|
254 | | - <name>Magic library</name> |
255 | | - <inceptionYear>2016</inceptionYear> |
256 | | - <artifactId>magiclib</artifactId> |
257 | | - <description>Resource identification library based on an extensible 'magic' database.</description> |
258 | 372 | </project> |
0 commit comments