Hi, I downloaded the source code from the site and was trying to build it. While giving the command mvn install, my build fails because it says that "might not be this projects POM". Do I need to change the POM.xml file or run mvn install from somewhere else first. My stack trace is attached here with.
E:\gsoc\openjpa>mvn install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.openjpa:openjpa-parent:pom:2.0.0-SNAPSHOT Reason: Cannot find parent: org.apache:apache for project: org.apache.openjpa:op enjpa-parent:pom:2.0.0-SNAPSHOT for project org.apache.openjpa:openjpa-parent:po m:2.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache :apache for project: org.apache.openjpa:openjpa-parent:pom:2.0.0-SNAPSHOT for pr oject org.apache.openjpa:openjpa-parent:pom:2.0.0-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent : org.apache:apache for project: org.apache.openjpa:openjpa-parent:pom:2.0.0-SNA PSHOT for project org.apache.openjpa:openjpa-parent:pom:2.0.0-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D efaultMavenProjectBuilder.java:1398) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def aultMavenProjectBuilder.java:823) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:508) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419) ... 11 more Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 P OM. for project org.apache:apache at C:\Documents and Settings\ashish\.m2\reposi tory\org\apache\apache\4\apache-4.pom at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default MavenProjectBuilder.java:1609) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default MavenProjectBuilder.java:1581) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:562) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D efaultMavenProjectBuilder.java:1394) ... 17 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Tue Apr 21 15:54:24 IST 2009 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ E:\gsoc\openjpa> On Tue, Apr 21, 2009 at 12:51 PM, Pinaki Poddar <ppod...@apache.org> wrote: > > Hi, > Check out the source code [1] > Follow the instructions [2] to build. > > If you encounter difficulty, post with stack trace/build log > > [1] http://openjpa.apache.org/source-code.html > [2] http://openjpa.apache.org/building-openjpa.html > > > ashishpaliwal wrote: >> >> Hello, >> >> I am new GSOC guy and I will be working on the Slice module. I was >> trying to set up my development environment and downloaded the 1.2.1 >> release for the same. I was trying to compile the hellojpa program >> given in example folder but it is not able to find javax.persistence >> package. Actually there is no persistence package in my standard java >> distribution. >> Can someone please tell me how to sort out this problem. Also is there >> some eclipse plugin to work with OpenJPA. >> Being new to this type of work environment, I might be asking lot of >> stupid questions at first, so please bear with me. >> >> thanks and regards >> >> -- >> Ashish Paliwal >> Mobile : 9305128367 >> IIT Kanpur >> India >> >> > > > ----- > Pinaki Poddar http://ppoddar.blogspot.com/ > > http://www.linkedin.com/in/pinakipoddar > OpenJPA PMC Member/Committer > JPA Expert Group Member > -- > View this message in context: > http://n2.nabble.com/Problems-in-setting-up-the-work-enviroment.-tp2668172p2668421.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > > thanks -- Ashish Paliwal Mobile : 9305128367 IIT Kanpur India