NutzCN Logo
问答 google后没搞定,idea和maven相关
发布于 3315天前 作者 qq_e7da0606 3167 次浏览 复制 上一个帖子 下一个帖子
标签:

用idea构建maven项目,项目用mvn命令可正常跑,但是用idea的ui界面上的deploy就老是不成功!

	"D:\Program Files\Java\jdk1.7.0_80\bin\java" -Dmaven.multiModuleProjectDirectory=E:\Idea\corn\corn-api "-Dmaven.home=D:\Program Files\apache-maven-3.3.3" "-Dclassworlds.conf=D:\Program Files\apache-maven-3.3.3\bin\m2.conf" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\apache-maven-3.3.3\boot\plexus-classworlds-2.5.2.jar;D:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=15.0.1 -s "D:\Program Files\apache-maven-3.3.3\conf\settings.xml" deploy
	[INFO] Scanning for projects...
	[INFO]                                                                         
	[INFO] ------------------------------------------------------------------------
	[INFO] Building corn-api 1.0-SNAPSHOT
	[INFO] ------------------------------------------------------------------------
	[INFO] 
	[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ corn-api ---
	[INFO] Using 'UTF-8' encoding to copy filtered resources.
	[INFO] Copying 17 resources
	[INFO] 
	[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ corn-api ---
	[INFO] Nothing to compile - all classes are up to date
	[INFO] 
	[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ corn-api ---
	[INFO] Using 'UTF-8' encoding to copy filtered resources.
	[INFO] skip non existing resourceDirectory E:\Idea\corn\corn-api\src\test\resources
	[INFO] 
	[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ corn-api ---
	[INFO] Nothing to compile - all classes are up to date
	[INFO] 
	[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ corn-api ---
	[INFO] Tests are skipped.
	[INFO] 
	[INFO] --- maven-war-plugin:2.6:war (default-war) @ corn-api ---
	[INFO] Packaging webapp
	[INFO] Assembling webapp [corn-api] in [E:\Idea\corn\corn-api\target\corn-api-1.0-SNAPSHOT]
	[INFO] Processing war project
	[INFO] Copying webapp resources [E:\Idea\corn\corn-api\src\main\webapp]
	[INFO] Webapp assembled in [812 msecs]
	[INFO] Building war: E:\Idea\corn\corn-api\target\corn-api.war
	[INFO] 
	[INFO] --- maven-install-plugin:2.4:install (default-install) @ corn-api ---
	[INFO] Installing E:\Idea\corn\corn-api\target\corn-api.war to D:\Program Files\apache-maven-3.3.3\repository\vc\thinker\corn-api\1.0-SNAPSHOT\corn-api-1.0-SNAPSHOT.war
	[INFO] Installing E:\Idea\corn\corn-api\pom.xml to D:\Program Files\apache-maven-3.3.3\repository\vc\thinker\corn-api\1.0-SNAPSHOT\corn-api-1.0-SNAPSHOT.pom
	[INFO] 
	[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ corn-api ---
	[INFO] ------------------------------------------------------------------------
	[INFO] BUILD FAILURE
	[INFO] ------------------------------------------------------------------------
	[INFO] Total time: 5.857 s
	[INFO] Finished at: 2015-11-25T11:49:51+08:00
	[INFO] Final Memory: 16M/216M
	[INFO] ------------------------------------------------------------------------
	[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project corn-api: Failed to deploy artifacts/metadata: Cannot access sftp://propellers.net/maven with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access sftp://propellers.net/maven using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
	[ERROR] role: org.apache.maven.wagon.Wagon
	[ERROR] roleHint: sftp
	[ERROR] -> [Help 1]
	[ERROR] 
	[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
	[ERROR] Re-run Maven using the -X switch to enable full debug logging.
	[ERROR] 
	[ERROR] For more information about the errors and possible solutions, please read the following articles:
	[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
	
	Process finished with exit code 1

3 回复

在命令行下执行过deploy 没?

和idea没关系。命令deploy有问题,run没问题

嗯 不管这个了 反正部署直接在服务器部署就可以了

添加回复
请先登陆
回到顶部