

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
16 messages in org.codehaus.grails.userRe: [grails-user] Maven integration -...| From | Sent On | Attachments |
|---|---|---|
| Peter Ledbrook | Jun 11, 2008 5:57 am | |
| Tomas Lin | Jun 11, 2008 7:13 am | |
| Raphaël Piéroni | Jun 11, 2008 7:57 am | |
| philippo | Jun 11, 2008 8:08 am | |
| Peter Ledbrook | Jun 11, 2008 8:10 am | |
| Tomas Lin | Jun 11, 2008 8:50 am | |
| Peter Ledbrook | Jun 11, 2008 9:00 am | |
| Luke Daley | Jun 18, 2008 4:42 pm | |
| Michael Mallete | Jun 19, 2008 11:09 pm | |
| crowne | Jun 22, 2008 2:42 pm | |
| Brian Guan | Jun 24, 2008 1:24 am | |
| Graeme Rocher | Jun 24, 2008 1:33 am | |
| crowne | Jun 24, 2008 3:54 am | |
| Luke Daley | Jun 24, 2008 4:05 am | |
| Graeme Rocher | Jun 24, 2008 6:24 am | |
| Gregory Pierce | Jun 24, 2008 10:27 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [grails-user] Maven integration - feedback wanted | Actions... |
|---|---|---|
| From: | crowne (crow...@gmail.com) | |
| Date: | Jun 22, 2008 2:42:05 pm | |
| List: | org.codehaus.grails.user | |
Hi Peter,
Sorry for the late reply. First of all, I am thrilled that the grails team is going to include the MTG plugin for 1.1 Secondly, I am positively blown-away that changes to the directory structure are being done to support co-existance with maven - thanks a whole bunch.
For skipping tests, see this link http://www.nabble.com/Maven-integration---feedback-wanted-to17776961.html It basically states that -Dmaven.test.skip is honored by both surefire and the compiler plugin, and that -DskipTests or the equivalent pom configuration is a surefire only option.
More importantly, and I hope that I'm not too late here, wrt the location of the "grails-app" stuff. I would suggest that you follow the groovy source file location used by GMaven. http://groovy.codehaus.org/GMaven+-+Building+Groovy+Projects
I believe that this should be done whether or not gmaven is used to compile the groovy classes. Even if mtg is invoked to wrap the grails commands, those that want to use gmaven at a later stage would have an easier migration path.
The general maven convention when it comes to location of source files is to separate main and test into two distinct directories under src and then group by type, java, groovy, ruby, resources etc. You typically would have the ability to override the location of the compiled output, so that you could once again build up a binary image of groovy-app under the target folder. The resulting structure would then look something like the below: src \main \groovy \java \resources \ruby \scala \web-app \test \groovy \java \resources \ruby \scala \web-app target \groovy-app . . .
OK, so I wouldn't expect to see ruby and scala sources in a default grails-app, its mostly for demonstration purposes.
I do anticipate a gotcha, when we want to disable compilation of the groovy classes for debugging and hot-code changes, this needs some thought - I don't have an answer off-hand, there may already be a gmaven option, I haven't looked.
Good luck, and thanks some more!
Cheers, Neil Crow.
Peter Ledbrook-2 wrote:
good idea - we'd desperately need the ability to run mvn site (generate groovydoc?javadoc?) and would like to switch off test run (via -Dmaven.test.skip).
Do you know whether this is an option handled by the Surefire plugin, or does Maven simply skip the "test" phase?
Complying to the maven directory file structure is another plus.
The "grails-app" directory makes this difficult, which is why I'm suggesting "src/main/grails" in its place. Other suggestions are welcome (such as "src/main/resources/grails-app") particularly as my Maven experience is limited.
Cheers,
Peter
-- Software Engineer G2One, Inc. http://www.g2one.com/
--------------------------------------------------------------------- To unsubscribe from this list, please visit:
--
View this message in context:
http://www.nabble.com/Maven-integration---feedback-wanted-tp17776961p18059371.html
Sent from the grails - user mailing list archive at Nabble.com.
--------------------------------------------------------------------- To unsubscribe from this list, please visit:







