0

I have following entries in my pom.xml.

<dependency>
    <groupId>org.apache.mina</groupId>
    <artifactId>mina-core</artifactId>
    <version>2.0.4</version>
</dependency>
<dependency>
    <groupId>org.apache.mina</groupId>
    <artifactId>mina-filter-compression</artifactId>
    <version>2.0.7</version>
</dependency>

I am getting "Missing artifact org.apache.mina:mina-core:bundle: 2.0.7" error in my pom.xml .

Could someone please help in resolving this error.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
pavan
  • 979
  • 3
  • 11
  • 21

2 Answers2

4

Add to your pom file:

<plugins>
    <plugin>
         <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
    </plugin>
</plugins>

Eeji
  • 1,648
  • 3
  • 17
  • 22
0

Addition to the accepted answer, an explanation why this is necessary:

The various MINA dependencies rely on OSGi bundle artifacts rather than standard JAR files.

As such, it's necessary to add support for these bundle to Maven using the Apache Felix maven-bundle-plugin.

See https://stackoverflow.com/a/5409602 for a good explanation of OSGi bundles, with links to more info.

Mahe
  • 759
  • 1
  • 6
  • 21