如何将基于maven的项目包含在我的非maven项目中 [英] How to include maven-based project into my non-maven project
问题描述
查看 pom.xml
我认为我需要下载luceneappengine,我在 http://search.maven.org/#search%7Cga%7C1% 7Cluceneappengine 。我需要任何其他罐子吗?
首先,下载Maven可以构建项目。之后,只需使用mvn install来生成luceneappengine的* .jar(结果将存储在项目的target文件夹中)。但是,它可能需要一些额外的依赖关系。要获取它们,请使用mvn依赖关系:copy-dependencies -DoutputDirectory = $ TARGET_DIRECTORY。该命令将下载所有需要的jar到指定的$ TARGET_DIRECTORY。
I have a non-maven app engine project. I need to include the following library/project into it: https://github.com/UltimaPhoenix/luceneappengine. Without using maven at all, how do I make this work? I need step by step details. I have been trying and my code will not even compile. I am using eclipse.
Looking at the pom.xml
I have figured that I need to download luceneappengine, which I did at http://search.maven.org/#search%7Cga%7C1%7Cluceneappengine. Do I need any other jars?
First of all, download Maven to be able to build the project. After that, just use "mvn install" to produce the *.jar of luceneappengine (the result will be stored in the "target" folder of the project). However, it will probably need some extra dependencies. To obtain them, use "mvn dependency:copy-dependencies -DoutputDirectory=$TARGET_DIRECTORY". This command will download all the required jars into the specified $TARGET_DIRECTORY.
这篇关于如何将基于maven的项目包含在我的非maven项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!