Re: Resource sub-folder for Maven based JavaFX

2020-10-12 Thread HRH
Thank you Gj, that's a good answer. On Monday, October 12, 2020, 12:11:49 PM GMT+3:30, Geertjan Wielenga wrote: And the reason is that those two templates are simply the Gluon Maven archetypes over which NetBeans has no control and the archetype in question does not have that resour

Re: Resource sub-folder for Maven based JavaFX

2020-10-12 Thread Geertjan Wielenga
And the reason is that those two templates are simply the Gluon Maven archetypes over which NetBeans has no control and the archetype in question does not have that resources folder because, in contrast to the other archetype, it has no resources and empty folders are not created by Maven atchetype

Re: Resource sub-folder for Maven based JavaFX

2020-10-12 Thread HRH
I stumbled on the solution for this conundrum rather fortuitously.It turns out that one cannot just drop any resource file into the “src->main->resources”folder and hope for maven to copy them to the target directory structure wherethe .class files reside (i.e. “target->classes->org.me.foo”).

Re: Resource sub-folder for Maven based JavaFX

2020-10-01 Thread HRH
You asked for the directory structure and that's what I sent in my response to show the tree (without the contents). That doesn't imply those directories are empty. For instance, the "resources" sub-folder in the "src" contains "cappuccino.jpeg" and this file gets copied over during the project

Re: Resource sub-folder for Maven based JavaFX

2020-10-01 Thread Ernie Rael
In an earlier msg you said FXML ... creates "Other Sources/src/main/resources/${project.package}" tree structure But that is not what you are showing, you show nothing under resources. Seems Gj is correct. I'm sure you can find somewhere to help with you're maven problem. -ernie On 10/1/20

Re: Resource sub-folder for Maven based JavaFX

2020-10-01 Thread HRH
The directory structure for the FXML JavaFX project:|->src|        |->main|     |    |->java |    |    | |->org|    |    |   |->openjfx|    |    | |->mavenfxmlwebview |    |    |

Re: Resource sub-folder for Maven based JavaFX

2020-10-01 Thread Geertjan Wielenga
Then you’re going to need to find the right place to report this, which is not here. Gj On Thu, 1 Oct 2020 at 21:17, HRH wrote: > > > Ernie, > > Whether I execute the Maven from the command line (i.e. mvn clean package) > or within the bounds of IDE, the resources are not copied to where the >

Re: Resource sub-folder for Maven based JavaFX

2020-10-01 Thread HRH
Ernie, Whether I execute the Maven from the command line (i.e. mvn clean package) or within the bounds of IDE, the resources are not copied to where the *.class files reside under the "target\classes\${package-structure}" sub-tree, instead, they're copied under "target\classes" with the module-

Re: Resource sub-folder for Maven based JavaFX

2020-10-01 Thread Ernie Rael
@HRH, Could you provide the directory structure under src/main/resources for both the working project and the failing project. -ernie On 10/1/2020 11:17 AM, HRH wrote: No, the folder contains an image file (.jpeg) On Tuesday, September 29, 2020, 9:21:41 PM GMT+3:30, Geertjan Wielenga wrot

Re: Resource sub-folder for Maven based JavaFX

2020-10-01 Thread HRH
No, the folder contains an image file (.jpeg) On Tuesday, September 29, 2020, 9:21:41 PM GMT+3:30, Geertjan Wielenga wrote: Because the folder is empty? Gj On Tue, 29 Sep 2020 at 19:45, HRH wrote: Well, I looked into the IDE generated POMs for both project types assiduously and

Re: Resource sub-folder for Maven based JavaFX

2020-09-29 Thread Ernie Rael
In the project directory, from the OS command line, did you try running "mvn clean package"? This takes NetBeans out of the equation; I don't think NetBeans is copying stuff from resource to target. I think maven replicates the resources directory structure under target. -ernie On 9/29/2020

Re: Resource sub-folder for Maven based JavaFX

2020-09-29 Thread Geertjan Wielenga
Because the folder is empty? Gj On Tue, 29 Sep 2020 at 19:45, HRH wrote: > > > > Well, I looked into the IDE generated POMs for both project types > assiduously and there are no major differences, that would lead one to > believe Maven is the culprit here. In summary, during the project build,

Re: Resource sub-folder for Maven based JavaFX

2020-09-29 Thread HRH
Well, I looked into the IDE generated POMs for both project types assiduously and there are no major differences, that would lead one to believe Maven is the culprit here. In summary, during the project build, the resource sub-folder (within the Maven compliant folder structure) is copied from

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread HRH
That's precisely what I was doing, by looking into the Maven docs, and trying to find a way to copy this file to the right destination folder. The generated pom.xml files for both templates seem identical with the exception of the main class name and the project name, so there must be a reason

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread Ernie Rael
On 9/17/2020 11:33 AM, HRH wrote: Ok, I need to be more specific vis-a-vis my last reply. Initially, when I created the src/main/resources sub-folder and put my image.jpg in that directory, Maven copied it the .jpg file to the "target/classes" directory instead of "target/classes/org/openjfx/$

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread Ernie Rael
On 9/17/2020 11:01 AM, HRH wrote: Ernie I have done that (making a "resources" sub-folder under the src/main) but Maven does not copy its content to the "target" subtree. Not sure why? To be clear. If, with no IDE, you do "mvn clean package" (or whatever you specifically need) the resources

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread HRH
Ok, I need to be more specific vis-a-vis my last reply. Initially, when I created the src/main/resources sub-folder and put my image.jpg in that directory, Maven copied it the .jpg file to the "target/classes" directory instead of "target/classes/org/openjfx/${package} where all the class files

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread HRH
Ernie I have done that (making a "resources" sub-folder under the src/main) but Maven does not copy its content to the "target" subtree. Not sure why? On Thursday, September 17, 2020, 10:16:20 PM GMT+4:30, Ernie Rael wrote: On 9/17/2020 9:58 AM, HRH wrote: > > Hi Ernie, > > I hear wha

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread Ernie Rael
On 9/17/2020 9:58 AM, HRH wrote: Hi Ernie, I hear what you're saying about the empty directory. I kept the artifact in the src/main and manually copied it to the target/classes tree after the build. However, "Run Main Project" tends to rebuild and wipe the "target" sub-tree (because I am mis

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread HRH
Hi Ernie, I hear what you're saying about the empty directory. I kept the artifact in the src/main and manually copied it to the target/classes tree after the build. However, "Run Main Project" tends to rebuild and wipe the "target" sub-tree (because I am missing the nb-javac plugin), which th

Re: Resource sub-folder for Maven based JavaFX

2020-09-17 Thread Ernie Rael
On 9/17/2020 5:11 AM, HRH wrote: Hi, The "Simple JavaFX Maven Archetype (Gluon)" template from the "New Projects->Java with Maven" does not create a resource sub-folder under the src subtree, so the developer can store required artifacts (i.e. jpg images,etc.) for the project in that folder.