Skip to content

Commit f8b301e

Browse files
committed
Optimize pom.xml
1 parent 34fea3a commit f8b301e

File tree

1 file changed

+8
-36
lines changed
  • native-image/include-metadata

1 file changed

+8
-36
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>

0 commit comments

Comments
 (0)