[ http://jira.codehaus.org/browse/MNG-641?page=comments#action_43419 ]
Kenney Westerhof commented on MNG-641: -------------------------------------- generate-sources is before generate-resources, which might not always be the correct ordering. I had a usecase that really isn't very relevant anymore, it went something like this: - extract metadata from database to xml file - generate sources and resources (.sql files) from xml file However normally the extraction will not be done.. Another usecase which we used succesfully in a project is this: - we have a set of text files defining forms (src/main/resources) - they are parsed and converted into xml files (generate-resources) - these are converted to sources using xslt (generate-sources) - some of these are run, producing more resources (sql / jsp) (process-sources + generate-resources) This is reversed from the compiler-compiler situation: generate-sources, generate-(re)sources. I think collapsing them would be a good idea so the ordering can then be defined in the pom. Although currently you can override a plugin's phase, moving it in the lifecycle. > Collapse "generate-sources" and "generate-resources" into "generate" > -------------------------------------------------------------------- > > Key: MNG-641 > URL: http://jira.codehaus.org/browse/MNG-641 > Project: Maven 2 > Type: Improvement > Components: maven-plugins, maven-core > Reporter: Trygve Laugstol > Assignee: Brett Porter > > > It's not unlikely that you'd like to generate sources from generated > resources. > A not that far fetched use case is that we might generate components.xml and > then generate remote stubs for the components found in components.xml. > The same might apply to process-sources and -resources. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]