hibernate-commons-annotations-4.0.1.Final.jar; invalid LOC header (bad signature)?

后端 未结 12 1037
野趣味
野趣味 2020-11-29 05:04

I am new for Maven ..I am trying to create maven project for springMVC+Hiberante but I am getting lot of errors..can any one slove my problem please check my pom.xml for be

相关标签:
12条回答
  • 2020-11-29 05:33

    Nagivate to your C:\Users\user.m2\repository\projects\project1

    Pick the corresponding project and delete it from your .m2. Then f you use maven do mvn clean install otherwise build it accordingly in the terminal. it will recreate those jar files for you Reinstall the ear or war file in server and it should deploy just fine now.

    It worked for me.

    0 讨论(0)
  • 2020-11-29 05:34

    I was getting the same problem.So I had update my maven library and it worked for me.

    0 讨论(0)
  • 2020-11-29 05:35

    Another option is to instead of deleting the repo add a new one, update Maven settings file - <localRepository>C:\\repos\\mycustomrepo</localRepository>

    This can be useful if your working between on different unrelated projects - as was my case. @Vinay Rao answer pointed me in direction of creating a custom repo.

    0 讨论(0)
  • 2020-11-29 05:41

    In the above case delete the commons-logging-1.1.1.jar from .m2/repository/ folder and then just run maven-install, It will definitely be successful.

    0 讨论(0)
  • 2020-11-29 05:43

    I will tell you what I did

    I was getting the same error in common-logging so I went to C:\Users\admin.m2\repository\commons-logging and deleted the directory. The problem was solved next time I compiled.

    0 讨论(0)
  • 2020-11-29 05:43

    It Throw Because your hibernate-commons-annotations-4.0.1.Final.jar is Invalid Or Corrupted.

    Follow the Steps:

    Note : .m2 Folder is Hidden by Default. UnHide the Folder.

    Step 1:Delete all the Content in .m2/repository Folder.

    Step 2:Restart Your Eclipse.

    Step 3:Maven->Update Project .Checked- Force Update of Snapshots/Releases.

    Step 4:Run as Maven Clean.

    Step 5:Run as Maven Install.

    Step 6: Clean Project.

    Step 7 : Run Your Project.

    I Hope you Find your Solution Here..

    Thanks..

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