Hi swappy,

It looks like you have maven-nar-plugin configured in your pluginManagement
section, but not your plugins section. See this SO Q&A for an explanation
of the difference:


http://stackoverflow.com/questions/10483180/maven-what-is-pluginmanagement

Regards,
Curtis

P.S. Since maven-nar-plugin is not available in Central, you will also need
to build it from source and deploy to your own repository (or at least
install it into your local cache).


On Fri, May 3, 2013 at 8:32 AM, swappy <[email protected]> wrote:

> I am trying to build C++ files and when i create my pom.xml, i am getting
> the
> following error
> *"Project build error: Unknown packaging: nar"*
>
> *My pom.xml*
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
> <modelVersion>4.0.0</modelVersion>
>
> <packaging>nar</packaging>
>     <name>Module: example</name>
>     <groupId>narexample</groupId>
>     <artifactId>com.exmaple</artifactId>
>     <version>0.1-SNAPSHOT</version>
>
>     <build>
>     <pluginManagement>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-nar-plugin</artifactId>
>                 <version>2.1-SNAPSHOT</version>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <libraries>
>                         <library>
>                             <type>shared</type>
>                         </library>
>                     </libraries>
>                     <tests>
>                         <test>
>                             <name>bruch_test</name>
>                             <link>static</link>
>                         </test>
>                     </tests>
>                 </configuration>
>             </plugin>
>         </plugins>
>         </pluginManagement>
>     </build>
> </project>
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-nar-plugin-Issue-tp5754838.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to