I'm new to developing java and I do not have much knowledge on Maven. The little I learned was through surveys and tutorials on the internet, and now I'm facing a problem that seems to be related to settings and I do not know how to solve.
Come on. I'm using Maven (EMBEDDED version 3.2.1 / 1.5.1.50109-1819) that comes with Eclipse Juno to manage my dependencies. Along with them, I also use the jBoss Tools plugin to send my application to the Openshift. So good.
I am facing problems with my tomcat 8 in openshift and from some logs and searches, I could see that the problem is apparently a version bug Mysql-connector-java.jar 5.0.8 contained in my project. So I went to the Maven Repository to get the latest version of mysql-connector-java and change it in my pom.xml file.
From
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.0.8</version>
</dependency>
for
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.38</version>
</dependency>
When saving the pom.xml after making the change from version 5.0.8 to 5.1.38 of mysql-connector-java, Maven does not seem to copy the mysql-connector-java-5.1.38.jar file to the I have a Maven build with goal clean install, Maven does the build successfully, and in the target folder / MyApp.0.0.1-SNAPSHOT / WEB-INF / lib is both mysql-connector-java.5.0.8-bin.jar and mysql-connector-java-5.1.38.jar. What could be happening? Is not the correct Maven flow when changing the version of a dependency in the pom.xml file not lowering it and saving it in the WEB-INF / lib folder of the local application and deleting the previous version? Please any help is welcome =)