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 - generating of persistence classes from db does unneeded pom modifications
Summary: generating of persistence classes from db does unneeded pom modifications
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 21:17 UTC by jan.cetkovsky
Modified: 2014-09-26 21:17 UTC (History)
0 users

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 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>