简体   繁体   中英

Include a .jar with maven using eclipse

I know this could be a duplicate of many questions, but i cannot really understand how does maven works. Basically i want to include a dependency on my final project, but i cannot understand how. For the moment; this is my pom.xml

 <dependency>
<groupId>bla.bla</groupId>
<artifactId>bla-bla-bla</artifactId>
<version>aVersion</version>
<scope>shade</scope>
</dependency>

(Not the original pom.xml, i just hided names)

But when i export it, open it with winrar i cannot see the dependency included in my .jar. Anyone would be able to help?

Eclipse automatically export the jars from the maven repository. you can manually build this project from command line mvn clean install -U and check the logs whether the above jar is getting downloaded or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM