Unable to Build using MAVEN ERROR Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.7.1:single No assembly descriptors found

Unable to Build using MAVEN ERROR Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.7.1:single No assembly descriptors found
typescript
Ethan Jackson

Really a novice with this maven and pom.xml files stuff. We've got an older java program we are trying to up from 8 to 21 and having maven errors so I thought I'd step back and create a simple hello world app that can do a maven build and look at the differences in the pom.xml file to see if I can figure it out. That being said I can't even get the hello world app to do a maven build.

Pom.xml file:

<modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>simple-java21-maven</artifactId> <version>1.0.0</version> <properties> <maven.compiler.source>21</maven.compiler.source> <maven.compiler.target>21</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <!-- Compiler Plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.11.0</version> <configuration> <release>21</release> </configuration> </plugin> </plugins> </build>

Maven Configuration

Most posts I've seen seem to point to the mismatched Java version reference or missing JAVA_HOME system variable and I have mine set to: JAVA_HOME=C:\Program Files\Java\jdk-21

Errors start with:

Error reading assemblies: No assembly descriptors found. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:333)

I don't know what this is referring to.

Java is not my primary programming language so all this configuration is pretty foreign to me.

Program works in Debug- just can't get the Maven build figured out.

I'm on a Windows 11 OS if that matters.

any help appreciated Just trying to build a simple jar file from a quick sample app.

Read more on this than I care to admit but I keep getting the same error.

Configuration](https://i.sstatic.net/MNc2ZspB.png) Most posts I've seen seem to point to the mismatched Java version reference or missing JAVA_HOME system variable and I have mine set to: JAVA_HOME=C:\Program Files\Java\jdk-21

Errors start with: Error reading assemblies: No assembly descriptors found. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:333)

I don't know what this is referring to. Java is not my primary programming language so all this configuration is pretty foreign to me. Program works in Debug- just can't get the Maven build figured out. I'm on a Windows 11 OS if that matters.

Answer

<modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>simple-java21-maven</artifactId> <version>1.0.0</version>

Related Articles