Skip to content

Commit

Permalink
Add a native profile with no build args #26
Browse files Browse the repository at this point in the history
* A workaround to keep `mvn ... -Dnative` working as expected,
while it easily offers a way to build native passing in
-Dquarkus.native.additional-build-args via command line.
* Additional build args via command line can help pass in
diverse debugging and profiling options.
  • Loading branch information
galderz committed Nov 5, 2020
1 parent 50b447d commit 2021dcc
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions server-runner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,67 @@
</plugins>
</build>
</profile>
<profile>
<id>native-noargs</id>
<activation>
<property>
<name>native-noargs</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.build.finalName}-runner</file>
<type>bin</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 2021dcc

Please sign in to comment.