I can deploy a jar
by using the following in my pom.xml
and running mvn deploy
:
<distributionManagement><repository><id>releases</id><url>http://${host}:8081/nexus/content/repositories/releases</url></repository><snapshotRepository><id>snapshots</id><name>InternalSnapshots</name><url>http://${host}:8081/nexus/content/repositories/snapshots</url></snapshotRepository></distributionManagement>
And I can build an executable jar-with-dependencies
using the following:
<plugin><artifactId>maven-assembly-plugin</artifactId><executions><execution><id>create-executable-jar</id><phase>deploy</phase><goals><goal>single</goal></goals><configuration><descriptorRefs><descriptorRef>jar-with-dependencies</descriptorRef></descriptorRefs><archive><manifest><mainClass>my.company.app.Main</mainClass></manifest></archive></configuration></execution></executions></plugin>
<plugin><artifactId>maven-deploy-plugin</artifactId><version>2.7</version><executions><execution><id>deploy-executable</id><goals><goal>deploy-file</goal></goals><configuration><file>target/Monitoring-Client-1.0-SNAPSHOT-jar-with-dependencies.jar</file></configuration></execution></executions></plugin>
相关推荐
maven-deploy-plugin-2.8.2.jar
maven-deploy-plugin-2.7.jar
maven打包 maven打jar包详细步骤
maven-jar-plugin-3.1.1.jar
maven-jar-plugin-2.6.jar。解决maven官网上下载不下来或者下载速度慢的问题。
maven-jar-plugin-2.3.2.jar
批量导入maven本地jar包
MAVEN下载JAR包时经常下载一半没有完成,如果项目中引用了这些JAR包项目就会无法启动,该工具就是可以扫描这些有问题的jar包并且删除,如果安装了JDK并配置环境变量直接双击运行即可
maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包 maven2 jar包
主要介绍了Maven deploy配置方法详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
Maven deploy到 nexus(csdn)————程序
java运行依赖jar包
maven 打jar包,source包,并上传到本地maven库
主要介绍了Maven发布Jar包中文乱码解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
刚学习Java的时候找jar包有点繁琐,后来才知道可以用maven直接导入,现在把maven中常用的jar包库上传,方便初学者。加油(ง •_•)ง
JSONObject对象相关的jar包依赖,一共有6个;还有maven环境下管理的jar包
maven-deploy-plugin-2.4.jar
maven-deploy-plugin-2.0.jar
maven-deploy-plugin-2.5.jar
下载解压压缩包,把对应的jar包复制到对应的java安装目录下,重启eclipse,即可运行