This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201370 - Cannot build Maven web app with JPA
Summary: Cannot build Maven web app with JPA
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 15:48 UTC by Kenneth Ganfield
Modified: 2011-11-23 16:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2011-08-26 15:48:11 UTC
Product Version: NetBeans IDE Dev (Build 201108260601)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02-384
System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)

Fresh install/userdir.

1. Create Maven web app
2. Specify Glassfish 3.1.1
3. Create entity classes from db using wizard.

When I try to build the application, the output displays that the persistence dependencies cannot be downloaded. This worked in 7.0.1 so this is a regression.

groupId in POM is the most recent: rt.eclipselink.maven.repo.org.eclipse.persistence
repository url: http://download.eclipse.org

cd /Users/nb/Documents/nbtemp-project/71-temp5/mavenwebproject1; JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home /Applications/NetBeans/netbeans-201108260601/java/maven/bin/mvn clean install
Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building mavenwebproject1 1.0-SNAPSHOT
------------------------------------------------------------------------
The POM for rt.eclipselink.maven.repo.org.eclipse.persistence:eclipselink:jar:2.3.0 is missing, no dependency information available
The POM for rt.eclipselink.maven.repo.org.eclipse.persistence:javax.persistence:jar:2.0.3 is missing, no dependency information available
The POM for rt.eclipselink.maven.repo.org.eclipse.persistence:org.eclipse.persistence.jpa.modelgen.processor:jar:2.3.0 is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.379s
Finished at: Fri Aug 26 17:28:36 CEST 2011
Final Memory: 3M/81M
------------------------------------------------------------------------
Failed to execute goal on project mavenwebproject1: Could not resolve dependencies for project com.mycompany:mavenwebproject1:war:1.0-SNAPSHOT: The following artifacts could not be resolved: rt.eclipselink.maven.repo.org.eclipse.persistence:eclipselink:jar:2.3.0, rt.eclipselink.maven.repo.org.eclipse.persistence:javax.persistence:jar:2.0.3, rt.eclipselink.maven.repo.org.eclipse.persistence:org.eclipse.persistence.jpa.modelgen.processor:jar:2.3.0: Failure to find rt.eclipselink.maven.repo.org.eclipse.persistence:eclipselink:jar:2.3.0 in http://download.eclipse.org was cached in the local repository, resolution will not be reattempted until the update interval of eclipselink has elapsed or updates are forced -> [Help 1]
Comment 1 David Konecny 2011-08-31 02:31:45 UTC
Another fix: c2629000a3a5
Ken, you will have to recreate your Maven project.
Comment 2 Kenneth Ganfield 2011-09-02 10:16:19 UTC
Still not working in daily builds. The fix has either not been propagated to the dailies or the fix does not work.
Comment 3 David Konecny 2011-09-04 20:08:16 UTC
Should be in Sunday's dev build.