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.
[ BUILD # : 201111160600 ] [ JDK VERSION : 1.7 ] When creating a Schema file from the database in a maven project the default location is "src\main\java" when it should be "src\main\resources"
I'm sorry I don't understand the problem. Why should be the default location in "src\main\resources"? Why explain a background? Thanks
I'm sorry I don't understand the problem. Why should be the default location in "src\main\resources"? Could you explain a background? Thanks
In a Maven project src/main/java/ (JavaProjectConstants.SOURCES_TYPE_JAVA) may contain only *.java files. All static resources must be placed in src/main/resources/ (SOURCES_TYPE_RESOURCES) instead.
Created attachment 149709 [details] proposed patch v1 The attached patch fixes the bug - the idea: Take the existence of directory "<project>/main/src" as indicator of a maven style directory layout. In this case the change creates/uses the "<project>/main/resources/META-INF" directory as target. JavaProjectConstants.SOURCES_TYPE_RESOURCES can only be used if the directory already exists - for maven projects this is not necessarily the case.
Patch was committed as: http://hg.netbeans.org/core-main/rev/99778347aa18 In the next few days a nightly build will be made available (a message is added here then). Please check that version and mark this bug as VERFIED if you find your problem fixed. Thank you!
Integrated into 'main-silver', will be available in build *201505230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/99778347aa18 User: Matthias Blaesing <matthias42@netbeans.org> Log: #205279: change default path for DBSchema generation wizard in maven project to src/main/resources/META-INF