简体   繁体   中英

Exception in thread “main” java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories

I am facing issue with exporting JAR as runnable from Eclipse .

Tried with maven plugin, spring-boot plugin & simple java project export . However, it shows spring.factories file related error. I have already copied and pasted it in the required folder after checking on google.

I need to export a spring-boot application which includes some 3rd party JARs and maven jars(to be downloaded from pom.xml) and properties file.

The Jar should be running from the console or using a batch file in the system.

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
      </plugins>
</build>

Run the following command in Terminal

mvn install

With out test

mvn install -DskipTests

or

mvn install -DskipTests=true

the jar will be available in /target folder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM