How to setup a Maven Scala project with IntelliJ IDEA support
1493 ワード
Install Intellij and the Scala plugin (File -> Settings -> Plugins -> Available).Generate your maven project using the simple Scala archetype:
--mvn 3.0直接mvn archetype:generate
351: remote -> scala-archetype-simple
Add the Scala compiler lib to your project dependencies in the pom.xml file:
?
Update the Scala version configuration to a recent release:
Open the a new project. Select the pom.xml in the file dialog.
An notification will pop up. Click "Create Scala Facet".
zz: http://theyougen.blogspot.com/2010/01/how-to-setup-maven-scala-project-with.html
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
-DarchetypeGroupId=org.scala-tools.archetypes
-DarchetypeArtifactId=scala-archetype-simple
-DarchetypeVersion=1.2
-DremoteRepositories=http://scala-tools.org/repo-releases
-DgroupId=[group]
-DartifactId=[artifact]
--mvn 3.0直接mvn archetype:generate
351: remote -> scala-archetype-simple
Add the Scala compiler lib to your project dependencies in the pom.xml file:
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-compiler</artifactId>
<version>${scala.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
?
Update the Scala version configuration to a recent release:
<properties>
<scala.version>2.8.1</scala.version>
</properties>
Open the a new project. Select the pom.xml in the file dialog.
An notification will pop up. Click "Create Scala Facet".
zz: http://theyougen.blogspot.com/2010/01/how-to-setup-maven-scala-project-with.html