no main manifest attribute, in /microservice-discovery-eureka-1.0-SNAPSHOT.jar

问题no main manifest attribute, in /microservice-discovery-eureka-1.0-SNAPSHOT.jar
解决

<plugin>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-maven-pluginartifactId>
    <configuration>
    	
        <mainClass>com.zzw.EurekaApplicationmainClass>
                  
        <layout>defaultlayout>
    configuration>
    <executions>
        <execution>
            <goals>
            	
                <goal>repackagegoal>
            goals>
        execution>
    executions>
plugin>

你可能感兴趣的:(Java,java,maven)