在项目上右键-》Add Framework Support

Choose Maven

生成pom.xml

在<project>下配置国内仓库

  1. <properties><!-- 指定JDK1.8,默认1.5 -->
  2. <maven.compiler.source>1.8</maven.compiler.source>
  3. <maven.compiler.target>1.8</maven.compiler.target>
  4. </properties>
  5. <repositories><!-- 代码库 -->
  6. <repository>
  7. <id>maven-ali</id>
  8. <url>http://maven.aliyun.com/nexus/content/groups/public//</url>
  9. <releases>
  10. <enabled>true</enabled>
  11. </releases>
  12. <snapshots>
  13. <enabled>true</enabled>
  14. <updatePolicy>always</updatePolicy>
  15. <checksumPolicy>fail</checksumPolicy>
  16. </snapshots>
  17. </repository>
  18. </repositories>
  1. <dependencies>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
  2.  
  3. <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
    </dependency>
    <dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <optional>true</optional>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <scope>test</scope>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-aop</artifactId>
    </dependency>
    </dependencies>

eclipse-swt

  1. <properties>
  2. <swt.version>4.6.1</swt.version>
  3. </properties>
  4. </dependencies>
  5. <dependency>
  6. <groupId>org.eclipse.swt</groupId>
  7. <artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
  8. <version>${swt.version}</version>
  9. <!-- To use the debug jar, add this -->
  10. <classifier>debug</classifier>
  11. </dependency>
  12. <dependency>
  13. <groupId>org.eclipse.swt</groupId>
  14. <artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>
  15. <version>${swt.version}</version>
  16. </dependency>
  17. <dependency>
  18. <groupId>org.eclipse.swt</groupId>
  19. <artifactId>org.eclipse.swt.gtk.linux.x86</artifactId>
  20. <version>${swt.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.eclipse.swt</groupId>
  24. <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
  25. <version>${swt.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.eclipse.swt</groupId>
  29. <artifactId>org.eclipse.swt.cocoa.macosx.x86_64</artifactId>
  30. <version>${swt.version}</version>
  31. </dependency>
  32. </dependencies>
  33. <repositories>
  34. <repository>
  35. <id>maven-eclipse-repo</id>
  36. <url>http://maven-eclipse.github.io/maven</url>
  37. </repository>
  38. </repositories>

配置poi

  1. <properties>
  2. <poi.version>3.10-FINAL</poi.version>
  3. </properties>
  4. <dependencies>
  5. <dependency>
  6. <groupId>org.apache.poi</groupId>
  7. <artifactId>poi</artifactId>
  8. <version>${poi.version}</version>
  9. </dependency>
  10. <dependency>
  11. <groupId>org.apache.poi</groupId>
  12. <artifactId>poi-ooxml</artifactId>
  13. <version>${poi.version}</version>
  14. </dependency>
  15. </dependencies>

.

IDEA中,将项目加入maven管理。的更多相关文章

  1. intellij 创建java web项目(maven管理的SSH)

    intellij 创建java web项目(maven管理的SSH) 环境intellij IDEA14.MAVEN.Spring.Struts2.Hibernate.Java Web.工程搭建. 1 ...

  2. java传统web项目添加maven管理jar包,log4j无法正常输出日志

    本文适合1年以上编程基础的开发人员阅读,非技术创新,可作为故障排除实录参考/收藏. 背景 笔者最近在给公司一个老的web项目改造升级,项目使用springmvc+mybatis,由于项目比较久远,没有 ...

  3. eclipse中的项目受svn管理

    1.我们在启动Eclipse的时候都会有例如以下图提示: 假设我们直接这样输入目录的名字,这个文件会在eclipse安装目录的同一级自己主动生成这样一个名字叫做njgzw的目录.接下来我们每次启动都用 ...

  4. (一)使用IDEA新建一个最简单的JavaWeb项目,Maven管理

    1.项目环境 IDEA:2016.2 JDK:1.8.0_76 Maven:3.2.5 2.File-->New-->Project-->Maven 3.选择Project SDK: ...

  5. 【坑】解决maven管理SSM中mybatis的mapper文件扫描失败的问题

    文章目录 前言 改进方式来替换原始的使用方式 后记 好久没有写博客了,11月底来到公司实习,上个月写个小demo,趁此回顾下SSM,今天将最近的积累记录下: 前言 在学习 mybatis 的时候,都知 ...

  6. Maven管理多模块应用

    穿越至目录: 从0开始,构建前后端分离应用 对于概念的一些理解 Maven的作用 管理模块之间的依赖:根据业务需求,系统会划分很多模块,这些模块彼此之间存在着依赖关系.比如系统管理模块依赖着文件上传模 ...

  7. Spring-在IDEA2016中创建maven管理的SpringMVC项目

    这是一套我自己摸索出来的创建项目方法,基本是用在创建用maven管理的 Spring+SpringMVC+Mybatis的J2EE项目时. 创建一个maven管理的webapp项目 在创建项目时,选择 ...

  8. Eclipse中发布Maven管理的Web项目时找不到类的问题根源和解决办法(转)

    转自:http://blog.csdn.net/lvguanming/article/details/37812579?locationNum=12 写在前面的话 现在是越来越太原讨厌Eclipse这 ...

  9. 我是怎么从项目中的lib加JAR更换为maven管理的

    原来我对maven的使用应该还是去年的时候吧,当时对maven并不感冒(请不要吐槽哈),认为为什么一定要用maven来管理呢,我自己管理jar不是一样么,当时还认为自己管理jar还各种方便还对mave ...

随机推荐

  1. Linux基础之常用命令整理(二)

    Linux系统启动流程 bios(找到启动介质) --> mbr(找到boot loader  512B 446引导信息 64分区信息 2 标志位 ) -->grub(选择操作系统或者内核 ...

  2. docker镜像的常用操作

    获取镜像 比如说我们可以这样操作 当然把这个镜像拉过来时间非常长.   查看镜像列表 命令: docker images 说明: 使用docker images命令可以列出本地主机上已有的镜像. 信息 ...

  3. 团队第七次 # scrum meeting

    github 本此会议项目由PM召开,召开时间为4-11日晚上9点,以大家在群里讨论为主 召开时长10分钟 任务表格 袁勤 负责协调前后端 https://github.com/buaa-2016/p ...

  4. 团队第五次 # scrum meeting

    github 本此会议项目由PM召开,召开时间为4-9日晚上9点 召开时长15分钟 任务表格 袁勤 负责协调前后端 https://github.com/buaa-2016/phyweb/issues ...

  5. LINUX 安装扩展(笔记)

    1.下载扩展包: 网址:http://pecl.php.net/ 2.解压安装包. 3.进入解压好的安装包. 4.使用php中的phpize (扩展模块) 使其生成configure. 5../con ...

  6. expected_conditions模块提供了判断页面元素的16种方法

    1.title_is: 判断当前页面的title是否完全等于(==)预期字符串,返回布尔值2.title_contains : 判断当前页面的title是否包含预期字符串,返回布尔值3.presenc ...

  7. oracle填坑之PLSQL中文显示为问号

    刚入坑oracle就遇到个坑. 坑描述: 系统:Windows7 oracle:同时安装,11g和12c(安装顺序,先装的12c然后装的11g) 坑:开始安装的12c用SQL Developer使用本 ...

  8. 学习笔记:python3,PIP安装第三方库(2017)

    https://pip.pypa.io/en/latest/quickstart/ pip的使用文档 http://www.lfd.uci.edu/~gohlke/pythonlibs/   .whl ...

  9. [HTML]将错误alert出来[转]

    <script type="text/javascript"> /** * @param {String} errorMessage 错误信息 * @param {St ...

  10. 线程之Callable、Future 和FutureTask使用及源码分析

    一.Callable 我们知道启动线程有以下两种方式(jdk源码注释中官方定义只有两种启动方式,callable不算线程启动方式) 原文链接:http://www.studyshare.cn/blog ...