NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Resources and sources and maven and netbeans

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Ista Pouss
Posted via mailing list.





PostPosted: Mon Jan 11, 2010 10:06 pm    Post subject: Resources and sources and maven and netbeans Reply with 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
mkleint
Posted via mailing list.





PostPosted: Tue Jan 12, 2010 5:10 am    Post subject: Resources and sources and maven and netbeans Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo