Problem Getting Started With NMAVEN

Apr 29, 2009 at 1:00 AM
I am not able to develop my first application using nmaven.
I have done the following:

1.  svn co https://nmaven.svn.codeplex.com/svn/trunk nmaven
2.  cd nmaven  (where the root pom.xml of the checked-out nmaven was placed)
3.  mvn install

The last command put the nmaven plugins and associated files into my .m2 directory, \.m2\repository\org\sonatype

However, when I adopt the example pom from the Getting Started page like this:

<?xml version="1.0" encoding="UTF-8"?>
 
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <groupId>NMaven.Its</groupId>
     <artifactId>NMaven.It.It0000</artifactId>
     <packaging>dotnet:library</packaging>
     <version>1.0.0</version>
          <name>Website</name>
          <build>
                   <sourceDirectory>./src/main/csharp</sourceDirectory>
           <plugins>
               <plugin>
                <groupId>org.apache.maven.dotnet.plugins</groupId>
                <artifactId>maven-dotnet-compiler-plugin</artifactId>
                <extensions>true</extensions>
            </plugin>
           </plugins>
           </build>
</project>


I get this error when attempting mvn compile:
The plugin 'org.apache.maven.dotnet.plugins:maven-dotnet-compiler-plugin' does not exist or no valid version could be found

Apr 29, 2009 at 1:04 AM
I am using
maven 2.1.0,
C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\bin
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

Thanks
               
May 9, 2009 at 10:59 PM

Hi.

I hope you already managed to solve it. Just it case, the solution.

What happens is that after nmaven left the apache incubator, the group of the plugin changed. Your new plugin tag should be:

 

<plugin>

   <groupId>org.sonatype.nmaven.plugins</groupId>

   <artifactId>maven-dotnet-compiler-plugin</artifactId>

   <version>0.17</version>

   <extensions>true</extensions>

</plugin>

 

HTH

May 11, 2009 at 3:30 PM
Edited May 11, 2009 at 3:30 PM

Yes thank you.

To meet project schedule, I had not attempted to workout the issue.

Instead I used maven and ant.

Being a relative newcomer to maven builds, I did not recognize the importance of the various tags within the plugin element.

I will now try nmaven.

It may be worthwhile to update the Getting Started page of NMaven with the appropriate groupId within the plugin.