GradleCN / GradleSide

Gradle 示例大全
MIT License
209 stars 61 forks source link

使用gradle-4.10-rc-3-bin.zip ,报错Plugin with id 'jetty' not found.为啥呢 #6

Open 2280908187 opened 5 years ago

2280908187 commented 5 years ago

gradle的配置是 apply plugin: 'war' apply plugin: 'jetty' apply plugin: 'eclipse-wtp'

repositories { mavenLocal() maven { url "http://maven.aliyun.com/nexus/content/groups/public/"} mavenCentral() jcenter() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' } }

dependencies { providedCompile 'javax.servlet:servlet-api:2.5' compile 'org.springframework:spring-webmvc:5.0.5.RELEASE' compile 'javax.validation:validation-api:2.0.1.Final' compile 'org.hibernate:hibernate-validator:5.1.0.Final' compile 'org.slf4j:slf4j-api:1.7.25' runtime 'javax.servlet:jstl:1.2' }

/ Change context path (base url). otherwise defaults to name of project / // eclipse.wtp.component.contextPath = '' jettyRunWar.contextPath = ''

pkaq commented 5 years ago

jetty已被放生 换gretty