[3951] | 1 | <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/maven-v4_0_0.xsd">
|
---|
| 2 | <modelVersion>4.0.0</modelVersion>
|
---|
| 3 | <groupId>net.sf.jupload</groupId>
|
---|
| 4 | <artifactId>jupload</artifactId>
|
---|
| 5 | <packaging>jar</packaging>
|
---|
| 6 | <version>5.0.1</version>
|
---|
| 7 | <name>JUpload project on Sourceforge</name>
|
---|
| 8 | <description>
|
---|
| 9 | Java Multiple File Upload Applet (JUpload) takes care of
|
---|
| 10 | the limitation posed by traditional HTML upload forms
|
---|
| 11 | by allowing you to upload a whole directory and the files within it with
|
---|
| 12 | a single click. Optionally, it allows
|
---|
| 13 | simple picture management.
|
---|
| 14 | </description>
|
---|
| 15 | <url>http://jupload.sourceforge.net</url>
|
---|
| 16 | <issueManagement>
|
---|
| 17 | <system>Sourceforge trackers</system>
|
---|
| 18 | <url>https://sourceforge.net/tracker/?group_id=59144</url>
|
---|
| 19 | </issueManagement>
|
---|
| 20 | <developers>
|
---|
| 21 | <developer>
|
---|
| 22 | <id>etienne_sf</id>
|
---|
| 23 | <name>Etienne</name>
|
---|
| 24 | <email>etienne_sf@users.sourceforge.net</email>
|
---|
| 25 | <url>https://sourceforge.net/users/etienne_sf</url>
|
---|
| 26 | <roles>
|
---|
| 27 | <role>Administrator</role>
|
---|
| 28 | </roles>
|
---|
| 29 | </developer>
|
---|
| 30 | <developer>
|
---|
| 31 | <id>felfert</id>
|
---|
| 32 | <name>Fritz Elfert</name>
|
---|
| 33 | <email>felfert@users.sourceforge.net</email>
|
---|
| 34 | <url>https://sourceforge.net/users/felfert</url>
|
---|
| 35 | <roles>
|
---|
| 36 | <role>Developper (Felfert did a lot enhancement, but he is no more active)</role>
|
---|
| 37 | </roles>
|
---|
| 38 | </developer>
|
---|
| 39 | <developer>
|
---|
| 40 | <id>postb99</id>
|
---|
| 41 | <name>Barbara Post</name>
|
---|
| 42 | <email>postb99@users.sourceforge.net</email>
|
---|
| 43 | <url>https://sourceforge.net/users/postb99</url>
|
---|
| 44 | <roles>
|
---|
| 45 | <role>Developper</role>
|
---|
| 46 | </roles>
|
---|
| 47 | </developer>
|
---|
| 48 | <developer>
|
---|
| 49 | <id>nordfalk</id>
|
---|
| 50 | <name>Jacob Nordfalk</name>
|
---|
| 51 | <email>nordfalk@users.sourceforge.net</email>
|
---|
| 52 | <url>https://sourceforge.net/users/nordfalk</url>
|
---|
| 53 | <roles>
|
---|
| 54 | <role>Developper</role>
|
---|
| 55 | </roles>
|
---|
| 56 | </developer>
|
---|
| 57 | <developer>
|
---|
| 58 | <id>ehsavoie</id>
|
---|
| 59 | <name>ehsavoie</name>
|
---|
| 60 | <email>ehsavoie@users.sourceforge.net</email>
|
---|
| 61 | <url>https://sourceforge.net/users/ehsavoie</url>
|
---|
| 62 | <roles>
|
---|
| 63 | <role>Developper</role>
|
---|
| 64 | </roles>
|
---|
| 65 | </developer>
|
---|
| 66 | <developer>
|
---|
| 67 | <id>bilbo_uk</id>
|
---|
| 68 | <name>Geoff</name>
|
---|
| 69 | <email>bilbo_uk@users.sourceforge.net</email>
|
---|
| 70 | <url>https://sourceforge.net/users/bilbo_uk</url>
|
---|
| 71 | <roles>
|
---|
| 72 | <role>Developper</role>
|
---|
| 73 | </roles>
|
---|
| 74 | </developer>
|
---|
| 75 | </developers>
|
---|
| 76 | <licenses>
|
---|
| 77 | <license>
|
---|
| 78 | <name>GNU GPL V3</name>
|
---|
| 79 | <url>http://www.gnu.org/licenses/gpl-3.0.html</url>
|
---|
| 80 | <distribution>repo</distribution>
|
---|
| 81 | <comments>Une</comments>
|
---|
| 82 | </license>
|
---|
| 83 | </licenses>
|
---|
| 84 | <scm>
|
---|
| 85 | <connection>scm:svn:https://jupload.svn.sourceforge.net/svnroot/jupload/tags/5.0.1</connection>
|
---|
| 86 | <developerConnection>scm:svn:https://jupload.svn.sourceforge.net/svnroot/jupload/tags/5.0.1</developerConnection>
|
---|
| 87 | <url>https://jupload.svn.sourceforge.net/svnroot/jupload/tags/5.0.1</url>
|
---|
| 88 | </scm>
|
---|
| 89 | <profiles>
|
---|
| 90 | <profile>
|
---|
| 91 | <!--
|
---|
| 92 | The generate-key is executed twice in the release:perform goal. So,
|
---|
| 93 | we remove the generated keystore, in the release:perform goal
|
---|
| 94 | execution. This should be executed before the generate-key. So it
|
---|
| 95 | will do something ... only if generate-key is executed twice.
|
---|
| 96 | -->
|
---|
| 97 | <id>remove-keystore</id>
|
---|
| 98 | <activation>
|
---|
| 99 | <file>
|
---|
| 100 | <missing>target/keystore</missing>
|
---|
| 101 | </file>
|
---|
| 102 | </activation>
|
---|
| 103 | <build>
|
---|
| 104 | <plugins>
|
---|
| 105 | <plugin>
|
---|
| 106 | <artifactId>maven-antrun-plugin</artifactId>
|
---|
| 107 | <executions>
|
---|
| 108 | <execution>
|
---|
| 109 | <phase>generate-sources</phase>
|
---|
| 110 | <configuration>
|
---|
| 111 | <tasks>
|
---|
| 112 | <delete file="target/keystore" />
|
---|
| 113 | </tasks>
|
---|
| 114 | </configuration>
|
---|
| 115 | <goals>
|
---|
| 116 | <goal>run</goal>
|
---|
| 117 | </goals>
|
---|
| 118 | </execution>
|
---|
| 119 | </executions>
|
---|
| 120 | </plugin>
|
---|
| 121 |
|
---|
| 122 | </plugins>
|
---|
| 123 | </build>
|
---|
| 124 | </profile>
|
---|
| 125 | <profile>
|
---|
| 126 | <!--
|
---|
| 127 | This profile generates a key, for applet signing. This key is only
|
---|
| 128 | used if the user didn't define the 'jupload.keystore.filename'
|
---|
| 129 | property in its settings.xml file.
|
---|
| 130 | -->
|
---|
| 131 | <!-- See the HowTo compile, on JUpload site for details. -->
|
---|
| 132 | <!--
|
---|
| 133 | See the generate-sign-key profile, here above, for use of this
|
---|
| 134 | generated key.
|
---|
| 135 | -->
|
---|
| 136 | <id>generate-key</id>
|
---|
| 137 | <activation>
|
---|
| 138 | <file>
|
---|
| 139 | <!--
|
---|
| 140 | Property biding is done after profile resulation. We need to
|
---|
| 141 | 'hard-code' the file name, for it to work.
|
---|
| 142 | -->
|
---|
| 143 | <missing>target/keystore</missing>
|
---|
| 144 | </file>
|
---|
| 145 | </activation>
|
---|
| 146 | <build>
|
---|
| 147 | <plugins>
|
---|
| 148 | <plugin>
|
---|
| 149 | <groupId>org.codehaus.mojo</groupId>
|
---|
| 150 | <artifactId>keytool-maven-plugin</artifactId>
|
---|
| 151 | <version>1.0</version>
|
---|
| 152 | <!--
|
---|
| 153 | This plugin allows to locally generate a certificate, to sign the
|
---|
| 154 | applet. See http://jupload.sourceforge.net/howto-compile.html
|
---|
| 155 | -->
|
---|
| 156 | <executions>
|
---|
| 157 | <execution>
|
---|
| 158 | <id>generate-demo-cert</id>
|
---|
| 159 | <phase>prepare-package</phase>
|
---|
| 160 | <goals>
|
---|
| 161 | <goal>genkey</goal>
|
---|
| 162 | </goals>
|
---|
| 163 | </execution>
|
---|
| 164 | </executions>
|
---|
| 165 | <configuration>
|
---|
| 166 | <alias>jupload</alias>
|
---|
| 167 | <keystore>target/keystore</keystore>
|
---|
| 168 | <storepass>jupload-demo-pass</storepass>
|
---|
| 169 | <dname>cn=demo-jupload.sourceforge.net,ou=None,L=None,ST=None,o=JUpload,c=None</dname>
|
---|
| 170 | <validity>180</validity> <!-- Six month is enough, for a demo certificate -->
|
---|
| 171 | </configuration>
|
---|
| 172 | </plugin>
|
---|
| 173 | </plugins>
|
---|
| 174 | </build>
|
---|
| 175 | </profile>
|
---|
| 176 | <profile>
|
---|
| 177 | <!--
|
---|
| 178 | This profile: (1) generates an assembly (which contains the official
|
---|
| 179 | release for JUpload) and (2) sign all the project artefacts with the
|
---|
| 180 | user's PGP key. It is activated only when performing a release.
|
---|
| 181 | -->
|
---|
| 182 | <id>generate-jupload-release</id>
|
---|
| 183 | <activation>
|
---|
| 184 | <activeByDefault>false</activeByDefault>
|
---|
| 185 | </activation>
|
---|
| 186 | <build>
|
---|
| 187 | <plugins>
|
---|
| 188 | <plugin>
|
---|
| 189 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 190 | <artifactId>maven-assembly-plugin</artifactId>
|
---|
| 191 | <version>2.2-beta-5</version>
|
---|
| 192 | <configuration>
|
---|
| 193 | <finalName>jupload</finalName>
|
---|
| 194 | <descriptors>
|
---|
| 195 | <descriptor>src/main/assembly/release.xml</descriptor>
|
---|
| 196 | </descriptors>
|
---|
| 197 | </configuration>
|
---|
| 198 | <executions>
|
---|
| 199 | <execution>
|
---|
| 200 | <id>make-assembly</id> <!-- this is used for inheritance merges -->
|
---|
| 201 | <phase>package</phase> <!-- append to the packaging phase. -->
|
---|
| 202 | <goals>
|
---|
| 203 | <goal>single</goal> <!-- goals == mojos -->
|
---|
| 204 | </goals>
|
---|
| 205 | </execution>
|
---|
| 206 | </executions>
|
---|
| 207 | </plugin>
|
---|
| 208 | <plugin>
|
---|
| 209 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 210 | <artifactId>maven-gpg-plugin</artifactId>
|
---|
| 211 | <version>1.0</version>
|
---|
| 212 | <executions>
|
---|
| 213 | <execution>
|
---|
| 214 | <id>gpg-sign-artifacts</id>
|
---|
| 215 | <phase>verify</phase>
|
---|
| 216 | <goals>
|
---|
| 217 | <goal>sign</goal>
|
---|
| 218 | </goals>
|
---|
| 219 | <configuration>
|
---|
| 220 | <passphrase>${jupload.pgp.passphrase}</passphrase>
|
---|
| 221 | <keyname>${jupload.pgp.keyname}</keyname>
|
---|
| 222 | </configuration>
|
---|
| 223 | </execution>
|
---|
| 224 | </executions>
|
---|
| 225 | </plugin>
|
---|
| 226 | </plugins>
|
---|
| 227 | </build>
|
---|
| 228 | </profile>
|
---|
| 229 | <profile>
|
---|
| 230 | <!--
|
---|
| 231 | The translate profile manages the language files. It actually
|
---|
| 232 | executes the jupload-translation maven plugin (available in this
|
---|
| 233 | package, in the ./jupload-translation/ folder). This execution take
|
---|
| 234 | the source language files, in the ./src/main/lang/, and re-generates
|
---|
| 235 | the ./src/main/resources/lang/* files.
|
---|
| 236 | -->
|
---|
| 237 | <!--
|
---|
| 238 | To activate it, you'll need to build the jupload-translation maven
|
---|
| 239 | plugin, make it available in your local repository (mvn install in
|
---|
| 240 | the ./jupload-translation/ folder should be enough), and define the
|
---|
| 241 | jupload.translation property to true (by executing this command in
|
---|
| 242 | the root jupload folder: mvn install -Djupload.translation)
|
---|
| 243 | -->
|
---|
| 244 | <id>translate</id>
|
---|
| 245 | <activation>
|
---|
| 246 | <property>
|
---|
| 247 | <name>jupload.translation</name>
|
---|
| 248 | <value>true</value>
|
---|
| 249 | </property>
|
---|
| 250 | </activation>
|
---|
| 251 | <build>
|
---|
| 252 | <plugins>
|
---|
| 253 | <plugin>
|
---|
| 254 | <groupId>net.sf.jupload</groupId>
|
---|
| 255 | <artifactId>maven-translation-plugin</artifactId>
|
---|
| 256 | <version>1.0.0</version>
|
---|
| 257 | <executions>
|
---|
| 258 | <execution>
|
---|
| 259 | <id>translate-generate-sources</id>
|
---|
| 260 | <phase>generate-sources</phase>
|
---|
| 261 | <goals>
|
---|
| 262 | <goal>translate</goal>
|
---|
| 263 | </goals>
|
---|
| 264 | </execution>
|
---|
| 265 | <execution>
|
---|
| 266 | <id>translate-pre-site</id>
|
---|
| 267 | <phase>pre-site</phase>
|
---|
| 268 | <goals>
|
---|
| 269 | <goal>translate</goal>
|
---|
| 270 | </goals>
|
---|
| 271 | </execution>
|
---|
| 272 | </executions>
|
---|
| 273 | <configuration>
|
---|
| 274 | <docFileExtension>.apt</docFileExtension>
|
---|
| 275 | <docFolder>src/site/apt</docFolder>
|
---|
| 276 | <coppermineFolder>src/main/translation/coppermine.utf-8
|
---|
| 277 | </coppermineFolder>
|
---|
| 278 | <inputEncoding>UTF-16</inputEncoding>
|
---|
| 279 | <inputFolder>src/main/translation/applet.utf-16</inputFolder>
|
---|
| 280 | <resourceLangFolder>src/main/resources/lang</resourceLangFolder>
|
---|
| 281 | <templateAvailableTranslation>src/main/translation/available_translations.template
|
---|
| 282 | </templateAvailableTranslation>
|
---|
| 283 | <templateOneTranslation>src/main/translation/one_translation.template
|
---|
| 284 | </templateOneTranslation>
|
---|
| 285 | </configuration>
|
---|
| 286 | </plugin>
|
---|
| 287 | </plugins>
|
---|
| 288 | </build>
|
---|
| 289 | </profile>
|
---|
| 290 | <profile>
|
---|
| 291 | <!--
|
---|
| 292 | This profile activate all reporting for the JUpload site. It's
|
---|
| 293 | activated by default. It's main use is ... that it can be
|
---|
| 294 | deactivated. Useful, for checking the APT files rendering. Executing
|
---|
| 295 | 'mvn site -Dskip.reporting' will deactivate default profiles, and
|
---|
| 296 | quickly generate the maven site, from the previously run reports.
|
---|
| 297 | -->
|
---|
| 298 | <id>reporting</id>
|
---|
| 299 | <activation>
|
---|
| 300 | <property>
|
---|
| 301 | <name>!skip.reporting</name>
|
---|
| 302 | </property>
|
---|
| 303 | </activation>
|
---|
| 304 | <reporting>
|
---|
| 305 | <plugins>
|
---|
| 306 | <plugin>
|
---|
| 307 | <groupId>org.codehaus.mojo</groupId>
|
---|
| 308 | <artifactId>cobertura-maven-plugin</artifactId>
|
---|
| 309 | <version>2.4</version>
|
---|
| 310 | </plugin>
|
---|
| 311 | <plugin>
|
---|
| 312 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 313 | <artifactId>maven-pmd-plugin</artifactId>
|
---|
| 314 | <version>2.4</version>
|
---|
| 315 | <configuration>
|
---|
| 316 | <targetJdk>1.5</targetJdk>
|
---|
| 317 | <rulesets>
|
---|
| 318 | <ruleset>/rulesets/basic.xml</ruleset>
|
---|
| 319 | <ruleset>/rulesets/controversial.xml</ruleset>
|
---|
| 320 | </rulesets>
|
---|
| 321 | <format>xml</format>
|
---|
| 322 | <linkXref>true</linkXref>
|
---|
| 323 | <sourceEncoding>utf-8</sourceEncoding>
|
---|
| 324 | <minimumTokens>100</minimumTokens>
|
---|
| 325 | </configuration>
|
---|
| 326 | </plugin>
|
---|
| 327 | <plugin>
|
---|
| 328 | <artifactId>maven-surefire-plugin</artifactId>
|
---|
| 329 | <version>2.5</version>
|
---|
| 330 | </plugin>
|
---|
| 331 | <plugin>
|
---|
| 332 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 333 | <artifactId>maven-javadoc-plugin</artifactId>
|
---|
| 334 | <version>2.6.1</version>
|
---|
| 335 | </plugin>
|
---|
| 336 | <plugin>
|
---|
| 337 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 338 | <artifactId>maven-jxr-plugin</artifactId>
|
---|
| 339 | <version>2.1</version>
|
---|
| 340 | </plugin>
|
---|
| 341 | <plugin>
|
---|
| 342 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 343 | <artifactId>maven-clover-plugin</artifactId>
|
---|
| 344 | <version>2.4</version>
|
---|
| 345 | </plugin>
|
---|
| 346 | <!--
|
---|
| 347 | One of these plugins seem to generates an error, when executing
|
---|
| 348 | the release:perform <plugin> <groupId>org.codehaus.mojo</groupId>
|
---|
| 349 | <artifactId>scmchangelog-maven-plugin</artifactId>
|
---|
| 350 | <version>1.3</version> </plugin> <plugin>
|
---|
| 351 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 352 | <artifactId>maven-changelog-plugin</artifactId>
|
---|
| 353 | <version>2.1</version> </plugin>
|
---|
| 354 | -->
|
---|
| 355 | <!--
|
---|
| 356 | <plugin> Needs
|
---|
| 357 | org.apache.maven.shared:maven-doxia-tools:jar:1.0.2, whose
|
---|
| 358 | download doesn't work, from my network !
|
---|
| 359 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 360 | <artifactId>maven-changes-plugin</artifactId>
|
---|
| 361 | <version>2.3</version> </plugin>
|
---|
| 362 | -->
|
---|
| 363 | <plugin>
|
---|
| 364 | <groupId>org.codehaus.mojo</groupId>
|
---|
| 365 | <artifactId>taglist-maven-plugin</artifactId>
|
---|
| 366 | <version>2.4</version>
|
---|
| 367 | </plugin>
|
---|
| 368 | </plugins>
|
---|
| 369 | </reporting>
|
---|
| 370 | </profile>
|
---|
| 371 | </profiles>
|
---|
| 372 | <dependencies>
|
---|
| 373 | <dependency>
|
---|
| 374 | <groupId>junit</groupId>
|
---|
| 375 | <artifactId>junit</artifactId>
|
---|
| 376 | <version>4.5</version>
|
---|
| 377 | <scope>test</scope>
|
---|
| 378 | </dependency>
|
---|
| 379 | <dependency>
|
---|
| 380 | <groupId>commons-net</groupId>
|
---|
| 381 | <artifactId>commons-net</artifactId>
|
---|
| 382 | <version>1.4.1</version>
|
---|
| 383 | </dependency>
|
---|
| 384 | <!-- classes netscape.javascript.* -->
|
---|
| 385 | <dependency>
|
---|
| 386 | <groupId>com.sun.runtime</groupId>
|
---|
| 387 | <artifactId>java-plugin</artifactId>
|
---|
| 388 | <version>1.5.0</version>
|
---|
| 389 | <scope>system</scope>
|
---|
| 390 | <systemPath>${java.home}/../jre/lib/plugin.jar</systemPath>
|
---|
| 391 | </dependency>
|
---|
| 392 | <dependency>
|
---|
| 393 | <groupId>log4j</groupId>
|
---|
| 394 | <artifactId>log4j</artifactId>
|
---|
| 395 | <version>1.2.13</version>
|
---|
| 396 | <scope>test</scope>
|
---|
| 397 | </dependency>
|
---|
| 398 | <!--
|
---|
| 399 | Useless for the core applet. Used only to compile the
|
---|
| 400 | jupload-translation plugin
|
---|
| 401 | -->
|
---|
| 402 | <dependency>
|
---|
| 403 | <groupId>org.apache.maven</groupId>
|
---|
| 404 | <artifactId>maven-plugin-api</artifactId>
|
---|
| 405 | <version>2.0</version>
|
---|
| 406 | <scope>provided</scope>
|
---|
| 407 | </dependency>
|
---|
| 408 | <dependency>
|
---|
| 409 | <groupId>commons-lang</groupId>
|
---|
| 410 | <artifactId>commons-lang</artifactId>
|
---|
| 411 | <version>2.5</version>
|
---|
| 412 | <scope>provided</scope>
|
---|
| 413 | </dependency>
|
---|
| 414 | </dependencies>
|
---|
| 415 | <build>
|
---|
| 416 | <finalName>wjhk.jupload</finalName>
|
---|
| 417 | <resources>
|
---|
| 418 | <resource>
|
---|
| 419 | <directory>src/main/resources</directory>
|
---|
| 420 | <filtering>true</filtering>
|
---|
| 421 | </resource>
|
---|
| 422 | </resources>
|
---|
| 423 | <pluginManagement>
|
---|
| 424 | <plugins>
|
---|
| 425 | <plugin>
|
---|
| 426 | <groupId>org.codehaus.mojo</groupId>
|
---|
| 427 | <artifactId>buildnumber-maven-plugin</artifactId>
|
---|
| 428 | <version>1.0-beta-4</version>
|
---|
| 429 | </plugin>
|
---|
| 430 | <plugin>
|
---|
| 431 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 432 | <artifactId>maven-compiler-plugin</artifactId>
|
---|
| 433 | <version>2.0.2</version>
|
---|
| 434 | </plugin>
|
---|
| 435 | <plugin>
|
---|
| 436 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 437 | <artifactId>maven-dependency-plugin</artifactId>
|
---|
| 438 | <version>2.0</version>
|
---|
| 439 | </plugin>
|
---|
| 440 | <plugin>
|
---|
| 441 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 442 | <artifactId>maven-release-plugin</artifactId>
|
---|
| 443 | <version>2.0-beta-9</version>
|
---|
| 444 | </plugin>
|
---|
| 445 | <plugin>
|
---|
| 446 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 447 | <artifactId>maven-resources-plugin</artifactId>
|
---|
| 448 | <version>2.4.1</version>
|
---|
| 449 | </plugin>
|
---|
| 450 | <plugin>
|
---|
| 451 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 452 | <artifactId>maven-source-plugin</artifactId>
|
---|
| 453 | <version>2.1.1</version>
|
---|
| 454 | </plugin>
|
---|
| 455 | </plugins>
|
---|
| 456 | </pluginManagement>
|
---|
| 457 | <plugins>
|
---|
| 458 | <plugin>
|
---|
| 459 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 460 | <artifactId>maven-compiler-plugin</artifactId>
|
---|
| 461 | <configuration>
|
---|
| 462 | <source>1.5</source>
|
---|
| 463 | <target>1.5</target>
|
---|
| 464 | </configuration>
|
---|
| 465 | </plugin>
|
---|
| 466 | <plugin>
|
---|
| 467 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 468 | <artifactId>maven-release-plugin</artifactId>
|
---|
| 469 | <configuration>
|
---|
| 470 | <tagBase>https://jupload.svn.sourceforge.net/svnroot/jupload/tags
|
---|
| 471 | </tagBase>
|
---|
| 472 | <preparationGoals>clean site verify</preparationGoals>
|
---|
| 473 | <goals>site deploy</goals>
|
---|
| 474 | <releaseProfiles>generate-jupload-release</releaseProfiles>
|
---|
| 475 | <!--
|
---|
| 476 | jupload.scm.username and jupload.scm.password should be defined in
|
---|
| 477 | the 'jupload' Profile, in your settings.xml
|
---|
| 478 | -->
|
---|
| 479 | <username>${jupload.scm.username}</username>
|
---|
| 480 | <password>${jupload.scm.password}</password>
|
---|
| 481 | </configuration>
|
---|
| 482 | </plugin>
|
---|
| 483 | <plugin>
|
---|
| 484 | <!--
|
---|
| 485 | mvn ant:ant generates the build.xml for this project Caution: this
|
---|
| 486 | will export the jupload.keystore.filename and
|
---|
| 487 | jupload.keystore.storepass properties, from your settings.xml to
|
---|
| 488 | the build.properties file. MUST BE CLEANED BEFORE COMMIT ! (because
|
---|
| 489 | it contains your passwords)
|
---|
| 490 | -->
|
---|
| 491 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 492 | <artifactId>maven-ant-plugin</artifactId>
|
---|
| 493 | <version>2.2</version>
|
---|
| 494 | </plugin>
|
---|
| 495 | <plugin>
|
---|
| 496 | <groupId>org.codehaus.mojo</groupId>
|
---|
| 497 | <artifactId>buildnumber-maven-plugin</artifactId>
|
---|
| 498 | <executions>
|
---|
| 499 | <execution>
|
---|
| 500 | <phase>validate</phase>
|
---|
| 501 | <goals>
|
---|
| 502 | <goal>create</goal>
|
---|
| 503 | </goals>
|
---|
| 504 | </execution>
|
---|
| 505 | </executions>
|
---|
| 506 | <configuration>
|
---|
| 507 | <doCheck>false</doCheck>
|
---|
| 508 | <doUpdate>false</doUpdate>
|
---|
| 509 | <revisionOnScmFailure>true</revisionOnScmFailure>
|
---|
| 510 | <locale>en</locale>
|
---|
| 511 | <useLastCommittedRevision>true</useLastCommittedRevision>
|
---|
| 512 | </configuration>
|
---|
| 513 | </plugin>
|
---|
| 514 | <plugin>
|
---|
| 515 | <!--
|
---|
| 516 | Get the dependencies jar files to a common place, for jar signing
|
---|
| 517 | -->
|
---|
| 518 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 519 | <artifactId>maven-dependency-plugin</artifactId>
|
---|
| 520 | <executions>
|
---|
| 521 | <execution>
|
---|
| 522 | <id>copy-dependencies</id>
|
---|
| 523 | <phase>site</phase>
|
---|
| 524 | <goals>
|
---|
| 525 | <goal>copy-dependencies</goal>
|
---|
| 526 | </goals>
|
---|
| 527 | <configuration>
|
---|
| 528 | <includeScope>runtime</includeScope>
|
---|
| 529 | <outputDirectory>${project.build.directory}/site
|
---|
| 530 | </outputDirectory>
|
---|
| 531 | <overWriteReleases>false</overWriteReleases>
|
---|
| 532 | <overWriteSnapshots>false</overWriteSnapshots>
|
---|
| 533 | <overWriteIfNewer>true</overWriteIfNewer>
|
---|
| 534 | </configuration>
|
---|
| 535 | </execution>
|
---|
| 536 | </executions>
|
---|
| 537 | </plugin>
|
---|
| 538 | <plugin>
|
---|
| 539 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 540 | <artifactId>maven-jarsigner-plugin</artifactId>
|
---|
| 541 | <version>1.2</version>
|
---|
| 542 | <executions>
|
---|
| 543 | <execution>
|
---|
| 544 | <!--
|
---|
| 545 | JUpload requires applet signing. The properties to sign the
|
---|
| 546 | applet must be stored in your local settings.xml, under the
|
---|
| 547 | jupload profile. See documentation for details
|
---|
| 548 | -->
|
---|
| 549 | <id>sign-artefact</id>
|
---|
| 550 | <phase>package</phase>
|
---|
| 551 | <goals>
|
---|
| 552 | <goal>sign</goal>
|
---|
| 553 | </goals>
|
---|
| 554 | <configuration>
|
---|
| 555 | <alias>${jupload.keystore.alias}</alias>
|
---|
| 556 | <keystore>${jupload.keystore.filename}</keystore>
|
---|
| 557 | <storepass>${jupload.keystore.storepass}</storepass>
|
---|
| 558 | <removeExistingSignatures>true</removeExistingSignatures>
|
---|
| 559 | </configuration>
|
---|
| 560 | </execution>
|
---|
| 561 | <execution>
|
---|
| 562 | <!--
|
---|
| 563 | JUpload web site requires that all dependencies are signed with
|
---|
| 564 | the same key, in order to work properly
|
---|
| 565 | -->
|
---|
| 566 | <id>sign-site</id>
|
---|
| 567 | <phase>site</phase>
|
---|
| 568 | <goals>
|
---|
| 569 | <goal>sign</goal>
|
---|
| 570 | </goals>
|
---|
| 571 | <configuration>
|
---|
| 572 | <alias>${jupload.keystore.alias}</alias>
|
---|
| 573 | <keystore>${jupload.keystore.filename}</keystore>
|
---|
| 574 | <storepass>${jupload.keystore.storepass}</storepass>
|
---|
| 575 | <removeExistingSignatures>true</removeExistingSignatures>
|
---|
| 576 | <archiveDirectory>${project.build.directory}/site
|
---|
| 577 | </archiveDirectory>
|
---|
| 578 | </configuration>
|
---|
| 579 | </execution>
|
---|
| 580 | </executions>
|
---|
| 581 | </plugin>
|
---|
| 582 | <plugin>
|
---|
| 583 | <artifactId>maven-resources-plugin</artifactId>
|
---|
| 584 | <executions>
|
---|
| 585 | <execution>
|
---|
| 586 | <id>install-copy-resources-jupload-jar</id>
|
---|
| 587 | <phase>install</phase>
|
---|
| 588 | <goals>
|
---|
| 589 | <goal>copy-resources</goal>
|
---|
| 590 | </goals>
|
---|
| 591 | <configuration>
|
---|
| 592 | <outputDirectory>${project.build.directory}/site
|
---|
| 593 | </outputDirectory>
|
---|
| 594 | <nonFilteredFileExtensions>
|
---|
| 595 | <nonFilteredFileExtension>jar</nonFilteredFileExtension>
|
---|
| 596 | </nonFilteredFileExtensions>
|
---|
| 597 | <resources>
|
---|
| 598 | <resource>
|
---|
| 599 | <directory>${project.build.directory}</directory>
|
---|
| 600 | <includes>
|
---|
| 601 | <include>*.jar</include>
|
---|
| 602 | </includes>
|
---|
| 603 | </resource>
|
---|
| 604 | </resources>
|
---|
| 605 | </configuration>
|
---|
| 606 | </execution>
|
---|
| 607 | <execution>
|
---|
| 608 | <id>site-copy-resources-jupload-jar</id>
|
---|
| 609 | <phase>site</phase>
|
---|
| 610 | <goals>
|
---|
| 611 | <goal>copy-resources</goal>
|
---|
| 612 | </goals>
|
---|
| 613 | <configuration>
|
---|
| 614 | <outputDirectory>${project.build.directory}/site
|
---|
| 615 | </outputDirectory>
|
---|
| 616 | <nonFilteredFileExtensions>
|
---|
| 617 | <nonFilteredFileExtension>jar</nonFilteredFileExtension>
|
---|
| 618 | </nonFilteredFileExtensions>
|
---|
| 619 | <resources>
|
---|
| 620 | <resource>
|
---|
| 621 | <directory>${project.build.directory}</directory>
|
---|
| 622 | <includes>
|
---|
| 623 | <include>*.jar</include>
|
---|
| 624 | </includes>
|
---|
| 625 | </resource>
|
---|
| 626 | </resources>
|
---|
| 627 | </configuration>
|
---|
| 628 | </execution>
|
---|
| 629 | </executions>
|
---|
| 630 | </plugin>
|
---|
| 631 | <plugin>
|
---|
| 632 | <groupId>org.apache.maven.plugins</groupId>
|
---|
| 633 | <artifactId>maven-site-plugin</artifactId>
|
---|
| 634 | <version>2.0.1</version>
|
---|
| 635 | <configuration>
|
---|
| 636 | <inputEncoding>UTF-8</inputEncoding>
|
---|
| 637 | <outputEncoding>UTF-8</outputEncoding>
|
---|
| 638 | <!-- templateFile>src/site/site.vm</templateFile -->
|
---|
| 639 | </configuration>
|
---|
| 640 | </plugin>
|
---|
| 641 | </plugins>
|
---|
| 642 | </build>
|
---|
| 643 | <distributionManagement>
|
---|
| 644 | <!--
|
---|
| 645 | We have no Maven repository yet. So release are to be deployed on a
|
---|
| 646 | local repository.... TODO: have a real repository. Publish to Maven
|
---|
| 647 | Central Repository?
|
---|
| 648 | -->
|
---|
| 649 | <repository>
|
---|
| 650 | <id>${jupload.distributionManagement.repository.id}</id>
|
---|
| 651 | <name>${jupload.distributionManagement.repository.name}</name>
|
---|
| 652 | <url>${jupload.distributionManagement.repository.url}</url>
|
---|
| 653 | </repository>
|
---|
| 654 | <snapshotRepository>
|
---|
| 655 | <id>${jupload.distributionManagement.snapshotRepository.id}</id>
|
---|
| 656 | <name>${jupload.distributionManagement.snapshotRepository.name}
|
---|
| 657 | </name>
|
---|
| 658 | <url>${jupload.distributionManagement.snapshotRepository.url}</url>
|
---|
| 659 | </snapshotRepository>
|
---|
| 660 | <!--
|
---|
| 661 | The next tag allows to easily update the JUpload site, hosted by
|
---|
| 662 | sourceforge.net
|
---|
| 663 | -->
|
---|
| 664 | <site>
|
---|
| 665 | <id>jupload.website</id>
|
---|
| 666 | <name>JUpload Website</name>
|
---|
| 667 | <url>sftp://web.sourceforge.net/home/groups/j/ju/jupload/htdocs/</url>
|
---|
| 668 | </site>
|
---|
| 669 | </distributionManagement>
|
---|
| 670 | <properties>
|
---|
| 671 | <!--
|
---|
| 672 | All these properties can (should) be overriden in your settings.xml
|
---|
| 673 | file. See the http://jupload.sourceforge.net/howto-compile.html page
|
---|
| 674 | for details
|
---|
| 675 | -->
|
---|
| 676 | <!--
|
---|
| 677 | The next parameters are mandatory, for applet signing. Default
|
---|
| 678 | behavior, in the pom, is to generate these parameters, if you didn't
|
---|
| 679 | define them in your settings.xml. So, they are optional in your
|
---|
| 680 | settings. If you don't define them, JUpload will use a generated
|
---|
| 681 | keystore, with a certificate generated at compile time. BUT: if you
|
---|
| 682 | want to PUBLISH the applet to real life users, you SHOULD define
|
---|
| 683 | them. See the howto-compile on the JUpload site, for details
|
---|
| 684 | -->
|
---|
| 685 | <jupload.keystore.alias>jupload</jupload.keystore.alias>
|
---|
| 686 | <jupload.keystore.filename>target/keystore</jupload.keystore.filename>
|
---|
| 687 | <jupload.keystore.storepass>jupload-demo-pass
|
---|
| 688 | </jupload.keystore.storepass>
|
---|
| 689 |
|
---|
| 690 | <!--
|
---|
| 691 | The next parameters are mandatory only for publishing Maven artefact
|
---|
| 692 | to your repositories, that is: when you use the "deploy" maven goal.
|
---|
| 693 | Useless when you 'just' compile, that is: when you use the 'install'
|
---|
| 694 | maven goal. There is currently no 'Central' jupload repository
|
---|
| 695 | -->
|
---|
| 696 | <jupload.distributionManagement.repository.id>Id_for_your_main_repository
|
---|
| 697 | </jupload.distributionManagement.repository.id>
|
---|
| 698 | <jupload.distributionManagement.repository.name>Name_for_your_main_repository
|
---|
| 699 | </jupload.distributionManagement.repository.name>
|
---|
| 700 | <jupload.distributionManagement.repository.url>URL_for_your_main_repository
|
---|
| 701 | </jupload.distributionManagement.repository.url>
|
---|
| 702 | <jupload.distributionManagement.snapshotRepository.id>Id_for_your_main_snapshotRepository
|
---|
| 703 | </jupload.distributionManagement.snapshotRepository.id>
|
---|
| 704 | <jupload.distributionManagement.snapshotRepository.name>Name_for_your_main_snapshotRepository
|
---|
| 705 | </jupload.distributionManagement.snapshotRepository.name>
|
---|
| 706 | <jupload.distributionManagement.snapshotRepository.url>URL_for_your_main_snapshotRepository
|
---|
| 707 | </jupload.distributionManagement.snapshotRepository.url>
|
---|
| 708 |
|
---|
| 709 | <!--
|
---|
| 710 | The next parameters are mandatory only for PGP signing. PGP signing
|
---|
| 711 | is used only when performing a release, that is: when executing the
|
---|
| 712 | goal release:perform Not used (so: optional) otherwise. PGP signing
|
---|
| 713 | is only used for developpers who would like to publish a new JUpload
|
---|
| 714 | version to the Maven Central Repository. For all other users, you can
|
---|
| 715 | let skip to true.
|
---|
| 716 | -->
|
---|
| 717 | <jupload.pgp.keyname>Your PGP key name</jupload.pgp.keyname>
|
---|
| 718 | <!--
|
---|
| 719 | The passphrase is optional: if not provided, it will be asked to the
|
---|
| 720 | user
|
---|
| 721 | -->
|
---|
| 722 | <jupload.pgp.passphrase>Your PGP passphrase</jupload.pgp.passphrase>
|
---|
| 723 |
|
---|
| 724 | <!--
|
---|
| 725 | The next parameters are mandatory, only for use of the maven release
|
---|
| 726 | plugin. Optionnal otherwise. So for standard use of JUpload (without
|
---|
| 727 | creating releases), you can let this parameter unchanged
|
---|
| 728 | -->
|
---|
| 729 | <jupload.scm.username>Your SCM login</jupload.scm.username>
|
---|
| 730 | <jupload.scm.password>Your SCM password</jupload.scm.password>
|
---|
| 731 | </properties>
|
---|
| 732 |
|
---|
| 733 | <!--
|
---|
| 734 | Reporting: see the 'reporting' profile, here above.
|
---|
| 735 | -->
|
---|
| 736 |
|
---|
| 737 | </project>
|
---|
| 738 | |
---|