From issues-return-100090-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Mon Jan 26 08:16:44 2015 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83C0FC392 for ; Mon, 26 Jan 2015 08:16:44 +0000 (UTC) Received: (qmail 93197 invoked by uid 500); 26 Jan 2015 08:16:44 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 93148 invoked by uid 500); 26 Jan 2015 08:16:44 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 93137 invoked by uid 99); 26 Jan 2015 08:16:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2015 08:16:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [199.193.192.100] (HELO codehaus01.managed.contegix.com) (199.193.192.100) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2015 08:16:40 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 6B988B118D for ; Mon, 26 Jan 2015 02:16:19 -0600 (CST) Date: Mon, 26 Jan 2015 02:16:19 -0600 (CST) From: "Jochen Ehret (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MPMD-174) Using a permalink from Sonar as a ruleset does not work MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MPMD-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=361774#comment-361774 ] Jochen Ehret commented on MPMD-174: ----------------------------------- Can you please tell us when the maven-pmd-plugin 3.4 will be released and available on Maven Central? We've just migrated to SonarQube 4.5.1 and now lots of users get the "[WARNING] Failure executing PMD" problem mentioned above, so we really need to update. Thanks and Best Regards, Jochen. > Using a permalink from Sonar as a ruleset does not work > ------------------------------------------------------- > > Key: MPMD-174 > URL: https://jira.codehaus.org/browse/MPMD-174 > Project: Maven PMD Plugin > Issue Type: Bug > Reporter: Cremers stijn > Assignee: Michael Osipov > Fix For: 3.4 > > Attachments: MPMD-174-2.patch, MPMD-174-3.patch, MPMD-174-4.patch, MPMD-174.patch, MPMD-174.patch, Sonar's main page.jpg, test.log > > > I am trying to use a permalink from sonar with the pmd configuration from sonar as a rulest in the maven-pmd-plugin. > This is my maven configuration: > > org.apache.maven.plugins > maven-pmd-plugin > 3.0.1 > > > http://my-tools.mycompany.com/sonar/profiles/export?format=pmd&language=java&name=MyProfile > > > > > pmd > check > > > > But i get the following error when i run "mvn clean install": > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.0.1:pmd (pmd) on project my-pmd: > An error has occurred in PMD Report report generation. Could not find resource 'rulesets/http://my/tools.mycompany.com/sonar/profiles.xml'. -> [Help 1] > I have tried to use the link from the sonar demo site: > > org.apache.maven.plugins > maven-pmd-plugin > 3.0.1 > > > http://nemo.sonarqube.org/profiles/export?format=pmd&language=java&name=Nemo > > > > > pmd > check > > > > But then i get the following error: > [INFO] --- maven-pmd-plugin:3.0.1:pmd (pmd) @ my-pmd --- > [WARNING] Unable to locate Source XRef to link to - DISABLED > [WARNING] Failure executing PMD: Couldn't find the class White spaces are required between publicId and systemId. > java.lang.RuntimeException: Couldn't find the class White spaces are required between publicId and systemId. > at net.sourceforge.pmd.RuleSetFactory.classNotFoundProblem(RuleSetFactory.java:244) > at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:238) > at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:161) > at net.sourceforge.pmd.RuleSetFactory.createRuleSets(RuleSetFactory.java:126) > at net.sourceforge.pmd.RuleSetFactory.createRuleSets(RuleSetFactory.java:111) > at net.sourceforge.pmd.processor.AbstractPMDProcessor.createRuleSets(AbstractPMDProcessor.java:56) > at net.sourceforge.pmd.processor.MonoThreadProcessor.processFiles(MonoThreadProcessor.java:41) > at net.sourceforge.pmd.PMD.processFiles(PMD.java:271) > at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:296) > at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194) > at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:168) > at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190) > at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:99) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > 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.MojoExecutor.executeForkedExecutions(MojoExecutor.java:364) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198) > 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.buildProject(LifecycleModuleBuilder.java:84) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357) -- This message was sent by Atlassian JIRA (v6.1.6#6162)