[ 
http://jira.codehaus.org/browse/MCLIRR-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121289
 ] 

werner mueller commented on MCLIRR-7:
-------------------------------------

hallo

i have the same issue with 2.2-snapshot (i deleted the stable version from 
local mvn repos and installed clirr from trunk):

$ mvn clean clirr:check -DcomparisonVersion=2007.2.11
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'clirr'.
[INFO] ------------------------------------------------------------------------
[INFO] Building edoras-core
[INFO]    task-segment: [clean, clirr:check]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
/home/mvn/releases/edoras-trunk/ch/edoras/edoras.core/target
[INFO] Preparing clirr:check
[INFO] [edoras-banner-echo:echo {execution: default}]
[INFO] [edoras-stringreplace:replace {execution: default}]
[INFO]    1 string(s) replaced within file: 'DefaultBrandingConstants.java'.
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1053 source files to 
/home/mvn/releases/edoras-trunk/ch/edoras/edoras.core/target/classes
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] /data/bin/java/j2sdk1.4.2_15/jre
     [echo] ----------- build server stub file ------------
     [rmic] RMI Compiling 1 class to 
/home/mvn/releases/edoras-trunk/ch/edoras/edoras.core/target/classes
     [echo] ----------- build session facade stub file ------------
     [rmic] RMI Compiling 1 class to 
/home/mvn/releases/edoras-trunk/ch/edoras/edoras.core/target/classes
[INFO] Executed tasks
[INFO] [clirr:check]
[INFO] Comparing to version: 2007.2.11
java.lang.ClassNotFoundException: javax.ejb.EJBObject not found.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at 
org.apache.bcel.classfile.JavaClass.getAllInterfaces(JavaClass.java:808)
        at 
net.sf.clirr.core.internal.bcel.BcelJavaType.getAllInterfaces(BcelJavaType.java:78)
        at 
net.sf.clirr.core.internal.checks.InterfaceSetCheck.check(InterfaceSetCheck.java:58)
        at net.sf.clirr.core.Checker.runClassChecks(Checker.java:190)
        at net.sf.clirr.core.Checker.reportDiffs(Checker.java:136)
        at 
org.codehaus.mojo.clirr.AbstractClirrMojo.executeClirr(AbstractClirrMojo.java:227)
        at 
org.codehaus.mojo.clirr.AbstractClirrMojo.executeClirr(AbstractClirrMojo.java:173)
        at 
org.codehaus.mojo.clirr.ClirrCheckMojo.execute(ClirrCheckMojo.java:68)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Fri Jan 25 16:07:23 GMT+01:00 2008
[INFO] Final Memory: 19M/127M
[INFO] ------------------------------------------------------------------------

the only non standard dependency is:
<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-j2ee_1.4_spec</artifactId>
    <scope>provided</scope>
</dependency>

is it me doing something wrong or did i check out the wrong clirr version?

thanks :)
regards

werner



> Fail's checking if dependencies are declared as optional
> --------------------------------------------------------
>
>                 Key: MCLIRR-7
>                 URL: http://jira.codehaus.org/browse/MCLIRR-7
>             Project: Maven 2.x Clirr Plugin
>          Issue Type: Bug
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>            Assignee: Jochen Wiedmann
>             Fix For: 2.2
>
>
> If a dependency is declared optional - and classes in it are either extended 
> or elsewise supposed to be checked by clirr, it fails with a 
> ClassNotFoundException
>       java.lang.ClassNotFoundException: 
> org.springframework.web.servlet.HandlerInterceptor not found.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] null
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>       at 
> org.apache.bcel.classfile.JavaClass.getAllInterfaces(JavaClass.java:808)
>       at 
> net.sf.clirr.core.internal.bcel.BcelJavaType.getAllInterfaces(BcelJavaType.java:78)
>       at 
> net.sf.clirr.core.internal.checks.InterfaceSetCheck.check(InterfaceSetCheck.java:58)
>       at net.sf.clirr.core.Checker.runClassChecks(Checker.java:190)
>       at net.sf.clirr.core.Checker.reportDiffs(Checker.java:136)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to