<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>
- <version>1.6.0-SNAPSHOT</version>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>mdsal-it-parent</artifactId>
+ <version>1.7.0-SNAPSHOT</version>
<relativePath/>
</parent>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>integration-test</artifactId>
- <version>0.6.0-SNAPSHOT</version>
- <packaging>jar</packaging>
+ <version>0.10.0-SNAPSHOT</version>
+ <packaging>bundle</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 :: neutron :: ${project.artifactId}</name>
<properties>
- <sonar.jacoco.itReportPath>target/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
+ <skipITs>false</skipITs>
+ <karaf.distro.groupId>org.opendaylight.neutron</karaf.distro.groupId>
+ <karaf.distro.artifactId>neutron-karaf</karaf.distro.artifactId>
+ <karaf.distro.version>${project.version}</karaf.distro.version>
+ <karaf.distro.type>zip</karaf.distro.type>
+ <checkstyle.location>${project.parent.basedir}/src/main/resources</checkstyle.location>
+ <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
+ <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
+ <sonar.sources>pom.xml,target/generated-sources/dependency</sonar.sources>
</properties>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.neutron</groupId>
- <artifactId>features-neutron</artifactId>
- <version>${project.version}</version>
- <classifier>features</classifier>
- <type>xml</type>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>dummyprovider</artifactId>
- <version>${project.version}</version>
- </dependency>
<dependency>
<groupId>org.opendaylight.neutron</groupId>
<artifactId>neutron-karaf</artifactId>
<artifactId>org.jacoco.agent</artifactId>
<version>${jacoco.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.google.code.gson</groupId>
+ <artifactId>gson</artifactId>
+ </dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
+ <consoleOutput>true</consoleOutput>
+ <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-failsafe-plugin</artifactId>
- <version>${failsafe.version}</version>
- <executions>
- <execution>
- <id>integration-tests</id>
- <phase>integration-test</phase>
- <goals>
- <goal>integration-test</goal>
- <goal>verify</goal>
- </goals>
- <configuration>
- <argLine>${failsafeArgLine}</argLine>
- </configuration>
- </execution>
- </executions>
- </plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<target>
<copy file="${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco.version}/org.jacoco.agent-${jacoco.version}-runtime.jar"
tofile="target/pax/jars/org.jacoco.agent.jar" />
+ <copy todir="target/generated-sources/dependency" overwrite="true">
+ <fileset dir="../../neutron-spi/src/main/java" casesensitive="yes" />
+ <fileset dir="../../northbound-api/src/main/java" casesensitive="yes" />
+ <fileset dir="../../transcriber/src/main/java" casesensitive="yes" />
+ <fileset dir="../../neutron-logger/src/main/java" casesensitive="yes" />
+ </copy>
</target>
</configuration>
</execution>
</goals>
<configuration>
<target>
- <copy todir="${project.build.directory}/coverage-reports" flatten="true" overwrite="true">
- <fileset dir="target" casesensitive="yes">
+ <copy todir="${project.basedir}/target" flatten="true" overwrite="true">
+ <fileset dir="target/pax" casesensitive="yes">
<include name="**/jacoco-it.exec" />
</fileset>
</copy>
</target>
</configuration>
</execution>
+ <execution>
+ <id>remove-generated-sources</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <delete includeEmptyDirs="true">
+ <fileset dir="target/generated-sources/dependency" includes="**/*" defaultexcludes="no"/>
+ </delete>
+ </target>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
- <configuration>
- <includes>
- <include>org.opendaylight.neutron.*</include>
- </includes>
- </configuration>
<executions>
<execution>
<id>post-integration-test</id>
</goals>
<configuration>
<dataFile>${sonar.jacoco.itReportPath}</dataFile>
+ <outputDirectory>${project.basedir}/target/site/jacoco-it</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
- </build>
+ </build>
<scm>
<connection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</connection>
<developerConnection>scm:git:ssh://git.opendaylight.org:29418/neutron.git</developerConnection>
<tag>HEAD</tag>
<url>https://wiki.opendaylight.org/view/NeutronNorthBound:Main</url>
</scm>
+
+ <!--
+ Maven Site Configuration
+
+ The following configuration is necessary for maven-site-plugin to
+ correctly identify the correct deployment path for OpenDaylight Maven
+ sites.
+ -->
+ <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
+
+ <distributionManagement>
+ <site>
+ <id>opendaylight-site</id>
+ <url>${nexus.site.url}/${project.artifactId}/</url>
+ </site>
+ </distributionManagement>
</project>