发表于: 2017-12-21 23:20:49
1 638
一.部署服务器
1.还是部署服务器,但是各种问题
2.我们安装自定义jar包的时候要进行自定义pom安装工件
使用如下命令
http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile =路径到你的artifact-jar -DpomFile =路径到pom
1.Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project reclamation-funlearn-course-core: Failed to deploy artifacts: Could not transfer artifact ptteng:reclamation-funlearn-course-core:jar:1.0-20171221.040230-1 from/to nexus (http://nexus.ptteng.com/nexus/content/repositories/snapshots): Failed to transfer file: http://nexus.ptteng.com/nexus/content/repositories/snapshots/ptteng/reclamation-funlearn-course-core/1.0-SNAPSHOT/reclamation-funlearn-course-core-1.0-20171221.040230-1.jar. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
原因:core包deploy不了.我们以后要在服务器上进行打包,所以要将所有用到的jar包放在公司服务器上,所以要把core包和自定义的jar包deploy到服务器上,但是一直报错,最后发现原来需要下面一段
2.现在的问题就是放到服务器上打包的时候出现好多jar包找不到的问题
评论