You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicholas Tung <ga...@gmail.com> on 2009/07/22 08:43:55 UTC

maven scala plugin troubles -- scalac compiler plugin

Hi David and Josh,

   I'm having some trouble with the maven scala plugin; it doesn't seem to
be setting the -Xplugin line correctly when I try to build a project [1].
The configuration passed to the maven-scala-plugin is [2]. I'm running $(mvn
install -Dmaven.scala.displayCmd=true).

    Feel free to look at the pom.xml files if you want [3], but don't feel
obliged... I haven't done proper Scala / Java separation yet (among other
things to clean it up).

Thanks so much!
Nicholas
https://ntung.com

[1]
version 2.10 gives
-Xplugin:/home/gatoatigrado/.m2/repository/org/scala-tools/maven-scala-plugin/2.10/maven-scala-plugin-2.10.jar

version 2.11 gives
-Xplugin:/home/gatoatigrado/.m2/repository/xom/xom/1.1/xom-1.1.jar

the correct version should be
-Xplugin:/home/gatoatigrado/.m2/repository/edu/berkeley/cs/sketch/skalch-plugin/git-master/skalch-plugin-git-master.jar


[2]
<compilerPlugin>
        <groupId>edu.berkeley.cs.sketch</groupId>
        <artifactId>skalch-plugin</artifactId>
        <version>git-master</version>
</compilerPlugin>

[3] http://github.com/gatoatigrado/skalch/tree/master

Re: maven scala plugin troubles -- scalac compiler plugin

Posted by Josh Suereth <jo...@gmail.com>.
Does your scalac plugin depend on any other plugins?  If you can point me
towards a repository holding your scalac plugin, I can create an integration
test for this use case.  I'm adding it to the list of known issues.

- Josh

On Wed, Jul 22, 2009 at 2:43 AM, Nicholas Tung <ga...@gmail.com>wrote:

> Hi David and Josh,
>
>    I'm having some trouble with the maven scala plugin; it doesn't seem to
> be setting the -Xplugin line correctly when I try to build a project [1].
> The configuration passed to the maven-scala-plugin is [2]. I'm running $(mvn
> install -Dmaven.scala.displayCmd=true).
>
>     Feel free to look at the pom.xml files if you want [3], but don't feel
> obliged... I haven't done proper Scala / Java separation yet (among other
> things to clean it up).
>
> Thanks so much!
> Nicholas
> https://ntung.com
>
> [1]
> version 2.10 gives
>
> -Xplugin:/home/gatoatigrado/.m2/repository/org/scala-tools/maven-scala-plugin/2.10/maven-scala-plugin-2.10.jar
>
> version 2.11 gives
> -Xplugin:/home/gatoatigrado/.m2/repository/xom/xom/1.1/xom-1.1.jar
>
> the correct version should be
> -Xplugin:/home/gatoatigrado/.m2/repository/edu/berkeley/cs/sketch/skalch-plugin/git-master/skalch-plugin-git-master.jar
>
>
> [2]
> <compilerPlugin>
>         <groupId>edu.berkeley.cs.sketch</groupId>
>         <artifactId>skalch-plugin</artifactId>
>         <version>git-master</version>
> </compilerPlugin>
>
> [3] http://github.com/gatoatigrado/skalch/tree/master
>