Skip to content

Commit a3b9d77

Browse files
authored
Merge pull request #343 from graalvm/og/include-metadata-maven-demo
Include Metadata Maven demo: review and optimize pom.xml.
2 parents d86c23c + 8d36b52 commit a3b9d77

File tree

2 files changed

+9
-37
lines changed

2 files changed

+9
-37
lines changed

native-image/include-metadata/pom.xml

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -86,53 +86,25 @@
8686
<plugins>
8787
<plugin>
8888
<groupId>org.apache.maven.plugins</groupId>
89-
<artifactId>maven-surefire-plugin</artifactId>
90-
<version>3.0.0-M5</version>
91-
</plugin>
92-
<plugin>
93-
<groupId>org.apache.maven.plugins</groupId>
94-
<artifactId>maven-compiler-plugin</artifactId>
95-
<version>3.11.0</version>
96-
<configuration>
97-
<fork>true</fork>
98-
</configuration>
99-
</plugin>
100-
<plugin>
101-
<groupId>org.apache.maven.plugins</groupId>
102-
<artifactId>maven-jar-plugin</artifactId>
103-
<version>3.3.0</version>
89+
<artifactId>maven-assembly-plugin</artifactId>
90+
<version>3.7.0</version>
10491
<configuration>
92+
<descriptorRefs>
93+
<descriptorRef>jar-with-dependencies</descriptorRef>
94+
</descriptorRefs>
10595
<archive>
10696
<manifest>
107-
<addClasspath>true</addClasspath>
10897
<mainClass>${mainClass}</mainClass>
10998
</manifest>
11099
</archive>
111100
</configuration>
112-
</plugin>
113-
<plugin>
114-
<groupId>org.codehaus.mojo</groupId>
115-
<artifactId>exec-maven-plugin</artifactId>
116-
<version>3.1.1</version>
117101
<executions>
118102
<execution>
119-
<id>java</id>
103+
<id>assemble-all</id>
104+
<phase>package</phase>
120105
<goals>
121-
<goal>java</goal>
106+
<goal>single</goal>
122107
</goals>
123-
<configuration>
124-
<mainClass>${mainClass}</mainClass>
125-
</configuration>
126-
</execution>
127-
<execution>
128-
<id>native</id>
129-
<goals>
130-
<goal>exec</goal>
131-
</goals>
132-
<configuration>
133-
<executable>${project.build.directory}/${imageName}</executable>
134-
<workingDirectory>${project.build.directory}</workingDirectory>
135-
</configuration>
136108
</execution>
137109
</executions>
138110
</plugin>

native-image/include-metadata/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -ex
1010
# With Tracing Agent
1111
./mvnw clean
1212
./mvnw -Pnative -DskipTests -DskipNativeBuild=true package exec:exec@java-agent
13-
./mvnw -Pnative -DskipTests package exec:exec@native
13+
./mvnw -Pnative -DskipTests package
1414

1515
## Run Gradle Project
1616
# Default Configuration

0 commit comments

Comments
 (0)