Vincent, After I changed antlr plugin to use 2.7.2, I run into this problem:
XXX.java: 0: Got an exception - java.lang.ClassCastException What is the problem? Willie > > -----Original Message----- > > From: Willie Vu [mailto:[EMAIL PROTECTED] > > Sent: 12 June 2003 04:54 > > To: 'Maven Users List' > > Subject: RE: Problem with bew Checkstyle plugin > > > > antlr plugin is the only place where antlrall-2.7.1.jar is used. I > think > > maven-jdepend-plugin:report goal makes use of the antlr plugin and > thus > > antlrall-2.7.1.jar is added to the classpath. > > > > Is it possible to upgrade antlr plugin to use antlr-2.7.2.jar? > > That's one quick solution but it doesn't really fix the bug. > > Ideally, every plugin should run in its own sandbox, so > changes to the classpath from one plugin should not propagate > to other plugins. I've opened a bug report (476). > > Thanks > -Vincent > > > > > -- > > Willie Vu > > > > > > > > > -----Original Message----- > > > From: Vincent Massol [mailto:[EMAIL PROTECTED] > > > Sent: Friday, June 06, 2003 3:54 > > > To: 'Maven Users List' > > > Subject: RE: Problem with bew Checkstyle plugin > > > > > > > > > I've done a full search for "antlr" in maven sources and the only > > > place it is used are in the antlr plugin and in the > checkstyle one. > > > I can't any place calling the antlr plugin. > > > > > > Thus I don't know where the addition of antlr to the classpath is > done > > > > > > Any idea? > > > > > > Thanks > > > -Vincent > > > > > > > -----Original Message----- > > > > From: Willie Vu [mailto:[EMAIL PROTECTED] > > > > Sent: 06 June 2003 09:25 > > > > To: 'Maven Users List' > > > > Subject: RE: Problem with bew Checkstyle plugin > > > > > > > > Vincent, > > > > > > > > I'm using the latest CVS HEAD. > > > > > > > > This is all the reports in my project.xml: > > > > > > > > <reports> > > > > <report>maven-faq-plugin</report> > > > > <report>maven-jdepend-plugin</report> > > > > <report>maven-checkstyle-plugin</report> > > > > <report>maven-changelog-plugin</report> > > > > <report>maven-developer-activity-plugin</report> > > > > <report>maven-file-activity-plugin</report> > > > > <report>maven-license-plugin</report> > > > > <report>maven-javadoc-plugin</report> > > > > <report>maven-jxr-plugin</report> > > > > <!--report>maven-junit-report-plugin</report--> > > > > <report>maven-linkcheck-plugin</report> > > > > <report>maven-tasklist-plugin</report> > > > > </reports> > > > > > > > > -- > > > > Willie Vu > > > > > > > > > > > > > -----Original Message----- > > > > > From: Vincent Massol [mailto:[EMAIL PROTECTED] > > > > > Sent: Friday, June 06, 2003 3:13 > > > > > To: 'Maven Users List' > > > > > Subject: RE: Problem with bew Checkstyle plugin > > > > > > > > > > > > > > > Ahah! Thanks Willie, good catch. However, I've just had a look > at > > > > > the jdepend plugin and I can't see any antlr jar there. > > > > > > > > > > I've also also run "maven maven-jdepend-plugin:report" > > > and it is not > > > > > added to maven.dependency.classpath so I believe it might > > > not be the > > > > > jdepend plugin which is at fault. > > > > > > > > > > Are you using the latest CVS version of Maven? > > > > > > > > > > Thanks > > > > > -Vincent > > > > > > > > > > > -----Original Message----- > > > > > > From: Willie Vu [mailto:[EMAIL PROTECTED] > > > > > > Sent: 06 June 2003 06:59 > > > > > > To: 'Maven Users List' > > > > > > Subject: RE: Problem with bew Checkstyle plugin > > > > > > > > > > > > I found out that the maven-jdepend-plugin:report goal adds > > > > > antlrall- > > > > > > 2.7.1.jar to the classpath: > > > > > > > > > > > > maven-jdepend-plugin:report: > > > > > > [DEBUG] Adding reference: maven.dependency.classpath -> > > > > > > E:\java\maven\repository\ant\jars\ant- > > > > > > 1.5.1.jar;E:\java\maven\repository\commons > > > > > > -jelly\jars\commons-jelly-tags-antlr- > > > > > > 20030211.143720.jar;E:\java\maven\repositor > > > > > > y\commons-lang\jars\commons-lang-1.0- > > > > > > b1.1.jar;E:\java\maven\repository\antlr\jar > > > > > > s\antlrall-2.7.1.jar > > > > > > > > > > > > Note that I put maven-jdepend-plugin before > > > > > maven-checkstyle-plugin in > > > > > > project.xml. > > > > > > > > > > > > <reports> > > > > > > <report>maven-faq-plugin</report> > > > > > > <report>maven-jdepend-plugin</report> > > > > > > <report>maven-checkstyle-plugin</report> > > > > > > ... > > > > > > </reports> > > > > > > > > > > > > So, this is the reason why checkstyle report is screwed up > > > > > when "maven > > > > > > site" is executed. When I move > > > > > > <report>maven-checkstyle-plugin</report> before > > > > > > <report>maven-jdepend-plugin</report>, it works fine. > > > > > > > > > > > > -- > > > > > > Willie Vu > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Vincent Massol [mailto:[EMAIL PROTECTED] > > > > > > > Sent: Thursday, June 05, 2003 1:43 > > > > > > > To: 'Maven Users List' > > > > > > > Subject: RE: Problem with bew Checkstyle plugin > > > > > > > > > > > > > > > > > > > > > The reason is that you must have Antlr 2.7.1 in your > > > CLASSPATH > > > > > > > somewhere. Make sure also you clean your plugin directory > > > > > to remove > > > > > > > the old version of the checkstyle plugin. > > > > > > > > > > > > > > Thanks > > > > > > > -Vincent > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Willie Vu [mailto:[EMAIL PROTECTED] > > > > > > > > Sent: 05 June 2003 06:17 > > > > > > > > To: [EMAIL PROTECTED] > > > > > > > > Subject: Problem with bew Checkstyle plugin > > > > > > > > > > > > > > > > Checkstyle plugin causes the following error if "maven > site" > > > is > > > > > run. > > > > > > > > > > > > > > > > Got an exception - java.lang.NoSuchFieldError: > > > > > > > tokenTypeToASTClassMap > > > > > > > > (Line 0) > > > > > > > > > > > > > > > > When using "maven checkstyle", the report is fine. > > > > > > > > > > > > > > > > Any clue? > > > > > > > > > > > > > > > > -- > > > > > > > > Willie Vu > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > 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] > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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] > > > > > > > > > > > > > --------------------------------------------------------------------- > > 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]