Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Maven does not find javax,persistence Date: Wed, 19 Aug 2015 14:22:36 +0200 Organization: Decebal Computing Lines: 27 Message-ID: <87wpwrpiwj.fsf@Equus.decebal.nl> References: <87egizr2yg.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="5641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IQFdHdEKIhSdu4+kz/YgeJrf5BiSqIy4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:j44b5nHm/EXz2holuGzjCC5vLOo= sha1:aItW2WZf2dTotNJpPKjideX28JA= Xref: csiph.com comp.lang.java.programmer:32365 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