无法将jar包发布到本地库中
在idea中使用使用install 无法将jar包发布到本地库中,但是在cmd中使用mvn install则可以发布 请问这是为什么 idea中进行install后提示如下
"C:\Program Files\Java\jdk-9.0.4\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\1\qwecq "-Dmaven.home=D:\IntelliJ IDEA 2018.1.2\plugins\maven\lib\maven3" "-Dclassworlds.conf=D:\IntelliJ IDEA 2018.1.2\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:D:\IntelliJ IDEA 2018.1.2\lib\idea_rt.jar=51292:D:\IntelliJ IDEA 2018.1.2\bin" -Dfile.encoding=UTF-8 -classpath "D:\IntelliJ IDEA 2018.1.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.1.2 install -f pom.xml [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building qwecq 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ qwecq --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ qwecq --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to D:\1\qwecq\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ qwecq --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory D:\1\qwecq\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ qwecq --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ qwecq --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ qwecq --- [INFO] Building jar: D:\1\qwecq\target\qwecq-1.0-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ qwecq --- [INFO] Installing D:\1\qwecq\target\qwecq-1.0-SNAPSHOT.jar to C:\Users\commonsense\.m2\repository\com\Hank\qwecq\1.0-SNAPSHOT\qwecq-1.0-SNAPSHOT.jar [INFO] Installing D:\1\qwecq\pom.xml to C:\Users\commonsense\.m2\repository\com\Hank\qwecq\1.0-SNAPSHOT\qwecq-1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.837 s [INFO] Finished at: 2018-06-12T19:34:23+08:00 [INFO] Final Memory: 14M/47M [INFO] ------------------------------------------------------------------------ Process finished with exit code 0
14
收起
正在回答 回答被采纳积分+1
1回答
Java数据库开发与实战应用2018版
- 参与学习 人
- 提交作业 277 份
- 解答问题 4297 个
Java数据库开发的必备技能,从流行的MySQL数据库开始,到Java原生的数据库管理接口JDBC的使用,再到常用的数据持久化框架MyBatis,让你向Java工程师的目标又迈进了一步!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星