如何将基于maven的项目包含在我的非maven项目中 [英] How to include maven-based project into my non-maven project

查看:131
本文介绍了如何将基于maven的项目包含在我的非maven项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非maven应用引擎项目。我需要将以下图书馆/项目纳入其中: https://github.com/UltimaPhoenix/luceneappengine 。根本没有使用maven,我该怎么做呢?我需要一步一步的细节。我一直在尝试,我的代码甚至不会编译。我正在使用eclipse。



查看 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆