Hi,
The first what I see is that you are using an ancient old maven-assembly-plugin version (2.2-beta-5) ... Please upgrade first (most recent is currentl 3.6.0).. Here you find the overview of all plugins with the most recent versions: https://maven.apache.org/plugins/ Kind regards Karl Heinz Marbaise On 13.11.23 20:27, Joseph Kessselman wrote:
Had generation of the multi-module distribution binary zipfile working yesterday. Came back today to find I had apparently stepped on it before pushing. Sigh. OK, I should be able to reproduce this, right? Unfortunately, no. I'm missing something obvious again. In context, currently broken as checked in: https://github.com/apache/xalan-java/tree/xalan-java-mvn-refactored Current error message is [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (distro-assembly) on project distribution: Error reading assemblies: Error reading descriptor at: src/assembly/bin.xml: Unrecognised tag: 'useAllReactorProjects' (position: START_TAG seen ...<moduleSet>\n <useAllReactorProjects>... @15:30) -> [Help 1] The bin.xml file mentioned currently contains something that is based directly off the multi-module assembly instructions, just changing which modules are included. Or at least that's the intent. <!-- Maven assembly plugin configuration for executable packaging See https://maven.apache.org/plugins/maven-assembly-plugin/faq.html#module-binaries --> <assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 http://maven.apache.org/xsd/assembly-2.2.0.xsd"> <id>bin</id> <formats> <format>zip</format> <format>tar-gz</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <moduleSets> <moduleSet> <useAllReactorProjects>true</useAllReactorProjects> <!-- Now, select which projects to include in this module-set. --> <includes> <include>xalan:serializer</include> <include>xalan:xalan</include> <include>xalan:samples</include> </includes> <binaries> <outputDirectory>modules/maven-assembly-plugin</outputDirectory> <unpack>false</unpack> </binaries> </moduleSet> </moduleSets> <!-- Should also include source for all the samples, and all the documentation (docs/site), for emulation of Ant behavior. I think that's either fileSets or files; not sure if that goes inside the moduleSet(s) or not. --> <fileSets> <fileSet> <directory>../target/site</directory> <outputDirectory>docs</outputDirectory> </fileSet> <fileSet> <directory>../samples</directory> <excludes> <exclude>target/**</exclude> <exclude>src/site/**</exclude> </excludes> </fileSet> </fileSets> </assembly> ---------------------------------------------- And the POM invoking this is likewise based pretty directly on the example: <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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>xalan</groupId> <artifactId>xalan-project</artifactId> <version>2.7.3</version> </parent> <artifactId>distribution</artifactId> <packaging>pom</packaging> <name>distribution</name> <!-- NOTE: These dependency declarations are only required to sort this project to the end of the queue in the multimodule build. --> <dependencies> <dependency> <groupId>xalan</groupId> <artifactId>serializer</artifactId> <version>2.7.3</version> </dependency> <dependency> <groupId>xalan</groupId> <artifactId>xalan</artifactId> <version>2.7.3</version> </dependency> <dependency> <groupId>xalan</groupId> <artifactId>samples</artifactId> <version>2.7.3</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>distro-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/assembly/bin.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> ---------------------------------------------- I'm undoubtedly looking right past my error. Which foot am I shooting off this time? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org