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
java git eclipse maven heroku


source to share


No one has answered this question yet

See similar questions:

1
Pushing my repository to hero fails

or similar:

7672
How do I modify existing messages without committing?
3398
Make an existing Git tracking branch a remote branch?
2956
What is the difference between public, secure, batch and private in Java?
2935
Move existing, uncommitted work to a new branch in Git
2416
Message 'src refspec master does not match any' when pushing commits to Git
2240
How to create an executable JAR with dependencies using Maven?
2038
What does "cherry picking" mean with Git?
786
How to link a folder to an existing Heroku app
646
Working with "Xerces hell" in Java / Maven?
478
IntelliJ Inspection gives "Cannot resolve symbol" but still compiles the code



All Articles
Loading...
X
Show
Funny
Dev
Pics