We are using maven. I want to set up infrastructure, so that automatically built artifacts would go to Nexus repository. And then they could be used by developers.
I have already set up Jenkins with 1 job for our project. And I set up Nexus to on the same server.
On developers' PCs I copied default maven setting to C:\Users{user}.m2\settings.xml adding this section. References:
Configuring Maven to Use a Single Nexus
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://myserver:8081/nexus/content/groups/public</url>
</mirror>
(I just follow Repository Management with Nexus book)
What are my next steps should be?
Should Jenkins job have mvn install
?
How to create Nexus repository for company artifacts?