Eclipse中插件的使用:maven /ant /tomcat

本文详细介绍了如何使用Eclipse构建Maven项目,并提供了Maven的基础知识,包括其作用、核心概念、用法、常用命令、扩展及配置等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

项目配置如下:apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'groovy' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' import org.apache.tools.ant.filters.ReplaceTokens buildscript { //构建脚本使用的,自上而下执行 repositories { mavenLocal() //去maven仓库找,前提是电脑配置了maven环境变量 maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/repository/google' } mavenCentral() //找不到去中央仓库 } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:2.3.0.RELEASE") } } group = 'com.jt' version = '1.0' sourceCompatibility = '1.8' repositories { //项目jar从这下 mavenLocal() maven { url "https://maven.aliyun.com/nexus/content/groups/public/" } maven { url "http://repo.e-iceblue.com/nexus/content/groups/public/" } mavenCentral() } //去除jar中的lib目录及文件,使用mybatis生成器需要注释这部分代码 configurations { runtime.exclude group:'org.springframework.boot' runtime.exclude group:'com.alibaba' runtime.exclude group:'mysql' runtime.exclude group:'commons-io' runtime.exclude group:'cn.hutool' runtime.exclude group:'io.jsonwebtoken' runtime.exclude group:'org.projectlombok' runtime.exclude group:'com.baomidou' runtime.exclude group:'io.minio' runtime.exclude group:'io.netty' runtime.exclude group: 'org.jboss.xnio' runtime.exclude group: 'org.apache' runtime.exclude group: 'dom4j' runtime.exclude group: 'com.github.pagehelper' runtime.exclude group:'com.aliyun' runtime.exclude group:'cn.afterturn' runtime.exclude group:'com.squareup.okhttp3' compile } dependencies { compile("org.springframework.boot:spring-boot-starter") compile('org.springframework.boot:spring-boot-starter-web') { exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat' } compile 'org.springframework.boot:spring-boot-starter-undertow' compile 'io.undertow:undertow-servlet:2.2.20.Final' // 兼容 JDK 8 compile 'org.springframework.boot:spring-boot-starter-aop' compile 'org.springframework.boot:
最新发布
04-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值