Skip to content

Instantly share code, notes, and snippets.

@Layoric
Created April 18, 2016 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Layoric/6befd7ecc929ea507b877a11f28bc79b to your computer and use it in GitHub Desktop.
Save Layoric/6befd7ecc929ea507b877a11f28bc79b to your computer and use it in GitHub Desktop.
Apache Felix basic POM config
<?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>
<modelVersion>4.0.0</modelVersion>
<groupId>{group-id}</groupId>
<artifactId>{artifact-id}</artifactId>
<version>{version}</version>
<packaging>bundle</packaging>
<name>{Name}</name>
<description>{Description}</description>
<build>
<!-- make it an OSGi bundle -->
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Install-Path>config</Install-Path>
<Data-Files>datafiles</Data-Files>
<Data-Files-Priority>
-100
</Data-Files-Priority>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<!-- AL20 licensed files. See src/main/resources/README -->
<exclude>src/main/resources/config/*.config</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- none - config only -->
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment