Failed to resolve module org.mule.modules:mule-module-apikit-odata:2.0.1

Failed to resolve module org.mule.modules:mule-module-apikit-odata:2.0.1

Are you receiving errors in Anypoint Studio while deploying with mule-module-apikit-odata:2.0.1? Please follow the solution given below for OData Extension 2.0.0 in Mulesoft.



Failed to resolve module org.mule.modules:mule-module-apikit-odata:2.0.1 (hover for more details or open this problem's Properties)
Resolving dependency org.mule.modules:mule-module-apikit-odata found the following exceptions:
java.lang.IllegalStateException: no exceptions recorded but no modules resolved either
at org.mule.tooling.core.module.internal.runner.DownloadTask.doRun(DownloadTask.java:122)
at org.mule.tooling.core.module.internal.runner.Task.run(Task.java:65)
at org.mule.tooling.core.module.internal.runner.DownloadTask.run(DownloadTask.java:1)
at org.mule.tooling.core.module.internal.runner.SingleDownloadTask.run(SingleDownloadTask.java:1)
at org.mule.tooling.core.module.internal.runner.ArtifactResolvingRunner$ArtifactJob.run(ArtifactResolvingRunner.java:212)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

Solution:

1.Open you project in Anypoint Studio.
2.Open pom.xml located in the project explorer.
<repository>
<id>jboss-releases</id>
<name>JBoss Releases</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
<layout>default</layout>
</repository>

3. Save your project.
4. Run `mvn clean package`, from the project directory of your terminal and see that your build will be successful.
5. If the Build is successful, go back to the Studio and Run the application.
6. Now your application should be deployed successfully.

Summary:

Adding the right dependency in the project pom.xml file should resolve the error.
If you are interested to know more about common issues we face in Mulesoft and How-to articles. Stay tuned to our blog for more updates.

Post a Comment

0 Comments