Spring Boot Maven Plugin not creating executable jar -



Spring Boot Maven Plugin not creating executable jar -

my pom below. executable jar not beingness create when run "mvn clean package". however, when remove dependencymanagement element , add together spring boot parent pom, works.

what missing?

<?xml version="1.0" encoding="utf-8"?>

http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0

<groupid>com.example</groupid> <artifactid>sample-boot</artifactid> <version>0.0.1-snapshot</version> <dependencymanagement> <dependencies> <dependency> <!-- import dependency management spring boot --> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-dependencies</artifactid> <version>1.2.0.m2</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencymanagement> <dependencies> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-web</artifactid> </dependency> </dependencies> <repositories> <repository> <id>spring-snapshots</id> <url>http://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>spring-milestones</id> <url>http://repo.spring.io/milestone</url> </repository> </repositories> <pluginrepositories> <pluginrepository> <id>spring-snapshots</id> <url>http://repo.spring.io/snapshot</url> </pluginrepository> <pluginrepository> <id>spring-milestones</id> <url>http://repo.spring.io/milestone</url> </pluginrepository> </pluginrepositories> <build> <plugins> <plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> </plugin> </plugins> </build> </project>

that's because plugin configured in parent in sec case. if want manage own plugins (ie not utilize parent), have explicitly configure spring boot plugin (and others).

spring maven-3 spring-boot

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -