|
19 | 19 | <plugin>
|
20 | 20 | <groupId>org.springframework.boot</groupId>
|
21 | 21 | <artifactId>spring-boot-maven-plugin</artifactId>
|
22 |
| - <configuration> |
23 |
| - <mainClass>org.springframework.shell.samples.SpringShellSample</mainClass> |
24 |
| - </configuration> |
25 | 22 | </plugin>
|
26 | 23 | </plugins>
|
27 | 24 | </build>
|
28 | 25 |
|
29 | 26 | <dependencies>
|
| 27 | + <dependency> |
| 28 | + <groupId>org.springframework.boot</groupId> |
| 29 | + <artifactId>spring-boot-starter</artifactId> |
| 30 | + </dependency> |
30 | 31 | <dependency>
|
31 | 32 | <groupId>org.springframework.shell</groupId>
|
32 | 33 | <artifactId>spring-shell-starter</artifactId>
|
|
36 | 37 | <artifactId>jcommander</artifactId>
|
37 | 38 | </dependency>
|
38 | 39 | </dependencies>
|
| 40 | + |
| 41 | + <profiles> |
| 42 | + <profile> |
| 43 | + <id>native</id> |
| 44 | + <!-- needs GRAALVM_HOME to point to graal tools --> |
| 45 | + <properties> |
| 46 | + <spring-native.version>0.11.1</spring-native.version> |
| 47 | + </properties> |
| 48 | + <dependencies> |
| 49 | + <dependency> |
| 50 | + <groupId>org.springframework.experimental</groupId> |
| 51 | + <artifactId>spring-native</artifactId> |
| 52 | + <version>${spring-native.version}</version> |
| 53 | + </dependency> |
| 54 | + <!-- Required with Maven Surefire 2.x --> |
| 55 | + <dependency> |
| 56 | + <groupId>org.junit.platform</groupId> |
| 57 | + <artifactId>junit-platform-launcher</artifactId> |
| 58 | + <scope>test</scope> |
| 59 | + </dependency> |
| 60 | + </dependencies> |
| 61 | + <build> |
| 62 | + <plugins> |
| 63 | + <plugin> |
| 64 | + <groupId>org.springframework.experimental</groupId> |
| 65 | + <artifactId>spring-aot-maven-plugin</artifactId> |
| 66 | + <version>${spring-native.version}</version> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <id>generate</id> |
| 70 | + <goals> |
| 71 | + <goal>generate</goal> |
| 72 | + </goals> |
| 73 | + </execution> |
| 74 | + </executions> |
| 75 | + </plugin> |
| 76 | + <plugin> |
| 77 | + <groupId>org.graalvm.buildtools</groupId> |
| 78 | + <artifactId>native-maven-plugin</artifactId> |
| 79 | + <version>0.9.9</version> |
| 80 | + <extensions>true</extensions> |
| 81 | + <executions> |
| 82 | + <execution> |
| 83 | + <id>build-native</id> |
| 84 | + <goals> |
| 85 | + <goal>build</goal> |
| 86 | + </goals> |
| 87 | + <phase>package</phase> |
| 88 | + </execution> |
| 89 | + <execution> |
| 90 | + <id>test-native</id> |
| 91 | + <goals> |
| 92 | + <goal>test</goal> |
| 93 | + </goals> |
| 94 | + <phase>test</phase> |
| 95 | + </execution> |
| 96 | + </executions> |
| 97 | + <configuration> |
| 98 | + <!-- ... --> |
| 99 | + </configuration> |
| 100 | + </plugin> |
| 101 | + <!-- Avoid a clash between Spring Boot repackaging and native-maven-plugin --> |
| 102 | + <plugin> |
| 103 | + <groupId>org.springframework.boot</groupId> |
| 104 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 105 | + <configuration> |
| 106 | + <classifier>exec</classifier> |
| 107 | + </configuration> |
| 108 | + </plugin> |
| 109 | + </plugins> |
| 110 | + </build> |
| 111 | + <pluginRepositories> |
| 112 | + <pluginRepository> |
| 113 | + <id>spring-releases</id> |
| 114 | + <name>Spring Releasess</name> |
| 115 | + <url>https://repo.spring.io/release</url> |
| 116 | + </pluginRepository> |
| 117 | + </pluginRepositories> |
| 118 | + </profile> |
| 119 | + </profiles> |
| 120 | + |
39 | 121 | </project>
|
0 commit comments