Skip to content

Commit 1aad214

Browse files
committed
[MPLUGIN-514] switch from png+imagemap to svg
1 parent ddbaa5b commit 1aad214

File tree

14 files changed

+245
-55
lines changed

14 files changed

+245
-55
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ out/
1515

1616
.java-version
1717
.factorypath
18+
19+
/*.svg

maven-script/maven-plugin-tools-ant/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<artifactId>maven-plugin-tools-ant</artifactId>
3030

31-
<name>Maven Plugin Tool for Ant</name>
31+
<name>Maven Plugin Tool for Ant (deprecated)</name>
3232
<description>Descriptor extractor for plugins written in Ant.</description>
3333

3434
<dependencies>

maven-script/maven-plugin-tools-beanshell/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<artifactId>maven-plugin-tools-beanshell</artifactId>
3030

31-
<name>Maven Plugin Tool for Beanshell</name>
31+
<name>Maven Plugin Tool for Beanshell (deprecated)</name>
3232
<description>Descriptor extractor for plugins written in Beanshell.</description>
3333

3434
<dependencies>

maven-script/maven-plugin-tools-model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<artifactId>maven-plugin-tools-model</artifactId>
3030

31-
<name>Maven Plugin Metadata Model</name>
31+
<name>Maven Plugin Metadata Model (deprecated)</name>
3232
<description>The Maven Plugin Metadata Model provides an API to play with the Metadata model.</description>
3333

3434
<dependencies>

maven-script/maven-script-ant/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ under the License.
2828

2929
<artifactId>maven-script-ant</artifactId>
3030

31-
<name>Maven Ant Mojo Support</name>
31+
<name>Maven Ant Mojo Support (deprecated)</name>
3232
<description>Maven Ant Mojo Support, ie write Maven plugins with Ant scripts.</description>
3333

3434
<dependencies>

maven-script/maven-script-beanshell/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ under the License.
2828

2929
<artifactId>maven-script-beanshell</artifactId>
3030

31-
<name>Maven Beanshell Mojo Support</name>
31+
<name>Maven Beanshell Mojo Support (deprecated)</name>
3232
<description>Maven Beanshell Mojo Support, ie write Maven plugins with Beanshell scripts.</description>
3333

3434
<dependencies>

maven-script/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ under the License.
2929
<artifactId>maven-script</artifactId>
3030
<packaging>pom</packaging>
3131

32-
<name>Maven Script Mojo Support</name>
32+
<name>Maven Script Mojo Support (deprecated)</name>
3333
<description>Maven Script Mojo Support lets developer write Maven plugins/goals with scripting languages instead of compiled Java. Scripting support is deprecated, with Maven 4 only Java based Mojos will be supported.</description>
3434

3535
<modules>

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@
342342
<artifactId>apache-rat-plugin</artifactId>
343343
<configuration>
344344
<excludes combine.children="append">
345-
<exclude>src/site/resources/images/plugin-descriptors.svg</exclude>
345+
<exclude>src/site/resources/images/*.svg</exclude>
346+
<exclude>*.svg</exclude>
346347
<!-- Jenkins job with local Maven repository -->
347348
<exclude>src/site/xdoc/plugin-descriptors.mmd</exclude>
348349
<!-- Hudson Maven3 integration log -->

prepare-svg.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
#libreoffice --headless --convert-to svg src/xdoc/plugin-tools-deps.odg
21+
# CLI export keeps full A3 page
22+
# I prefer doing it by hand, limiting export to "selection" = avoids extra space
23+
24+
# svgo https://github.com/svg/svgo
25+
svgo --config svgo.config.mjs plugin-tools-deps.svg -o plugin-tools-deps-optimized.svg
26+
27+
cat plugin-tools-deps-optimized.svg \
28+
| sed 's/a xlink:href/a target="_parent" xlink:href/' \
29+
| sed 's_file://_.._' \
30+
> src/site/resources/images/plugin-tools-deps.svg
-46.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)