The configuration file is {jboss root directory}\.m2\setting.xml
There is a website called mvnrepository.com. It's a search engine for jars, dependencies and repositories.
For example, I am searching for apache fileupload jar in mvnrepository.com. (See screenshot below.)
I chose the latest version.
I copied the dependency, and put it into pom.xml.
In the pom.xml, the following lines are added.
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.1</version>
<scope>compile</scope>
</dependency>
For the maven dependency scope, we can find detail information from here.
If this jar is not in your repository, you may download the jar and put it into your repository if you control it. Or you can right click download (jar) link to find out the repository from here, and add it into your setting.xml.
Note:
If the missing jar is a dependency from a module, then we have to add a new module instead. Reference previous blog.
No comments:
Post a Comment