score:38
Read carefully the warning message :
The POM for org.raml:jaxrs-code-generator:jar:2.0.0 is missing, no dependency information available
The problem is not the jar, but the pom.xml that is missing.
The pom.xml lists the required dependencies for this jar that Maven will pull during the build and overall the packaging of your application.
So, you may really need it.
Note that this problem may of course occur for other Maven dependencies and the ideas to solve that is always the same.
The Mule website documents very well that in addition to some information related to.
How to solve ?
1) Quick workaround : looking for in the internet the pom.xml
of the artifact
Googling the artifact id, the group id and its version gives generally
interesting results : maven repository links to download it.
In the case of the org.raml:jaxrs-code-generator:jar:2.0.0
dependency, you can download the pom.xml
from the Maven mule repository :
2) Clean workaround for a single Maven project : adding the repository declaration in your pom.
In your case, add the Maven mule repositories :
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
...
<repositories>
<repository>
<id>mulesoft-releases</id>
<name>MuleSoft Repository</name>
<url>http://repository.mulesoft.org/releases/</url>
<layout>default</layout>
</repository>
<repository>
<id>mulesoft-snapshots</id>
<name>MuleSoft Snapshot Repository</name>
<url>http://repository.mulesoft.org/snapshots/</url>
<layout>default</layout>
</repository>
</repositories>
...
</project>
3) Clean workaround for any Maven projects : add the repository declaration in your settings.xml
<profile>
<repositories>
...
<repository>
<id>mulesoft-releases</id>
<name>MuleSoft Repository</name>
<url>http://repository.mulesoft.org/releases/</url>
<layout>default</layout>
</repository>
<repository>
<id>mulesoft-snapshots</id>
<name>MuleSoft Snapshot Repository</name>
<url>http://repository.mulesoft.org/snapshots/</url>
<layout>default</layout>
</repository>
...
</repositories>
</profile>
Note that in some rare cases, the pom.xml
declaring the dependencies is nowhere. So, you have to identify yourself whether the artifact requires dependencies.
score:0
In my case I was using Jade and I was using HTTP repository URL. Changing the Url to HTTPS worked for me.
score:0
In my case the reason was since the remote repo artifact (non-central) had dependencies from the Maven Central in the .pom
file, and the older version of mvn
(older than 3.6.0) was used. So, it tried to check the Maven Central artifacts mentioned in the remote repo's .pom
for the specific artifact I've added to my dependencies and faced the Maven Central http access issue behind the scenes (I believe the same as described there: Maven dependencies are failing with a 501 error - that is about using https access to Maven Central by default and prohibiting the http access).
Using more recent Maven (from 3.1 to 3.6.0) made it use https to check Maven Central repo dependencies mentioned in the .pom
files of the remote repositories and I no longer face the issue.
score:0
Could also be you have enabled: Work offline. In the intellij Maven -> Importing settings.
This was the case for me, I forgot I had this setting enabled.
score:0
I had the same error but not in the same use case. For me i use a multi modules project. But i use mvn clean package
to compile some maven module, in other maven module it display the same error. My solution is that i should use mvn clean install
instead of mvn clean package
package
: will compile your code and also package it. For example, if your pom says the project is a jar, it will create a jar for you when you package it and put it somewhere in the target directory (by default).
install
: will compile and package, but it will also put the package in your local repository. This will make it so other projects can refer to it and grab it from your local repository.
score:0
Search in the repository like https://search.maven.org/ that which version of the package is available.
In some cases, the latest version may not be available in the repo.
score:1
This is my solution, may be it can helps I use IntelliJ IDE. File -> Setting -> Maven -> Importing change JDK for importer to 1.8( you can change to lower, higher)
score:3
If the POM missing warning is of project's self module, the reason is that you are trying to mistakenly build from a sub-module directory. You need to run the build and install command from root directory of the project.
score:3
Another option that can help is to reload the dependencies with
mvn dependency:resolve -U
score:4
You will need to add external Repository to your pom, since this is using Mulsoft-Release
repository not Maven Central
<project>
...
<repositories>
<repository>
<id>mulesoft-releases</id>
<name>MuleSoft Repository</name>
<url>http://repository.mulesoft.org/releases/</url>
<layout>default</layout>
</repository>
</repositories>
...
</project>
score:4
Problem is not with the jar file. Maven is unable to fetch the correct meta data.
Delete the _maven.repositories or _remote.repositories (one of those files will be there) file and build again. Files are located in .m2/repository/path/to/your/repo/
score:20
I had a similar problem quite recently. In my case:
I downloaded an artifact from some less popular Maven repo
This repo dissappeared over this year
Now builds fail, even if I have this artifact and its pom.xml in my local repo
Workaround:
delete _remote.repositories file in your local repo, where this artifact resides. Now the project builds.
Source: stackoverflow.com
Related Query
- "The POM for ... is missing, no dependency information available" even though it exists in Maven Repository
- The POM for ... is missing, no dependency information available
- The POM for org.apache.maven.plugins:maven-war-plugin:jar:3.0 is missing, no dependency information available
- The POM for org.picketlink.distribution:picketlink-jbas7:jar:2.8.0. is missing, no dependency information available
- The POM for org.sonarsource.sonarqube:sonar-check-api:jar:7.0-SNAPSHOT is missing, no dependency information available
- I keep getting "error: cannot find symbol" for two interface classes even though classes are in the same directory
- why the index is starting from 10 even though i had given in { for int i =0;}
- The POM for jar is invalid, transitive dependencies will not be available
- Eclipse says 'Class not found' even though the classes are available
- The POM for com.sun.xml.bind:jaxb-core:jar:2.2.11 is invalid,transitive dependencies (if any) will not be available
- Why is jboss marshalling river jar reported as missing by gwt devmode even though it is included in the classpath
- The project description file (.project) for my project is missing
- "No system images installed for this target" even though Image is installed
- Is the Qt Eclipse integration plugin still available for download?
- IntelliJ vs STS (SpringSource Tool Suite), what am I missing by using one or the other and can I make them feature equivalent for comparsion?
- Missing R.java file even though project cleaned
- ClassNotFoundException even though the jar containing the class is properly present in the classpath
- Eclipse + maven can't open POM even though it exists
- Maven jersey-multipart missing dependency for javax.ws.rs.core.Response
- Eclipse - org.junit cannot be resolved, even though it's in the Maven dependencies
- For which Maven dependency scopes is the dependency included in the compiled project?
- ClassNotFoundException, even though the containing JAR is part of the build
- POM for Maven Compiler Plugin Jar is missing
- Eclipse complaining of missing Junit jar even though it is already in build path
- Eclipse: The SVN synchronization information for 'Project' has become corrupt or does not exist
- Why are there no compatible JREs in the Execution Environments section even though I've added a JDK?
- Why is "Build Project" greyed-out in Eclipse Helios CDT even though the makefile and source exist?
- Eclipse/Ant Making a jar in version 1.9, even though everything seems to be set for 1.8
- Mockito bundle cannot find org.hamcrest package even though Hamcrest is a dependency
- android exception even though the jdom library is there
More Query from same tag
- Source of project errors in Eclipse IDE
- Error : No resource found that matches the given name (at 'icon' with value '@drawable/icon')
- eclipse juno erlide runtime setup issue on mountain lion osx
- Unable to draw in processing language when I integrated it with Eclipse
- i cannot modify my android project's java path
- Aptana PHP editor the (") after { would be used verbally only
- How to run nutch 1.9 in eclipse on windows?
- The application gets stuck at "Configuring OrikaBean mapper". Why?
- Editing a class file in jar
- Difficulty creating an Android app with Java
- How to create new folder in Eclipse Helios CDT with symbolic link?
- Tomcat server not starting when adding a specific servlet
- Eclipse PDE: Exclude test fragments from required plugins
- What's the point of downloading the source jars in a grails project?
- Checking if GPS is enabled in android
- How to retrieve the sandbox of my app using Eclipse from my device?
- Compiler runs class outside build path instead of class inside build path
- Eclipse Repository State Conflict Error
- Android Studio SDK Location Not Found
- MySQLdb Inside Eclipse osx
- Eclipse Plugin Development - Getting information from Team Provider
- How to make RCP toggle button state more visible?
- Exception in thread "main" org.hibernate.TransientObjectException
- Eclipse, GCC, installing them twice?
- Error on Eclipse ADT while creating an Android Application
- How to change a clear case login details in eclipse
- How can I create a custom project layout based on another eclipse plugin?
- Which Eclipse IDE Release works with java version "1.3.1_02"?
- Location of .apk file
- Android SDK and Eclipse: strings.xml graphical view not updating