<settings> <servers> <server> <id>atomikos.website.maven.repo</id> <!-- see your commercial login --> <username>user</username> <password>...</password> </server> </servers> <profiles> <profile> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>atomikos.website.maven.repo</id> <url>https://www.atomikos.com/maven-repository</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>atomikos.website.maven.repo</id> <url>https://www.atomikos.com/maven-repository</url> </pluginRepository> </pluginRepositories> </profile> </profiles> </settings>
CAUTION: for 3.8.x releases, you have to download a repository .zip file for the version of your choice from https://www.atomikos.com/maven-repository/com/atomikos/ExtremeTransactionsForMaven and deploy it to your maven repository. Sorry for the inconvenience, but that is how releases are / were published in the pre-3.9 releases. |
Select your Atomikos proxy repo in nexus, go to the Configuration tab and enable Authentication. Set the username and password for your maven account - which you have received after signing as an Atomikos subscriber.
The "Browse Remote" functionality may not seem to work from within nexus, however this does not affect maven builds: if your pom files refer to your local nexus as the repository, then the Atomikos jars will still be found and the maven build should work.
You can test if your nexus is configured correctly by creating the following maven test project:
<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"> <modelVersion>4.0.0</modelVersion> <groupId>whatever</groupId> <artifactId>whatever</artifactId> <version>0.0.1-SNAPSHOT</version> <name>Test nexus / maven repo</name> <dependencies> <dependency> <artifactId>transactions-jta</artifactId> <groupId>com.atomikos</groupId> <version>5.0.98</version> </dependency> </dependencies> <repositories> <repository> <id>atomikos</id> <url>TODO enter your nexus / atomikos proxy repo URL here</url> </repository> </repositories> </project>
After you build the above maven project, you should see the transactions-jta jar in your nexus, under the "Browse Storage" tab.
CAUTION: as mentioned above, the "Browse Remote" functionality may not work in nexus, but this does not affect your builds nor maven. |