aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Sonar - Native Plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Sonar - Native Plugin" Watch "Sonar - Native Plugin" New topic
Author

Sonar - Native Plugin

Suhas Saheer
Greenhorn

Joined: Mar 23, 2009
Posts: 17

Hi All,

I have successfully integrate a Java Project with the Sonar Server and was able to view the dashboard.
Now I am trying to integrate C/C++ projects with Sonar.
I read from the net about "native plugin (nar plugin)" and we need to create a nar file
(hence i mentioned <packaging>nar</packaging> in my pom.xml)

But when I try to run 'mvn clean install', it shows BUILD FAILURE with the message
“ Cannot find life cycle mapping for packaging: 'nar'. “

It would be great help if somebody can throw some light into this issue.

Thanks in advance,
Suhas


Thanks and Regards,
Suhas Saheer
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Maven uses the packaging type to determine how to go about building the artifact. The error means that Maven does not know how to build a "nar" artifact.

What plugin are you using to build the "nar" artifact? Did you remember to add the <extensions> argument to that plugin?

If this doesn't help, please post the pom.xml.


JBoss In Action
Suhas Saheer
Greenhorn

Joined: Mar 23, 2009
Posts: 17

Hi,

I used freehep nar plugin and later i tried with codehaus mojo nar plugin as well.
Both couldn't build.

I did use <extension>true</extension>

Please see below the pom.xml for the freehep plugin


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Wait a minute, the pom.xml you posted has this packaging type:



Are you sure your posted the correct pom.xml? I expect that your pom.xml would have had this instead:



Also, take the plugins out of the <pluginManagement> section. I think that section is only for submodules, and your pom.xml doesn't have any submodules nor is it configured as a parent POM.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sonar - Native Plugin