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
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
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”).
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
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
The directory structure for the FXML JavaFX project:|->src| |->main|
| |->java
| | | |->org| | |
|->openjfx| | |
|->mavenfxmlwebview
| | |
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
>
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-
@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
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
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
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,
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
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
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/$
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
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
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
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
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
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.
21 matches
Mail list logo