Unknown packaging: dotnet-library

Feb 8, 2011 at 10:50 AM

i am getting the following error message while running compile and other command. please help me.

------------------------------------------------------------------
Executing Maven
Pom File: C:\a466152\NpandayMavenBuildSampleProjects\ClassLibrary1\ClassLibrary1\pom.xml
Goal: compile
Arguments: compile
NPanday Command: C:\Bin\apache-maven-3.0.2\bin\mvn.bat compile
------------------------------------------------------------------
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project FidelityInvestments.ClassLibrary1:ClassLibrary1:1.0-SNAPSHOT (C:\a466152\NpandayMavenBuildSampleProjects\ClassLibrary1\ClassLibrary1\pom.xml) has 1 error
[ERROR]     Unknown packaging: dotnet-library @ line 11, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
NPanday Execution Failed!, with exit code: 1

 

My POM file :

<?xml version="1.0" encoding="utf-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0">
  <modelVersion>4.0.0</modelVersion>
  <groupId>Company.ClassLibrary1</groupId>
  <artifactId>ClassLibrary1-parent</artifactId>
  <packaging>pom</packaging>
  <name>Company.ClassLibrary1 : ClassLibrary1-parent</name>
  <version>1.0-SNAPSHOT</version>
  <modules>
    <module>ClassLibrary1</module>
  </modules>
</project>

===========================

<?xml version="1.0" encoding="utf-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0">
  <parent>
    <artifactId>ClassLibrary1-parent</artifactId>
    <groupId>Company.ClassLibrary1</groupId>
    <version>1.0-SNAPSHOT</version>
    <relativePath>..\pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>ClassLibrary1</artifactId>
  <packaging>dotnet-library</packaging>
  <name>Company.ClassLibrary1 : ClassLibrary1</name>
  <build>
    <sourceDirectory>./</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>npanday.plugin</groupId>
        <artifactId>maven-repository-plugin</artifactId>
        <version>1.2.1</version>
        <extensions>true</extensions>
        <configuration>
          <frameworkVersion>2.0</frameworkVersion>
          <includeSources>
            <includeSource>Class1.cs</includeSource>
            <includeSource>Properties\AssemblyInfo.cs</includeSource>
          </includeSources>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

Tool Version Detail

 

Maven : C:\Bin\apache-maven-3.0.2

Repository : C:\maven_repository\

IDE : Vs2008 - 3.5

Npanday Addin  : npanday-installer-1.2.1.msi;

Coordinator
Feb 9, 2011 at 1:06 PM

at present, you need to declare the maven-compile-plugin with extensions = true, as it's the one primarily supplying the types - here you've specified the repository plugin instead.

BTW, the project has moved to the ASF incubator, including new mailing lists: http://incubator.apache.org/npanday/. Please post any follow up there.