Maven: package doesn't exist

I was developing an application like a regular Java web application, but since I want to deploy it to Heroku I need it to become a Maven project, so I created an empty Maven project with Eclipse and copied all the libraries I used and my whole source.

When I do mvn compile

on my local machine everything goes well, but the application doesn't really work.

When I do git push heroku master

I get an error like

package com.mysite.java.classes does not exist

      

Locally I have maven-compiler-plugin

ver 3.1 and source and target are 1.7, although I am using 1.8 jdk. I changed it to 1.7 as I saw here Pushing my repository to hero fails that it has problems with Heroku.

Here is the project structure

enter image description here

I am not very experienced with Maven, so I hope someone can help. I am assuming the import is not working as expected because I am getting a complete list of errors like this

symbol:   class Connection
location: class com.vukstankovic.professionalorientation.Personalities
[ERROR] /tmp/build_0bc5a80c-dc14-4126-b15b-69390f18dc9f/src/main/java/com/vukstankovic/professionalorientation/Personalities.java:[48,19] cannot find symbol

      

The class Connection

in this example is the mysql class fromcom.mysql.jdbc.Connection

+3


source to share





All Articles