Question

how to configure maven to ignore the 'maven' folders in jar files. I have added the jars I want manually to my local repo, however maven keeps failing due to these maven folders in jars. I can go in and delete the 'maven' folder from META-INF manually jar by jar and I make progress but it takes up significant time to do that to every jar file. Is there a setting to get maven to ignore these folders in jar files?

Was it helpful?

Solution

if run mvn:dependency it brings up the list of jar files it will reference from this folder. I made it a habit of deleting this folder before every jar and they no longer show up in mvn:dependency is run and doesn't try to download them. It would be nice if they added a maven command to ignore these folders. Currently, there is no way to get maven to ignore them without deleting this folder. This is for anyone setting up maven repo on network not connecting to the internet - for example work place build which can not rely on insecure or ever changing internet repos

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top