CoreMedia strongly recommends to use a repository manager to mirror CoreMedia's Maven
repository, for example Sonatype Nexus.
Alternatively, if a repository manager is not available, configure your credentials for the
CoreMedia Maven repositories in your ~/.m2/settings.xml
file as shown below. Simply
replace USERNAME
and PASSWORD
with your CoreMedia user name and
password. It is strongly recommended, that you do not enter the password in plaintext in the
settings.xml
file but encrypt the password. To do so, follow the instructions at
http://maven.apache.org/guides/mini/guide-encryption.html
or any other available Maven documentation.
<settings> <mirrors> <!-- | <mirror> | <id>central-mirror</id> | <mirrorOf>central</mirrorOf> | <name>mirror of maven central</name> | <url>http://my.repository.com/repo/path</url> | </mirror> | <mirror> | <id>coremedia-releases-mirror</id> | <mirrorOf>coremedia.external.releases</mirrorOf> | <name>coremedia external releases mirror</name> | <url>http://my.repository.com/repo/path</url> | </mirror> --> </mirrors> <servers> <server> <id>coremedia.external.releases</id> <username>USERNAME</username> <password>PASSWORD</password> </server> <server> <id>coremedia.external.livecontext.releases</id> <username>USERNAME</username> <password>PASSWORD</password> </server> </servers> <pluginGroups> <pluginGroup>com.coremedia.maven</pluginGroup> <pluginGroup>org.sonatype.plugins</pluginGroup> </pluginGroups> </settings>
MAVEN_OPTS
Maven requires the following minimal memory settings:
MAVEN_OPTS=-Xmx2048m -XX:MaxPermSize=512m
The MaxPermSize
JVM option is only required when using Java 7. Omit it when using Java 8.