Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[情报][用户报告]部署失败 #4591

Closed
wangkun370 opened this issue Sep 14, 2020 · 2 comments · Fixed by #4626
Closed

[情报][用户报告]部署失败 #4591

wangkun370 opened this issue Sep 14, 2020 · 2 comments · Fixed by #4626

Comments

@wangkun370
Copy link

IntelliJ build version: 2020.2 IU-202.6397.94
OS: Windows 10
JDK: JetBrains s.r.o. 11.0.7
Plugin version: 3.42.0-2020.2
Error message:

com.microsoft.azure.common.exceptions.AzureExecutionException: Main class cannot be found in D:\Project\hellospring\target\hellospring-0.0.1-SNAPSHOT.jar, which is required for spring cloud app.
	at com.microsoft.intellij.runner.springcloud.deploy.SpringCloudDeploymentState.validateSpringCloudAppArtifact(SpringCloudDeploymentState.java:204)
	at com.microsoft.intellij.runner.springcloud.deploy.SpringCloudDeploymentState.executeSteps(SpringCloudDeploymentState.java:128)
	at com.microsoft.intellij.runner.springcloud.deploy.SpringCloudDeploymentState.executeSteps(SpringCloudDeploymentState.java:64)
	at com.microsoft.intellij.runner.AzureRunProfileState.lambda$execute$0(AzureRunProfileState.java:71)
	at rx.internal.operators.OnSubscribeFromCallable.call(OnSubscribeFromCallable.java:48)
	at rx.internal.operators.OnSubscribeFromCallable.call(OnSubscribeFromCallable.java:33)
	at rx.Observable.unsafeSubscribe(Observable.java:10327)
	at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call(OperatorSubscribeOn.java:100)
	at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:230)
	at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
	at java.base/java.util.concurrent.Executors$RunnableAda
@Flanker32
Copy link
Member

@wangkun370 Thanks for your report, Azure Spring Cloud required the artifact to be runnable, which should have Main class specified in MANIFEST, for spring boot project, please use spring-boot-maven-plugin for packaging and try again.

@no-response
Copy link

no-response bot commented Oct 1, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants