简体   繁体   English

如何将基于Maven的项目包含到我的非Maven项目中

[英]How to include maven-based project into my non-maven project

I have a non-maven app engine project. 我有一个非Maven应用引擎项目。 I need to include the following library/project into it: https://github.com/UltimaPhoenix/luceneappengine . 我需要在其中包含以下库/项目: https : //github.com/UltimaPhoenix/luceneappengine Without using maven at all, how do I make this work? 完全不使用Maven,如何进行这项工作? 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 . 通过查看pom.xml我发现我需要下载luceneappengine,该操作是在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. 首先,下载Maven能够构建项目。 After that, just use "mvn install" to produce the *.jar of luceneappengine (the result will be stored in the "target" folder of the project). 之后,只需使用“ mvn install”来生成luceneappengine的* .jar(结果将存储在项目的“ target”文件夹中)。 However, it will probably need some extra dependencies. 但是,它可能需要一些额外的依赖关系。 To obtain them, use "mvn dependency:copy-dependencies -DoutputDirectory=$TARGET_DIRECTORY". 要获取它们,请使用“ MVN依赖关系:复制依赖关系-DoutputDirectory = $ TARGET_DIRECTORY”。 This command will download all the required jars into the specified $TARGET_DIRECTORY. 此命令会将所有必需的jar下载到指定的$ TARGET_DIRECTORY中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM