Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
KnowledgePlanet
road-map
xfg-frame-archetype-lite
提交
cf47591d
xfg-frame-archetype-lite
项目概览
KnowledgePlanet
/
road-map
/
xfg-frame-archetype-lite
通知
1157
Star
58
Fork
71
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
xfg-frame-archetype-lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
cf47591d
编写于
3月 08, 2024
作者:
小傅哥
⛹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小傅哥,feat:maven 工程脚手架
上级
2d94522b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
213 addition
and
52 deletion
+213
-52
scaffold-lite/README.md
scaffold-lite/README.md
+44
-0
scaffold-lite/pom.xml
scaffold-lite/pom.xml
+155
-52
scaffold-lite/src/main/resources/archetype-resources/pom.xml
scaffold-lite/src/main/resources/archetype-resources/pom.xml
+14
-0
未找到文件。
scaffold-lite/README.md
浏览文件 @
cf47591d
...
...
@@ -4,10 +4,53 @@
### 1. 生成
```
shell
md5 ddd-scaffold-lite-1.0.pom
>
ddd-scaffold-lite-1.0.pom.md5
shasum ddd-scaffold-lite-1.0.pom
>
ddd-scaffold-lite-1.0.pom.sha1
```
```
shell
mvn clean
install
```
```
shell
mvn clean
install
net.ju-n.maven.plugins:checksum-maven-plugin:1.2:artifacts
```
```
shell
mvn deploy
```
```
shell
jar
-cvf
bundle.jar scaffold-lite-1.0.pom scaffold-lite-1.0.pom.asc scaffold-lite-1.0.jar scaffold-lite-1.0.jar.asc scaffold-lite-1.0-javadoc.jar scaffold-lite-1.0-javadoc.jar.asc scaffold-lite-1.0-sources.jar scaffold-lite-1.0-sources.jar.asc
```
```
shell[archetype-catalog.xml](..%2F..%2F..%2F..%2Fapache-maven-3.8.6%2Frepository%2Farchetype-catalog.xml)
mvn archetype:crawl
```
```
shell
mvn deploy:deploy-file
\
-DgroupId
=
cn.bugstack
\
-DartifactId
=
ascaffold-lite
\
-Dversion
=
6.0
\
-Dpackaging
=
xml
\
-Dfile
=
/Users/fuzhengwei1/Documents/develop/github/xfg-studio/xfg-frame-archetype-lite/docs/archetype-catalog.xml
\
-Durl
=
https://packages.aliyun.com/maven/repository/2452122-release-dbuebF
\
-DrepositoryId
=
2452122-release-dbuebF
```
```
shell
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate
-DarchetypeGroupId
=
cn.bugstack
-DarchetypeArtifactId
=
scaffold-lite
-DarchetypeCatalog
=
https://packages.aliyun.com/maven/repository/2452122-release-dbuebF/
-DarchetypeVersion
=
6.0
-DgroupId
=
com.xfg.testdemo
-DartifactId
=
testdemo
-Dversion
=
0.0.1-SNAPSHOT
```
-
在 IntelliJ IDEA 执行
`mvn clean install`
这样会把脚手架安装到本地仓库中
### 2. 配置
...
...
@@ -140,3 +183,4 @@ mvn clean install
└──
xfg
-
ddd
-
types
```
scaffold-lite/pom.xml
浏览文件 @
cf47591d
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
cn.bugstack
</groupId>
<artifactId>
scaffold-lite
</artifactId>
<version>
1.0
</version>
<packaging>
maven-archetype
</packaging>
<name>
xfg-frame-archetype
</name>
<build>
<extensions>
<extension>
<groupId>
org.apache.maven.archetype
</groupId>
<artifactId>
archetype-packaging
</artifactId>
<version>
3.2.0
</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
<artifactId>
maven-archetype-plugin
</artifactId>
<version>
3.2.0
</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<description>
Parent pom providing dependency and plugin management for applications built with Maven
</description>
<url>
https://spring.io/projects/spring-boot/xfg-frame-archetype
</url>
<developers>
<developer>
<name>
fuzhengwei
</name>
<email>
184172133@qq.com
</email>
<organization>
fuzhengwei
</organization>
<organizationUrl>
https://github.com/fuzhengwei
</organizationUrl>
</developer>
</developers>
<licenses>
<license>
<name>
Apache License, Version 2.0
</name>
<url>
https://www.apache.org/licenses/LICENSE-2.0
</url>
</license>
</licenses>
<scm>
<url>
https://github.com/spring-projects/spring-boot/xfg-frame-archetype
</url>
</scm>
<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>
io.github.fuzhengwei
</groupId>
<artifactId>
ddd-scaffold-lite
</artifactId>
<version>
1.0
</version>
<packaging>
maven-archetype
</packaging>
<name>
ddd-scaffold-lite
</name>
<properties>
<java.version>
1.8
</java.version>
<maven-javadoc-plugin.version>
3.2.0
</maven-javadoc-plugin.version>
<maven-source-plugin.version>
3.2.1
</maven-source-plugin.version>
<maven-gpg-plugin.version>
1.6
</maven-gpg-plugin.version>
<maven-checksum-plugin.version>
1.10
</maven-checksum-plugin.version>
</properties>
<build>
<extensions>
<extension>
<groupId>
org.apache.maven.archetype
</groupId>
<artifactId>
archetype-packaging
</artifactId>
<version>
3.2.0
</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>
net.nicoulaj.maven.plugins
</groupId>
<artifactId>
checksum-maven-plugin
</artifactId>
<version>
${maven-checksum-plugin.version}
</version>
<executions>
<execution>
<id>
create-checksums
</id>
<goals>
<goal>
artifacts
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-source-plugin
</artifactId>
<version>
2.2.1
</version>
<executions>
<execution>
<id>
attach-sources
</id>
<goals>
<goal>
jar-no-fork
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
2.9.1
</version>
<configuration>
<encoding>
UTF-8
</encoding>
<aggregate>
true
</aggregate>
<charset>
UTF-8
</charset>
<docencoding>
UTF-8
</docencoding>
</configuration>
<executions>
<execution>
<id>
attach-javadocs
</id>
<goals>
<goal>
jar
</goal>
</goals>
<configuration>
<additionalparam>
-Xdoclint:none
</additionalparam>
<javadocExecutable>
/Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk/Contents/Home/bin/javadoc
</javadocExecutable>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-gpg-plugin
</artifactId>
<version>
1.5
</version>
<executions>
<execution>
<id>
sign-artifacts
</id>
<phase>
verify
</phase>
<goals>
<goal>
sign
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-release-plugin
</artifactId>
<version>
2.5.3
</version>
<configuration>
<autoVersionSubmodules>
true
</autoVersionSubmodules>
<useReleaseProfile>
false
</useReleaseProfile>
<releaseProfiles>
release
</releaseProfiles>
<goals>
deploy
</goals>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>
release
</id>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
3.3.1
</version>
<!-- 使用最新版本 -->
<executions>
<execution>
<id>
attach-javadocs
</id>
<goals>
<goal>
jar
</goal>
<!-- 绑定到 jar 目标 -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<description>
ddd scaffold lite by xiaofuge
</description>
<url>
https://spring.io/projects/spring-boot/xfg-frame-archetype
</url>
<developers>
<developer>
<name>
fuzhengwei
</name>
<email>
184172133@qq.com
</email>
<organization>
fuzhengwei
</organization>
<organizationUrl>
https://github.com/fuzhengwei
</organizationUrl>
</developer>
</developers>
<licenses>
<license>
<name>
Apache License, Version 2.0
</name>
<url>
https://www.apache.org/licenses/LICENSE-2.0
</url>
</license>
</licenses>
<scm>
<url>
https://github.com/spring-projects/spring-boot/xfg-frame-archetype
</url>
</scm>
</project>
scaffold-lite/src/main/resources/archetype-resources/pom.xml
浏览文件 @
cf47591d
...
...
@@ -15,6 +15,20 @@
<module>
${rootArtifactId}-types
</module>
</modules>
<repositories>
<repository>
<id>
nexus-aliyun
</id>
<name>
nexus-aliyun
</name>
<url>
http://maven.aliyun.com/nexus/content/groups/public/
</url>
<releases>
<enabled>
true
</enabled>
</releases>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
</repositories>
<properties>
<java.version>
1.8
</java.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录