Maven 无法运行jbehave+;硒+;groovy代码
运行jbehave+selenium+groovy时,我遇到以下错误,错误如下:Maven 无法运行jbehave+;硒+;groovy代码,maven,selenium,jbehave,Maven,Selenium,Jbehave,运行jbehave+selenium+groovy时,我遇到以下错误,错误如下: Plugin org.jbehave:jbehave-maven-plugin:3.10-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.jbehave:jbehave-maven-plugin:jar:3.10-SNAPSHOT -> [Help 1] 请在此处找到pom.xm:
Plugin org.jbehave:jbehave-maven-plugin:3.10-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.jbehave:jbehave-maven-plugin:jar:3.10-SNAPSHOT -> [Help 1]
请在此处找到pom.xm:
<?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>
<groupId>org.jbehave.tutorials</groupId>
<version>1.0-SNAPSHOT</version>
<artifactId>etsy-stories-groovy-pico</artifactId>
<name>Etsy.com Stories with Groovy and Pico</name>
<description>JBehave stories verifying functionality of Etsy.com using Groovy and Pico</description>
<properties>
<jbehave.core.version>3.10-SNAPSHOT</jbehave.core.version>
<jbehave.web.version>3.6-SNAPSHOT</jbehave.web.version>
<jbehave.site.version>3.1.1</jbehave.site.version>
<fluent.selenium.version>1.14.5</fluent.selenium.version>
<selenium.version>2.40.0</selenium.version>
<gmaven.version>1.3</gmaven.version>
<groovy.version>1.8.6</groovy.version>
<ignore.failures>true</ignore.failures>
<meta.filter></meta.filter>
<threads>1</threads>
<storyTimeoutInSecs>250</storyTimeoutInSecs>
<skip>false</skip>
<stories>**/EtsyDotComStories.java</stories>
</properties>
<dependencies>
<dependency>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-core</artifactId>
<version>${jbehave.core.version}</version>
</dependency>
<dependency>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-core</artifactId>
<version>${jbehave.core.version}</version>
<classifier>resources</classifier>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.jbehave.site</groupId>
<artifactId>jbehave-site-resources</artifactId>
<version>${jbehave.site.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.jbehave.web</groupId>
<artifactId>jbehave-web-selenium</artifactId>
<version>${jbehave.web.version}</version>
<exclusions>
<exclusion>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium.fluent</groupId>
<artifactId>fluent-selenium</artifactId>
<version>${fluent.selenium.version}</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>com.github.tanob</groupId>
<artifactId>groobe</artifactId>
<version>1.1</version>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.picocontainer</groupId>
<artifactId>picocontainer</artifactId>
<version>2.14.1</version>
</dependency>
<dependency>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-pico</artifactId>
<version>1.0</version>
<exclusions>
<exclusion>
<groupId>org.picocontainer</groupId>
<artifactId>picocontainer</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.geb</groupId>
<artifactId>geb-core</artifactId>
<version>0.6.1</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>${gmaven.version}</version>
<configuration>
<providerSelection>1.7</providerSelection>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.gmaven.runtime</groupId>
<artifactId>gmaven-runtime-1.7</artifactId>
<version>${gmaven.version}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy.version}</version>
</dependency>
</dependencies>
</plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.1,)</versionRange>
<goals>
<goal>copy</goal>
<goal>unpack</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-maven-plugin</artifactId>
<versionRange>[${jbehave.core.version},)</versionRange>
<goals>
<goal>unpack-view-resources</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<versionRange>[${gmaven.version},)</versionRange>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<resources>
<resource>
<directory>${basedir}/src/main/groovy</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${basedir}/src/main/stories</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${basedir}/src/main/java</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${project.build.directory}/resources</directory>
<filtering>false</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>${basedir}/src/main/webapp</directory>
<filtering>false</filtering>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Skip the normal tests, we'll run them in the integration-test
phase -->
<skip>false</skip>
</configuration>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-resources-core</id>
<phase>process-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/jbehave/view</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<excludes>**/*.class</excludes>
<artifactItems>
<artifactItem>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-navigator</artifactId>
<version>${jbehave.core.version}</version>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-maven-plugin</artifactId>
<version>${jbehave.core.version}</version>
<dependencies>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.3.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>unpack-view-resources</id>
<phase>process-resources</phase>
<goals>
<goal>unpack-view-resources</goal>
</goals>
</execution>
<execution>
<id>embeddable-stories</id>
<phase>integration-test</phase>
<configuration>
<includes>
<include>${stories}</include>
</includes>
<excludes />
<ignoreFailureInStories>${ignore.failures}</ignoreFailureInStories>
<ignoreFailureInView>${ignore.failures}</ignoreFailureInView>
<threads>${threads}</threads>
<skip>${skip}</skip>
<storyTimeoutInSecs>${storyTimeoutInSecs}</storyTimeoutInSecs>
<metaFilters>
<metaFilter>${meta.filter}</metaFilter>
</metaFilters>
</configuration>
<goals>
<goal>run-stories-as-embeddables</goal>
</goals>
</execution>
<execution>
<id>map-stories</id>
<phase>integration-test</phase>
<configuration>
<includes>
<include>**/*StoryMaps.java</include>
</includes>
<metaFilters>
<metaFilter>+category *</metaFilter>
<metaFilter>+color *</metaFilter>
</metaFilters>
</configuration>
<goals>
<goal>map-stories-as-embeddables</goal>
</goals>
</execution>
<execution>
<id>report-stepdocs</id>
<phase>integration-test</phase>
<configuration>
<includes>
<include>${stories}</include>
</includes>
</configuration>
<goals>
<goal>report-stepdocs-as-embeddables</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>stable</id>
<properties>
<jbehave.core.version>3.9.1</jbehave.core.version>
<jbehave.web.version>3.6-beta-2</jbehave.web.version>
</properties>
</profile>
<profile>
<id>saucelabs</id>
<activation>
<property>
<name>SAUCE_USERNAME</name>
</property>
</activation>
<properties>
<threads>5</threads>
</properties>
</profile>
<profile>
<id>fail-fast</id>
<properties>
<ignore.failures>false</ignore.failures>
</properties>
</profile>
</profiles>
</project>
4.0.0
org.jbehave.tutorials
1.0-快照
etsy stories groovy pico
Etsy.com与Groovy和Pico的故事
JBehave故事使用Groovy和Pico验证Etsy.com的功能
3.10-1
3.6-1
3.1.1
1.14.5
2.40.0
1.3
1.8.6
符合事实的
1.
250
错误的
**/EtsyDotComStories.java
org.jbehave
jbehave核
${jbehave.core.version}
org.jbehave
jbehave核
${jbehave.core.version}
资源
拉链
org.jbehave.site
jbehave站点资源
${jbehave.site.version}
拉链
org.jbehave.web
jbehavewebselenium
${jbehave.web.version}
org.jbehave
jbehave核
org.seleniumhq.selenium
硒爪哇
org.seleniumhq.selenium.fluent
富硒
${fluent.selenium.version}
符合事实的
org.seleniumhq.selenium
硒爪哇
org.seleniumhq.selenium
硒爪哇
${selenium.version}
com.github.tanob
格罗布
1.1
org.hamcrest
汉克雷斯特酒店
org.picocontainer
微微容器
2.14.1
org.jbehave
杰比哈夫皮科酒店
1
org.picocontainer
微微容器
org.codehaus.groovy
groovy all
${groovy.version}
org.codehaus.geb
geb型芯
0.6.1
org.apache.maven.plugins
maven编译器插件
2.1
1.5
1.5
org.apache.maven.plugins
maven依赖插件
2.4
org.codehaus.gmaven
gmaven插件
${gmaven.version}
1.7
org.codehaus.gmaven.runtime
gmaven-runtime-1.7
${gmaven.version}
org.codehaus.groovy
groovy all
org.codehaus.groovy
groovy all
${groovy.version}
org.eclipse.m2e
生命周期映射
1.0.0
org.apache.maven.plugins
maven依赖插件
[2.1,)
复制
打开
org.jbehave
JBehaveMaven插件
[${jbehave.core.version},)
解压缩视图资源
org.codehaus.gmaven
gmaven插件
[${gmaven.version},)
发电集团
编写
生成测试存根
测试编译
${basedir}/src/main/groovy
错误的
${basedir}/src/main/stories
错误的
${basedir}/src/main/java
错误的
${project.build.directory}/resources
错误的
${basedir}/src/main/webapp
错误的
org.apache.maven.plugins
maven surefire插件
错误的
集成测试
测验
错误的
org.apache.maven.plugins
maven依赖插件
解包资源核心
过程资源
打开
${project.build.directory}/jbehave/view
符合事实的
符合事实的
**/*.类
org.jbehave
jbehave导航器
${jbehave.core.version}
org.jbehave
JBehaveMaven插件
${jbehave.core.version}
com.thoughtworks.xstream
xstream
1.3.1
解压缩视图资源
过程资源
解压缩视图资源
可嵌入的故事
集成测试
${stories}
${ignore.failures}
${ignore.failures}
${threads}
${skip}
${storytimeoutionsecs}
${meta.filter}
把故事当作儿戏讲
地图故事
整合