Skip to content

Commit 6142e16

Browse files
Use puml to generate sources diagrams
1 parent 801ae91 commit 6142e16

File tree

4 files changed

+197
-0
lines changed

4 files changed

+197
-0
lines changed

content/xdoc/scm.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ repo start master --all</pre>
6464
</subsection>
6565

6666
<subsection name="Maven Sources Overview">
67+
<p>
68+
<object type="image/svg+xml" data="maven-sources/site.svg"/>
69+
</p>
70+
<p>
71+
<object type="image/svg+xml" data="maven-sources/core.svg"/>
72+
</p>
73+
<p>
74+
<object type="image/svg+xml" data="maven-sources/plugins.svg"/>
75+
</p>
76+
6777
<p align="center">
6878
<img src="maven-sources.png" width="843" height="837" border="0" usemap="#maven-sources" />
6979
<map name="maven-sources">
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/
19+
@startuml
20+
!pragma layout smetana
21+
22+
skinparam rectangle {
23+
BackgroundColor LightBlue
24+
}
25+
26+
package "Maven Core" {
27+
rectangle Maven
28+
rectangle "Core ITs"
29+
rectangle Resolver
30+
rectangle "Ant Tasks"
31+
}
32+
33+
'hidden dependencies to change layout
34+
Maven -[hidden]> "Core ITs"
35+
"Core ITs" -[hidden]> Resolver
36+
Resolver -[hidden]> "Ant Tasks"
37+
38+
url of Maven is [[https://github.com/apache/maven]]
39+
url of "Core ITs" is [[https://github.com/apache/maven-integration-testing]]
40+
url of Resolver is [[https://github.com/apache/maven-resolver]]
41+
url of "Ant Tasks" is [[https://github.com/maven-resolver-ant-tasks]]
42+
43+
@enduml
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/
19+
@startuml
20+
!pragma layout smetana
21+
22+
skinparam rectangle {
23+
BackgroundColor LightBlue
24+
}
25+
26+
27+
package Plugins {
28+
29+
package Core {
30+
rectangle clean
31+
rectangle compiler
32+
rectangle deploy
33+
rectangle install
34+
rectangle resources
35+
rectangle site
36+
rectangle surefire
37+
rectangle verifier
38+
}
39+
40+
package Packaging {
41+
rectangle ear
42+
rectangle ejb
43+
rectangle jar
44+
rectangle rar
45+
rectangle war
46+
rectangle acr
47+
rectangle shade
48+
rectangle source
49+
rectangle jlink
50+
rectangle jmod
51+
}
52+
53+
package Reporting {
54+
rectangle changelog
55+
rectangle changes
56+
rectangle checkstyle
57+
rectangle doap
58+
rectangle javadoc
59+
rectangle jdeps
60+
rectangle jxr
61+
rectangle linkcheck
62+
rectangle pmd
63+
rectangle "project-info-reports"
64+
}
65+
66+
package Tools {
67+
rectangle antrun
68+
rectangle archetype
69+
rectangle assembly
70+
rectangle dependency
71+
rectangle enforcer
72+
rectangle gpg
73+
rectangle help
74+
rectangle invoker
75+
rectangle jarsigner
76+
rectangle jdeprscan
77+
rectangle patch
78+
rectangle pdf
79+
rectangle plugin
80+
rectangle release
81+
rectangle "remote-resource"
82+
rectangle scm
83+
rectangle "scm-ppublish"
84+
rectangle scripting
85+
rectangle stage
86+
rectangle toolchains
87+
}
88+
}
89+
90+
'hidden dependencies to change layout
91+
Core -[hidden]-> Packaging
92+
Packaging -[hidden]-> Reporting
93+
Reporting -[hidden]-> Tools
94+
95+
clean -[hidden]> compiler
96+
compiler -[hidden]> deploy
97+
deploy -[hidden]> install
98+
install -[hidden]> resources
99+
resources -[hidden]> site
100+
site -[hidden]> surefire
101+
surefire -[hidden]> verifier
102+
103+
ear -[hidden]> ejb
104+
ejb -[hidden]> jar
105+
jar -[hidden]> rar
106+
rar -[hidden]> war
107+
war -[hidden]> acr
108+
acr -[hidden]> shade
109+
shade -[hidden]> source
110+
source -[hidden]> jlink
111+
jlink -[hidden]> jmod
112+
113+
114+
url of clean is [[https://github.com/apache/maven-clean-plugin]]
115+
116+
@enduml
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/
19+
@startuml
20+
!pragma layout smetana
21+
22+
rectangle Site
23+
rectangle Sources #LightBlue
24+
25+
url of Site is [[https://github.com/apache/maven-site]]
26+
url of Sources is [[https://github.com/apache/maven-sources]]
27+
28+
@enduml

0 commit comments

Comments
 (0)