forked from rossjourdain/XeroAPI-Schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
executable file
·103 lines (101 loc) · 4.58 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
<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.xero</groupId>
<artifactId>xero-accounting-api-schema</artifactId>
<packaging>jar</packaging>
<version>0.0.3</version>
<name>Xero Accounting API Schema</name>
<url>http://maven.apache.org</url>
<distributionManagement>
<repository>
<id>internal.repo</id>
<name>Temporary Staging Repository</name>
<url>file://${project.build.directory}/mvn-repo</url>
</repository>
</distributionManagement>
<properties>
<!-- github server corresponds to entry in ~/.m2/settings.xml -->
<github.global.server>github</github.global.server>
</properties>
<build>
<finalName>Xero-Schema-Example</finalName>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
<execution>
<id>schema-generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<forceRegenerate>false</forceRegenerate>
<generatePackage>com.xero.model</generatePackage>
<schemaIncludes>
<include>XeroSchemas/v2.00/*.xsd</include>
</schemaIncludes>
<bindingIncludes>
<include>XeroSchemas/v2.00/*.xjb</include>
</bindingIncludes>
<extension>true</extension>
<args>
<arg>-Xinheritance</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>0.6.4</version>
</plugin>
</plugins>
</configuration>
</execution>
</executions>
<version>0.8.0</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
<configuration>
<!-- git commit message -->
<message>Maven artifacts for ${project.version}</message>
<!-- disable webpage processing -->
<noJekyll>true</noJekyll>
<!-- matches distribution management repository url above -->
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
<!-- remote branch name -->
<branch>refs/heads/mvn-repo</branch>
<!-- If you remove this then the old artifact will be removed and new
one will replace. But with the merge tag you can just release by changing
the version -->
<merge>true</merge>
<includes>
<include>**/*</include>
</includes>
<!-- github repo name -->
<repositoryName>XeroAPI-Schemas</repositoryName>
<!-- github username -->
<repositoryOwner>XeroAPI</repositoryOwner>
</configuration>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>deploy</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>