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

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