|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<project xmlns="http://maven.apache.org/POM/4.0.0" |
3 |
| - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | 3 | <modelVersion>4.0.0</modelVersion>
|
6 | 4 |
|
7 | 5 | <groupId>org.example</groupId>
|
|
16 | 14 | </properties>
|
17 | 15 |
|
18 | 16 | <build>
|
| 17 | + <pluginManagement> |
| 18 | + <plugins> |
| 19 | + <plugin> |
| 20 | + <groupId>org.graalvm.buildtools</groupId> |
| 21 | + <artifactId>native-maven-plugin</artifactId> |
| 22 | + <version>0.10.6</version> |
| 23 | + <extensions>true</extensions> |
| 24 | + <executions> |
| 25 | + <execution> |
| 26 | + <id>build-native</id> |
| 27 | + <goals> |
| 28 | + <goal>compile-no-fork</goal> |
| 29 | + </goals> |
| 30 | + <phase>package</phase> |
| 31 | + </execution> |
| 32 | + </executions> |
| 33 | + <configuration> |
| 34 | + <buildArgs> |
| 35 | + <buildArg>--tool:svm-wasm</buildArg> |
| 36 | + <buildArg>-g</buildArg> |
| 37 | + </buildArgs> |
| 38 | + </configuration> |
| 39 | + </plugin> |
| 40 | + </plugins> |
| 41 | + </pluginManagement> |
19 | 42 | <plugins>
|
20 | 43 | <plugin>
|
21 | 44 | <groupId>org.apache.maven.plugins</groupId>
|
|
29 | 52 | <configuration>
|
30 | 53 | <compilerArgs>
|
31 | 54 | <arg>-parameters</arg>
|
32 |
| - <arg>--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED</arg> |
| 55 | + <arg> |
| 56 | + --add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED |
| 57 | + </arg> |
33 | 58 | <arg>--add-modules=jdk.jdeps</arg>
|
34 | 59 | </compilerArgs>
|
35 | 60 | </configuration>
|
|
43 | 68 | <groupId>someGroupId</groupId>
|
44 | 69 | <version>1.0</version>
|
45 | 70 | <scope>system</scope>
|
46 |
| - <systemPath>${java.home}/lib/svm/tools/svm-wasm/builder/svm-wasm-api.jar</systemPath> |
| 71 | + <systemPath> |
| 72 | + ${java.home}/lib/svm/tools/svm-wasm/builder/svm-wasm-api.jar |
| 73 | + </systemPath> |
47 | 74 | </dependency>
|
48 | 75 | </dependencies>
|
49 | 76 |
|
| 77 | + <profiles> |
| 78 | + <profile> |
| 79 | + <id>native</id> |
| 80 | + <build> |
| 81 | + <plugins> |
| 82 | + <plugin> |
| 83 | + <groupId>org.graalvm.buildtools</groupId> |
| 84 | + <artifactId>native-maven-plugin</artifactId> |
| 85 | + <configuration> |
| 86 | + <mainClass>com.example.JavacMain</mainClass> |
| 87 | + </configuration> |
| 88 | + </plugin> |
| 89 | + </plugins> |
| 90 | + </build> |
| 91 | + </profile> |
| 92 | + <profile> |
| 93 | + <id>javacweb</id> |
| 94 | + <build> |
| 95 | + <plugins> |
| 96 | + <plugin> |
| 97 | + <groupId>org.graalvm.buildtools</groupId> |
| 98 | + <artifactId>native-maven-plugin</artifactId> |
| 99 | + <configuration> |
| 100 | + <mainClass>com.example.WebMain</mainClass> |
| 101 | + <imageName>../web/javac</imageName> |
| 102 | + </configuration> |
| 103 | + </plugin> |
| 104 | + </plugins> |
| 105 | + </build> |
| 106 | + </profile> |
| 107 | + </profiles> |
50 | 108 | </project>
|
0 commit comments