You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by marceloverdijk <ma...@gmail.com> on 2011/12/06 09:10:05 UTC

Custom formatter with PMD plugin not working..

I'm trying to use a custom rendered with the PMD plugin like:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-pmd-plugin</artifactId>
    <version>2.6</version>
    <configuration>
        <format>my.company.MyRenderer</format>
    </configuration>
</plugin>

The my.company.MyRenderer is part of the project's sources.

When I run mvn pmd:pmd I get a ClassNotFoundException.

I wonder what the problem is.


What I'm trying to accomplish is to have the custom renderer store the
results in a database.


Cheers,
Marcel

--
View this message in context: http://maven.40175.n5.nabble.com/Custom-formatter-with-PMD-plugin-not-working-tp5051361p5051361.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Custom formatter with PMD plugin not working..

Posted by marceloverdijk <ma...@gmail.com>.
Thanks Olivier,

I already tried this before but initially this did not work.
After adding the dependency explicitly to the maven pmd plugin it worked.


Next step for me is to figure out how to use this custom renderer only for a
certain maven profile.

--
View this message in context: http://maven.40175.n5.nabble.com/Custom-formatter-with-PMD-plugin-not-working-tp5051361p5052167.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Custom formatter with PMD plugin not working..

Posted by Olivier Lamy <ol...@apache.org>.
Hello,
The best could be moving your custom renderer to a separate artifact
(as it you will able to share/use it in other projects).
And add this new artifact in the dependencies section of the plugin.
Just an idea (not tested :-) )

2011/12/6 marceloverdijk <ma...@gmail.com>:
> I'm trying to use a custom rendered with the PMD plugin like:
>
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-pmd-plugin</artifactId>
>    <version>2.6</version>
>    <configuration>
>        <format>my.company.MyRenderer</format>
>    </configuration>
> </plugin>
>
> The my.company.MyRenderer is part of the project's sources.
>
> When I run mvn pmd:pmd I get a ClassNotFoundException.
>
> I wonder what the problem is.
>
>
> What I'm trying to accomplish is to have the custom renderer store the
> results in a database.
>
>
> Cheers,
> Marcel
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Custom-formatter-with-PMD-plugin-not-working-tp5051361p5051361.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org