0

I would like to set several dependencies in my war as provided because theses jar are provided by the server.

So I set my build.gradle like this:

apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'eclipse-wtp'

dependencies {
    compile project(':project1')
    providedCompile 'xml-apis:xml-apis:2.0.2',
        'javax.servlet:servlet-api:2.5',
        'javax.servlet.jsp:jsp-api:2.1',
        'javax.servlet:jstl:1.2',
        'com.sun.faces:jsf-api:2.1.6',
        'com.sun.faces:jsf-impl:2.1.6',
        'javax.transaction:jta:1.1'
}

But when I deploy my generated war in my server, all jars set in provided are present and my server doesn't start.

What is wrong in my configuration ?

Thanks.

Kiva
  • 9,193
  • 17
  • 62
  • 94

1 Answers1

0

Looks correct, and works fine for me. Chances are that the problem is somewhere else.

Peter Niederwieser
  • 121,412
  • 21
  • 324
  • 259
  • Just a question, have you try to import the project into eclipse ? May be the problem is here. What is your gradle command line to build the project ? Thanks – Kiva Apr 06 '12 at 08:18