Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot - Class-Path manifest attribute

i'm new to spring boot and setting up a project currently. When i run the application it runs fine, but in the console i'm getting this not sure. can you guys help me out. Thanks

The Class-Path manifest attribute in /Users/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.2/jaxb-impl-2.3.2.jar referenced one or more files that do not exist: file:/Users/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.2/jaxb-runtime-2.3.2.jar,file:/Users/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.2/txw2-2.3.2.jar,file:/Users/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.2/istack-commons-runtime-3.0.8.jar,file:/Users/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.2/stax-ex-1.8.1.jar,file:/Users/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.2/FastInfoset-1.2.16.jar,file:/Users/user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.2/jakarta.activation-api-1.2.1.jar
The Class-Path manifest attribute in /Users/user/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.1/jaxb-runtime-2.3.1.jar referenced one or more files that do not exist: file:/Users/user/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.1/jaxb-api-2.3.1.jar,file:/Users/user/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.1/txw2-2.3.1.jar,file:/Users/user/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.1/istack-commons-runtime-3.0.7.jar,file:/Users/user/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.1/stax-ex-1.8.jar,file:/Users/user/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.1/FastInfoset-1.2.15.jar,file:/Users/user/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.1/javax.activation-api-1.2.0.jar
like image 417
rajesh023 Avatar asked Sep 06 '19 05:09

rajesh023


People also ask

What is class path in manifest file?

A manifest may specify a class path using a "Class-Path" main attribute. Per the linked documentation: "Class-Path: The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces.

What is main class manifest attribute?

"Main-Class" attribute in MANIFEST. MF file specifies the program entry point or name of Main class, a class that contains the main method in Java. The main method is required to run Java program.

How do I fix no main manifest attribute?

It is easy to resolve this error in the Spring Boot project. To fix this error in the SB project, put the maven-plugin dependency under the <plugins> tag in the pom. xml file.

How do I specify JAR manifest?

You use the m command-line option to add custom information to the manifest during creation of a JAR file. This section describes the m option. The Jar tool automatically puts a default manifest with the pathname META-INF/MANIFEST. MF into any JAR file you create.


2 Answers

This seems to be a problem with the spring-boot-devtools. I had the same issue in my project and it was gone after I removed the spring-boot-devtools dependency from the Gradle build.

like image 96
Sebastian Avatar answered Oct 27 '22 14:10

Sebastian


If you comment out the line developmentOnly("org.springframework.boot:spring-boot-devtools") in build.gradle the output stated above does not occur.

From: https://github.com/grails/grails-core/issues/11322

Tks to @niravassar

like image 38
Chocksmith Avatar answered Oct 27 '22 15:10

Chocksmith