Best way to create a maven artifact from existing jar

后端 未结 5 1956
死守一世寂寞
死守一世寂寞 2021-02-02 08:01

I\'m mavenizing some projects.

These projects all depend on a number of libraries, most of them are available in the maven repo. For the other libraries, I\'d like to cr

5条回答
  •  一个人的身影
    2021-02-02 08:47

    I know your problem. Mavenizing jars is sometimes a pain (especially if they have further transitive dependencies, which also need to be defined in pom.xml).

    Have you checked whether these libraries really never exist as maven deps? Have a look at the usual suspects:

    • http://www.ibiblio.org/maven/
    • http://repository.codehaus.org/
    • http://download.java.net/maven/1/

    Sometimes I like to use Nexus jar upload dialog to let create pom.xml files.

提交回复
热议问题