使用maven命令发布第三方jar到自己的maven服务器上
2017-04-18 11:38
281 查看
我机器上的信息如下:
1) maven所在目录:F:\maven\apache-maven-3.3.9\bin
2) 要发布的jar所在目录:H:\btm-3.0.0.jar
3) pom.xml配置信息:
<!-- btm分布式事务 -->
<dependency>
<groupId>org.codehaus.btm</groupId>
<artifactId>btm</artifactId>
<version>3.0.0</version>
</dependency>
4) maven 的配置信息F:\maven\apache-maven-3.3.9\conf\settings.xml
<server>
<id>nexus</id>
<username>admin</username>
<password>xxxxxxxx1231</password>
</server>
<repository>
<id>nexus</id>
<url>http://192.168.0.112:8081/repository/3rdparty/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
具体发布的命令:
mvn deploy:deploy-file -DgroupId=org.codehaus.btm -DartifactId=btm-Dversion=3.0.0 -Dpackaging=jar -DrepositoryId=nexus-Dfile=H:\btm-3.0.0.jar
-Durl=http://[b]192.168.0.112:8081/repository/3rdparty/[/b]
org.codehaus.btm为pom中的groupId中的内容;
btm为pom中的artifactId中的内容;
3.0.0为pom中的version中的内容;
nexus为maven配置文件setting.xml中的配置项:
=======================================================================================================
对于jdk有要求的jar发布命令为:
pom.xml文件中配置信息为:
<dependency>
<groupId>com.aspose.words</groupId>
<artifactId>aspose-words</artifactId>
<version>15.8.0</version>
<classifier>jdk16</classifier>
</dependency>
发布的命令为:
mvn deploy:deploy-file -DgroupId=com.aspose.words -DartifactId=aspose-words -Dversion=15.8.0
-Dclassifier=jdk16 -Dpackaging=jar -DrepositoryId=nexus -Dfile=F:\aspose-words-16.4.0-jdk16.jar -Durl=http://172.17.0.211:8081/repository/3rdparty/
1) maven所在目录:F:\maven\apache-maven-3.3.9\bin
2) 要发布的jar所在目录:H:\btm-3.0.0.jar
3) pom.xml配置信息:
<!-- btm分布式事务 -->
<dependency>
<groupId>org.codehaus.btm</groupId>
<artifactId>btm</artifactId>
<version>3.0.0</version>
</dependency>
4) maven 的配置信息F:\maven\apache-maven-3.3.9\conf\settings.xml
<server>
<id>nexus</id>
<username>admin</username>
<password>xxxxxxxx1231</password>
</server>
<repository>
<id>nexus</id>
<url>http://192.168.0.112:8081/repository/3rdparty/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
具体发布的命令:
mvn deploy:deploy-file -DgroupId=org.codehaus.btm -DartifactId=btm-Dversion=3.0.0 -Dpackaging=jar -DrepositoryId=nexus-Dfile=H:\btm-3.0.0.jar
-Durl=http://[b]192.168.0.112:8081/repository/3rdparty/[/b]
org.codehaus.btm为pom中的groupId中的内容;
btm为pom中的artifactId中的内容;
3.0.0为pom中的version中的内容;
nexus为maven配置文件setting.xml中的配置项:
=======================================================================================================
对于jdk有要求的jar发布命令为:
pom.xml文件中配置信息为:
<dependency>
<groupId>com.aspose.words</groupId>
<artifactId>aspose-words</artifactId>
<version>15.8.0</version>
<classifier>jdk16</classifier>
</dependency>
发布的命令为:
mvn deploy:deploy-file -DgroupId=com.aspose.words -DartifactId=aspose-words -Dversion=15.8.0
-Dclassifier=jdk16 -Dpackaging=jar -DrepositoryId=nexus -Dfile=F:\aspose-words-16.4.0-jdk16.jar -Durl=http://172.17.0.211:8081/repository/3rdparty/
相关文章推荐
- 使用maven命令终端构建一个web项目及发布该项目
- 使用maven命令将第三方jar包导入本地仓库
- 建立企业内部Maven服务器并使用Android Studio发布公共项目
- 如何使用maven打包并发布到中央服务器
- 使用maven命令终端构建一个web项目及发布该项目
- 使用cargo-maven2-plugin插件自动化发布到Tomcat服务器
- 使用github作为maven仓库发布自己的jar包依赖
- 建立企业内部maven服务器并使用Android Studio发布公共项目
- 建立企业内部maven服务器并使用Android Studio发布公共项目
- 使用maven命令将第三方jar包导入maven库
- 自己的maven jar 包发布到私服服务器不成功,问题解决方案
- 购买阿里云服务器数字证书后, 使用openssl命令,编写linux shell脚本,实现自己给 客户快速颁发证书
- 使用maven发布idea中web项目到远程tomcat服务器
- java使用tomcat7的maven插件发布到服务器
- 【胖鱼头】配置Maven站点并使用ssh发布到服务器
- 建立企业内部maven服务器并使用Android Studio发布公共项目
- Maven的使用方法:在服务器上进行自动编译时的发布(deploy)
- jenkins使用maven打包发布到远程服务器
- 使用 链接服务器执行SELECT、UPDATE、INSERT 或 DELETE 及其它命令
- 转:在自己的工具条中使用ArcGIS Engine提供的命令和工具