Compiler error “archive for required library could not be read” - Spring Tool Suite

后端 未结 23 1762
感情败类
感情败类 2020-12-01 01:27

I am starting to configure my development environment and I am using Spring Tool Suite 2.8.1 along with m2E 1.01.

As far as I can tell, since this is a Maven Project

相关标签:
23条回答
  • 2020-12-01 01:54

    When I got an error saying "archive for required library could not be read," I solved it by removing the JARS in question from the Build Path of the project, and then using "Add External Jars" to add them back in again (navigating to the same folder that they were in). Using the "Add Jars" button wouldn't work, and the error would still be there. But using "Add External Jars" worked.

    0 讨论(0)
  • 2020-12-01 01:54

    In case of VSCode, follow the below steps:

    1. Navigate to the respective folder that contains the corrupted jar
    2. Delete just the jar
    3. mvn clean
    4. mvn compile

    That worked for me.

    0 讨论(0)
  • 2020-12-01 01:56

    Remove maven dependenices from build path

    0 讨论(0)
  • 2020-12-01 01:56

    Alternatively, below commands also worked for me:

    mvn -s settings.xml eclipse:clean
    mvn -s settings.xml eclipse:eclipse
    
    0 讨论(0)
  • 2020-12-01 01:57

    I deleted the local maven repository. Then just rightclick the project -> Maven -> Update Project... Select all concerned projects and click OK.

    0 讨论(0)
提交回复
热议问题