Excellent news - I'll try it out later today.
So with this and the maven.checkstyle.properties property I can specify my own jar and
my own list of checks without changing the CS plugin at all? Just what I needed!
Cheers,
Jason
-----Original Message-----
From: Vincent Massol [mailto:[EMAIL PROTECTED]
Sent: 08 June 2004 14:26
To: 'Maven Users List'
Subject: RE: Can I change plugin dependencies locally?
Hi Jason,
Yes, there is a way (Actually, it should be nice to document it in the
checkstyle plugin documentation):
<preGoal name="checkstyle:init">
<ant:path id="maven.dependency.classpath.checkstyle"
location="${pom.getDependencyPath('mygroup:myartifact')}"/>
<maven:addPath id="maven.dependency.classpath"
refid="maven.dependency.classpath.checkstyle"/>
</preGoal>
Hope it helps,
-Vincent
> -----Original Message-----
> From: Morris, Jason [IT] [mailto:[EMAIL PROTECTED]
> Sent: 08 June 2004 11:11
> To: Maven User Group (E-mail)
> Subject: Can I change plugin dependencies locally?
>
> I am using Checkstyle, but I am using my own custom Checks. This means
> Checkstyle has to run with mychecks.jar in the classpath. The only way
I
> can do this is to edit the project.xml for the Checkstyle plugin and
add
> mychecks as a dependency.
>
> Is there a way to do this without "hacking" the plugin itself? Can I
> override a plugin's dependencies from Maven.xml or similar?
>
> Any ideas appreciated,
>
> Jason
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]