私にはUbuntu Studio 16.10
があります。私はIntelliJ IDEA 2016.3.2
は私pom.xml
IntelliJでTestNGを見つけることができません
<?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>
<repositories>
<repository>
<id>jcenter</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
<groupId>test</groupId>
<artifactId>myproject</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceencoding>UTF-8</project.build.sourceencoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.9.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
に次のように使用している私は
Apache Maven 3.3.9
を使用JetBrainsのsroに によって2016年12月21日
JRE: 1.8.0_112-release-408-b6 amd64
JVM: OpenJDK 64-Bit
サーバーVM上に構築され、#IC-163.10154.41を構築してい
私は自分のプロジェクトディレクトリに行って、mvn clean install
を実行しました プロジェクトフォルダを右クリックしてMaven-> reimportを選択することを勧められた別の投稿も確認しましたが、そのオプション利用できませんでした。 私はBUILD Success
です。外部ライブラリにはjunitの存在が示されていましたが。私はTestNGを見たことがありません。ログでは、それは言った..ダウンロードするtestng-6.9.12.jar
私が得たすべてlocate testng-6.9.12.jar
を使用したときに私はコマンドプロンプトに戻ります。 エディタで、私はorg.testng。*;をインポートしようとしました。 import文は、書き終わるとすぐに消去されます。私はvimちょっとしたアレンジメントを使っています。Intellij
Ubuntu 16.10
jcentralとmavenリポジトリからダウンロードしようとしましたが、役に立たなかった。
私は(あなたのポンポンファイルを任意の<repository>
タグを持っていないので、達人が行くあなたを探してみてくださいのみjunit
とJava 1.8
プロジェクトをMavenとして再インポートしようとしましたか? – juherr