Make projects executable (#2278)

* Create pom.xml

Initial import

* First submit

* Second submit

* Different Types of Bean Injection in Spring

* Different Types of Bean Injection in Spring

* Added spring-core-di into the main build

* Revert "Create pom.xml"

This reverts commit 1bdc5443125df19575605f41ab28c9e8b6c69a32.

* BAEL-764 Automatic Property Expansion with Spring Boot

* BAEL-764 Automatic Property Expansion with Spring Boot

* BAEL-764 Automatic Property Expansion with Spring Boot

* BAEL-764 Automatic Property Expansion with Spring Boot
Make executable jars for property-exp-default project and use mvn exec:java to run property-exp-default project
This commit is contained in:
Roman Seleznov 2017-08-01 14:03:07 +01:00 committed by Grzegorz Piwowarek
parent 7f5ca786e2
commit 0c60af8437
3 changed files with 33 additions and 0 deletions

View File

@ -40,6 +40,15 @@
<include>**/application*.properties</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/application*.yml</exclude>
<exclude>**/application*.yaml</exclude>
<exclude>**/application*.properties</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
@ -53,6 +62,14 @@
<useDefaultDelimiters>true</useDefaultDelimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>com.baeldung.propertyexpansion.SpringBootPropertyExpansionApp</mainClass>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -27,6 +27,10 @@ repositories {
mavenCentral()
}
springBoot {
executable = true
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
with copySpec {

View File

@ -30,4 +30,16 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
</plugins>
</build>
</project>