You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2024/01/16 16:48:37 UTC

(maven-doxia-converter) branch bugfix/create-uber-jar-with-m-shade-p created (now 00df6ad)

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a change to branch bugfix/create-uber-jar-with-m-shade-p
in repository https://gitbox.apache.org/repos/asf/maven-doxia-converter.git


      at 00df6ad  [DOXIATOOLS-83] Build uber-jar with m-shade-p

This branch includes the following new commits:

     new 00df6ad  [DOXIATOOLS-83] Build uber-jar with m-shade-p

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-doxia-converter) 01/01: [DOXIATOOLS-83] Build uber-jar with m-shade-p

Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch bugfix/create-uber-jar-with-m-shade-p
in repository https://gitbox.apache.org/repos/asf/maven-doxia-converter.git

commit 00df6add72ccfbf7cfb5afaeb78886c42f6424cf
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Jan 16 17:48:33 2024 +0100

    [DOXIATOOLS-83] Build uber-jar with m-shade-p
    
    This fixes incomplete/redundant Plexus/Sisu metadata
---
 .gitignore                                        |   1 +
 pom.xml                                           |  25 ++-
 src/main/resources/META-INF/plexus/components.xml | 232 ----------------------
 3 files changed, 20 insertions(+), 238 deletions(-)

diff --git a/.gitignore b/.gitignore
index 7495d7e..4c5d257 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ out/
 /dependencies.xml
 .java-version
 .checkstyle
+dependency-reduced-pom.xml
diff --git a/pom.xml b/pom.xml
index b4a5cbe..480f5d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -174,22 +174,35 @@ under the License.
     </pluginManagement>
     <plugins>
       <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
         <configuration>
           <archive>
             <manifest>
               <mainClass>org.apache.maven.doxia.cli.ConverterCli</mainClass>
             </manifest>
           </archive>
-          <descriptorRefs>
-            <descriptorRef>jar-with-dependencies</descriptorRef>
-          </descriptorRefs>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <configuration>
+          <shadedArtifactAttached>true</shadedArtifactAttached>
+          <transformers>
+            <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+              <resource>META-INF/sisu/javax.inject.Named</resource>
+            </transformer>
+            <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
+            <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
+              <addHeader>false</addHeader>
+            </transformer>
+          </transformers>
         </configuration>
         <executions>
           <execution>
-            <id>make-assembly</id>
             <goals>
-              <goal>single</goal>
+              <goal>shade</goal>
             </goals>
             <phase>package</phase>
           </execution>
diff --git a/src/main/resources/META-INF/plexus/components.xml b/src/main/resources/META-INF/plexus/components.xml
deleted file mode 100644
index a843948..0000000
--- a/src/main/resources/META-INF/plexus/components.xml
+++ /dev/null
@@ -1,232 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-
-<component-set>
-  <!-- Doxia core -->
-  <components>
-    <component>
-      <role>org.apache.maven.doxia.macro.Macro</role>
-      <role-hint>echo</role-hint>
-      <implementation>org.apache.maven.doxia.macro.EchoMacro</implementation>
-      <description>A simple macro that prints out the key and value of some supplied
-      parameters.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.macro.manager.MacroManager</role>
-      <implementation>org.apache.maven.doxia.macro.manager.DefaultMacroManager</implementation>
-      <description>Default implementation of &lt;code&gt;MacroManager&lt;/code&gt;</description>
-      <requirements>
-        <requirement>
-          <role>org.apache.maven.doxia.macro.Macro</role>
-          <field-name>macros</field-name>
-        </requirement>
-      </requirements>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.macro.Macro</role>
-      <role-hint>snippet</role-hint>
-      <implementation>org.apache.maven.doxia.macro.snippet.SnippetMacro</implementation>
-      <description>A macro that prints out the content of a file or a URL.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.macro.Macro</role>
-      <role-hint>swf</role-hint>
-      <implementation>org.apache.maven.doxia.macro.SwfMacro</implementation>
-      <description>Macro for embedding Flash (SWF) within Maven documentation.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.macro.Macro</role>
-      <role-hint>toc</role-hint>
-      <implementation>org.apache.maven.doxia.macro.toc.TocMacro</implementation>
-      <description>Macro to display a &lt;code&gt;Table Of Content&lt;/code&gt; in a
-        given &lt;code&gt;Sink&lt;/code&gt;.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.parser.manager.ParserManager</role>
-      <implementation>org.apache.maven.doxia.parser.manager.DefaultParserManager</implementation>
-      <description>Simple implementation of the
-        &lt;code&gt;ParserManager&lt;/code&gt; interface.</description>
-      <requirements>
-        <requirement>
-          <role>org.apache.maven.doxia.parser.Parser</role>
-          <field-name>parsers</field-name>
-        </requirement>
-      </requirements>
-    </component>
-
-    <!-- Doxia apt -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>apt</role-hint>
-      <implementation>org.apache.maven.doxia.module.apt.AptParser</implementation>
-      <description>The APT parser.</description>
-      <requirements>
-        <requirement>
-          <role>org.apache.maven.doxia.macro.manager.MacroManager</role>
-          <field-name>macroManager</field-name>
-        </requirement>
-      </requirements>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>apt</role-hint>
-      <implementation>org.apache.maven.doxia.module.apt.AptSinkFactory</implementation>
-      <description>APT implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia confluence -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>confluence</role-hint>
-      <implementation>org.apache.maven.doxia.module.confluence.ConfluenceParser</implementation>
-      <description>Parse the &lt;a href=&quot;http://www.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>confluence</role-hint>
-      <implementation>org.apache.maven.doxia.module.confluence.ConfluenceSinkFactory</implementation>
-      <description>Confluence implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia docbook -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>docbook</role-hint>
-      <implementation>org.apache.maven.doxia.module.docbook.DocBookParser</implementation>
-      <description>Parse a &lt;code&gt;Docbook&lt;/code&gt; document and emit events
-        into the specified doxia Sink.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>docbook</role-hint>
-      <implementation>org.apache.maven.doxia.module.docbook.DocbookSinkFactory</implementation>
-      <description>Docbook implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia fml -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>fml</role-hint>
-      <implementation>org.apache.maven.doxia.module.fml.FmlParser</implementation>
-      <description>Parse a fml model and emit events into the specified doxia Sink.</description>
-      <requirements>
-        <requirement>
-          <role>org.apache.maven.doxia.macro.manager.MacroManager</role>
-          <field-name>macroManager</field-name>
-        </requirement>
-      </requirements>
-    </component>
-
-    <!-- Doxia fo -->
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>fo</role-hint>
-      <implementation>org.apache.maven.doxia.module.fo.FoSinkFactory</implementation>
-      <description>FO implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia itext -->
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>itext</role-hint>
-      <implementation>org.apache.maven.doxia.module.itext.ITextSinkFactory</implementation>
-      <description>IText implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia latex -->
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>latex</role-hint>
-      <implementation>org.apache.maven.doxia.module.latex.LatexSinkFactory</implementation>
-      <description>Latex implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia rtf -->
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>rtf</role-hint>
-      <implementation>org.apache.maven.doxia.module.rtf.RtfSinkFactory</implementation>
-      <description>APT implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia twiki -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>twiki</role-hint>
-      <implementation>org.apache.maven.doxia.module.twiki.TWikiParser</implementation>
-      <description>Parse the &lt;a href=&quot;http://twiki.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>twiki</role-hint>
-      <implementation>org.apache.maven.doxia.module.twiki.TWikiSinkFactory</implementation>
-      <description>TWiki implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia xdoc -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>xdoc</role-hint>
-      <implementation>org.apache.maven.doxia.module.xdoc.XdocParser</implementation>
-      <description>Parse an xdoc model and emit events into the specified doxia Sink.</description>
-      <requirements>
-        <requirement>
-          <role>org.apache.maven.doxia.macro.manager.MacroManager</role>
-          <field-name>macroManager</field-name>
-        </requirement>
-      </requirements>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>xdoc</role-hint>
-      <implementation>org.apache.maven.doxia.module.xdoc.XdocSinkFactory</implementation>
-      <description>Xdoc implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia xhtml -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>xhtml</role-hint>
-      <implementation>org.apache.maven.doxia.module.xhtml.XhtmlParser</implementation>
-      <description>Parse an xhtml model and emit events into a Doxia Sink.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>xhtml</role-hint>
-      <implementation>org.apache.maven.doxia.module.xhtml.XhtmlSinkFactory</implementation>
-      <description>Xhtml implementation of the Sink factory.</description>
-    </component>
-
-    <!-- Doxia xhtml5 -->
-    <component>
-      <role>org.apache.maven.doxia.parser.Parser</role>
-      <role-hint>xhtml5</role-hint>
-      <implementation>org.apache.maven.doxia.module.xhtml5.Xhtml5Parser</implementation>
-      <description>Parse an xhtml5 model and emit events into a Doxia Sink.</description>
-    </component>
-    <component>
-      <role>org.apache.maven.doxia.sink.SinkFactory</role>
-      <role-hint>xhtml5</role-hint>
-      <implementation>org.apache.maven.doxia.module.xhtml5.Xhtml5SinkFactory</implementation>
-      <description>Xhtml5 implementation of the Sink factory.</description>
-    </component>
-  </components>
-</component-set>