建立包含propriatery库的maven项目 [英] build maven project with propriatery libraries included
问题描述
如何创建maven pom,这将使项目可构建,我可以直接将propriatery jar包括在我的项目中,而无需从存储库中获取它们吗?有没有人这样做过?
How to create maven pom, which will make project buildable, can I include propriatery jars with my project directly without having to take them from repository? anyone did this before ?
编辑:
我不希望通过使用依赖jar构建程序集使其可运行,我想要它是可以建造的。所以拥有这个项目的任何人都能够构建它,即使在任何存储库中都找不到罐子。
I don't want to make it runnable by building assembly with dependencies jar, I want it to be buildable. So anyone having this project is able to build it, even if jars are nowhere to be found at any repository.
推荐答案
1 您可以在应用程序的类路径中包含该jar吗?
2 您可以通过
1 Either you can include that jar in your classpath of application
2 you can install particular jar file in your maven reopos by
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
这篇关于建立包含propriatery库的maven项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!