Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<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/maven-v4_0_0.xsd">
3
	<parent>
4
		<groupId>eu.dnetlib</groupId>
5
		<artifactId>dnet-hadoop-parent</artifactId>
6
		<version>1.0.0</version>
7
		<relativePath />
8
	</parent>
9
	<modelVersion>4.0.0</modelVersion>
10
	<groupId>eu.dnetlib</groupId>
11
	<artifactId>dnet-openaireplus-schema</artifactId>
12
	<packaging>jar</packaging>
13
	<version>4.0.0-SNAPSHOT</version>
14
	<scm>
15
		<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-openaireplus-schema/trunk</developerConnection>
16
	</scm>
17
	<build>
18
		<!-- 
19
			For the generation of the documentation see ticket https://issue.openaire.research-infrastructures.eu/issues/346:
20
    		- Replace the vocabulary URL running mvn package
21
    		- Commit and upload the replaced schema to Joomla machine
22
    		- Run the generation of documentation from Oxygen with parameters:
23
        		- xsd location: web url to the schema (if we select the file on the local file system, then the documentation will contain references to the local file system, while we want documentation to refer to www.openaire.eu
24
        		- target path: dnet-openaireplus-schema/schema/{version}/doc
25
        		- output format: HTML splitted by location
26
        		- all settings options checked
27
        		- image in JPEG
28
   			- Commit and copy the documentation into the Joomla machine
29
			-->
30
		<plugins>
31
			<!-- 
32
			Using replace plugin to set the vocabulary and ontology baseURLs: https://code.google.com/p/maven-replacer-plugin/ 
33
			Template: <p>For allowed values check: $vocabulariesURL$/vocID </p>
34
			Replaced files will go into outputBasedir/outputDir (see plugin configuration below)
35
			-->
36
			<plugin>
37
				<groupId>com.google.code.maven-replacer-plugin</groupId>
38
				<artifactId>replacer</artifactId>
39
				<version>1.5.3</version>
40
				<executions>
41
					<execution>
42
						<phase>prepare-package</phase>
43
						<goals>
44
							<goal>replace</goal>
45
						</goals>
46
					</execution>
47
				</executions>
48
				<configuration>
49
					<basedir>${project.build.directory}/../schema/0.3_complete/</basedir>
50
					<outputBasedir>${project.build.directory}/../schema/0.3_complete/</outputBasedir>
51
					<outputDir>replaced</outputDir>
52
					<filesToInclude>*.xsd</filesToInclude>
53
					<replacements>
54
						<replacement>
55
							<token>vocabulariesURL</token>
56
							<value>http://api.openaire.eu/vocabularies</value>
57
						</replacement>
58
<!-- 						<replacement> -->
59
<!-- 							<token>ontologyURL</token> -->
60
<!-- 							<value>http://www.openaire.eu/ontologies/openaireplus/1.0</value> -->
61
<!-- 						</replacement> -->
62
					</replacements>
63
					<delimiters>
64
						<delimiter>\$</delimiter>
65
					</delimiters>
66
				</configuration>
67
			</plugin>
68

    
69
		</plugins>
70
	</build>
71

    
72
	<dependencies>
73
	</dependencies>
74
</project>
    (1-1/1)