|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved. |
| 4 | + ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 5 | + ~ |
| 6 | + ~ The Universal Permissive License (UPL), Version 1.0 |
| 7 | + ~ |
| 8 | + ~ Subject to the condition set forth below, permission is hereby granted to any |
| 9 | + ~ person obtaining a copy of this software, associated documentation and/or |
| 10 | + ~ data (collectively the "Software"), free of charge and under any and all |
| 11 | + ~ copyright rights in the Software, and any and all patent rights owned or |
| 12 | + ~ freely licensable by each licensor hereunder covering either (i) the |
| 13 | + ~ unmodified Software as contributed to or provided by such licensor, or (ii) |
| 14 | + ~ the Larger Works (as defined below), to deal in both |
| 15 | + ~ |
| 16 | + ~ (a) the Software, and |
| 17 | + ~ |
| 18 | + ~ (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if |
| 19 | + ~ one is included with the Software each a "Larger Work" to which the Software |
| 20 | + ~ is contributed by such licensors), |
| 21 | + ~ |
| 22 | + ~ without restriction, including without limitation the rights to copy, create |
| 23 | + ~ derivative works of, display, perform, and distribute the Software and make, |
| 24 | + ~ use, sell, offer for sale, import, export, have made, and have sold the |
| 25 | + ~ Software and the Larger Work(s), and to sublicense the foregoing rights on |
| 26 | + ~ either these or other terms. |
| 27 | + ~ |
| 28 | + ~ This license is subject to the following condition: |
| 29 | + ~ |
| 30 | + ~ The above copyright notice and either this complete permission notice or at a |
| 31 | + ~ minimum a reference to the UPL must be included in all copies or substantial |
| 32 | + ~ portions of the Software. |
| 33 | + ~ |
| 34 | + ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 35 | + ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 36 | + ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 37 | + ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 38 | + ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 39 | + ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 40 | + ~ SOFTWARE. |
| 41 | + --> |
| 42 | + |
| 43 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 44 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 45 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 46 | + <groupId>org.graalvm.buildtools.examples</groupId> |
| 47 | + <artifactId>issue-612</artifactId> |
| 48 | + <version>1.0.0-SNAPSHOT</version> |
| 49 | + <modelVersion>4.0.0</modelVersion> |
| 50 | + <properties> |
| 51 | + <java.version>1.8</java.version> |
| 52 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 53 | + <native.maven.plugin.version>0.10.5-SNAPSHOT</native.maven.plugin.version> |
| 54 | + <imageName>example-app</imageName> |
| 55 | + <mainClass>org.graalvm.demo.Application</mainClass> |
| 56 | + </properties> |
| 57 | + |
| 58 | + <dependencies> |
| 59 | + <dependency> |
| 60 | + <groupId>org.yaml</groupId> |
| 61 | + <artifactId>snakeyaml</artifactId> |
| 62 | + <version>2.3</version> |
| 63 | + <scope>runtime</scope> |
| 64 | + </dependency> |
| 65 | + </dependencies> |
| 66 | + |
| 67 | + <profiles> |
| 68 | + <profile> |
| 69 | + <id>native</id> |
| 70 | + <build> |
| 71 | + <plugins> |
| 72 | + <plugin> |
| 73 | + <groupId>org.graalvm.buildtools</groupId> |
| 74 | + <artifactId>native-maven-plugin</artifactId> |
| 75 | + <version>${native.maven.plugin.version}</version> |
| 76 | + <extensions>true</extensions> |
| 77 | + <executions> |
| 78 | + <execution> |
| 79 | + <id>build-native</id> |
| 80 | + <goals> |
| 81 | + <goal>compile-no-fork</goal> |
| 82 | + </goals> |
| 83 | + <phase>package</phase> |
| 84 | + </execution> |
| 85 | + </executions> |
| 86 | + <configuration> |
| 87 | + <skip>false</skip> |
| 88 | + <imageName>${imageName}</imageName> |
| 89 | + <fallback>false</fallback> |
| 90 | + <exclusions> |
| 91 | + <exclusion> |
| 92 | + <groupId>org.yaml</groupId> |
| 93 | + <artifactId>snakeyaml</artifactId> |
| 94 | + </exclusion> |
| 95 | + </exclusions> |
| 96 | + </configuration> |
| 97 | + </plugin> |
| 98 | + <plugin> |
| 99 | + <groupId>org.apache.maven.plugins</groupId> |
| 100 | + <artifactId>maven-surefire-plugin</artifactId> |
| 101 | + <version>3.0.0-M5</version> |
| 102 | + </plugin> |
| 103 | + <plugin> |
| 104 | + <groupId>org.apache.maven.plugins</groupId> |
| 105 | + <artifactId>maven-compiler-plugin</artifactId> |
| 106 | + <version>3.8.1</version> |
| 107 | + <configuration> |
| 108 | + <source>${java.version}</source> |
| 109 | + <target>1.8</target> |
| 110 | + </configuration> |
| 111 | + </plugin> |
| 112 | + <plugin> |
| 113 | + <groupId>org.apache.maven.plugins</groupId> |
| 114 | + <artifactId>maven-jar-plugin</artifactId> |
| 115 | + <version>3.2.2</version> |
| 116 | + <configuration> |
| 117 | + <archive> |
| 118 | + <manifest> |
| 119 | + <addClasspath>false</addClasspath> |
| 120 | + <mainClass>${mainClass}</mainClass> |
| 121 | + </manifest> |
| 122 | + </archive> |
| 123 | + </configuration> |
| 124 | + </plugin> |
| 125 | + </plugins> |
| 126 | + </build> |
| 127 | + </profile> |
| 128 | + </profiles> |
| 129 | + |
| 130 | +</project> |
0 commit comments