David-
inside the main pom.xml located at
/tmp/gatoatigrado/maven/maven-scala-plugin/src/it/docTest/pom.xml

should have a dependency for maven-scala-plugin
                    <dependency>
                      <artifactId>maven-scala-plugin</artifactId>
                      <groupId>org.scala-tools</groupId>
                      <version>${pom.version}</version>

make sure you install the right version (in this case what pom.version is) of 
scala e.g.

mvn install:install-file -DgroupId=org.scala-tools 
-DartifactId=maven-scala-plugin -Dversion=${pom.version}

OUT: 
-------------------------------------------------------------------------------
OUT: TEST BUILD: 
/tmp/gatoatigrado/maven/maven-scala-plugin/src/it/docTest/pom.xml
OUT: Goals: clean compile site
OUT: 
-------------------------------------------------------------------------------
OUT: + Error stacktraces are turned on.
OUT: [INFO] Scanning for projects...
OUT: [INFO] 
------------------------------------------------------------------------
OUT: [INFO] Building Test scaladoc generation
OUT: [INFO]    task-segment: [clean, compile, site]
OUT: [INFO] 
------------------------------------------------------------------------
OUT: [INFO] 
------------------------------------------------------------------------
OUT: [ERROR] BUILD ERROR
OUT: [INFO] 
------------------------------------------------------------------------
OUT: [INFO] Internal error in the plugin manager getting plugin 
'org.scala-tools:maven-scala-plugin': Plugin 
'org.scala-tools:maven-scala-plugin:testing' has an invalid descriptor:
OUT: 1) Plugin's descriptor contains the wrong version: 2.11-SNAPSHOT
OUT: [INFO] 
------------------------------------------------------------------------
OUT: [INFO] Trace
OUT: org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in 
the plugin manager getting plugin 'org.scala-tools:maven-scala-plugin': Plugin 
'org.scala-tools:maven-scala-plugin:testing' has an invalid descriptor:
OUT: 1) Plugin's descriptor contains the wrong version: 2.11-SNAPSHOT
OUT:

hth!
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Tue, 2 Jun 2009 14:52:12 -0700
> Subject: scalac compiler plugin help
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> Hi all,
> 
>     I'm trying to use the Maven to build a scala project, but I get a
> NullPointerException at
> "org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion".
> My setup is at http://www.gatoatigrado.com/tmp-code-snippets.
> 
>     Other attempts: I also had some problems building the plugin from git (
> http://github.com/davidB/maven-scala-plugin/tree/master), though it doesn't
> seem like compiling the plugin it is necessary. Using the configuration at
> http://scala-tools.org/mvnsites/maven-scala-plugin/usage_scalac_plugins.html,
> and adding the <scalaVersion> tag as per
> http://scala-tools.org/mvnsites/maven-scala-plugin/usage.html didn't work
> either. Please update the plugin page with a working example.
> 
> Thanks in advance,
> Nicholas

_________________________________________________________________
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009

Reply via email to