0

Is there any tag name available to do this?

I tried using include tag in pom.xml for including a file in local. However, while building a jar it didn't work.

Kevin Panko
  • 8,356
  • 19
  • 50
  • 61
ASP
  • 1
  • 2

2 Answers2

0

I think what you are looking for is a part of maven-jar-plugin, unless you mean additional jar, then you can add it using dependency.

Please look here: Maven : add external resources

Community
  • 1
  • 1
szefuf
  • 500
  • 3
  • 14
0

You just need to add dependency in your pom.xml.

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>4.1.5.RELEASE</version>
</dependency>

groupId defines .jar files group

version is the version number of the file.

You can find the maven repository that you need on this site: http://mvnrepository.com/

The IDE is gonna start to generate your file after paste the maven dependency code in the pom.xml

krezus
  • 1,281
  • 1
  • 13
  • 29