The maven packaging type (<packaging> attribute) defines the sequence of phases to run in order to achieve a specific project aim (eg building a jar library, building a dotnet:library, building a dotnet:exe ...)
The NPanday plugin defines a new set packaging types which customise the default Maven lifecycle:

Packaging name Type File extension Description
dotnet:module module .netmodule blahblab
dotnet:library library .dll blahblab
dotnet:exe exe .exe blahblab
dotnet:winexe winexe .exe blahblab
dotnet:nar .nar blahblab
dotnet:exe.config .exe.config blahblab
dotnet:netplugin library .dll blahblab
dotnet:visual-studio-addin library .dll blahblab
dotnet:sharp-develop-addin library .dll blahblab
dotnet:asp library .dll blahblab


Here is a pom fragment:
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>...</groupId>
    <artifactId>...</artifactId>
    <version>...</version>
    <name>...</name>
    <packaging>dotnet:library</packaging>
    ...
</project>

Some packaging types cannot be instantiated (it means that they cannot be used in the <packaging> attribute) but can be used in artifact type dependency definitions (in <type> attribute). The packaging types (from previous table) can also be used as artifact dependency types but the NPanday plugin defines this new set of artifact types in addition:

Artifact type name Type File extension Description
dotnet:gac library .dll blahblab
dotnet:gac_generic library .dll blahblab
dotnet:gac_msil library .dll blahblab
dotnet:gac_32 library .dll blahblab
dotnet:com_reference . ??


Here is a pom fragment:
<project>
  ...
  <dependencies>
   <dependency> 
      <groupId>Extensibility</groupId>  
      <artifactId>Extensibility</artifactId>  
      <type>donet:gac</type>  
      <version>7.0.3300.0</version>  
      <classifier>b03f5f7f11d50a3a</classifier> 
    </dependency> 
  </dependencies>
</project>
As you should have understand you can also use something of this kind:
<project>
  ...
  <dependencies>
    <dependency> 
      <groupId>org.nunit</groupId>  
      <artifactId>nunit.framework</artifactId>  
      <version>2.4.8.0</version>  
      <type>dotnet:library</type> 
    </dependency>
  </dependencies>
</project>

Last edited Dec 15, 2008 at 10:51 PM by mimil, version 5

Comments

No comments yet.