| <?xml version="1.0"?> |
| <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.felix.atomos.examples</groupId> |
| <artifactId>org.apache.felix.atomos.examples</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| </parent> |
| <artifactId>org.apache.felix.atomos.examples.substrate.equinox</artifactId> |
| <name>atomos.examples.substrate.equinox</name> |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <java.version>1.8</java.version> |
| <maven.compiler.release combine.self="override"></maven.compiler.release> |
| <maven.compiler.source>${java.version}</maven.compiler.source> |
| <maven.compiler.target>${java.version}</maven.compiler.target> |
| </properties> |
| |
| <repositories> |
| <repository> |
| <id>atomos-temp-m2repo</id> |
| <url>https://github.com/tjwatson/atomos-temp-m2repo/raw/master/repository</url> |
| <snapshots> |
| <enabled>true</enabled> |
| <updatePolicy>always</updatePolicy> |
| </snapshots> |
| </repository> |
| </repositories> |
| <dependencies> |
| <dependency> |
| <groupId>org.eclipse.platform</groupId> |
| <artifactId>org.eclipse.osgi</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.atomos.runtime</artifactId> |
| <version>${atomos.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix.atomos.tests</groupId> |
| <artifactId>org.apache.felix.atomos.tests.testbundles.service.contract</artifactId> |
| <version>${atomos.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix.atomos.tests</groupId> |
| <artifactId>org.apache.felix.atomos.tests.testbundles.service.impl</artifactId> |
| <version>${atomos.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix.atomos.tests</groupId> |
| <artifactId>org.apache.felix.atomos.tests.testbundles.service.impl.activator</artifactId> |
| <version>${atomos.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix.atomos.tests</groupId> |
| <artifactId>org.apache.felix.atomos.tests.testbundles.service.user</artifactId> |
| <version>${atomos.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.atomos.substrate.config</artifactId> |
| <version>${atomos.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix.atomos.examples</groupId> |
| <artifactId>org.apache.felix.atomos.examples.webconsole.bom</artifactId> |
| <version>${atomos.version}</version> |
| <type>pom</type> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>${maven.compiler.source}</source> |
| <target>${maven.compiler.target}</target> |
| <showWarnings>true</showWarnings> |
| <showDeprecation>true</showDeprecation> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/atomos_lib</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.graalvm.nativeimage</groupId> |
| <artifactId>native-image-maven-plugin</artifactId> |
| <version>19.3.1</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>native-image</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| <configuration> |
| <imageName>atomos</imageName> |
| <mainClass>org.apache.felix.atomos.launch.AtomosLauncher</mainClass> |
| <buildArgs> |
| --allow-incomplete-classpath |
| --no-fallback |
| --initialize-at-build-time=org.apache.felix.atomos.runtime,org.apache.felix.atomos.runtime.launch,org.apache.felix.atomos.impl,javax.servlet,org.apache.felix.service.command.Converter |
| -H:ReflectionConfigurationFiles=${project.basedir}/graal_class_config.json |
| -H:ResourceConfigurationFiles=${project.basedir}/graal_resource_config.json |
| -H:DynamicProxyConfigurationFiles=${project.basedir}/graal_proxy_config.json |
| -H:+ReportUnsupportedElementsAtRuntime |
| -H:+ReportExceptionStackTraces |
| -H:+TraceClassInitialization |
| -H:+PrintClassInitialization |
| </buildArgs> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |