]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-3088: Remove duplicate classes from maven classpath
authorSimon Steiner <ssteiner@apache.org>
Tue, 8 Aug 2023 12:54:17 +0000 (13:54 +0100)
committerSimon Steiner <ssteiner@apache.org>
Tue, 8 Aug 2023 12:54:17 +0000 (13:54 +0100)
fop/pom.xml

index 68e8844bd009eb99998860c7cb137584b04d7493..81c444c674b1c849ff08faa20ebfc7074d49b74a 100644 (file)
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-assembly-plugin</artifactId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+              <mainClass>org.apache.fop.cli.Main</mainClass>
+            </manifest>
+            <manifestEntries>
+              <SpecificationTitle>XSL-FO - Extensible Stylesheet Language</SpecificationTitle>
+              <SpecificationVersion>1.1</SpecificationVersion>
+              <SpecificationVendor>World Wide Web Consortium</SpecificationVendor>
+              <SpecificationURL>http://www.w3.org/TR/xsl</SpecificationURL>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
         <executions>
           <execution>
-            <id>package-all</id>
-            <phase>package</phase>
+            <phase>install</phase>
             <goals>
-              <goal>single</goal>
+              <goal>copy-dependencies</goal>
             </goals>
             <configuration>
-              <addMavenDescriptor>false</addMavenDescriptor>
-              <appendAssemblyId>false</appendAssemblyId>
-              <archive>
-                <manifest>
-                  <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
-                  <mainClass>org.apache.fop.cli.Main</mainClass>
-                </manifest>
-                <manifestEntries>
-                  <SpecificationTitle>XSL-FO - Extensible Stylesheet Language</SpecificationTitle>
-                  <SpecificationVersion>1.1</SpecificationVersion>
-                  <SpecificationVendor>World Wide Web Consortium</SpecificationVendor>
-                  <SpecificationURL>http://www.w3.org/TR/xsl</SpecificationURL>
-                </manifestEntries>
-              </archive>
-              <descriptors>
-                <descriptor>src/tools/resources/assembly/assembly.xml</descriptor>
-              </descriptors>
+              <outputDirectory>${project.build.directory}</outputDirectory>
+              <includeArtifactIds>fop-core,fop-util,fop-events</includeArtifactIds>
             </configuration>
           </execution>
         </executions>