Solved! Go to Solution.
Views
Replies
Total Likes
Skip the profile part and try with ".cloudmanager/maven/settings.xml" in parent.
It should be ok to have it in sub-module as well
Hello @Amsalek4
The maven repository details should be kept in .cloudmanager/maven/settings.xml of parent project.
You should also raise an Adobe ticket, if you have any specific usecase due to which it needs to be module specific.
Thanks @aanchal-sikka .
May I know can we keep .cloudmanager/maven/settings.xml in parent as well as submodule. As submodule repo is being used separately for other teams, we need that in submodule as well. would that be recommended if we keep it in both places
<profiles>
<profile>
<id>artifactory</id>
<activation>
<property>
<name>!env.CM_BUILD</name>
</property>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<id>snapshots</id>
<name>name-of-repo</name>
<url>url-of-repo</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots/>
<id>snapshots</id>
<name>name-of-plugin-repo</name>
<url>url-of-plugin-repo</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
Actually we don't have write access to submodule we use. we can only include it in our repo. So .cloudmanager/maven/settings.xml will always be there in submodule.
Skip the profile part and try with ".cloudmanager/maven/settings.xml" in parent.
It should be ok to have it in sub-module as well
@Amsalek4 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Hi @Amsalek4
Use pipeline variables to add server details at parent level .cloudmanager/maven/settings.xml.
It will work at submodules level as well but always add at one place(parent)