forked from Terradue/gitbook-oss-t2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
164 lines (164 loc) · 5.83 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.terradue.ciop.app</groupId>
<artifactId>gitbook-oss-t2</artifactId>
<packaging>pom</packaging>
<name>gitbook-oss-t2</name>
<description>GitHub Organization Gitbook</description>
<version>0.2</version>
<scm>
<connection>scm:git:[email protected]:Terradue/gitbook-oss-t2.git</connection>
<developerConnection>scm:git:[email protected]:Terradue/gitbook-oss-t2.git</developerConnection>
<url>https://github.com/Terradue/gitbook-oss-t2.git</url>
<tag>HEAD</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.deploy.skip>true</maven.deploy.skip>
<github.global.server>github</github.global.server>
<github.site.repositoryName>gitbook-oss-t2</github.site.repositoryName>
<github.site.repositoryOwner>Terradue</github.site.repositoryOwner>
</properties>
<repositories>
<repository>
<id>repository.terradue.com</id>
<name>repository.terradue.com-releases</name>
<url>http://repository.terradue.com/artifactory/libs-release-public</url>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots/>
<id>repository.terradue.com</id>
<name>repository.terradue.com-releases</name>
<url>http://repository.terradue.com/artifactory/libs-release-public</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-doc-src</id>
<!-- here the phase you need -->
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/main</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>rgitbook</id>
<phase>site</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>R</executable>
<arguments>
<argument>-e</argument>
<argument><![CDATA[library(knitr); knit(input="target/main/doc/SUMMARY.Rmd", output="target/main/doc/SUMMARY.md"); knit(input="target/main/doc/README.Rmd", output="target/main/doc/README.md"); library(Rgitbook); buildGitbook(source.dir='${project.build.directory}/main/doc', out.dir='${project.build.directory}/R/doc');]]></argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.8</version>
<configuration>
<message>Creating site for ${project.version}</message>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site-deploy</phase>
<configuration>
<outputDirectory>${project.build.directory}/R/doc</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.10-SNAPSHOT</version>
<configuration>
<message>Creating site for ${project.version}</message>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>site-deploy</phase>
<configuration>
<outputDirectory>${project.build.directory}/R/doc</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<skip>true</skip>
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
</plugins>
</build>
</project>