-
Notifications
You must be signed in to change notification settings - Fork 317
/
pom.xml
82 lines (80 loc) · 2.71 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
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.nodeploy.parent</artifactId>
<version>2.34.0-SNAPSHOT</version>
<relativePath>../org.eclipse.xtext.nodeploy.parent</relativePath>
</parent>
<artifactId>org.eclipse.xtext.web.example.entities</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xtext.generator</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.common.types</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-sources</id>
<phase>initialize</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src</source>
<source>src-gen</source>
<source>generator</source>
</sources>
</configuration>
</execution>
<execution>
<!-- Tests need files like
/org.eclipse.xtext.common.types.tests/tests/org/eclipse/xtext/common/types/testSetups/testData.jar
and to Xtext files like .xtextbin
to be on the classpath; but they are not automatically copied in the target
folder by default by the maven-compiler-plugin:
we must specify them as resources so that maven-resources-plugin will copy them.
Otherwise, there will be test failure errors of the shape:
"1) [Guice/ErrorInjectingConstructor]:
WrappedException: ClasspathUriResolutionException:
FileNotFoundOnClasspathException:
Couldn't find resource on classpath.
URI was 'classpath:/org/eclipse/xtext/web/example/statemachine/Statemachine.xmi'" -->
<id>add-resources</id>
<phase>initialize</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src-gen</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>