Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven not updating/downloading dependencies

I'm using Eclipse EE and Apache Wicket.

I have my dependencies written down at pom.xml.

For some reason, maven is not updating even when I try to clean the project and go under Maven > Update Project.

When I go to check the dependencies the jar is there, but it still give me error when I try to run (ClassNotFoundException).

Why is this happening?

Dependency in question:

<dependency>
    <groupId>org.tuckey</groupId>
    <artifactId>urlrewritefilter</artifactId>
    <version>4.0.3</version>
</dependency>

Also already tried to reinstall maven.

like image 470
Comic Sans MS Lover Avatar asked Dec 05 '22 13:12

Comic Sans MS Lover


2 Answers

Try running mvn eclipse:eclipse to update ur Eclipse. Also, refresh after completion of the command run.

like image 167
Melvins Avatar answered Jan 16 '23 04:01

Melvins


You shouldn't mix "mvn eclipse:eclipse" and m2eclipse maven eclipse plugin, it will cause the plugin to not operate correctly. If you have done so, you need to remove your .project/.classpath/.settings files and re-import with "import existing maven projects".

like image 30
Allen Parslow Avatar answered Jan 16 '23 03:01

Allen Parslow