It's not that maven cannot find mina-http. It is the mina-core:bundle:2.0.0 that maven cannot find, which makes sense as that bundle package is not in maven central. Either the pom of mina-http should be updated, or that bundle should be pushed to maven central.
On Sat, Nov 15, 2014 at 4:59 AM, Emmanuel Lécharny <[email protected]> wrote: > Le 14/11/14 20:29, Jianbao (Jim) Tao a écrit : > > When using the following dependency in maven: > > <dependency> > > <groupId>org.apache.mina</groupId> > > <artifactId>mina-http</artifactId> > > <version>2.0.9</version> > > </dependency> > > > > I got an error like below: > > Could not find artifact org.apache.mina:mina-core:bundle:2.0.9 > > > > I checked the pom of mina-http, looks like the type element is giving the > > trouble, as in > > <dependency> > > <groupId>${project.groupId}</groupId> > > <artifactId>mina-core</artifactId> > > <version>${project.version}</version> > > <type>bundle</type> > > </dependency> > > > > If I exclude mina-core in the dependency and add it separately, things > will > > be fine. However, it is annoying that I have to add that exclusion. > > > > Jim > > > It's weird, the package is present on the maven repository : > > > http://search.maven.org/#search|gav|1|g%3A%22org.apache.mina%22%20AND%20a%3A%22mina-http%22 >
