Adding nexus repository to my pom.xml | Community
Skip to main content
chirran414
Level 4
March 21, 2018
Solved

Adding nexus repository to my pom.xml

  • March 21, 2018
  • 4 replies
  • 6943 views

Hi everyone,

We have a use case, ie, we want to store one of our maven AEM project artifacts when ever we build it automatically gets store in to Nexus repository and from there if we want to access this project we would use it by adding dependency in the pom.

So, now how can I add my project to nexus repository to get store project artifacts when ever build happens and how can I point to the nexus repository from my pom file ?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by chirran414

We have added our internal Nexus repository details in project Global POM. and now It got resolved.

4 replies

Hemant_arora
Level 8
March 22, 2018

Go to .m2 folder and create setting.xml add another profile under profiles sectio

<profile>

  

                <id>adobe-public</id>

  

                <activation>

  

                    <activeByDefault>true</activeByDefault>

  

                </activation>

  

                <repositories>

  

                  <repository>

  

                    <id>adobe</id>

  

                    <name>Nexus Proxy Repository</name>

  

                    <url>http://repo.adobe.com/nexus/content/groups/public/</url>

  

                    <layout>default</layout>

  

                  </repository>

  

                </repositories>

  

                <pluginRepositories>

  

                  <pluginRepository>

  

                    <id>adobe</id>

  

                    <name>Nexus Proxy Repository</name>

  

                    <url>http://repo.adobe.com/nexus/content/groups/public/</url>

  

                    <layout>default</layout>

  

                  </pluginRepository>

  

                </pluginRepositories>

  

            </profile>

smacdonald2008
Level 10
March 22, 2018

See this Adobe KB that discusses how to configure the settings.xml -- Adobe Public Maven Repository

chirran414
Level 4
March 22, 2018

Do I have to mention our internal Nexus repository details in global pom.xml and settings.xml file as we have stored our project artifact in this internal repository. Correct me if I am wrong.

Note: Internal Nexus repository has different values for following elements.

<id>            

<name>            

<url>

Thanks

Narayana

chirran414
chirran414AuthorAccepted solution
Level 4
March 23, 2018

We have added our internal Nexus repository details in project Global POM. and now It got resolved.