<artifactId>karaf4-parent</artifactId>
<version>1.8.0-SNAPSHOT</version>
<packaging>pom</packaging>
+ <name>ODL :: odlparent :: ${project.artifactId}</name>
+
+ <properties>
+ <!-- Projects can override this to add their own boot feature -->
+ <karaf.localFeature>standard</karaf.localFeature>
+ </properties>
<dependencyManagement>
<dependencies>
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
</executions>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<configuration>
<skip>true</skip>
</execution>
</executions>
</plugin>
+
+ <!-- This needs to execute before patching, otherwise the feature will be left unpatched -->
+ <plugin>
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>karaf4-plugin</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>populate-local-repo</id>
+ <goals>
+ <goal>populate-local-repo</goal>
+ </goals>
+ <configuration>
+ <localRepo>${project.build.directory}/assembly/system</localRepo>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<patch patchfile="${project.build.directory}/assembly/patches/karaf-setenv.bat.patch"
originalfile="${project.build.directory}/assembly/bin/setenv.bat"
failonerror="true"/>
+ <patch patchfile="${project.build.directory}/assembly/patches/karaf-quiesce-4.0.7.patch"
+ originalfile="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/4.0.7/standard-4.0.7-features.xml"
+ failonerror="true"/>
<fixcrlf srcdir="${project.build.directory}/assembly/bin"
includes="*.bat" eol="crlf"/>
</target>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
- <version>${karaf4.version}</version>
+ <version>${karaf4.plugin.version}</version>
<executions>
<execution>
<id>process-resources</id>
<feature>wrapper</feature>
</installedFeatures>
<bootFeatures>
- <feature>framework</feature>
- <feature>jaas</feature>
- <feature>shell</feature>
- <feature>feature</feature>
- <feature>ssh</feature>
- <feature>management</feature>
- <feature>bundle</feature>
- <feature>config</feature>
- <feature>deployer</feature>
- <feature>diagnostic</feature>
- <feature>instance</feature>
- <feature>kar</feature>
- <feature>log</feature>
- <feature>package</feature>
- <feature>service</feature>
- <feature>system</feature>
+ <feature>standard</feature>
+ <feature>war</feature>
<!-- We load wrap as a workaround to handle old features without the wrap prerequisite -->
<!-- TODO Remove this once all the downstream features are fixed -->
<feature>wrap</feature>
+ <!-- Local feature if any -->
+ <feature>${karaf.localFeature}</feature>
</bootFeatures>
<javase>1.8</javase>
</configuration>
</plugin>
- <plugin>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>karaf4-plugin</artifactId>
- <version>1.8.0-SNAPSHOT</version>
- <executions>
- <execution>
- <id>populate-local-repo</id>
- <goals>
- <goal>populate-local-repo</goal>
- </goals>
- <configuration>
- <localRepo>${project.build.directory}/assembly/system</localRepo>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>