Bug 7159: Add yang-test-util artifact
[yangtools.git] / yang / yang-system-test / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     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     <parent>
5         <groupId>org.opendaylight.odlparent</groupId>
6         <artifactId>bundle-parent</artifactId>
7         <version>1.8.0-SNAPSHOT</version>
8         <relativePath />
9     </parent>
10
11     <groupId>org.opendaylight.yangtools</groupId>
12     <artifactId>yang-system-test</artifactId>
13     <version>1.1.0-SNAPSHOT</version>
14     <name>${project.artifactId}</name>
15     <description>YANG system test</description>
16
17     <properties>
18         <yang.codegen.version>0.10.0-SNAPSHOT</yang.codegen.version>
19     </properties>
20
21     <dependencies>
22         <dependency>
23             <groupId>${project.groupId}</groupId>
24             <artifactId>yang-test-util</artifactId>
25             <version>${project.version}</version>
26         </dependency>
27         <dependency>
28             <groupId>commons-cli</groupId>
29             <artifactId>commons-cli</artifactId>
30             <version>1.2</version>
31         </dependency>
32     </dependencies>
33
34     <build>
35         <plugins>
36             <plugin>
37                 <groupId>org.codehaus.mojo</groupId>
38                 <artifactId>build-helper-maven-plugin</artifactId>
39             </plugin>
40             <plugin>
41                 <groupId>org.apache.maven.plugins</groupId>
42                 <artifactId>maven-javadoc-plugin</artifactId>
43             </plugin>
44             <plugin>
45                 <groupId>org.apache.felix</groupId>
46                 <artifactId>maven-bundle-plugin</artifactId>
47                 <extensions>true</extensions>
48             </plugin>
49             <plugin>
50                 <groupId>org.codehaus.mojo</groupId>
51                 <artifactId>exec-maven-plugin</artifactId>
52                 <executions>
53                     <execution>
54                         <id>yang-parser-system-test-java</id>
55                         <goals>
56                             <goal>java</goal>
57                         </goals>
58                         <configuration>
59                             <includeProjectDependencies>true</includeProjectDependencies>
60                             <includePluginDependencies>true</includePluginDependencies>
61                             <mainClass>org.opendaylight.yangtools.yang.parser.system.test.Main</mainClass>
62                             <arguments>
63                                 <argument>./src/main/yang</argument>
64                             </arguments>
65                         </configuration>
66                     </execution>
67                     <execution>
68                         <id>yang-parser-system-test-exec</id>
69                         <goals>
70                             <goal>exec</goal>
71                         </goals>
72                         <configuration>
73                             <classpathScope>test</classpathScope>
74                             <executable>java</executable>
75                             <arguments>
76                                 <argument>-classpath</argument>
77                                 <classpath />
78                                 <argument>org.opendaylight.yangtools.yang.parser.system.test.Main</argument>
79                                 <argument>./src/main/yang</argument>
80                             </arguments>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85             <plugin>
86                 <groupId>org.apache.maven.plugins</groupId>
87                 <artifactId>maven-assembly-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <goals>
91                             <goal>attached</goal>
92                         </goals>
93                         <phase>package</phase>
94                         <configuration>
95                             <descriptorRefs>
96                                 <descriptorRef>jar-with-dependencies</descriptorRef>
97                             </descriptorRefs>
98                             <archive>
99                                 <manifest>
100                                     <mainClass>org.opendaylight.yangtools.yang.parser.system.test.Main</mainClass>
101                                 </manifest>
102                             </archive>
103                         </configuration>
104                     </execution>
105                 </executions>
106             </plugin>
107         </plugins>
108     </build>
109
110
111     <!-- Maven Site Configuration The following configuration is necessary 
112         for maven-site-plugin to correctly identify the correct deployment path for 
113         OpenDaylight Maven sites. -->
114     <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
115
116     <distributionManagement>
117         <site>
118             <id>opendaylight-site</id>
119             <url>${nexus.site.url}/${project.artifactId}/</url>
120         </site>
121     </distributionManagement>
122 </project>