|
19 | 19 | </dependency>
|
20 | 20 | </dependencies>
|
21 | 21 |
|
| 22 | + <profiles> |
| 23 | + <profile> |
| 24 | + <id>prod</id> |
| 25 | + |
| 26 | + <build> |
| 27 | + <plugins> |
| 28 | + <plugin> |
| 29 | + <groupId>org.springframework.boot</groupId> |
| 30 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 31 | + |
| 32 | + <configuration> |
| 33 | + <profiles> |
| 34 | + <!-- in case the Spring profile name is different --> |
| 35 | + <profile>production</profile> |
| 36 | + </profiles> |
| 37 | + </configuration> |
| 38 | + </plugin> |
| 39 | + </plugins> |
| 40 | + </build> |
| 41 | + </profile> |
| 42 | + |
| 43 | + <profile> |
| 44 | + <id>dev</id> |
| 45 | + <activation> |
| 46 | + <activeByDefault>true</activeByDefault> |
| 47 | + </activation> |
| 48 | + |
| 49 | + <build> |
| 50 | + <plugins> |
| 51 | + <plugin> |
| 52 | + <groupId>org.springframework.boot</groupId> |
| 53 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 54 | + |
| 55 | + <configuration> |
| 56 | + <profiles> |
| 57 | + <profile>dev</profile> |
| 58 | + </profiles> |
| 59 | + </configuration> |
| 60 | + </plugin> |
| 61 | + </plugins> |
| 62 | + </build> |
| 63 | + </profile> |
| 64 | + </profiles> |
| 65 | + |
22 | 66 | <build>
|
23 | 67 | <finalName>spring-boot-training-${project.version}</finalName>
|
24 | 68 |
|
|
29 | 73 |
|
30 | 74 | <configuration>
|
31 | 75 | <executable>true</executable>
|
32 | | - <mainClass>net.safedata.springboot.training.d03.s05.ProjectPackagingDemo</mainClass> |
| 76 | + <mainClass>net.safedata.spring.training.d03.s05.ProjectPackagingDemo</mainClass> |
33 | 77 |
|
34 | 78 | <jvmArguments>-server -Xms128m -Xmx128m</jvmArguments>
|
35 | 79 |
|
|
0 commit comments