Hello,

So far I have not idea why this could happen. Could you turn some
debug logging in maven to see why it attempts to load those classes?

Thanks!

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!



On 5 March 2012 19:25, danielowitz <[email protected]> wrote:
>
> I want to use svnkit to enhance a selfwritten maven plugin.
>
> My maven plugin works fine but when i add the svnkit dependency to the
> plugin-pom, i cannot use  the plugin anymore because of
> ClassNotFoundExceptions during the plugin execution eg:
>
> ....
> Caused by: java.lang.ClassNotFoundException:
> org.codehaus.plexus.components.interactivity.Prompter
>        at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>        at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
>        at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
>
>
> I cannot understand how it is possible that the svnkit dependency in my
> plugin-pom can cause such class loader problems! the classes that couldn't
> been loaded (e.g. the promter) are not in any relationship with the svnkit
> or its transitives dependencies...
>
> but if i remove the svnkit dependency then the plugin is working fine
> again...
>
> i can reproduce this problem just by adding this dependecy (even without
> using any class from svnkit)
>
> the svnkit i use (from
> http://maven.tmatesoft.com/content/repositories/releases/ ):
>
>            <dependency>
>                <groupId>org.tmatesoft.svnkit</groupId>
>                <artifactId>svnkit</artifactId>
>                <version>1.3.7</version>
>            </dependency>
>
>
>
> --
> View this message in context: 
> http://old.nabble.com/svnkit-maven-dependecy-causes-class-loader-problems-tp33445615p33445615.html
> Sent from the SVNKit - Users mailing list archive at Nabble.com.
>
>

Reply via email to