NetBeans Forums

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

Matisse and Maven: Problem wit resource Folder

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
kajo



Joined: 14 Aug 2009
Posts: 2

PostPosted: Fri Aug 14, 2009 7:01 am    Post subject: Matisse and Maven: Problem wit resource Folder Reply with quote

Hi,

at the moment i am working on a GUI Project based on Swing and the Swing Application Framework but i struggle with the following Problem.
My Project is build with Maven and has a Maven Project Structure. So i have a folder "src/main/java" or my java sources and a folder "src/main/resources" for resources. But when i create a GUI class and edit it with Matisse resources (label texts f.e.) are always stored automatically in a subfolder "resources" directly on the same level as the .form file. I guess that is needed because of the Resource Manager from the Swing Application Framework. One solution is to abondon label texts as resource but my application needs I18N and i also like the idea to create resource properties automatically. Is it possible to change the base folder for matisse to create the resource files?
Back to top
mkleint
Posted via mailing list.





PostPosted: Fri Aug 14, 2009 9:09 am    Post subject: Matisse and Maven: Problem wit resource Folder Reply with quote

If you create the swing app framework app project from the swing app
archetype
GroupId: org.codehaus.mojo.archetypes
ArtifactId: appframework
Version: 1.0
then it should work ok.

If you just created a jar project and thrown the app framework
dependency in, you are missing some "additional" netbeans related
information that the app framework support required. The project
generated from the archetype will have that.. it's a certain section of
the nb-configurations.xml file which is next to the pom.xml file. I
guess copying it from the archetype based project to your project shall
be enough to make it work (an IDE restart might be necessary, not sure)

I consider it a bug in the appframework support, but not sure it's
filed. Feel free to do so.

Milos

kajo wrote:
Quote:
Hi,



at the moment i am working on a GUI Project based on Swing and the Swing Application Framework but i struggle with the following Problem.

My Project is build with Maven and has a Maven Project Structure. So i have a folder "src/main/java" or my java sources and a folder "src/main/resources" for resources. But when i create a GUI class and edit it with Matisse resources (label texts f.e.) are always stored automatically in a subfolder "resources" directly on the same level as the .form file. I guess that is needed because of the Resource Manager from the Swing Application Framework. One solution is to abondon label texts as resource but my application needs I18N and i also like the idea to create resource properties automatically. Is it possible to change the base folder for matisse to create the resource files?




Back to top
kajo



Joined: 14 Aug 2009
Posts: 2

PostPosted: Fri Aug 14, 2009 11:23 am    Post subject: Thanks Reply with quote

Thank you very much!

That helped me. I created the Maven Project without archetype. I guess i should have a closer look which archetypes are available. I did not imagine that there is one for Swing Application Framework.

Now i just copied the "nb-configurations.xml" File from the archetype to my Project and i works fine !!! Very Happy
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