Oh I see. But this is not very "maven" like and is causing Intellij not to "see" the Ansi class. I think it's still better to explicitly declare all dependencies, but it's no big deal.
On Nov 5, 2010, at 5:04 PM, Guillaume Nodet wrote: > Well, actually, org.apache.karaf.shell.console jar has been turned > into a standalone jar so it embeds jansi and jline, gogo and hawtjni, > so I think that's why there's no need for additional dependnecies. > > On Fri, Nov 5, 2010 at 21:55, Ming Fang <[email protected]> wrote: >> It appears that org.apache.karaf.admin.internal.AdminServiceImpl.java in >> module org.apache.karaf.admin.core needs org.fusesource.jansi.Ansi. >> However the pom file does not have a dependency it like this >> <dependency> >> <groupId>org.sonatype.jline</groupId> >> <artifactId>jline</artifactId> >> <scope>provided</scope> >> </dependency> >> >> I suspect it currently compiles due to a bug in the maven compiler plugin >> since it is incorrectly picking up the above dependency transitively from >> org.apache.karaf.shell.console. >> >> --ming >> >> > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com
