pom

idea的pom文件不能代码提示

耗尽温柔 提交于 2019-12-04 00:50:46
idea的pom文件不能代码提示 今天开始学习sping,在配置maven的pom文件的依赖包的时候,发现不能代码提示,当时就想,天哪!我以后不会还要记住jar的包名,版本号之类的吧! 还好有大佬的提示加上百度,该是我回报他人的时候了。 赠人玫瑰,手有余香。 File—>Settings—>Build,Execution,Deployment—>Build Tools—>Maven—>Repositories 接下来:选本地的url,选本地的url,选本地的url,重要的事情说三遍—>Update 等一会加载完,救命的提示就有了。 来源: CSDN 作者: 努力一年找工作的孩子 链接: https://blog.csdn.net/weixin_43321966/article/details/89819550

Idea导入maven项目不自动识别pom.xml

独自空忆成欢 提交于 2019-12-04 00:49:50
*Idea导入maven项目不自动识别pom.xml *当在idea中导入maven项目时,不能自动识别pom文件 解决方法: 1.右键pom.xml文件,选择” add as maven project”,即可自动导入pom所依赖的jar包 另外刷新Maven配置的方法为: (1)右键单击项目; (2)在弹出菜单中选择Maven->Reimport菜单项。 此时,IDEA将通过网络自动下载相关依赖,并存放在Maven的本地仓库中。另外,可以将Maven的刷新设置为自动,配置方法为: (1)单击File|Setting菜单项,打开Settings选项卡; (2)在左侧的目录树中,展开Maven节点; (3)勾选Import Maven projects automatically选择项。 来源: CSDN 作者: lh18392021709 链接: https://blog.csdn.net/lh18392021709/article/details/82385400

springboot和springcloud运行在外部tomcat

懵懂的女人 提交于 2019-12-03 20:51:21
最近在自己搭建springboot、springcloud微服务架构的时候遇到了war运行在外部tomcat上的问题。 一、springcloud的Eureka注册中心的war包运行 pom文件: 主程序启动类: 这里需要继承SpringBootServletInitializer这个类 注意事项: pom文件中: 二、springboot的war包运行 必须是一个war项目,或者是修改pom.xml文件 将内置Tomcat的作用范围修改成provided 自定义一个类继承 SpringBootServletInitializer 重写其configure()方法 注意下面注册的添加否则中心发现不了服务 来源: https://www.cnblogs.com/javabianhua/p/11808502.html

Maven 学习笔记1: POM文件的介绍

∥☆過路亽.° 提交于 2019-12-03 16:59:39
本文节选翻译自apache的Maven入门教程 Introduction to the POM 什么是POM POM:Project Object Model. POM文件是Maven工程的最核心的文件。POM文件的格式是xml文件,它包含了项目的很多信息,Maven使用POM文件提供的配置信息来构建项目。Maven提供了一些默认配置: POM提供的默认配置 含义 默认名称 build directory  target source directory src/main/java test source directory src/test/java 用户可以配置的Maven选项: project dependencies(依赖), the plugins, goals, build profiles等 另外还有 project versions, description, developers, mailing lists也可以被用户指定。 Super POM Super POM是Maven的默认POM文件。除非用户显式设定,否则所有的POM文件都会继承Super POM文件中的内容。 Super POM 文件内容 1 <project> 2 <modelVersion>4.0.0</modelVersion> 3 4 <repositories> 5 <repository>

建立一个简单的开发环境

心不动则不痛 提交于 2019-12-03 14:17:38
1.开发工具 apache-maven-3.5.3 jdk1.8 Eclipse 4.12.0 2.开发环境 创建一个简单的meaven项目,pom文件如下: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.dwz</groupId> <artifactId>rabbitmq</artifactId> <version>0.0.1-SNAPSHOT</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.6.RELEASE</version> <relativePath/> <!-- lookup parent from

SpringBoot学习(一):pom

强颜欢笑 提交于 2019-12-03 12:15:22
提聘没上,还得自身硬,到哪都能换饭吃,买个电脑开始学习吧。 pom的学习:这7篇挺全的。https://www.iteye.com/blog/elim-2055745 看过后,pom基本就不用看别的了,除了scope=import说的略粗糙,这里补充下: scope=import 1.只能用于 < dependencyManagement > 中 2. 必须< type >pom </ type > 3.maven2.0.9版本以后支持 4.作用:将此 artifactId 对应的pom中的 < dependencyManagement > ,全部引入到此处。 5.例子: <dependencyManagement> <dependencies> <dependency> <groupId>groupA</groupId> <artifactId>artifactA</artifactId> <version>1.0</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> 来源: https://www.cnblogs.com/first001/p/11795866.html

springboot的pom.xml配置

99封情书 提交于 2019-12-03 11:54:20
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.0.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.offcn</groupId> <artifactId>demo01</artifactId> <version>0.0.1-SNAPSHOT</version> <name>demo01</name>

How to call testng.xml file from pom.xml in Maven

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Selenium WebDriver, Eclipse, TestNG and Surefire plugin. I am not able to run testng.xml file from pom.xml. While I'm running pom.xml using mvn test it directly run the file which is in the src/test/java . my pom.xml code is angel Angel 1.0-SNAPSHOT jar Angel http://maven.apache.org UTF-8 org.seleniumhq.selenium selenium-java 2.21.0 net.sourceforge.jexcelapi jxl 2.6.10 log4j log4j 1.2.14 org.apache.poi poi-contrib 3.5-beta5 javax.mail mail 1.4.3 org.testng testng 6.3.1 test org.apache.maven.plugin maven-surefire-plugin 2.12 src

Error in pom.xml Maven build

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting an error in my pom.xml when trying to build a maven project. The error is here on this plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> This is the error Eclipse shows: Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin: 2.3.2:compile (execution: default-compile, phase: