I am trying to create a pom which allows me to bundle my 'app.config'
file together with my application. The documentation (see
http://www.npanday.org/docs/1.2/guide/maven/project-types.html
<http://www.npanday.org/docs/1.2/guide/maven/project-types.html> )
suggests that this should be possible using the dotnet-executable-config
packaging type.

 

Using the normal maven-compile plugin this should be doable using the
following pom:

 

<?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>TestGroup</groupId>

  <artifactId>TestArtifactName.Config</artifactId>

  <packaging>dotnet-executable-config</packaging>

  <name>configuration file pom</name>

  <version>1.0-SNAPSHOT</version>

</project>

 

But this results in an error:

 

[INFO] Scanning for projects...

[INFO]
------------------------------------------------------------------------

[INFO] Building configuration file pom

[INFO]    task-segment: [install]

[INFO]
------------------------------------------------------------------------

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Cannot find lifecycle mapping for packaging:
'dotnet-executable-config'.

Component descriptor cannot be found in the component repository:
org.apache.maven.lifecycle.mapping.LifecycleMappingdotnet-executable-con
fig.

[INFO]
------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO]
------------------------------------------------------------------------

[INFO] Total time: < 1 second

[INFO] Finished at: Tue Oct 12 01:10:08 CEST 2010

[INFO] Final Memory: 1M/15M

 

I am using npanday 1.2.1

 

Any help would be appreciated,

 

/joe

Reply via email to