source: vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/pom.xml @ 6544

Last change on this file since 6544 was 6544, checked in by davor.ostojic@oeaw.ac.at, 9 years ago
  • Property svn:mime-type set to text/plain
File size: 6.9 KB
Line 
1<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">
2        <modelVersion>4.0.0</modelVersion>
3
4        <groupId>eu.clarin.cmdi</groupId>
5        <artifactId>vlo-vocabularies</artifactId>
6        <version>3.3-SNAPSHOT</version>
7        <name>VLO Vocabularies</name>
8       
9        <parent>
10        <groupId>eu.clarin.cmdi</groupId>
11        <artifactId>vlo</artifactId>
12        <version>3.3-SNAPSHOT</version>
13    </parent>
14
15        <properties>
16                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17               
18                <old_maps.path>maps/old_maps</old_maps.path>
19                <xslt.path>maps/xslt</xslt.path>
20                <dest.path>maps/uniform_maps</dest.path>
21
22                <saxon.version>9.1.0.8</saxon.version>
23                <slf4j.version>1.7.12</slf4j.version>
24                <junit.version>4.12</junit.version>
25                         
26        </properties>
27
28        <profiles>
29                <profile>
30                        <id>old_maps2uniform</id>
31                        <build>
32                                <plugins>
33                                        <plugin>
34                                                <groupId>org.codehaus.mojo</groupId>
35                                                <artifactId>xml-maven-plugin</artifactId>
36                                                <executions>
37                                                        <execution>
38                                                                <goals>
39                                                                        <goal>transform</goal>
40                                                                </goals>
41                                                        </execution>
42                                                </executions>
43                                                <configuration>
44                                                        <transformationSets>
45
46                                                                <!-- LanguageNameVariantsMap.xml -->
47                                                                <transformationSet>
48                                                                        <dir>${old_maps.path}</dir>
49                                                                        <includes>
50                                                                                <include>LanguageNameVariantsMap.xml</include>
51                                                                        </includes>
52                                                                        <stylesheet>${xslt.path}/language_transformer.xsl</stylesheet>
53                                                                        <outputDir>${dest.path}</outputDir>
54                                                                </transformationSet>
55
56                                                                <!-- LicenseAvailabilityMap.xml -->
57                                                                <transformationSet>
58                                                                        <dir>${old_maps.path}</dir>
59                                                                        <includes>
60                                                                                <include>LicenseAvailabilityMap.xml</include>
61                                                                        </includes>
62                                                                        <stylesheet>${xslt.path}/availability_transformer.xsl</stylesheet>
63                                                                        <outputDir>${dest.path}</outputDir>
64                                                                </transformationSet>
65
66                                                        <!-- nationalProjectsMapping.xml -->
67                                                                <transformationSet>
68                                                                        <dir>${old_maps.path}</dir>
69                                                                        <includes>
70                                                                                <include>nationalProjectsMapping.xml</include>
71                                                                        </includes>
72                                                                        <stylesheet>${xslt.path}/national_project_transformer.xsl</stylesheet>
73                                                                        <outputDir>${dest.path}</outputDir>
74                                                                </transformationSet>
75
76                                                        <!-- OrganisationControlledVocabulary.xml -->
77                                                                <transformationSet>
78                                                                        <dir>${old_maps.path}</dir>
79                                                                        <includes>
80                                                                                <include>OrganisationControlledVocabulary.xml</include>
81                                                                        </includes>
82                                                                        <stylesheet>${xslt.path}/organization_transformer.xsl</stylesheet>
83                                                                        <outputDir>${dest.path}</outputDir>
84                                                                </transformationSet>
85                                                        </transformationSets>
86                                                </configuration>
87
88                                <!-- make the translation working with xslt2.0 -->
89                                                <dependencies>
90                                                        <dependency>
91                                                                <groupId>net.sourceforge.saxon</groupId>
92                                                                <artifactId>saxon</artifactId>
93                                                                <version>${saxon.version}</version>
94                                                        </dependency>
95                                                </dependencies>
96                                        </plugin>
97                                </plugins>
98                        </build>
99                </profile>
100                <profile>
101                        <id>xml2csv</id>
102                        <build>
103                                <plugins>
104                                        <plugin>
105                                                <groupId>org.codehaus.mojo</groupId> 
106                                        <artifactId>exec-maven-plugin</artifactId>
107                                        <version>1.1.1</version>
108                                        <executions>
109                                                <execution>
110                                                        <phase>process-resources</phase>
111                                                        <goals>
112                                                                <goal>java</goal>
113                                                        </goals>
114                                                        <configuration>
115                                                                <mainClass>eu.clarin.cmdi.vlo.main.TransformAllMaps</mainClass>
116                                                                <arguments>
117                                                                        <argument>xml2csv</argument>
118                                                                </arguments>
119                                                        </configuration>
120                                                </execution>
121                                        </executions>                                           
122                                        </plugin>
123                                </plugins>
124                        </build>
125                </profile>
126                <profile>
127                        <id>csv2xml</id>
128                        <build>
129                                <plugins>
130                                        <plugin>
131                                                <groupId>org.codehaus.mojo</groupId> 
132                                        <artifactId>exec-maven-plugin</artifactId>
133                                        <version>1.1.1</version>
134                                        <executions>
135                                                <execution>
136                                                        <phase>process-resources</phase>
137                                                        <goals>
138                                                                <goal>java</goal>
139                                                        </goals>
140                                                        <configuration>
141                                                                <mainClass>eu.clarin.cmdi.vlo.main.TransformAllMaps</mainClass>
142                                                                <arguments>
143                                                                        <argument>csv2xml</argument>
144                                                                </arguments>
145                                                        </configuration>
146                                                </execution>
147                                        </executions>                                           
148                                        </plugin>
149                                </plugins>
150                        </build>
151                </profile>
152        </profiles>
153       
154        <!-- transform csv to xml on every compile -->
155        <build>
156                <plugins>
157                        <plugin>
158                                <groupId>org.codehaus.mojo</groupId>
159                                <artifactId>exec-maven-plugin</artifactId>
160                                <version>1.4.0</version>
161                                <executions>
162                                        <execution>
163                                                <id>create-maps</id>
164                                                <phase>compile</phase>
165                                                <goals>
166                                                        <goal>exec</goal>
167                                                </goals>
168                                                <configuration>
169                                                        <workingDirectory>${project.build.directory}</workingDirectory>
170                                                        <executable>java</executable>                                                   
171                                                        <arguments>
172                                                                <argument>eu.clarin.cmdi.vlo.main.TransformAllMaps</argument>
173<!--                                                            <mainClass>eu.clarin.cmdi.vlo.main.TransformAllMaps</mainClass> -->
174                                                                <argument>csv2xml</argument>
175                                                        </arguments>
176                                                </configuration>
177                                        </execution>
178                                </executions>
179                        </plugin>
180                        <plugin>
181                        <artifactId>maven-resources-plugin</artifactId>
182                        <version>2.7</version>
183                        <executions>
184                                <execution>
185                                <id>copy-maps</id>
186                                <phase>compile</phase>
187                                <goals>
188                                        <goal>copy-resources</goal>
189                                </goals>
190                                <configuration>
191                                        <outputDirectory>${project.build.outputDirectory}/maps/uniform_maps</outputDirectory>
192                                        <resources>         
193                                                <resource>
194                                                        <directory>${basedir}/maps/uniform_maps</directory>
195                                                        <filtering>false</filtering>
196                                                </resource>
197                                        </resources>             
198                                </configuration>           
199                                </execution>
200                        </executions>
201              </plugin>
202                </plugins>
203        </build>
204
205        <dependencies>
206                <dependency>
207                        <groupId>junit</groupId>
208                        <artifactId>junit</artifactId>
209                        <version>${junit.version}</version>
210                        <scope>test</scope>
211                </dependency>
212                <dependency>
213            <groupId>org.slf4j</groupId>
214            <artifactId>slf4j-api</artifactId>
215            <version>${slf4j.version}</version>
216        </dependency>           
217                <dependency>
218                        <groupId>org.slf4j</groupId>
219                        <artifactId>slf4j-log4j12</artifactId>
220                        <version>${slf4j.version}</version>
221                </dependency>
222                <dependency>
223            <groupId>org.slf4j</groupId>
224            <artifactId>jcl-over-slf4j</artifactId>
225            <version>${slf4j.version}</version>
226        </dependency>
227        </dependencies>
228</project>
Note: See TracBrowser for help on using the repository browser.