| <!-- |
| |
| Copyright 2019 the original author or authors. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.mvndaemon.mvnd</groupId> |
| <artifactId>mvnd</artifactId> |
| <version>0.1.1</version> |
| </parent> |
| |
| <artifactId>mvnd-client</artifactId> |
| |
| <packaging>jar</packaging> |
| <name>Maven Daemon - Client</name> |
| |
| <properties> |
| <maven.compiler.target>11</maven.compiler.target> |
| <maven.compiler.source>11</maven.compiler.source> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.mvndaemon.mvnd</groupId> |
| <artifactId>mvnd-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-embedder</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.graalvm.nativeimage</groupId> |
| <artifactId>svm</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.assertj</groupId> |
| <artifactId>assertj-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>io.takari.maven.plugins</groupId> |
| <artifactId>takari-lifecycle-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>sisu-index</goal> |
| </goals> |
| <phase>process-classes</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <compilerArgs> |
| <arg>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg> |
| </compilerArgs> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>native</id> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.graalvm.nativeimage</groupId> |
| <artifactId>native-image-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>native-image</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| <configuration> |
| <skip>false</skip> |
| <mainClass>org.mvndaemon.mvnd.client.DefaultClient</mainClass> |
| <imageName>mvnd</imageName> |
| <buildArgs> |
| --no-server |
| --no-fallback |
| --allow-incomplete-classpath |
| -H:IncludeResources=org/mvndaemon/mvnd/.* |
| -H:-ParseRuntimeOptions |
| -ea |
| </buildArgs> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |