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


Groups > comp.lang.java.programmer > #32359 > unrolled thread

Maven does not find javax,persistence

Started byCecil Westerhof <Cecil@decebal.nl>
First post2015-08-19 12:24 +0200
Last post2015-08-19 14:22 +0200
Articles 2 — 1 participant

Back to article view | Back to comp.lang.java.programmer


Contents

  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

#32359 — Maven does not find javax,persistence

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-08-19 12:24 +0200
SubjectMaven does not find javax,persistence
Message-ID<87egizr2yg.fsf@Equus.decebal.nl>
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?

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

[toc] | [next] | [standalone]


#32365

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-08-19 14:22 +0200
Message-ID<87wpwrpiwj.fsf@Equus.decebal.nl>
In reply to#32359
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web