-
Notifications
You must be signed in to change notification settings - Fork 2
/
pom.xml
113 lines (108 loc) · 5.3 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
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.danieltoms.protractor</groupId>
<artifactId>maven-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<sourceDirectory>src/main/js</sourceDirectory>
<plugins>
<plugin>
<!-- https://github.com/eirslett/frontend-maven-plugin -->
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install node and npm</id>
<!-- install's node and npm, but doesn't handle jasmine or protractor -->
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<workingDirectory>nodejs</workingDirectory>
<nodeVersion>v0.12.2</nodeVersion>
<npmVersion>2.7.6</npmVersion>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<!-- http://www.asgarddesigns.com.au/2013/11/end-to-end-testing-with-angularjs-protractor-grunt-and-maven/ -->
<id>Install Protractor</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>nodejs/node</workingDirectory>
<executable>${project.basedir}/nodejs/node/node</executable>
<arguments>
<argument>npm/bin/npm-cli.js</argument>
<argument>install</argument>
<argument>protractor</argument>
<!-- also brings in jasmine -->
</arguments>
</configuration>
</execution>
<execution>
<id>Install Jasmine Reporters</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>nodejs/node</workingDirectory>
<executable>${project.basedir}/nodejs/node/node</executable>
<arguments>
<argument>npm/bin/npm-cli.js</argument>
<argument>install</argument>
<argument>jasmine-reporters</argument>
</arguments>
</configuration>
</execution>
<!--<execution>-->
<!--<id>Install Chromedriver</id>-->
<!--<phase>pre-integration-test</phase>-->
<!--<goals>-->
<!--<goal>exec</goal>-->
<!--</goals>-->
<!--<configuration>-->
<!--<workingDirectory>nodejs/node</workingDirectory>-->
<!--<executable>${project.basedir}/nodejs/node/node</executable>-->
<!--<arguments>-->
<!--<argument>npm/bin/npm-cli.js</argument>-->
<!--<argument>install</argument>-->
<!--<argument>chromedriver</argument>-->
<!--</arguments>-->
<!--</configuration>-->
<!--</execution>-->
<execution>
<id>Execute protractor</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>nodejs/node</workingDirectory>
<executable>${project.basedir}/nodejs/node/node</executable>
<arguments>
<argument>${project.basedir}/nodejs/node/node_modules/protractor/bin/protractor
</argument>
<!-- todo figure out a pattern based approach -->
<argument>${project.basedir}/src/main/js/com/danieltoms/protractor-demo/conf.js
</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>