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 242879 - Gradle Projects don't know that a persistence.xml is in the project
Summary: Gradle Projects don't know that a persistence.xml is in the project
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 18:13 UTC by fwelland
Modified: 2016-07-07 08:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (276.45 KB, text/plain)
2014-03-13 18:13 UTC, fwelland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fwelland 2014-03-13 18:13:48 UTC
Product Version = NetBeans IDE 8.0 RC1 (Build 201402242200)
Operating System = Linux version 3.13.6-200.fc20.x86_64 running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08

Using the  gradle 1.3.0 plugin, I have a simple JPA @Entity and the editor hint in the left margin insists that the persistence.xml is missing.   There is a persistence.xml in <my-project-root>/src/main/resources/META-INF/persistence.xml.      Using F6/Run, a 'main' test method that uses JPA from SE works fine.    When I build a jar from the gradle project, the persistence.xml does show up correctly in the JAR's meta-inf folder. 

Can code hints NB be fixed so that other projects types like gradle projects can gain access to all meta data from the gradle file.   

Or if code-hints can use meta data from any project type, and it is gradle 1.3.0 plugin that is not publishing it...I/You can submit this boog/feature request to the gradle plugin maintainer.   

NOTE:   same basic problem happens with beans.xml in WARs, EJBs, and CDI jars.
Comment 1 fwelland 2014-03-13 18:13:52 UTC
Created attachment 146005 [details]
IDE log
Comment 2 Martin Balin 2016-07-07 08:53:15 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss