<packaging>maven-archetype</packaging>
<name>${project.artifactId}</name>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <configuration>
- <failsOnError>true</failsOnError>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="example-aggregator"
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
<requiredProperties>
<requiredProperty key="classPrefix" >
<defaultValue>
</fileSet>
<!-- features -->
-
<fileSet filtered="true" encoding="UTF-8">
<directory>features</directory>
<includes>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
- <directory>features/src/main/features</directory>
+ <directory>features/features-X</directory>
<includes>
- <include>**/*.xml</include>
- </includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>features/odl-X-api</directory>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>features/odl-X</directory>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>features/odl-X-cli</directory>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet filtered="true" encoding="UTF-8">
+ <directory>features/odl-X-rest</directory>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
</fileSet>
<!-- impl -->
-
<fileSet filtered="true" encoding="UTF-8">
<directory>impl</directory>
<includes>
</fileSet>
<!-- api -->
-
<fileSet filtered="true" encoding="UTF-8">
<directory>api</directory>
<includes>
-->
<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>
namespace "urn:opendaylight:params:xml:ns:yang:${artifactId}";
prefix "${artifactId}";
- revision "${date}" {
+ revision "2017-08-30" { // TODO change revision to date of model creation
description "Initial revision of ${artifactId} model";
}
}
-->
<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>
</dependency>
<dependency>
<groupId>${symbol_dollar}{project.groupId}</groupId>
- <artifactId>${artifactId}-features</artifactId>
+ <artifactId>features-${artifactId}</artifactId>
<version>${symbol_dollar}{project.version}</version>
<classifier>features</classifier>
<type>xml</type>
-->
<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>
<name>ODL :: ${groupId} :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
<!-- Project Dependencies -->
<dependency>
<version>${symbol_dollar}{project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-api</artifactId>
+ </dependency>
+
<!-- Apache Karaf console dependency -->
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<bean id="cliCommandsImpl" class="${package}.cli.impl.${classPrefix}CliCommandsImpl">
<argument ref="dataBroker" />
</bean>
+
<service ref="cliCommandsImpl" odl:type="default"
interface="${package}.cli.api.${classPrefix}CliCommands" />
- <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
- <command name="test-command">
- <action class="${package}.cli.commands.${classPrefix}CliTestCommand">
- <argument ref="cliCommandsImpl"/>
- </action>
- </command>
- </command-bundle>
-</blueprint>
+ <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
+ <command>
+ <action class="${package}.cli.commands.${classPrefix}CliTestCommand">
+ <argument ref="cliCommandsImpl"/>
+ </action>
+ </command>
+ </command-bundle>
+</blueprint>
\ No newline at end of file
--- /dev/null
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
+-->
+<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.opendaylight.odlparent</groupId>
+ <artifactId>feature-repo-parent</artifactId>
+ <version>2.0.4</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>features-${artifactId}</artifactId>
+ <version>${version}</version>
+ <packaging>feature</packaging>
+ <!-- <name> formatting is used by autorelease to parse and notify projects on
+ build failure. Please do not modify this unless you have a good reason. -->
+ <name>ODL :: ${groupId} :: ${project.artifactId}</name>
+
+ <properties>
+ <mdsal.model.version>0.12.0-SNAPSHOT</mdsal.model.version>
+ <mdsal.version>1.7.0-SNAPSHOT</mdsal.version>
+ <restconf.version>1.7.0-SNAPSHOT</restconf.version>
+ <yangtools.version>2.0.0-SNAPSHOT</yangtools.version>
+ <configfile.directory>etc/opendaylight/karaf</configfile.directory>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>${symbol_dollar}{project.groupId}</groupId>
+ <artifactId>odl-${artifactId}-api</artifactId>
+ <version>${symbol_dollar}{project.version}</version>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ </dependencies>
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<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.opendaylight.odlparent</groupId>
+ <artifactId>single-feature-parent</artifactId>
+ <version>2.0.4</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>odl-${artifactId}-api</artifactId>
+ <version>${version}</version>
+ <packaging>feature</packaging>
+
+ <name>OpenDaylight :: ${artifactId} :: API [Karaf Feature]</name>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>mdsal-model-artifacts</artifactId>
+ <version>0.12.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>odl-mdsal-models</artifactId>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${artifactId}-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<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.opendaylight.odlparent</groupId>
+ <artifactId>single-feature-parent</artifactId>
+ <version>2.0.4</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>odl-${artifactId}-cli</artifactId>
+ <version>${version}</version>
+ <packaging>feature</packaging>
+
+ <name>OpenDaylight :: ${artifactId} :: CLI [Karaf Feature]</name>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>mdsal-model-artifacts</artifactId>
+ <version>0.12.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>odl-${artifactId}</artifactId>
+ <version>${project.version}</version>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${artifactId}-cli</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<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.opendaylight.odlparent</groupId>
+ <artifactId>single-feature-parent</artifactId>
+ <version>2.0.4</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>odl-${artifactId}-rest</artifactId>
+ <version>${version}</version>
+ <packaging>feature</packaging>
+
+ <name>OpenDaylight :: ${artifactId} :: REST [Karaf Feature]</name>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>restconf-artifacts</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.netconf</groupId>
+ <artifactId>odl-restconf</artifactId>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>odl-${artifactId}-cli</artifactId>
+ <version>${project.version}</version>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ </dependencies>
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<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.opendaylight.odlparent</groupId>
+ <artifactId>single-feature-parent</artifactId>
+ <version>2.0.4</version>
+ <relativePath/>
+ </parent>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>odl-${artifactId}</artifactId>
+ <version>${version}</version>
+ <packaging>feature</packaging>
+
+ <name>OpenDaylight :: ${artifactId} :: Impl [Karaf Feature]</name>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>mdsal-model-artifacts</artifactId>
+ <version>0.12.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>odl-mdsal-broker</artifactId>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>odl-${artifactId}-api</artifactId>
+ <version>${project.version}</version>
+ <type>xml</type>
+ <classifier>features</classifier>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${artifactId}-impl</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+</project>
-->
<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.opendaylight.odlparent</groupId>
- <artifactId>features-parent</artifactId>
+ <artifactId>odlparent-lite</artifactId>
<version>2.0.4</version>
<relativePath/>
</parent>
<groupId>${groupId}</groupId>
- <artifactId>${artifactId}-features</artifactId>
+ <artifactId>${artifactId}-features-aggregator</artifactId>
<version>${version}</version>
- <!-- <name> formatting is used by autorelease to parse and notify projects on
- build failure. Please do not modify this unless you have a good reason. -->
+ <packaging>pom</packaging>
<name>ODL :: ${groupId} :: ${project.artifactId}</name>
- <properties>
- <mdsal.model.version>0.12.0-SNAPSHOT</mdsal.model.version>
- <mdsal.version>1.7.0-SNAPSHOT</mdsal.version>
- <restconf.version>1.7.0-SNAPSHOT</restconf.version>
- <yangtools.version>2.0.0-SNAPSHOT</yangtools.version>
- <configfile.directory>etc/opendaylight/karaf</configfile.directory>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <!-- project specific dependencies -->
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>mdsal-artifacts</artifactId>
- <version>${mdsal.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.netconf</groupId>
- <artifactId>restconf-artifacts</artifactId>
- <version>${restconf.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yangtools-artifacts</artifactId>
- <version>${yangtools.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>features-yangtools</artifactId>
- <classifier>features</classifier>
- <type>xml</type>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.mdsal.model</groupId>
- <artifactId>features-mdsal-model</artifactId>
- <version>${mdsal.model.version}</version>
- <classifier>features</classifier>
- <type>xml</type>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>features-mdsal</artifactId>
- <classifier>features</classifier>
- <type>xml</type>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.opendaylight.netconf</groupId>
- <artifactId>features-restconf</artifactId>
- <classifier>features</classifier>
- <type>xml</type>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>${symbol_dollar}{project.groupId}</groupId>
- <artifactId>${artifactId}-impl</artifactId>
- <version>${symbol_dollar}{project.version}</version>
- </dependency>
- <dependency>
- <groupId>${symbol_dollar}{project.groupId}</groupId>
- <artifactId>${artifactId}-api</artifactId>
- <version>${symbol_dollar}{project.version}</version>
- </dependency>
- <dependency>
- <groupId>${symbol_dollar}{project.groupId}</groupId>
- <artifactId>${artifactId}-cli</artifactId>
- <version>${symbol_dollar}{project.version}</version>
- </dependency>
- </dependencies>
+ <modules>
+ <module>features-X</module>
+ <module>odl-X-api</module>
+ <module>odl-X</module>
+ <module>odl-X-rest</module>
+ <module>odl-X-cli</module>
+ </modules>
</project>
+++ /dev/null
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
-Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
-
-This program and the accompanying materials are made available under the
-terms of the Eclipse Public License v1.0 which accompanies this distribution,
-and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<features name="odl-${artifactId}-${symbol_dollar}{project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.0 http://karaf.apache.org/xmlns/features/v1.2.0">
- <repository>mvn:org.opendaylight.yangtools/features-yangtools/{{VERSION}}/xml/features</repository>
- <repository>mvn:org.opendaylight.controller/features-mdsal/{{VERSION}}/xml/features</repository>
- <repository>mvn:org.opendaylight.mdsal.model/features-mdsal-model/{{VERSION}}/xml/features</repository>
- <repository>mvn:org.opendaylight.netconf/features-restconf/{{VERSION}}/xml/features</repository>
- <feature name='odl-${artifactId}-api' version='${symbol_dollar}{project.version}' description='OpenDaylight :: ${artifactId} :: api'>
- <feature version='${symbol_dollar}{mdsal.model.version}'>odl-mdsal-models</feature>
- <bundle>mvn:${groupId}/${artifactId}-api/{{VERSION}}</bundle>
- </feature>
- <feature name='odl-${artifactId}' version='${symbol_dollar}{project.version}' description='OpenDaylight :: ${artifactId}'>
- <feature version='${symbol_dollar}{mdsal.version}'>odl-mdsal-broker</feature>
- <feature version='${symbol_dollar}{project.version}'>odl-${artifactId}-api</feature>
- <bundle>mvn:${groupId}/${artifactId}-impl/{{VERSION}}</bundle>
- </feature>
- <feature name='odl-${artifactId}-rest' version='${symbol_dollar}{project.version}' description='OpenDaylight :: ${artifactId} :: REST'>
- <feature version="${symbol_dollar}{project.version}">odl-${artifactId}</feature>
- <feature version="${symbol_dollar}{restconf.version}">odl-restconf</feature>
- </feature>
- <feature name='odl-${artifactId}-cli' version='${symbol_dollar}{project.version}' description='OpenDaylight :: ${artifactId} :: CLI'>
- <feature version="${symbol_dollar}{project.version}">odl-${artifactId}</feature>
- <bundle>mvn:${groupId}/${artifactId}-cli/{{VERSION}}</bundle>
- </feature>
-
-</features>
-->
<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>
<name>ODL :: ${groupId} :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-artifacts</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
<dependencies>
<dependency>
<groupId>${symbol_dollar}{project.groupId}</groupId>
<version>${symbol_dollar}{project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-api</artifactId>
+ </dependency>
+
<!-- Testing Dependencies -->
<dependency>
<groupId>junit</groupId>
-->
<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>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>${artifactId}-features</artifactId>
+ <artifactId>features-${artifactId}</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
public MavenUrlReference getFeatureRepo() {
return maven()
.groupId("${groupId}")
- .artifactId("${artifactId}-features")
+ .artifactId("features-${artifactId}")
.classifier("features")
.type("xml")
.versionAsInProject();
@Override
public String getFeatureName() {
- return "odl-${artifactId}-ui";
+ return "odl-${artifactId}-rest";
}
@Override
-->
<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.opendaylight.odlparent</groupId>
- <artifactId>karaf-parent</artifactId>
+ <artifactId>karaf4-parent</artifactId>
<version>2.0.4</version>
+ <relativePath/>
</parent>
<groupId>${groupId}</groupId>
<name>ODL :: ${groupId} :: ${project.artifactId}</name>
<properties>
- <karaf.localFeature>odl-${artifactId}-ui</karaf.localFeature>
+ <!-- TODO <karaf.localFeature>odl-${artifactId}-rest</karaf.localFeature> -->
</properties>
<dependencyManagement>
<dependency>
<groupId>${symbol_dollar}{project.groupId}</groupId>
- <artifactId>${artifactId}-features</artifactId>
+ <artifactId>features-${artifactId}</artifactId>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
<module>features</module>
<module>artifacts</module>
<module>cli</module>
- <module>it</module>
+ <!-- <module>it</module> -->
</modules>
<!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->
<version>0.7.0-SNAPSHOT</version>
<packaging>pom</packaging>
+ <properties>
+ <!-- TODO Bump maven-archetype-plugin version in odlparent instead of here: -->
+ <maven.archetype.version>3.0.1</maven.archetype.version>
+ <!-- TODO Figure out why SFT fails on archetype self test with:
+ ArtifactResolutionException: Error resolving artifact org.opendaylight.odlparent:opendaylight-karaf-empty:zip:2.0.4 -->
+ <archetype.test.skip>true</archetype.test.skip>
+ </properties>
+
<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
- <version>2.4</version>
+ <version>${maven.archetype.version}</version>
</extension>
</extensions>
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-archetype-plugin</artifactId>
- <version>2.4</version>
- <dependencies>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.6</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </pluginManagement>
+
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<addDefaultExcludes>false</addDefaultExcludes>
</configuration>
</plugin>
+ <plugin>
+ <artifactId>maven-help-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <output>${project.build.directory}/effective-settings.xml</output>
+ </configuration>
+ <executions>
+ <execution>
+ <!-- This makes sure we run before maven-archetype-plugin -->
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>effective-settings</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>${maven.archetype.version}</version>
+ <configuration>
+ <settingsFile>${project.build.directory}/effective-settings.xml</settingsFile>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</build>