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>dnet45-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 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/1.0/</basedir>
|
50
|
<outputBasedir>${project.build.directory}/../schema/1.0/</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
|
</replacements>
|
59
|
<delimiters>
|
60
|
<delimiter>\$</delimiter>
|
61
|
</delimiters>
|
62
|
</configuration>
|
63
|
</plugin>
|
64
|
|
65
|
</plugins>
|
66
|
</build>
|
67
|
|
68
|
<dependencies>
|
69
|
</dependencies>
|
70
|
</project>
|