随笔分类 -  Maven

摘要:添加如下配置 <!--maven可能存在静态资源过滤问题--> <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <inc 阅读全文
posted @ 2021-04-12 14:21 卡卡罗特琪琪 阅读(222) 评论(0) 推荐(0)
摘要:maven阿里云镜像仓库 <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus maven</name> <url>http://maven.aliyun.com/nexus/content/groups/pu 阅读全文
posted @ 2021-04-11 19:13 卡卡罗特琪琪 阅读(3701) 评论(0) 推荐(1)
摘要:第一种方式 使用maven命令进行手动导入jar包 如,在maven中导入Oracle 10g的jar包 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackagi 阅读全文
posted @ 2021-03-16 23:18 卡卡罗特琪琪 阅读(1291) 评论(0) 推荐(0)
摘要:解决方法:修改 setting.xml 文件,把 mirror 改成阿里的镜像。 1、打开 maven 目录下的 conf/setting.xml,注意要是 idea 使用的 maven。 2、搜索 <mirrors>;找到 <mirrors>。在 <mirrors> 节点下添加。 <mirror> 阅读全文
posted @ 2021-03-16 14:12 卡卡罗特琪琪 阅读(266) 评论(0) 推荐(0)
摘要:Maven 构建 Java 项目 > Maven 使用原型 archetype 插件创建项目。要创建一个简单的 Java 应用,我们将使用 maven-archetype-quickstart 插件。 mvn archetype:generate "-DgroupId=com.companyname 阅读全文
posted @ 2021-03-16 13:55 卡卡罗特琪琪 阅读(79) 评论(0) 推荐(0)
摘要:非常之多 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache. 阅读全文
posted @ 2021-03-16 10:48 卡卡罗特琪琪 阅读(116) 评论(0) 推荐(0)
摘要:以下命令来查看 Super POM 默认配置:mvn help:effective-pom 在下面的 pom.xml 中,你可以看到 Maven 在执行目标时需要用到的默认工程源码目录结构、输出目录、需要的插件、仓库和报表目录。 D:\maven-test\com\companyname\proje 阅读全文
posted @ 2021-03-16 09:09 卡卡罗特琪琪 阅读(232) 评论(0) 推荐(0)