NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Ista Pouss Posted via mailing list.
|
Posted: Mon Jan 11, 2010 10:06 pm Post subject: Resources and sources and maven and netbeans |
|
|
Hi,
With a maven project, netbeans create a directory src/main/java : beautiful.
In that directory I create a paquetage in sub-directories "com.foo".
When I want to create some resources, maven says to me to put them in
src/main/resources directory. Netbeans doesn't do that.
So I try myself. With the Files panel I create a directory
src/main/resources. Doing that, I can see a new node in the project
panel : "Other Sources/src/main/resources".
On that node in project panel I want to create the paquetage for
resources, I choose "com.foo.configs".
Unfortunately, Netbeans change the directory and put it in the
src/main. So I get a src/main/java/com/foo,
src/main/java/com/foo/configs, and an empty src/main/resources
directory. I should want src/main/resources/com/foo/configs.
I need to change manualy (thanks to zsh) the resource directory.
Is it a feature or a bug ?
Thanks. |
|
| Back to top |
|
 |
mkleint Posted via mailing list.
|
Posted: Tue Jan 12, 2010 5:10 am Post subject: Resources and sources and maven and netbeans |
|
|
that's a bug. sort of. netbeans allows to create packages in java
sources only. in other places you need to create folders, not packages..
Milos
Ista Pouss wrote:
| Quote: | Hi,
With a maven project, netbeans create a directory src/main/java : beautiful.
In that directory I create a paquetage in sub-directories "com.foo".
When I want to create some resources, maven says to me to put them in
src/main/resources directory. Netbeans doesn't do that.
So I try myself. With the Files panel I create a directory
src/main/resources. Doing that, I can see a new node in the project
panel : "Other Sources/src/main/resources".
On that node in project panel I want to create the paquetage for
resources, I choose "com.foo.configs".
Unfortunately, Netbeans change the directory and put it in the
src/main. So I get a src/main/java/com/foo,
src/main/java/com/foo/configs, and an empty src/main/resources
directory. I should want src/main/resources/com/foo/configs.
I need to change manualy (thanks to zsh) the resource directory.
Is it a feature or a bug ?
Thanks.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|