I'm not so sure this is a good idea to split up the resources. This seems to violate the preferred Maven layout. Also, its kind of messy. I definitely prefer a top level resoures dir. Again, I believe this is the Maven standard.
What is it about IntelliJ that doesn't allow these files to be in the same dir? By the way, I think we should listen to Volker about not creating "artifacts" (including the TLD) in anything but the target dir. This way, clean will work automatically. I will take care of this now. Later, I'd like to switch the resources back the way they were. Lets figure out a better way to solve your IDE issue. Regards, Sean On 1/2/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > Ok, I just refactored the resources directory into a: > > resources-tld - all tld files wander into this one > resources-facesconfig - the config files are situated there and > resources - for all other (normal) stuff > > this might also make it easier to adopt maven-clean; you'd only need > to throw away everything in resources-tld. > > I've got that to run in IntelliJ no problem, short instructions as following: > > - use mvn idea:idea (thanks Wendy for that hint!) to create a project file > - adopt the dependencies between the created modules as necessary, > - edit myfaces-examples-simple, add as a content-root all > src/main/resources-tld and src/main/resources-facesconfig directories > of impl and tomahawk. > - edit the web-module-settings - make sure to include the correct > libs, and ensure that the "copy files to" option is enabled for them > (_exclude_ commons-el and jsp2.0.jar - yes, really I've done it again > ;) > - add the /META-INF sub-directories of the above-added content-roots > as web-resource-directories, using a path relative to deployment root > of /WEB-INF > > it would be great if someone could update > > http://wiki.apache.org/myfaces/JetBrains_IntelliJ_IDEA > > with a little fleshed out version of this info ;) > > regards, > > Martin > > On 1/2/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > Same problem here - > > > > plus I don't find a way to get the current structure up and running in > > IntelliJ. > > > > Anyone successful so far? Particularly, I don't find a way to include > > my tld+faces-config.xml files properly - without loosing e.g. the > > standard-faces-config.xml file. > > > > Is there a way to split this up in impl, particularly have > > > > src/main/java > > src/main/resource_tld/META-INF/tlds > > src/main/resource/rest of resources > > > > plus - shouldn't we rename tomahawk to myfaces-tomahawk - if all other > > projects have this name prefix? > > > > regards, > > > > Martin > > > > On 1/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Changes to the TLD files don't seem to be being picked up at build time; > > > this was a problem in the Ant build as well but 'ant clean' fixed it > > > there, > > > but 'mvn clean' doesn't here. > > > > > > My situation: I editied > > > tomahawk/src/main/tld/tomahawk-entities/tomahawk_validate_equal_attributes.xml > > > and ran 'mvn install'. My changes didn't take, so I did a 'mvn clean' > > > then > > > a 'mvn install'. Changes still aren't picked up. > > > > > > I suspect it's the cached intermediate file at > > > tomahawk\src\main\resources\META-INF\tomahawk.tld that's > > > causing the problem. It isn't deleted by a clean. > > > > > > [INFO] > > > ---------------------------------------------------------------------------- > > > [INFO] Building Tomahawk > > > [INFO] task-segment: [install] > > > [INFO] > > > ---------------------------------------------------------------------------- > > > [INFO] [xslt:transform {execution: default}] > > > [INFO] # of XML files: 1 > > > [INFO] file up-to-date: > > > C:\work\workspace\myfaces-current-postreorg\build\..\tomahawk\src\main\resources\META-INF\tomahawk.tld > > > > > > > > > > > > -- > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces >
