|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
[scala-tools] Eclipse plugin with scala-maven-puginHello,
I use the Scala eclipse plugin alongs with maven-scala-plugin. Eclipse plugin brings a classpath container with the Scala library, and I have in the pom a dependency with Scala-lib - what means that I have to Scala-lib in the classpath. As it does not feel good to have two jars of the same lib in the path, I was wondering what is the standard behaviour for that case. Remove the Eclipse plugin's scala lib container from the path ? Thanks ! -- Francois Armand http://fanf42.blogspot.com |
|
|
Re: [scala-tools] Eclipse plugin with scala-maven-puginOn Fri, Nov 6, 2009 at 2:05 PM, Francois Armand <fanf42@...> wrote:
Hello, In the 2.7.4 verison of the plugin, I get away with this all the time, so yes that would be the ideal. I'm not sure about other versions, as I haven't tried. - Josh |
|
|
Re: [scala-tools] Eclipse plugin with scala-maven-puginOn Fri, Nov 6, 2009 at 7:05 PM, Francois Armand <fanf42@...> wrote:
> As it does not feel good to have two jars of the same lib in the path, I was > wondering what is the standard behaviour for that case. Remove the Eclipse > plugin's scala lib container from the path ? If you do that then don't come crying to me when it breaks Eclipse ... Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://www.chuusai.com/ http://twitter.com/milessabin |
|
|
Re: [scala-tools] Eclipse plugin with scala-maven-puginMiles Sabin a écrit :
> If you do that then don't come crying to me when it breaks Eclipse ... That is exactly why I ask before doing it, and was wondering what it is the normal thing to do : let the two jars in the classpath ? If so, do I have to put the plugin container higher than the maven container ? -- Francois Armand http://fanf42.blogspot.com |
|
|
Re: [scala-tools] Eclipse plugin with scala-maven-puginOn Fri, 2009-11-06 at 20:21 +0100, Francois Armand wrote:
> Miles Sabin a écrit : > > If you do that then don't come crying to me when it breaks Eclipse ... > > That is exactly why I ask before doing it, and was wondering what it is > the normal thing to do : let the two jars in the classpath ? If so, do I > have to put the plugin container higher than the maven container ? I leave them both, but I make sure the versions match. That is the most important bit, as far as I can tell. Best, Ismael |
|
|
Re: [scala-tools] Eclipse plugin with scala-maven-pugin> As it does not feel good to have two jars of the same lib in the path, I
> was wondering what is the standard behaviour for that case. Remove the > Eclipse plugin's scala lib container from the path ? It's a bit odd to have one Scala lib directly in the project for the SDT and one other in the Maven dependencies. However, if you use the latest snapshots of both, they should be compatible. This is my Maven-plug config and dependency: <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId> <configuration> <charset>UTF-8</charset> <encoding>UTF-8</encoding> <jvmArgs> <jvmArg>-Xms64m</jvmArg> <jvmArg>-Xmx1g</jvmArg> </jvmArgs> <sourceDir>src/main/java</sourceDir> </configuration> </plugin> `maven-scala-plugin' deduces the Scala-lib and Scala-compiler version from the `scala-library' dependency, which looks like this: <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>${scalaVersion}</version> </dependency> where `scalaVersion' is a property: <properties> ... <scalaVersion>2.8.0-SNAPSHOT</scalaVersion> ... </properties> These are the relevant repositories: <repositories> <repository> <id>org.scala-tools.repository.releases</id> <name>Scala-Tools Releases</name> <url>http://scala-tools.org/repo-releases</url> </repository> <repository> <id>org.scala-tools.repository.snapshots</id> <name>Scala-Tools Snapshots</name> <url>http://scala-tools.org/repo-snapshots</url> </repository> </repositories> This setup works fine for me, both in Eclipse and on the command line with Maven. Hope this helps, ---Ph. |
|
|
Re: [scala-tools] Eclipse plugin with scala-maven-puginIsmael Juma a écrit :
> I leave them both, but I make sure the versions match. That is the most > important bit, as far as I can tell. OK, so I will continue this way, to. Thanks for answers ! -- Francois Armand http://fanf42.blogspot.com |
| Free embeddable forum powered by Nabble | Forum Help |