source: vlo/branches/vlo-3.3-oeaw/vlo-commons/pom.xml @ 6754

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

merged with trunk 3.4

File size: 8.3 KB
Line 
1<?xml version="1.0"?>
2<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4    <modelVersion>4.0.0</modelVersion>
5    <parent>
6        <groupId>eu.clarin.cmdi</groupId>
7        <artifactId>vlo</artifactId>
8        <version>3.4-SNAPSHOT</version>
9    </parent>
10    <groupId>eu.clarin.cmdi</groupId>
11    <artifactId>vlo-commons</artifactId>
12    <version>3.4-SNAPSHOT</version>
13    <name>VLO Commons</name>
14    <url>http://maven.apache.org</url>
15
16    <properties>
17        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18
19                <!-- default config values -->
20        <vloconfig.deleteAllFirst>true</vloconfig.deleteAllFirst>
21        <vloconfig.maxDaysInSolr>0</vloconfig.maxDaysInSolr>
22        <vloconfig.homeUrl>http://www.clarin.eu/vlo</vloconfig.homeUrl>
23        <vloconfig.helpUrl>http://www.clarin.eu/vlo</vloconfig.helpUrl>
24               
25        <xml.path>src/main/resources</xml.path>
26        <xslt.path>${xml.path}/xslt</xslt.path>
27        <dest.path>${xml.path}/uniform_maps</dest.path> 
28    </properties>
29   
30    <build>
31                <resources>
32            <resource>
33                <directory>src/main/resources</directory>
34                <filtering>true</filtering>
35            </resource>
36        </resources>
37        <testResources>
38            <testResource>
39                <directory>src/test/resources</directory>
40                <filtering>true</filtering>
41            </testResource>
42        </testResources>
43    <pluginManagement>
44        <plugins>
45                <plugin>
46                <groupId>org.codehaus.mojo</groupId>
47                <artifactId>xml-maven-plugin</artifactId>
48                <executions>
49                        <execution>
50                                <goals>
51                                        <goal>transform</goal>
52                                </goals>
53                        </execution>
54                </executions>
55                <configuration>
56                    <transformationSets>
57                   
58                    <!-- LanguageNameVariantsMap.xml -->
59                        <transformationSet>
60                                <dir>${xml.path}</dir>
61                                <includes>
62                                        <include>LanguageNameVariantsMap.xml</include>
63                                </includes>
64                            <stylesheet>${xslt.path}/language_transformer.xsl</stylesheet>
65                            <outputDir>${dest.path}</outputDir>                           
66                        </transformationSet>
67                   
68                    <!-- LicenseAvailabilityMap.xml -->
69                        <transformationSet>
70                                <dir>${xml.path}</dir>
71                                <includes>
72                                        <include>LicenseAvailabilityMap.xml</include>
73                                </includes>
74                            <stylesheet>${xslt.path}/availability_transformer.xsl</stylesheet>
75                            <outputDir>${dest.path}</outputDir>
76                        </transformationSet>                       
77                   
78                    <!-- nationalProjectsMapping.xml -->
79                        <transformationSet>
80                                <dir>${xml.path}</dir>
81                                <includes>
82                                        <include>nationalProjectsMapping.xml</include>
83                                </includes>
84                            <stylesheet>${xslt.path}/national_project_transformer.xsl</stylesheet>
85                            <outputDir>${dest.path}</outputDir>
86                        </transformationSet>
87                   <!-- OrganisationControlledVocabulary.xml -->     
88                        <transformationSet>
89                                <dir>${xml.path}</dir>
90                                <includes>
91                                        <include>OrganisationControlledVocabulary.xml</include>
92                                </includes>
93                            <stylesheet>${xslt.path}/organization_transformer.xsl</stylesheet>
94                            <outputDir>${dest.path}</outputDir>
95                        </transformationSet> 
96                    </transformationSets>                   
97                </configuration>
98               
99                <!-- make the translation working with xslt2.0 -->
100                <dependencies>
101                    <dependency>
102                                                <groupId>net.sourceforge.saxon</groupId>
103                                                <artifactId>saxon</artifactId>
104                                                <version>9.1.0.8</version>
105                    </dependency>
106                </dependencies>
107            </plugin>
108        </plugins>
109    </pluginManagement>
110    </build>
111       
112
113         <!-- Build profiles prepare VloConfig.xml for different deployment enviroments -->
114    <profiles>
115        <profile>
116            <!-- For local testing, default profile -->
117            <id>local-testing</id>
118            <activation>
119                <activeByDefault>true</activeByDefault>
120            </activation>
121            <properties>
122                <vloconfig.solrUrl>http://localhost:8080/vlo-solr/core0/</vloconfig.solrUrl>
123                <vloconfig.dataRootsFile>dataroots-local.xml</vloconfig.dataRootsFile>
124            </properties>
125        </profile>
126       
127        <profile>
128            <!-- For deployment to catalog-clarin.esc.rzg.mpg.de -->
129            <id>dev-vm</id>
130            <properties>
131                <vloconfig.solrUrl>http://localhost:8080/vlo-solr/core0/</vloconfig.solrUrl>
132                <vloconfig.dataRootsFile>file:/lat/webapps/vlo/dataroots-testvm.xml</vloconfig.dataRootsFile>
133            </properties>
134        </profile>
135       
136        <profile>
137            <!-- For deployment to vlo.clarin.eu -->
138            <id>production</id>
139            <properties>
140                <vloconfig.deleteAllFirst>false</vloconfig.deleteAllFirst>
141                <vloconfig.maxDaysInSolr>7</vloconfig.maxDaysInSolr>
142                <vloconfig.solrUrl>http://localhost:8080/solr/core0/</vloconfig.solrUrl>
143                <vloconfig.homeUrl>http://vlo.clarin.eu</vloconfig.homeUrl>
144                <vloconfig.dataRootsFile>dataroots-production.xml</vloconfig.dataRootsFile>
145            </properties>
146        </profile>
147       
148        <profile>
149            <!--  For deployment to beta-vlo.clarin.eu -->
150            <id>beta</id>
151            <properties>
152                <vloconfig.deleteAllFirst>false</vloconfig.deleteAllFirst>
153                <vloconfig.maxDaysInSolr>7</vloconfig.maxDaysInSolr>
154                <vloconfig.solrUrl>http://172.17.42.1:8080/solr/core0/</vloconfig.solrUrl>
155                <vloconfig.homeUrl>http://beta-vlo.clarin.eu</vloconfig.homeUrl>
156                <vloconfig.dataRootsFile>dataroots-beta.xml</vloconfig.dataRootsFile>
157            </properties>
158        </profile>
159       
160        <profile>
161            <!--  Hephaistos - dev server -->
162            <id>hephaistos</id>
163            <properties>
164                <vloconfig.solrUrl>http://localhost:9080/vlo-solr/core0/</vloconfig.solrUrl>
165                <vloconfig.homeUrl>http://hephaistos.arz.oeaw.ac.at/vlo</vloconfig.homeUrl>
166                <vloconfig.dataRootsFile>dataroots-hephaistos.xml</vloconfig.dataRootsFile>
167            </properties>
168        </profile>
169       
170        <profile>
171            <!--  Minerva - beta server -->
172            <id>minerva</id>
173            <properties>
174                <vloconfig.solrUrl>http://localhost:9080/vlo-solr/core0/</vloconfig.solrUrl>
175                <vloconfig.homeUrl>http://minerva.arz.oeaw.ac.at/vlo</vloconfig.homeUrl>
176                <vloconfig.dataRootsFile>dataroots-minerva.xml</vloconfig.dataRootsFile>
177            </properties>
178        </profile>
179       
180    </profiles>
181       
182
183        <dependencies>
184        <dependency>
185            <groupId>javax.servlet</groupId>
186            <artifactId>servlet-api</artifactId>
187            <version>2.5</version>
188            <scope>provided</scope>
189        </dependency>
190        <dependency>
191            <groupId>org.slf4j</groupId>
192            <artifactId>slf4j-log4j12</artifactId>
193            <version>${slf4j.version}</version>
194            <scope>test</scope>
195        </dependency>
196       
197        <dependency>
198            <groupId>xmlunit</groupId>
199            <artifactId>xmlunit</artifactId>
200            <version>1.5</version>
201            <scope>test</scope>
202            <type>xml</type>
203            <classifier>ivy</classifier>
204        </dependency>
205    </dependencies>
206</project>
Note: See TracBrowser for help on using the repository browser.