• Post Reply Bookmark Topic Watch Topic
  • New Topic

recompiling maven after changing code  RSS feed

 
David Freed
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
I have a very basic question about the Maven.
I compile 2 dependent projects on maven and they have a problem, then I change a code and I recompile the project.
after that in the jar file of this project, i see that the code is the same, the error also shows me that the file is the same ( from the error line i can understand that)
would you please advice me?

thanks
best,david
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to be a little more specific. You mention there are two projects, that they have some kind of dependency (what is that dependency?, are you using a mast POM with submodules? or are you projects independent projects? and what kind of projects?), and then say that after changing code you recompile the project (which project was the code change in? and which project did you recompile), and that "jar file of this project" still contains the code before you made the change (at least, I assume that is what you said). What is "this project"? The one whose code you changed, or the other?

Do you see why I am confused?
 
Knute Snortum
Sheriff
Posts: 4276
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe try mvn clean install?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!