Maven protocol commands
You must configure the Maven protocol for Helix Artifacts before you can use the Maven commands. For information on configuring the Maven protocol for Helix Artifacts, see Maven and Gradle setup.
Use the Maven commands to work with Maven artifacts in Helix Artifacts.
Downloading dependencies from a repository
To download dependencies from a repository, add the following to your pom.xml file:
<repositories> <repository> <id>sampleMaven</id> <name>My Maven Store</name> <url>http://localhost:1603/repo/sampleMaven</url> </repository> </repositories>
Then use the mvn compile command:
mvn compile -DpomFile=pom.xml
Deploying an artifact to a repository
To deploy an artifact to your repository, add the following to your pom.xml file:
<distributionManagement> <repository> <id>sampleMaven</id> <name>My Maven Store</name> <url>http://localhost:1603/repo/sampleMaven</url> </repository> </distributionManagement>
Then use the mvn deploy command:
mvn deploy -DpomFile=pom.xml