0

The WEB-INF\lib folder in our WAR file should serve as a flatDir repository for our users. I presume I need to supply a POM file for each JAR, so that transitive dependencies would be resolved.

How do I copy POM files for each JAR to WEB-INF\lib folder in my WAR file?

My root project script:

apply plugin: 'war'

jar.enabled = false
war {
    dependencies {
        subprojects.each { runtime it }

        providedCompile servlet
    }
}
isobretatel
  • 3,812
  • 7
  • 34
  • 49

1 Answers1

1

Please see the flatDir documentation which states

Note that this type of repository does not support any meta-data formats like Ivy XML or Maven POM files.

If you want to download all dependencies (and pom files) to a maven directory structure you can use this gist. To download javadocs and sources too see this answer

Community
  • 1
  • 1
lance-java
  • 25,497
  • 4
  • 59
  • 101