/
pom.xml
129 lines (129 loc) · 3.64 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
<?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>
<parent>
<groupId>net.officefloor.web</groupId>
<artifactId>web</artifactId>
<version>${revision}</version>
</parent>
<artifactId>officeweb_configuration</artifactId>
<name>Web configuration</name>
<description>Configuration for WoOF (Web on OfficeFloor)</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/impl</source>
<source>src/auto/model</source>
<source>src/main/test</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-resource</id>
<phase>generate-sources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/raw/model</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Generate model source files -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>generate-model</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<!-- Specifying properties -->
<property name="modelprojectdir" value="${basedir}" />
<property name="compile_classpath"
refid="maven.compile.classpath" />
<!-- Generating the model classes -->
<java
classname="net.officefloor.model.generate.GenerateOfficeFloorModel">
<arg value="${modelprojectdir}/src/raw/model" />
<arg value="${modelprojectdir}/src/auto/model" />
<classpath>
<pathelement path="${compile_classpath}" />
</classpath>
</java>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Additionally clean the model source files -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${basedir}</directory>
<includes>
<include>src/auto/model/net/</include>
<include>bin/</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>officeweb</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>officeweb_security</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>officeweb_template</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>officeweb_resource</artifactId>
</dependency>
<dependency>
<groupId>net.officefloor.activity</groupId>
<artifactId>officeprocedure</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>