Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32365

Re: Maven does not find javax,persistence

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.java.programmer
Subject Re: Maven does not find javax,persistence
Date 2015-08-19 14:22 +0200
Organization Decebal Computing
Message-ID <87wpwrpiwj.fsf@Equus.decebal.nl> (permalink)
References <87egizr2yg.fsf@Equus.decebal.nl>

Show all headers | View raw


On Wednesday 19 Aug 2015 12:24 CEST, Cecil Westerhof wrote:

> I am busy with implementing JPA. So at the moment I have the
> following imports: import javax.persistence.Column; import
> javax.persistence.Entity; import javax.persistence.Id; import
> javax.persistence.Table;
>
> But when I do:
> mvn clean install
>
> I get the error that javax.persistence can not be found. In Eclipse
> I do not have this problem. I can just do a clean in Eclipse, but it
> would be nice if I just could work with maven.
>
> Anyone an idea what could be the problem and what to do about it?

After a build in Eclipse I need to do:
    mvn install
before I can run the Maven tests.

Of-course when the code that is changed does not contain a
javax.persistence import I do not need a clean in Eclipse.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Maven does not find javax,persistence Cecil Westerhof <Cecil@decebal.nl> - 2015-08-19 12:24 +0200
  Re: Maven does not find javax,persistence Cecil Westerhof <Cecil@decebal.nl> - 2015-08-19 14:22 +0200

csiph-web