AlexYarm,
In case you are trying to add the apache archiva as a repository to m2eclipse, here are the steps –
1.Open POM.xml
add the following to the pom.xml file
<repositories>
<repository>
<id>archiva</id>
<name>localarchiva</name>
<url><a href=”http://localhost:8080/archiva/repository/internal/”>http://localhost:8080/archiva/repository/internal/</a></url>
</repository>
</repositories>
These are user dependent properties of the archiva manager. (The archiva manager should generate a file called as “nexus-maven-repository-index”. Its generated in the archiva-installation/data/repository/.indexer)
The URL in the POM.xml should point to a valid nexus-maven-repository-index property file.
This same process can also be done with UI.
1.Open the POM file with maven pom editor.
2.The overview page has a button on top right called as show advanced tabs.click on this button, it will show repository tab, add same values as above via the UI. Click Save.
The file generated will be similar as above.
2. Open Maven Repositories view (Window > Show View > Maven Repository view )
Expand the Project Repository node. This node will show the added archiva repository as a new node. Right Click, Click Full index enabled.
To ensure that the repository is indexed, you can optionally click update index.
3.Go back to Maven4Myeclipse menu, click add, this will show all the artifacts present in the archiva repository.
This will allow you to add the artifacts from archiva repository to your projects.
Hope this helps
Attachments:
You must be
logged in to view attached files.