You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-users@incubator.apache.org by David Durham <da...@gmail.com> on 2013/03/26 17:20:40 UTC

packaging dotnet-application

Hi all,

I'm trying to package a dotnet-application, but receive this error:

    Unknown packaging: dotnet-application @ line 7, column 14

Any suggestions?  Here's my pom.xml:


<?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>com.companyname</groupId>
  <artifactId>ExampleProxy</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>dotnet-application</packaging>
  <name>CompanyName : ExampleProxy</name>
  <dependencies>
    <dependency>
      <groupId>com.companyname</groupId>
      <artifactId>WebServiceProxyUtils</artifactId>
      <version>1.0-SNAPSHOT</version>
      <type>dotnet-library</type>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>./</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.apache.npanday.plugins</groupId>
        <artifactId>maven-compile-plugin</artifactId>
        <version>1.5.0-incubating-SNAPSHOT</version>
        <extensions>true</extensions>
        <configuration>
          <frameworkVersion>3.5</frameworkVersion>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.npanday.plugins</groupId>
        <artifactId>aspnet-maven-plugin</artifactId>
        <version>1.5.0-incubating-SNAPSHOT</version>
        <executions>
          <execution>
            <goals>
              <goal>assemble-package-files</goal>
              <goal>process-configs</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.npanday.plugins</groupId>
        <artifactId>application-maven-plugin</artifactId>
        <version>1.5.0-incubating-SNAPSHOT</version>
        <executions>
          <execution>
            <goals>
              <goal>assemble-package-files</goal>
              <goal>process-configs</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <pluginRepositories>
    <pluginRepository>
      <releases>
        <enabled>false</enabled>
      </releases>
      <id>npanday.snapshots</id>
      <name>NPanday Snapshot Repository</name>
      <url>http://vmbuild.apache.org/archiva/repository/npanday-snapshots</url>
    </pluginRepository>
    <pluginRepository>
      <releases>
        <enabled>true</enabled>
      </releases>
      <id>aduna</id>
      <name>aduna Repository</name>
      <url>http://repository.aduna-software.org/maven2/</url>
    </pluginRepository>
  </pluginRepositories>
  <profiles>
    <profile>
      <id>windows-dependencies</id>
      <activation>
        <activeByDefault>false</activeByDefault>
        <os>
          <family>Windows</family>
        </os>
      </activation>
    </profile>
    <profile>
      <id>unix-dependencies</id>
      <activation>
        <activeByDefault>false</activeByDefault>
        <os>
          <family>Unix</family>
        </os>
      </activation>
      <dependencies>
        <dependency>
          <groupId>mono</groupId>
          <artifactId>System.Web</artifactId>
          <version>2.0.0.0</version>
          <type>dotnet-library</type>
          <scope>system</scope>
          <systemPath>/usr/lib/mono/2.0/System.Web.dll</systemPath>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
</project>

Re: packaging dotnet-application

Posted by David Durham <da...@gmail.com>.
Just for the record, I needed to use only the aspnet-maven-plugin
plugin, and had to add the assembly plugin, since the npanday
aspnet-maven-plugin plugin is apparently designed to work with the
assembly one.   This wasn't really clear from the npanday docs and it
would be nice to have an example full pom for a project that packages
up an .net web app.

-Dave

On Tue, Mar 26, 2013 at 12:20 PM, David Durham
<da...@gmail.com> wrote:
> Hi all,
>
> I'm trying to package a dotnet-application, but receive this error:
>
>     Unknown packaging: dotnet-application @ line 7, column 14
>
> Any suggestions?  Here's my pom.xml:
>
>
> <?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>com.companyname</groupId>
>   <artifactId>ExampleProxy</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <packaging>dotnet-application</packaging>
>   <name>CompanyName : ExampleProxy</name>
>   <dependencies>
>     <dependency>
>       <groupId>com.companyname</groupId>
>       <artifactId>WebServiceProxyUtils</artifactId>
>       <version>1.0-SNAPSHOT</version>
>       <type>dotnet-library</type>
>     </dependency>
>   </dependencies>
>   <build>
>     <sourceDirectory>./</sourceDirectory>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.npanday.plugins</groupId>
>         <artifactId>maven-compile-plugin</artifactId>
>         <version>1.5.0-incubating-SNAPSHOT</version>
>         <extensions>true</extensions>
>         <configuration>
>           <frameworkVersion>3.5</frameworkVersion>
>         </configuration>
>       </plugin>
>       <plugin>
>         <groupId>org.apache.npanday.plugins</groupId>
>         <artifactId>aspnet-maven-plugin</artifactId>
>         <version>1.5.0-incubating-SNAPSHOT</version>
>         <executions>
>           <execution>
>             <goals>
>               <goal>assemble-package-files</goal>
>               <goal>process-configs</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>       <plugin>
>         <groupId>org.apache.npanday.plugins</groupId>
>         <artifactId>application-maven-plugin</artifactId>
>         <version>1.5.0-incubating-SNAPSHOT</version>
>         <executions>
>           <execution>
>             <goals>
>               <goal>assemble-package-files</goal>
>               <goal>process-configs</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
>   <pluginRepositories>
>     <pluginRepository>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>       <id>npanday.snapshots</id>
>       <name>NPanday Snapshot Repository</name>
>       <url>http://vmbuild.apache.org/archiva/repository/npanday-snapshots</url>
>     </pluginRepository>
>     <pluginRepository>
>       <releases>
>         <enabled>true</enabled>
>       </releases>
>       <id>aduna</id>
>       <name>aduna Repository</name>
>       <url>http://repository.aduna-software.org/maven2/</url>
>     </pluginRepository>
>   </pluginRepositories>
>   <profiles>
>     <profile>
>       <id>windows-dependencies</id>
>       <activation>
>         <activeByDefault>false</activeByDefault>
>         <os>
>           <family>Windows</family>
>         </os>
>       </activation>
>     </profile>
>     <profile>
>       <id>unix-dependencies</id>
>       <activation>
>         <activeByDefault>false</activeByDefault>
>         <os>
>           <family>Unix</family>
>         </os>
>       </activation>
>       <dependencies>
>         <dependency>
>           <groupId>mono</groupId>
>           <artifactId>System.Web</artifactId>
>           <version>2.0.0.0</version>
>           <type>dotnet-library</type>
>           <scope>system</scope>
>           <systemPath>/usr/lib/mono/2.0/System.Web.dll</systemPath>
>         </dependency>
>       </dependencies>
>     </profile>
>   </profiles>
> </project>