您可以使用以下Maven插件https://github.com/greengerong/maven-ng-
protractor
你可以这样使用
<plugin> <groupId>com.github.greengerong</groupId> <artifactId>maven-ng-protractor</artifactId> <version>0.0.2</version> <configuration> <protractor>protractor</protractor> <configFile>yourconfig.js</configFile> </configuration> <executions> <execution> <id>ng-protractor</id> <phase>integration-test</phase> <goals> <goal>run</goal> </goals> </execution> </executions></plugin>



