문제

How can I configure a maven project to take one of the artifacts from a different repository?

I would like to include this in the project https://github.com/twitter/hadoop-lzo but I can find it only in the twitter repository, not on the central maven repository.

도움이 되었습니까?

해결책

You can set the repositories you want to use in your settings.xml, or in your POM.

If you have a team working on the project, you might want to put this in the POM so everybody has the conf.

You can do it like :

<repositories>

    <repository>
      <id>Maven Central</id>
      <url>http://repo1.maven.org/maven2/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>


.... other repos
</repositories>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top