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

Last change on this file since 6767 was 6767, checked in by davor.ostojic@oeaw.ac.at, 9 years ago

maps/uniform maps to class path

  • Property svn:mime-type set to text/plain
File size: 4.8 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    <groupId>eu.clarin.cmdi</groupId>
4    <artifactId>vlo-vocabularies</artifactId>
5    <version>3.4-SNAPSHOT</version>
6    <packaging>jar</packaging>
7   
8    <parent>
9        <groupId>eu.clarin.cmdi</groupId>
10        <artifactId>vlo</artifactId>
11        <version>3.4-SNAPSHOT</version>
12    </parent>
13       
14
15        <properties>           
16                <old_maps.path>maps/old_maps</old_maps.path>
17                <xslt.path>maps/xslt</xslt.path>
18                <dest.path>maps/uniform_maps</dest.path>
19
20                <saxon.version>9.1.0.8</saxon.version>
21                <slf4j.version>1.7.12</slf4j.version>
22                <junit.version>4.12</junit.version>
23                         
24        </properties>
25
26        <profiles>
27                <profile>
28                        <id>old_maps2uniform</id>
29                        <build>
30                                <plugins>
31                                        <plugin>
32                                                <groupId>org.codehaus.mojo</groupId>
33                                                <artifactId>xml-maven-plugin</artifactId>
34                                                <executions>
35                                                        <execution>
36                                                                <goals>
37                                                                        <goal>transform</goal>
38                                                                </goals>
39                                                        </execution>
40                                                </executions>
41                                                <configuration>
42                                                        <transformationSets>
43
44                                                                <!-- LanguageNameVariantsMap.xml -->
45                                                                <transformationSet>
46                                                                        <dir>${old_maps.path}</dir>
47                                                                        <includes>
48                                                                                <include>LanguageNameVariantsMap.xml</include>
49                                                                        </includes>
50                                                                        <stylesheet>${xslt.path}/language_transformer.xsl</stylesheet>
51                                                                        <outputDir>${dest.path}</outputDir>
52                                                                </transformationSet>
53
54                                                                <!-- LicenseAvailabilityMap.xml -->
55                                                                <transformationSet>
56                                                                        <dir>${old_maps.path}</dir>
57                                                                        <includes>
58                                                                                <include>LicenseAvailabilityMap.xml</include>
59                                                                        </includes>
60                                                                        <stylesheet>${xslt.path}/availability_transformer.xsl</stylesheet>
61                                                                        <outputDir>${dest.path}</outputDir>
62                                                                </transformationSet>
63
64                                                        <!-- nationalProjectsMapping.xml -->
65                                                                <transformationSet>
66                                                                        <dir>${old_maps.path}</dir>
67                                                                        <includes>
68                                                                                <include>nationalProjectsMapping.xml</include>
69                                                                        </includes>
70                                                                        <stylesheet>${xslt.path}/national_project_transformer.xsl</stylesheet>
71                                                                        <outputDir>${dest.path}</outputDir>
72                                                                </transformationSet>
73
74                                                        <!-- OrganisationControlledVocabulary.xml -->
75                                                                <transformationSet>
76                                                                        <dir>${old_maps.path}</dir>
77                                                                        <includes>
78                                                                                <include>OrganisationControlledVocabulary.xml</include>
79                                                                        </includes>
80                                                                        <stylesheet>${xslt.path}/organization_transformer.xsl</stylesheet>
81                                                                        <outputDir>${dest.path}</outputDir>
82                                                                </transformationSet>
83                                                        </transformationSets>
84                                                </configuration>
85
86                                <!-- make the translation working with xslt2.0 -->
87                                                <dependencies>
88                                                        <dependency>
89                                                                <groupId>net.sourceforge.saxon</groupId>
90                                                                <artifactId>saxon</artifactId>
91                                                                <version>${saxon.version}</version>
92                                                        </dependency>
93                                                </dependencies>
94                                        </plugin>
95                                </plugins>
96                        </build>
97                </profile>
98                <profile>
99                        <id>xml2csv</id>
100                        <build>
101                                <plugins>
102                                        <plugin>
103                                                <groupId>org.codehaus.mojo</groupId> 
104                                        <artifactId>exec-maven-plugin</artifactId>
105                                        <version>1.1.1</version>
106                                        <executions>
107                                                <execution>
108                                                        <phase>process-resources</phase>
109                                                        <goals>
110                                                                <goal>java</goal>
111                                                        </goals>
112                                                        <configuration>
113                                                                <mainClass>eu.clarin.cmdi.vlo.main.TransformAllMaps</mainClass>
114                                                                <arguments>
115                                                                        <argument>xml2csv</argument>
116                                                                </arguments>
117                                                        </configuration>
118                                                </execution>
119                                        </executions>                                           
120                                        </plugin>
121                                </plugins>
122                        </build>
123                </profile>
124        </profiles>
125       
126        <dependencies>
127                <dependency>
128                        <groupId>junit</groupId>
129                        <artifactId>junit</artifactId>
130                        <version>${junit.version}</version>
131                        <scope>test</scope>
132                </dependency>
133                <dependency>
134            <groupId>org.slf4j</groupId>
135            <artifactId>slf4j-api</artifactId>
136            <version>${slf4j.version}</version>
137        </dependency>           
138                <dependency>
139                        <groupId>org.slf4j</groupId>
140                        <artifactId>slf4j-log4j12</artifactId>
141                        <version>${slf4j.version}</version>
142                </dependency>
143                <dependency>
144            <groupId>org.slf4j</groupId>
145            <artifactId>jcl-over-slf4j</artifactId>
146            <version>${slf4j.version}</version>
147        </dependency>
148        <dependency>
149                        <groupId>org.apache.poi</groupId>
150                        <artifactId>poi</artifactId>
151                        <version>3.7</version>
152                </dependency>
153        </dependencies>
154       
155        <!-- add uniform maps to class path -->
156        <build>
157                <resources>
158                        <resource>
159                                <directory>maps/uniform_maps</directory>
160                        </resource>
161                </resources>
162        </build>
163</project>
Note: See TracBrowser for help on using the repository browser.