<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>2.45.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
1.引入pom.xml中使用到的jar, 由build.xml来进行关联依赖并编译。
<target name="jar" depends="compile" description="Create the application JAR files.">
<uncommons:jar module="reportng"
jarfile="${artifact.identifier}.jar"
classpath="velocity-dep-1.4.jar" />
<uncommons:jar module="reportng"
jarfile="${artifact.identifier}.jar"
classpath="selenium-api-2.45.0.jar" />
<uncommons:jar module="reportng"
jarfile="${artifact.identifier}.jar"
classpath="commons-io-2.4.jar" />
</target>
2.lib->runtime中添加build所需要编译的jar。
联系客服