I downloaded the source using
我使用了下载源代码
hg clone https://code.google.com/p/andengine/ andengine
And I'd like to know what the next step is to use andengine with maven.
而且我想知道下一步是什么,与maven一起使用andengine。
2 个解决方案
#1
0
You should build the andengine first to create a jar file to be used as a dependency in your project. It seems andengine is using ant to build the project so that should work. (You could also put andengine in its own maven module, use the ant mojos from maven to execute the build and put the jar in the local repository. But there will be new version and that may turn into migration work, I would split this task into andegnine and your project).
您应首先构建andengine以创建一个jar文件,以用作项目中的依赖项。似乎andengine正在使用ant来构建项目,以便应该工作。 (你也可以把一个dengngine放在它自己的maven模块中,使用maven的ant mojos来执行构建并将jar放在本地存储库中。但是会有新版本,这可能会转变为迁移工作,我会拆分这个任务进入andegnine和你的项目)。
From there you can use the groupId/artifactId you chose above (to store the .jar in your local repo if there is no repository proxy in place) in your project.
从那里,您可以使用上面选择的groupId / artifactId(如果没有存储库代理,则将.jar存储在本地存储库中)。
#2
0
You are getting AndEngine from the wrong place, the project now lives on GitHub: https://github.com/nicolasgramlich/AndEngine The Google Code repository is now probably very old and buggy!
你从错误的地方得到了AndEngine,该项目现在存在于GitHub上:https://github.com/nicolasgramlich/AndEngine Google Code存储库现在可能已经很老了,而且还有错误!
On getting it from GitHub, see this thread.
从GitHub获取它,请参阅此主题。
#1
0
You should build the andengine first to create a jar file to be used as a dependency in your project. It seems andengine is using ant to build the project so that should work. (You could also put andengine in its own maven module, use the ant mojos from maven to execute the build and put the jar in the local repository. But there will be new version and that may turn into migration work, I would split this task into andegnine and your project).
您应首先构建andengine以创建一个jar文件,以用作项目中的依赖项。似乎andengine正在使用ant来构建项目,以便应该工作。 (你也可以把一个dengngine放在它自己的maven模块中,使用maven的ant mojos来执行构建并将jar放在本地存储库中。但是会有新版本,这可能会转变为迁移工作,我会拆分这个任务进入andegnine和你的项目)。
From there you can use the groupId/artifactId you chose above (to store the .jar in your local repo if there is no repository proxy in place) in your project.
从那里,您可以使用上面选择的groupId / artifactId(如果没有存储库代理,则将.jar存储在本地存储库中)。
#2
0
You are getting AndEngine from the wrong place, the project now lives on GitHub: https://github.com/nicolasgramlich/AndEngine The Google Code repository is now probably very old and buggy!
你从错误的地方得到了AndEngine,该项目现在存在于GitHub上:https://github.com/nicolasgramlich/AndEngine Google Code存储库现在可能已经很老了,而且还有错误!
On getting it from GitHub, see this thread.
从GitHub获取它,请参阅此主题。