Quantcast

Getting error while generating PDF using cmd "mvn org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.3:generate"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Getting error while generating PDF using cmd "mvn org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.3:generate"

Katty
This post has NOT been accepted by the mailing list yet.
Please find the logs
Also the url dosent work --> "http://localhost:9000/api/resources?resource=com.ibm.devworks:NumOps&depth=
0&format=xml "

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.ibm.devworks:NumOps:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
iler-plugin is missing. @ line 14, column 9
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Intro to Maven 2 Example 1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-pdfreport-plugin:1.3:generate (default-cli) @ NumOps ---
[INFO] No report type provided. Default report selected (Team workbook)
[INFO] Retrieving project info for com.ibm.devworks:NumOps
[ERROR] Can┤t access to Sonar or project doesn't exist on Sonar instance. HTTP K
O to http://localhost:9000/api/resources?resource=com.ibm.devworks:NumOps&depth=
0&format=xml
java.io.IOException: Can┤t access to Sonar or project doesn't exist on Sonar ins
tance.
        at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.ja
va:132)
        at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:98
)
        at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:114)
        at org.sonar.report.pdf.PDFReporter.getReport(PDFReporter.java:71)
        at org.sonar.report.pdf.mojo.SonarPDFMojo.execute(SonarPDFMojo.java:162)

        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.500s
[INFO] Finished at: Wed Aug 01 00:27:49 IST 2012
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
'cmd' is not recognized as an internal or external command,
operable program or batch file.
Loading...