How can I setup and fill my Apache Archiva repository with CQ5 artifacts in order to use it as a maven repository source for development, instead of using Day maven repository (repo.adobe.com is not officially supported) ?
Apache Archiva is a repository management software that allows you to deploy your maven
bundles to the repository. It also allows you to cache bundles from external repositories so your
developers will stay on your network rather than going to external sources for artifacts. The goal of this article is to describe a process that deploys CQ available artifacts into Archiva.
Install Archiva :
Configure Archiva :
Setup the Maven settings.xml file :
<profile>
<id>day-central</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>internal</id>
<name>My Company Archiva Repository</name>
<url>http://<IP of your Archiva server>:8080/archiva/repository/internal</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>internal</id>
<name>My Company Archiva Repository</name>
<url>http://<IP of your Archiva server>:8080/archiva/repository/internal</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<servers>
<server>
<id>internal</id>
<username>deployer</username>
<password>deployer_pwd</password>
</server>
</servers>
Get CQ available libraries from a running instance :
Generate the Maven deploy commands that matches the CQ available artifacts :
To do this, run the attached Jar file with the following parameters :
Example : java -jar generateMavenDeployCommands.jar http://localhost:8080/archiva/repository/internal internal C:\cq53Jars
下載
3 files are generated in the directory of the Jar :
CQ 5.3+
登入您的帳戶