make robotframework-onap not deploy twice
[testsuite/python-testing-utils.git] / robotframework-onap / pom.xml
1 <?xml version="1.0"?>
2 <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">
3         <modelVersion>4.0.0</modelVersion>
4         <packaging>pom</packaging>
5         <groupId>org.onap.testsuite.python-testing-utils</groupId>
6         <artifactId>robotframework-onap</artifactId>
7         <name>robotframework-onap</name>
8         <version>0.4.0-SNAPSHOT</version>
9         <description>Scripts written to be used during robot framework testing</description>
10         <parent>
11                 <groupId>org.onap.oparent</groupId>
12                 <artifactId>oparent-python</artifactId>
13                 <version>1.2.3</version>
14                 <relativePath/>
15         </parent>
16         <properties>
17                 <!-- this wont work because pip applies a regex to names while this doesnt https://www.python.org/dev/peps/pep-0427/#id12
18                 <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name>-->
19                 <wheel.name>robotframework_onap-${python_version}-py2-none-any.whl</wheel.name>
20                 <python.sourceDirectory>${project.basedir}</python.sourceDirectory>
21         <python.pypi.repository>https://nexus3.onap.org/repository/PyPi.snapshot/</python.pypi.repository>
22         </properties>
23         <build>
24                 <plugins>
25                         <plugin>
26                                 <groupId>org.codehaus.mojo</groupId>
27                                 <artifactId>build-helper-maven-plugin</artifactId>
28                                 <executions>
29                                         <execution>
30                                                 <id>attach-artifacts</id>
31                                                 <configuration>
32                                                         <artifacts>
33                                                                 <artifact>
34                                                                         <file>${project.build.directory}/maven-python/dist/${wheel.name}</file>
35                                                                         <type>whl</type>
36                                                                 </artifact>
37                                                         </artifacts>
38                                                         <skipAttach>false</skipAttach>
39                                                 </configuration>
40                                         </execution>
41                                 </executions>
42                         </plugin>
43                         <plugin>
44                                 <groupId>com.github.UltimateDogg</groupId>
45                                 <artifactId>maven-python-distribute-plugin</artifactId>
46                 <executions>
47                     <execution>
48                         <id>package</id>
49                         <goals>
50                             <goal>package</goal>
51                         </goals>
52                     </execution>
53                     <execution>
54                         <id>process</id>
55                         <goals>
56                             <goal>process-sources</goal>
57                         </goals>
58                     </execution>
59                 </executions>
60                                 <configuration> 
61                                         <sourceDirectory>${python.sourceDirectory}</sourceDirectory>
62                                 </configuration>
63                         </plugin>
64                         <plugin>
65                                 <artifactId>exec-maven-plugin</artifactId>
66                                 <groupId>org.codehaus.mojo</groupId>
67                                 <executions>
68                                         <execution>
69                                                 <id>tox-test</id>
70                                                 <configuration>
71                                                         <workingDirectory>${project.build.directory}</workingDirectory>
72                                                 </configuration>
73                                         </execution>
74                                 </executions>
75                         </plugin>
76                 </plugins>
77         </build>
78 </project>