Bug 6986: Yang parser system test
[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-parser-impl</artifactId>
25             <version>${project.version}</version>
26         </dependency>
27         <dependency>
28             <groupId>org.slf4j</groupId>
29             <artifactId>slf4j-api</artifactId>
30         </dependency>
31         <dependency>
32             <groupId>org.slf4j</groupId>
33             <artifactId>slf4j-simple</artifactId>
34         </dependency>
35     </dependencies>
36
37     <build>
38         <plugins>
39             <plugin>
40                 <groupId>org.codehaus.mojo</groupId>
41                 <artifactId>build-helper-maven-plugin</artifactId>
42             </plugin>
43             <plugin>
44                 <groupId>org.apache.maven.plugins</groupId>
45                 <artifactId>maven-javadoc-plugin</artifactId>
46             </plugin>
47             <plugin>
48                 <groupId>org.apache.felix</groupId>
49                 <artifactId>maven-bundle-plugin</artifactId>
50                 <extensions>true</extensions>
51             </plugin>
52             <plugin>
53                 <groupId>org.codehaus.mojo</groupId>
54                 <artifactId>exec-maven-plugin</artifactId>
55                 <executions>
56                     <execution>
57                         <id>yang-parser-system-test-java</id>
58                         <goals>
59                             <goal>java</goal>
60                         </goals>
61                         <configuration>
62                             <includeProjectDependencies>true</includeProjectDependencies>
63                             <includePluginDependencies>true</includePluginDependencies>
64                             <mainClass>org.opendaylight.yangtools.yang.parser.system.test.Main</mainClass>
65                             <arguments>
66                                 <argument>./src/main/yang</argument>
67                             </arguments>
68                         </configuration>
69                     </execution>
70                     <execution>
71                         <id>yang-parser-system-test-exec</id>
72                         <goals>
73                             <goal>exec</goal>
74                         </goals>
75                         <configuration>
76                             <classpathScope>test</classpathScope>
77                             <executable>java</executable>
78                             <arguments>
79                                 <argument>-classpath</argument>
80                                 <classpath />
81                                 <argument>org.opendaylight.yangtools.yang.parser.system.test.Main</argument>
82                                 <argument>./src/main/yang</argument>
83                             </arguments>
84                         </configuration>
85                     </execution>
86                 </executions>
87             </plugin>
88             <plugin>
89                 <groupId>org.apache.maven.plugins</groupId>
90                 <artifactId>maven-assembly-plugin</artifactId>
91                 <executions>
92                     <execution>
93                         <goals>
94                             <goal>attached</goal>
95                         </goals>
96                         <phase>package</phase>
97                         <configuration>
98                             <descriptorRefs>
99                                 <descriptorRef>jar-with-dependencies</descriptorRef>
100                             </descriptorRefs>
101                             <archive>
102                                 <manifest>
103                                     <mainClass>org.opendaylight.yangtools.yang.parser.system.test.Main</mainClass>
104                                 </manifest>
105                             </archive>
106                         </configuration>
107                     </execution>
108                 </executions>
109             </plugin>
110         </plugins>
111     </build>
112
113
114     <!-- Maven Site Configuration The following configuration is necessary 
115         for maven-site-plugin to correctly identify the correct deployment path for 
116         OpenDaylight Maven sites. -->
117     <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
118
119     <distributionManagement>
120         <site>
121             <id>opendaylight-site</id>
122             <url>${nexus.site.url}/${project.artifactId}/</url>
123         </site>
124     </distributionManagement>
125 </project>