Integrating Maven & Non-maven projects

前端 未结 4 2093
独厮守ぢ
独厮守ぢ 2020-12-29 13:50

I\'m currently working on two projects simultaneously:

  • My main project (built with maven)
  • A spike of an open source project, which my main project d
4条回答
  •  暖寄归人
    2020-12-29 14:25

    The solution I've used is the maven-ant tasks (http://maven.apache.org/ant-tasks/).

    I added an install task onto the build.xml file, which installs the compiled .jar into the local repo.

    While adding a full-fledged pom to the project would defintely be the best approach, this is a major chunk of work, and inflicts maven on the project (where the other users would prefer not to use it).

提交回复
热议问题