0

This is what I did

  1. As a first step, I have configured the Apache Archiva and the service runs perfectly as a standalone service though it created some trouble for me while trying to run in tomcat.

  2. Edited the setting.xml in the MAVEN_HOME pointing to the Apache Archiva repository by adding mirror.

With the project's pom.xml, I see the following

<repositories>
  <repository>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
    <id>central</id>
    <name>Central Repository</name>
    <url>http://repo.maven.apache.org/maven2</url>
  </repository>
</repositories>

Should I remove this to make my Archiva repository effective? I am afraid that this code makes a direct call from the Central repository without making use of the Archiva. Is this correct? Please advise

Adrian Shum
  • 38,812
  • 10
  • 83
  • 131
venki
  • 29
  • 1
  • 4
  • Why not simply have a try by yourself? Purge something from your local repo which force the project to get it from remote repo, and then you can inspect which repository it is connecting to – Adrian Shum Mar 21 '14 at 02:43
  • Thanks. It only tries in the archiva repository. The pom.xml repository listing does not seem to have an effect on that. – venki Mar 22 '14 at 04:28

1 Answers1

0

yes you can. This repository is the default one (and no need to declare it in your pom). Just a mirror with <mirrorOf>central</mirrorOf> in your settings

Olivier Lamy
  • 2,280
  • 1
  • 14
  • 12
  • I did not change anything. In fact, eclipse doesn't allow me to delete this area. Only editable portion is the dependency part. Thanks a lot – venki Mar 22 '14 at 04:29