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 247506

Summary: generating of persistence classes from db does unneeded pom modifications
Product: javaee Reporter: jan.cetkovsky
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description jan.cetkovsky 2014-09-26 21:17:41 UTC
generating of persistence classes from db adds dependencies to the project pom even though the same libraries are already there (by means of provided pom dependency containing libraries existing on used application server).

e.g.

if project dependency contains
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>tomee-plume-webapp</artifactId>
            <version>1.7.0</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>

which already includes eclipse-link-2.4.2 if entity classes from database are generated, the following dependencies are added to the pom (which should not be there, as they don't need to be in the resulting war)

        <dependency>
            <groupId>org.eclipse.persistence</groupId>
            <artifactId>eclipselink</artifactId>
            <version>2.4.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>javaee-api</artifactId>
            <version>6.0-6</version>
        </dependency>