diff options
-rw-r--r-- | pom.xml | 44 |
1 files changed, 33 insertions, 11 deletions
@@ -3,13 +3,15 @@ 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> <packaging>pom</packaging> - <groupId>org.onap.testsuite</groupId> + <groupId>org.onap.testsuite.heatbridge</groupId> <artifactId>heatbridge</artifactId> <name>heatbridge</name> <version>0.3</version> <description>heatbridge used to stitch together some holes in the onap tests for release one</description> <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <wheel.name>${project.artifactId}-${project.version}-py2-none-any.whl</wheel.name> + <python.sourceDirectory>${project.basedir}/heatbridge</python.sourceDirectory> </properties> <build> <plugins> @@ -27,7 +29,7 @@ <configuration> <artifacts> <artifact> - <file>${project.build.directory}/py/dist/${wheel.name}</file> + <file>${project.build.directory}/maven-python/dist/${wheel.name}</file> <type>whl</type> </artifact> </artifacts> @@ -38,18 +40,44 @@ <plugin> <groupId>com.github.UltimateDogg</groupId> <artifactId>maven-python-distribute-plugin</artifactId> - <version>0.1.9</version> + <version>0.2.0</version> <configuration> - <sourceDirectory>heatbridge</sourceDirectory> + <sourceDirectory>${python.sourceDirectory}</sourceDirectory> <distributionType>wheel</distributionType> </configuration> <executions> <execution> + <id>package</id> <phase>prepare-package</phase> <goals> <goal>package</goal> </goals> </execution> + <execution> + <id>process</id> + <phase>process-sources</phase> + <goals> + <goal>process-sources</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>exec-maven-plugin</artifactId> + <groupId>org.codehaus.mojo</groupId> + <version>1.1.1</version> + <executions> + <execution> + <id>tox-test</id> + <phase>test</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <workingDirectory>${project.build.directory}/maven-python/heatbridge</workingDirectory> + <executable>tox</executable> + </configuration> + </execution> </executions> </plugin> </plugins> @@ -58,13 +86,7 @@ <dependency> <groupId>com.github.UltimateDogg</groupId> <artifactId>maven-python-distribute-plugin</artifactId> - <version>0.1.9</version> + <version>0.2.0</version> </dependency> </dependencies> - <pluginRepositories> - <pluginRepository> - <id>jitpack.io</id> - <url>https://jitpack.io</url> - </pluginRepository> - </pluginRepositories> </project>
\ No newline at end of file |