背景说明:
我现在要同时推进开发两个应用,分别是代码工程myportal和代码工程info-base。其中myportal工程的设计目标是做通用化组件,而info-base工程是具体的业务应用,下来我想让info-base工程开发只关注具体的业务应用,而门户、安全、日志等交给myportal来开发,那么如何实现并行开发而又无缝整合呢?
进行下面两步配置即可,完整配置参考附件。
1、依赖配置:
<dependency> <groupId>org.waddy</groupId> <artifactId>myportal</artifactId> <version>1.2.0-SNAPSHOT</version> <type>war</type> <scope>runtime</scope> </dependency>
注意需要依赖类型为war.
2、覆盖配置:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <configuration> <archiveClasses>${war.archiveClasses}</archiveClasses> <overlays> <overlay> <groupId>org.waddy</groupId> <artifactId>myportal</artifactId> <excludes> <exclude>**/product.properties</exclude> </excludes> </overlay> </overlays> </configuration> </plugin>
其中<excludes>是排除选项标签,将你不想引入的内容放在这里即可。
相关推荐
在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ ...
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project
解决tomcat8-maven-plugin-3.0-r1655215.jar阿里云同有的问题。放到路径org\apache\tomcat\maven\tomcat8-maven-plugin\3.0-r1655215\就可以了
Maven 教程:基础篇——尚硅谷学习笔记 2022年
idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,...
maven-deploy-plugin-2.7.jar
maven-resources-plugin-2.4.1.jar
maven-shared-incremental-1.1.jar
maven是个项目管理工具,如果我们不告诉它我们的代码要使用什么样的jdk版本编译的话,它就会用maven-compiler-plugin默认的jdk版本来进行处理,这样就容易出现版本不匹配,以至于可能导致编译不通过的问题。...
MAVEN安装包:apache-maven-3.0.5.zip
maven-surefire-plugin-2.22.1.jar
maven-notice-plugin-1.0.1.jar
maven-jar-plugin-3.1.1.jar
maven编译pentaho-big-data-plugin遇到的所有问题解决,pentaho6.0
maven-shared-utils-3.2.1.jar
Maven使用tomcat8-maven-plugin插件
解决Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:1.1] 1. 下载maven-archetype-quickstart-1.1.jar 文件地址: 2.cmd窗口执行mvn install:install-file -...
java运行依赖jar包
maven-install-plugin-2.4.jar