You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Girish Nagaraj <gi...@gmail.com> on 2005/12/09 11:42:46 UTC

How to upgrade the checkstyle plugin of Maven 1.x to CheckStyle4.0

Hello,

Current checkstyle plugin available with Maven 1.1 beta 2 errors out when
the code contains java generics.

Checkstyle 4.0 supports generics.

Is there a way I can change the plugin or get a new version of the plugin
for Maven 1.x so that it uses CheckStyle 4.0?

Thanks,
Girish

Re: How to upgrade the checkstyle plugin of Maven 1.x to CheckStyle4.0

Posted by Girish Nagaraj <gi...@gmail.com>.
Lukas,

Thanks for your help. I could get Checkstyle 3.0 plugin to work with this
command.

I also found that checkstyle 3.0 plugin is also part of Maven 1.1beta3. I
could get it working from a snapshot I recieved from Arnaud (on the thread
"Javadoc warnings report..")

Nice to see both javadoc report and checkstyle for generics working fine
with beta3.

Thanks for your help,
Girish

On 12/10/05, Lukas Theussl <lt...@apache.org> wrote:
>
> For non-snapshot dependencies, you also have to include the main ibiblio
> reopository in the repo arg:
>
> maven plugin:download -DartifactId=maven-checkstyle-plugin
> -DgroupId=maven -Dversion=3.0-SNAPSHOT
> -Dmaven.repo.remote=http://cvs.apache.org/repository,
> http://www.ibiblio.org/maven
>
>
> HTH,
> -Lukas
>
>
> Girish Nagaraj wrote:
> > Lukas,
> >
> > Thanks for your help.
> > I tried downloading the 3.0 plugin, but maven failed to download (though
> > both my project.properties and the command line contained proxy details)
> >
> > C:\Temp\mtest>maven plugin:download -DartifactId=maven-checkstyle-plugin
> > -Dgroup
> > Id=maven -Dversion=3.0-SNAPSHOT -
> > Dmaven.repo.remote=http://cvs.apache.org/reposi
> > tory -Dmaven.proxy.host=proxy.mycomp.com -Dmaven.proxy.port=80
> >  __  __
> > |  \/  |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-1
> >
> > Attempting to download commons-jelly-tags-interaction-1.0.jar.
> > WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar.
> > Attempting to download jdom-b10.jar.
> > WARNING: Failed to download jdom-b10.jar.
> > The build cannot continue because of the following unsatisfied
> dependencies:
> >
> > commons-jelly-tags-interaction-1.0.jar
> > jdom-b10.jar
> >
> > Any suggestions to overcome this issue?
> >
> > Thanks,
> > Girish
> >
> > On 12/9/05, Lukas Theussl <lt...@apache.org> wrote:
> >
> >>The upcoming checkstyle-plugin-3.0 uses Checkstyle 4.0. A snapshot is
> >>available for testing:
> >>
> >>
> >>maven plugin:download -DartifactId=maven-checkstyle-plugin
> >>-DgroupId=maven -Dversion=3.0-SNAPSHOT
> >>-Dmaven.repo.remote=http://cvs.apache.org/repository
> >>
> >>-Lukas
> >>
> >>
> >>
> >>Girish Nagaraj wrote:
> >>
> >>>Hello,
> >>>
> >>>Current checkstyle plugin available with Maven 1.1 beta 2 errors out
> >>
> >>when
> >>
> >>>the code contains java generics.
> >>>
> >>>Checkstyle 4.0 supports generics.
> >>>
> >>>Is there a way I can change the plugin or get a new version of the
> >>
> >>plugin
> >>
> >>>for Maven 1.x so that it uses CheckStyle 4.0?
> >>>
> >>>Thanks,
> >>>Girish
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to upgrade the checkstyle plugin of Maven 1.x to CheckStyle4.0

Posted by so...@gmail.com.
I tried downloading this for maven2, but got an error saying that the
plugin:download goal was not found. What are the magic words to upgrade this
plugin under maven2? Many thanks,

sockmonk

On 12/10/05, Lukas Theussl <lt...@apache.org> wrote:
>
> For non-snapshot dependencies, you also have to include the main ibiblio
> reopository in the repo arg:
>
> maven plugin:download -DartifactId=maven-checkstyle-plugin
> -DgroupId=maven -Dversion=3.0-SNAPSHOT
> -Dmaven.repo.remote=http://cvs.apache.org/repository,
> http://www.ibiblio.org/maven
>
>
> HTH,
> -Lukas
>
>
> Girish Nagaraj wrote:
> > Lukas,
> >
> > Thanks for your help.
> > I tried downloading the 3.0 plugin, but maven failed to download (though
> > both my project.properties and the command line contained proxy details)
> >
> > C:\Temp\mtest>maven plugin:download -DartifactId=maven-checkstyle-plugin
> > -Dgroup
> > Id=maven -Dversion=3.0-SNAPSHOT -
> > Dmaven.repo.remote=http://cvs.apache.org/reposi
> > tory -Dmaven.proxy.host=proxy.mycomp.com -Dmaven.proxy.port=80
> >  __  __
> > |  \/  |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-1
> >
> > Attempting to download commons-jelly-tags-interaction-1.0.jar.
> > WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar.
> > Attempting to download jdom-b10.jar.
> > WARNING: Failed to download jdom-b10.jar.
> > The build cannot continue because of the following unsatisfied
> dependencies:
> >
> > commons-jelly-tags-interaction-1.0.jar
> > jdom-b10.jar
> >
> > Any suggestions to overcome this issue?
> >
> > Thanks,
> > Girish
> >
> > On 12/9/05, Lukas Theussl <lt...@apache.org> wrote:
> >
> >>The upcoming checkstyle-plugin-3.0 uses Checkstyle 4.0. A snapshot is
> >>available for testing:
> >>
> >>
> >>maven plugin:download -DartifactId=maven-checkstyle-plugin
> >>-DgroupId=maven -Dversion=3.0-SNAPSHOT
> >>-Dmaven.repo.remote=http://cvs.apache.org/repository
> >>
> >>-Lukas
> >>
> >>
> >>
> >>Girish Nagaraj wrote:
> >>
> >>>Hello,
> >>>
> >>>Current checkstyle plugin available with Maven 1.1 beta 2 errors out
> >>
> >>when
> >>
> >>>the code contains java generics.
> >>>
> >>>Checkstyle 4.0 supports generics.
> >>>
> >>>Is there a way I can change the plugin or get a new version of the
> >>
> >>plugin
> >>
> >>>for Maven 1.x so that it uses CheckStyle 4.0?
> >>>
> >>>Thanks,
> >>>Girish
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
sockmonk

Re: How to upgrade the checkstyle plugin of Maven 1.x to CheckStyle4.0

Posted by Lukas Theussl <lt...@apache.org>.
For non-snapshot dependencies, you also have to include the main ibiblio 
reopository in the repo arg:

maven plugin:download -DartifactId=maven-checkstyle-plugin 
-DgroupId=maven -Dversion=3.0-SNAPSHOT 
-Dmaven.repo.remote=http://cvs.apache.org/repository,http://www.ibiblio.org/maven


HTH,
-Lukas


Girish Nagaraj wrote:
> Lukas,
> 
> Thanks for your help.
> I tried downloading the 3.0 plugin, but maven failed to download (though
> both my project.properties and the command line contained proxy details)
> 
> C:\Temp\mtest>maven plugin:download -DartifactId=maven-checkstyle-plugin
> -Dgroup
> Id=maven -Dversion=3.0-SNAPSHOT -
> Dmaven.repo.remote=http://cvs.apache.org/reposi
> tory -Dmaven.proxy.host=proxy.mycomp.com -Dmaven.proxy.port=80
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-1
> 
> Attempting to download commons-jelly-tags-interaction-1.0.jar.
> WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar.
> Attempting to download jdom-b10.jar.
> WARNING: Failed to download jdom-b10.jar.
> The build cannot continue because of the following unsatisfied dependencies:
> 
> commons-jelly-tags-interaction-1.0.jar
> jdom-b10.jar
> 
> Any suggestions to overcome this issue?
> 
> Thanks,
> Girish
> 
> On 12/9/05, Lukas Theussl <lt...@apache.org> wrote:
> 
>>The upcoming checkstyle-plugin-3.0 uses Checkstyle 4.0. A snapshot is
>>available for testing:
>>
>>
>>maven plugin:download -DartifactId=maven-checkstyle-plugin
>>-DgroupId=maven -Dversion=3.0-SNAPSHOT
>>-Dmaven.repo.remote=http://cvs.apache.org/repository
>>
>>-Lukas
>>
>>
>>
>>Girish Nagaraj wrote:
>>
>>>Hello,
>>>
>>>Current checkstyle plugin available with Maven 1.1 beta 2 errors out
>>
>>when
>>
>>>the code contains java generics.
>>>
>>>Checkstyle 4.0 supports generics.
>>>
>>>Is there a way I can change the plugin or get a new version of the
>>
>>plugin
>>
>>>for Maven 1.x so that it uses CheckStyle 4.0?
>>>
>>>Thanks,
>>>Girish
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
> 
>>
> 

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


Re: How to upgrade the checkstyle plugin of Maven 1.x to CheckStyle4.0

Posted by Girish Nagaraj <gi...@gmail.com>.
Lukas,

Thanks for your help.
I tried downloading the 3.0 plugin, but maven failed to download (though
both my project.properties and the command line contained proxy details)

C:\Temp\mtest>maven plugin:download -DartifactId=maven-checkstyle-plugin
-Dgroup
Id=maven -Dversion=3.0-SNAPSHOT -
Dmaven.repo.remote=http://cvs.apache.org/reposi
tory -Dmaven.proxy.host=proxy.mycomp.com -Dmaven.proxy.port=80
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-1

Attempting to download commons-jelly-tags-interaction-1.0.jar.
WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar.
Attempting to download jdom-b10.jar.
WARNING: Failed to download jdom-b10.jar.
The build cannot continue because of the following unsatisfied dependencies:

commons-jelly-tags-interaction-1.0.jar
jdom-b10.jar

Any suggestions to overcome this issue?

Thanks,
Girish

On 12/9/05, Lukas Theussl <lt...@apache.org> wrote:
>
> The upcoming checkstyle-plugin-3.0 uses Checkstyle 4.0. A snapshot is
> available for testing:
>
>
> maven plugin:download -DartifactId=maven-checkstyle-plugin
> -DgroupId=maven -Dversion=3.0-SNAPSHOT
> -Dmaven.repo.remote=http://cvs.apache.org/repository
>
> -Lukas
>
>
>
> Girish Nagaraj wrote:
> > Hello,
> >
> > Current checkstyle plugin available with Maven 1.1 beta 2 errors out
> when
> > the code contains java generics.
> >
> > Checkstyle 4.0 supports generics.
> >
> > Is there a way I can change the plugin or get a new version of the
> plugin
> > for Maven 1.x so that it uses CheckStyle 4.0?
> >
> > Thanks,
> > Girish
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to upgrade the checkstyle plugin of Maven 1.x to CheckStyle4.0

Posted by Lukas Theussl <lt...@apache.org>.
The upcoming checkstyle-plugin-3.0 uses Checkstyle 4.0. A snapshot is 
available for testing:


maven plugin:download -DartifactId=maven-checkstyle-plugin
-DgroupId=maven -Dversion=3.0-SNAPSHOT
-Dmaven.repo.remote=http://cvs.apache.org/repository

-Lukas



Girish Nagaraj wrote:
> Hello,
> 
> Current checkstyle plugin available with Maven 1.1 beta 2 errors out when
> the code contains java generics.
> 
> Checkstyle 4.0 supports generics.
> 
> Is there a way I can change the plugin or get a new version of the plugin
> for Maven 1.x so that it uses CheckStyle 4.0?
> 
> Thanks,
> Girish
> 

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