IDEA 10.5.2をScalaプラグインバージョン0.4.1395と、IDEに付属の標準Maven統合プラグインと共に使用しています。私は上記の設定でScala 2.8.0プロジェクトを持っており、Scala 2.9.1にアップグレードしたいと思います。私はpom.xmlに必要な変更を加えました。私はScalaの2.9.1は、私のマシンにインストールされているIDEAのMavenプロジェクトでScalaバージョンをアップグレードする
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-compiler</artifactId>
<version>2.9.1</version>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.9.1</version>
</dependency>
:
プラグインセクション:
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>compile</goal>
</goals>
<phase>compile</phase>
</execution>
<execution>
<id>test-compile</id>
<goals>
<goal>testCompile</goal>
</goals>
<phase>test-compile</phase>
</execution>
<execution>
<phase>process-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
依存関係セクションここに私のpom.xmlから関連するセクションです。
私のプロジェクト設定では、Scalaファセットでコンパイラのインスタンス化セクションに "コンパイラライブラリ"のいくつかのオプションがあります。しかし、私のプロジェクトは、それらのいずれかを選ぶことに基づいて構築されていません。
私はMaven: org.scala-lang:scala-compiler-bundle:2.9.1
を選択すると、私は次のエラーを取得する:
Cannot compile Scala files.
Please, adjust compiler library in Scala facet: unable to read scala-library-2.9.1.jar version.
私はMaven: org.scala-lang:scala-compiler:2.9.1
を選択すると、私は次のエラーを取得する:
Cannot compile Scala files.
Please, adjust compiler library in Scala facet: no scala-library*.jar found.
私はMaven: org.scala-lang:scala-library:2.9.1
を選択すると、私は次のエラーを取得します:
Cannot compile Scala files.
Please, adjust compiler library in Scala facet: no scala-compiler*.jar found.
私は何をしていますかng?私のプロジェクトを構築するために何をすべきですか?
初めてビルドツールを使用しています。どんな助けでも大歓迎です。ありがとう!
"mvn compile"でコンソールでプロジェクトをコンパイルできますか? –