[LIB-4] Add hespiff source files
[hespiff.git] / pom.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2015. Developed by Hedgecode.
5   ~
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   -->
18
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21     <modelVersion>4.0.0</modelVersion>
22
23     <!--parent>
24         <groupId>org.hedgecode.maven</groupId>
25         <artifactId>maven-parent</artifactId>
26         <version>1</version>
27     </parent-->
28
29     <groupId>org.hedgecode.xml</groupId>
30     <artifactId>hespiff</artifactId>
31     <version>0.1-SNAPSHOT</version>
32     <packaging>jar</packaging>
33
34     <name>Hedgecode XSPF API</name>
35     <description>
36         Hedgecode XSPF API.
37     </description>
38     <inceptionYear>2015</inceptionYear>
39
40     <url>http://hedgecode.org/xml/${project.artifactId}/</url>
41
42     <scm>
43         <connection>scm:svn:http://svn.hedgecode.org/xml/${project.artifactId}/trunk/</connection>
44         <developerConnection>scm:svn:http://svn.hedgecode.org/xml/${project.artifactId}/trunk/</developerConnection>
45         <url>http://svn.hedgecode.org/xml/${project.artifactId}/trunk/</url>
46     </scm>
47
48     <properties>
49         <javaVersion>7</javaVersion>
50         <maven.compiler.source>1.${javaVersion}</maven.compiler.source>
51         <maven.compiler.target>1.${javaVersion}</maven.compiler.target>
52         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54         <junitVersion>4.8.2</junitVersion>
55
56         <project.package>${project.groupId}.xspf</project.package>
57         <xsd.directory>${project.basedir}/src/main/xsd</xsd.directory>
58         <xsd.filename>xspf-1_0.2</xsd.filename>
59         <relaxng.directory>${project.basedir}/src/main/rng</relaxng.directory>
60         <relaxng.filename>xspf-1_0.7</relaxng.filename>
61         <generated.xsd.directory>${project.build.directory}/generated-xsd</generated.xsd.directory>
62         <generated.sources.directory>${project.build.directory}/generated-sources</generated.sources.directory>
63         <generated.meta.directory>${project.build.outputDirectory}/META-INF</generated.meta.directory>
64
65         <!--mavenDependencyPluginVersion>2.8</mavenDependencyPluginVersion>
66         <mavenJarPluginVersion>2.5</mavenJarPluginVersion>
67         <mavenAssemblyPluginVersion>2.4.1</mavenAssemblyPluginVersion>
68         <mavenReleasePluginVersion>2.5.3</mavenReleasePluginVersion-->
69
70         <issueKeyNumber>LIB-4</issueKeyNumber>
71     </properties>
72
73     <dependencies>
74         <dependency>
75             <groupId>junit</groupId>
76             <artifactId>junit</artifactId>
77             <version>${junitVersion}</version>
78             <scope>test</scope>
79         </dependency>
80     </dependencies>
81
82     <build>
83         <plugins>
84             <!--plugin>
85               <groupId>org.apache.maven.plugins</groupId>
86               <artifactId>maven-resources-plugin</artifactId>
87               <version>2.7</version>
88               <executions>
89                   <execution>
90                       <id>copy-xsd</id>
91                       <phase>validate</phase>
92                       <goals>
93                           <goal>copy-resources</goal>
94                       </goals>
95                       <configuration>
96                           <outputDirectory>${generated.xsd.directory}</outputDirectory>
97                           <resources>          
98                               <resource>
99                                   <directory>${xsd.directory}</directory>
100                               </resource>
101                           </resources>              
102                       </configuration>            
103                   </execution>
104               </executions>
105             </plugin-->
106             <plugin>
107               <groupId>org.apache.maven.plugins</groupId>
108               <artifactId>maven-resources-plugin</artifactId>
109               <version>2.7</version>
110               <executions>
111                   <execution>
112                       <id>copy-xsd</id>
113                       <phase>validate</phase>
114                       <goals>
115                           <goal>copy-resources</goal>
116                       </goals>
117                       <configuration>
118                           <outputDirectory>${generated.meta.directory}</outputDirectory>
119                           <resources>
120                               <resource>
121                                   <directory>${xsd.directory}</directory>
122                               </resource>
123                               <resource>
124                                   <directory>${relaxng.directory}</directory>
125                               </resource>
126                           </resources>
127                       </configuration>
128                   </execution>
129               </executions>
130             </plugin>
131             <plugin>
132                 <groupId>us.bryon</groupId>
133                 <artifactId>relaxng-maven-plugin</artifactId>
134                 <version>1.1</version>
135                 <executions>
136                     <execution>
137                         <phase>generate-sources</phase>
138                         <goals>
139                             <goal>trang</goal>
140                         </goals>
141                         <configuration>
142                             <translations>
143                                 <translation>
144                                     <in>${relaxng.directory}/${relaxng.filename}.rng</in>
145                                     <out>${generated.xsd.directory}/${relaxng.filename}.xsd</out>
146                                 </translation>
147                             </translations>
148                         </configuration>
149                     </execution>
150                 </executions>
151             </plugin>
152             <plugin>
153                 <groupId>org.codehaus.mojo</groupId>
154                 <artifactId>jaxb2-maven-plugin</artifactId>
155                 <version>2.2</version>
156                 <executions>
157                     <execution>
158                         <phase>generate-sources</phase>
159                         <goals>
160                             <goal>xjc</goal>
161                         </goals>
162                         <configuration>
163                             <outputDirectory>${generated.sources.directory}/xsd</outputDirectory>
164                             <packageName>${project.package}.xsd</packageName>
165                             <arguments>
166                                 <argument>-episode</argument>
167                                 <argument>${generated.meta.directory}/xsd-jaxb.episode</argument>
168                             </arguments>
169                         </configuration>
170                     </execution>
171                 </executions>
172             </plugin>
173             <plugin>
174                 <groupId>org.jvnet.jaxb2.maven2</groupId>
175                 <artifactId>maven-jaxb2-plugin</artifactId>
176                 <version>0.13.1</version>
177                 <executions>
178                     <execution>
179                         <phase>generate-sources</phase>
180                         <goals>
181                             <goal>generate</goal>
182                         </goals>
183                         <configuration>
184                             <schemaDirectory>${generated.xsd.directory}</schemaDirectory>
185                             <generateDirectory>${generated.sources.directory}/rng</generateDirectory>
186                             <generatePackage>${project.package}.rng</generatePackage>
187                             <episodeFile>${generated.meta.directory}/rng-jaxb.episode</episodeFile>
188                         </configuration>
189                     </execution>
190                 </executions>
191             </plugin>
192             <plugin>
193                 <groupId>org.codehaus.mojo</groupId>
194                 <artifactId>build-helper-maven-plugin</artifactId>
195                 <version>1.9.1</version>
196                 <executions>
197                     <execution>
198                         <phase>generate-sources</phase>
199                         <goals>
200                             <goal>add-source</goal>
201                         </goals>
202                         <configuration>
203                             <sources>
204                                 <source>${generated.sources.directory}/xsd</source>
205                                 <source>${generated.sources.directory}/rng</source>
206                             </sources>
207                         </configuration>
208                     </execution>
209                 </executions>
210             </plugin>
211         </plugins>
212     </build>
213
214 </project>