Comments (5)
方案0: 将所有的项目合并成一个项目
类似于 feilong taglib
但是 这里不适合 ,内容太杂,维护起来很困难
方案1: maven-antrun-plugin
学习 quartz
<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>
<parent>
<groupId>com.feilong.platform.spring</groupId>
<artifactId>parent</artifactId>
<version>1.10.0-SNAPSHOT</version>
</parent>
<artifactId>feilong-spring-all</artifactId>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>packing-all</id>
<phase>process-sources</phase>
<configuration>
<tasks>
<copy todir="${project.build.directory}/classes">
<fileset dir="${basedir}/../feilong-spring-aop/target/classes" />
<fileset dir="${basedir}/../feilong-spring-context/target/classes" />
<fileset dir="${basedir}/../feilong-spring-core/target/classes" />
<fileset dir="${basedir}/../feilong-spring-jdbc/target/classes" />
<fileset dir="${basedir}/../feilong-spring-mobile/target/classes" />
<fileset dir="${basedir}/../feilong-spring-web/target/classes" />
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
依赖结果
缺点:
- source 以及test 貌似没有
from feilong-spring.
方案2: maven-assembly-plugin
貌似 shiro 支持
https://github.com/apache/shiro/blob/master/all/pom.xml
pom.xml
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-bundles</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<!---->
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
<!-- We _do_ want the assembly output to be the actual artifact produced for this Maven module. -->
<!-- not append assembly id in release file name -->
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
assembly.xml
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>jar</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<unpack>true</unpack>
<useTransitiveDependencies>false</useTransitiveDependencies>
</dependencySet>
</dependencySets>
</assembly>
缺点:
依赖 all 还会依赖 all锁依赖的jar
shiro-all 1.4.0-RC2 写法也不行
from feilong-spring.
方案3: maven-shade-plugin
shiro-all 1.3.2 支持
1.3 系列 使用的 maven-shade-plugin 插件
from feilong-spring.
groovy 貌似支持 sources
貌似也支持 sources
from feilong-spring.
配置方式 中增加了两个属性参数:
- shadeTestJar
- createSourcesJar When true, it will attempt to create a sources jar as well
参考
from feilong-spring.
Related Issues (20)
- 修改 顶级项目的artifactId 为feilong-spring-parent
- 删除 feilong-spring-context-support-mail
- 删除 feilong-spring-jdbc
- AbstractContextRefreshedHandlerMethodLogginEventListener 默认输出所有路径到 userhome
- ContextRefreshedHandlerMethodInfoEventListener 输出的 cvs true false 不可读
- SpelUtil 移动到 feilong
- WebSpringUtil 移动到 feilong
- spring 升级到 5
- spring-security 升级到 5.3.2.RELEASE
- 修改 group id以便准备发**仓库 HOT 1
- 升级 quartz 2.3.2
- ContextRefreshedHandlerMethodInfoEventListener 要支持输出 produces等参数 HOT 1
- ViewCommand 和 SubViewCommand 移动到 feilong spring项目
- 移除对spring 的直接依赖
- 升级feilong 到3.4.1
- java.lang.NullPointerException: null HandlerMethodInfoExtractor
- 有两个 requestMappingHandlerMapping HOT 1
- 升级feilong parent 到3.5.0
- requestmapping 生成的cvs 把方法返回值类型输出出来,方便统计这个方法是否有声音输出
- 升级feilong到3.5.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feilong-spring.