| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you 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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.felix.atomos.examples</groupId> |
| <artifactId>org.apache.felix.atomos.examples</artifactId> |
| <version>1.0.1-SNAPSHOT</version> |
| </parent> |
| <artifactId>org.apache.felix.atomos.examples.substrate.lib</artifactId> |
| <name>atomos.examples.substrate.lib</name> |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <java.version>1.8</java.version> |
| <felix.java.version>8</felix.java.version> |
| <maven.compiler.release combine.self="override" /> |
| <maven.compiler.source>${java.version}</maven.compiler.source> |
| <maven.compiler.target>${java.version}</maven.compiler.target> |
| </properties> |
| |
| <profiles> |
| <profile> |
| <id>default-compile</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.core</artifactId> |
| </dependency> |
| </dependencies> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| </profile> |
| <profile> |
| <id>equinox</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.eclipse.platform</groupId> |
| <artifactId>org.eclipse.osgi</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <id>felix</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.framework</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.log</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.atomos</artifactId> |
| <version>1.0.1-SNAPSHOT</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>1.0.1-SNAPSHOT</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>1.0.1-SNAPSHOT</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>1.0.1-SNAPSHOT</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>1.0.1-SNAPSHOT</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>1.0.1-SNAPSHOT</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>21.0.0</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>native-image</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| <configuration> |
| <imageName>atomos</imageName> |
| <mainClass>org.apache.felix.atomos.Atomos</mainClass> |
| <buildArgs> |
| --no-server |
| --allow-incomplete-classpath |
| --no-fallback |
| --initialize-at-build-time=org.eclipse.jetty.util.TypeUtil |
| --initialize-at-build-time=org.eclipse.jetty.http.HttpTokens |
| --initialize-at-build-time=org.eclipse.jetty.util.log.Log |
| --initialize-at-build-time=org.eclipse.jetty.util.log.StdErrLog |
| --initialize-at-build-time=org.eclipse.jetty.util.Uptime |
| --initialize-at-build-time=org.eclipse.jetty.server.HttpOutput |
| --initialize-at-build-time=org.apache.felix.atomos |
| --initialize-at-build-time=javax.servlet |
| --initialize-at-build-time=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:+PrintClassInitialization |
| </buildArgs> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |