[ http://jira.codehaus.org/browse/MIDEA-26?page=comments#action_62020 ]
Mark Chai commented on MIDEA-26: -------------------------------- Guys, I've been trying to get the "Library" tag to work (specifying source). As far as I can figure, you need to add: {code:xml} <libraries> <library> <name>webwork</name> <sources>file://$webwork$/src/java</sources> </library> </libraries> {code} somewhere. I don't really know where that somewhere is? I've tried the {{pom.xml}} and {[settings.xml}} with not too much luck. Looking at the code in {{org.apache.maven.plugin.idea.IdeaMojo}} didn't really reveal to me where the plugin was loading its libraries {{private Library[] libraries}} from. Any help would be most appreciated! Cheers Mark C > Library support and template overrides > -------------------------------------- > > Key: MIDEA-26 > URL: http://jira.codehaus.org/browse/MIDEA-26 > Project: Maven 2.x Idea Plugin > Type: New Feature > Reporter: Patrick Lightbody > Assignee: Edwin Punzalan > Attachments: idea.diff, idea.diff, idea.diff, idea.diff, idea.diff, > idea.patch > > > The supplied patch provides two features: > 1) If the files workspace.xml, module.xml, or project.xml are found in > src/main/idea, they will be used in place of those found in the plugin jar. > That is, they will be used for creating new config files (Rather than > updating existing ones). > 2) You may specify a <library> element that can allow you to tweak how the > library is defined in the module: > * exclude: prevents the library from being configured - great for times when > you wish to instead link in a module as a dependency > * sources: a comma separated list of source paths to bind to the library > * classes: a comma separated list of class paths to use in place of the > typical jar found in ~/.m2 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira