Expand my Community achievements bar.

SOLVED

Adding nexus repository to my pom.xml

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Level 5

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

View solution in original post

4 Replies

Avatar

Level 9

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>

Avatar

Level 10

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

Avatar

Level 5

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

Avatar

Correct answer by
Level 5

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