THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Apache Maven (most recent stable release)
- Apache Ant (most recent stable release)
- apache-release profile present in your local ~/.m2/settings.xml as follows. An example can be found below N.B. It is important that you pay close attention to the contents of this file. Numerous issues now exist with the ant-maven-task plugin so a couple of workarounds exist in this guide.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8" ?> <settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <servers> <server> <id>apache.snapshots.https</id> <username>${username}</username> <password>${password}</password> </server> <server> <id>apache.staging.https</id> <username>${username}</username> <password>${password}</password> </server> <server> <id>apache.releases.https</id> <username>${username}</username> <password>${password}</password> </server> <server> <id>gpg.passphrase</id> <passphrase>${password}</passphrase> </server> <server> <username>${username}</username> <password>${password}</password> <id>central</id> </server> <server> <username>${username}</username> <password>${password}</password> <id>snapshots</id> </server> </servers> <mirrors> <mirror> <id>central.mirror</id> <url>https://repo1.maven.org/maven2/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <profiles> <profile> <id>apache-release</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <mavenExecutorId>forked-path</mavenExecutorId> <gpg.executable>gpg</gpg.executable> <gpg.keyname>${keyname}</gpg.keyname> <gpg.passphrase>${password}</gpg.passphrase> </properties> </profile> </profiles> <activeProfiles> <activeProfile>apache-release</activeProfile> </activeProfiles> </settings> |
...