You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter Ledbrook <pe...@cacoethes.co.uk> on 2008/11/08 12:06:04 UTC

Experimental Grails archetype

Hi,

I have been working on the Maven integration for Grails, basically
incorporating the Maven Grails Plugin and taking advantage of some changes
in Grails itself. There is now an archetype available that you can use to
create Grails projects without having to install Grails manually. The
command line is:

  mvn archetype:generate -DarchetypeGroupId=org.grails \
    -DarchetypeArtifactId=grails-maven-archetype \
    -DarchetypeVersion=1.0-SNAPSHOT \
    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
    -DgroupId=example -DartifactId=my-app \

Once you have a project, you can execute the standard phases: "clean",
"compile", "test", and "package". It's a bit rough around the edges to say
the least, so there might be a few problems.

I'm interested in what people think and whether it plays ok with other
plugins (I suspect mostly not). Issues should be raised as sub-tasks of:

  http://jira.codehaus.org/browse/GRAILS-3547

Regards,

Peter


-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.


Edderd wrote:
> 
> I tried the archetype, and had no luck. I already have grails
> installed (of course) but wanted to give it a try to take it for a
> spin:
> 
> [INFO] Archetype defined by properties
> [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
> checking for updates from grails-maven-archetype-repo
> Downloading:
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> Downloading:
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> 

What's this server? I'm guessing it doesn't have the archetype on there. Is
it mirroring the Codehaus Snapshots repository?

Cheers,

Peter
-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20440614.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Nikolas Everett <ni...@gmail.com>.
I just wanted to express my support for getting grails working with maven.
I know this will be useful int he future.  I wish I had time to help.

Thank you,

--Nik Everett

On Tue, Nov 11, 2008 at 8:58 AM, Pablo Saavedra
<pa...@gmail.com>wrote:

> Have you tried using the -U flag?
>
> 2008/11/11 Ed <ej...@summitbid.com>
>
> > I tried the archetype, and had no luck. I already have grails
> > installed (of course) but wanted to give it a try to take it for a
> > spin:
> >
> > D:\src\workspace-Grails> mvn archetype:generate
> > -DarchetypeGroupId=org.grails
> > -DarchetypeArtifactId=grails-maven-archetype
> > -DarchetypeVersion=1.0-SNAPSHOT
> > -DarchetypeRepository=http://snapshots.repository.codehaus.org
> > -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
> >  mvn archetype:generate -DarchetypeGroupId=org.grails
> > -DarchetypeArtifactId=grails-maven-archetype
> > -DarchetypeVersion=1.0-SNAPSHOT
> > -DarchetypeRepository=http://snapshots.repository.codehaus.org
> > -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building Maven Default Project
> > [INFO]    task-segment: [archetype:generate] (aggregator-style)
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Preparing archetype:generate
> > [INFO] No goals needed for project - skipping
> > [INFO] Setting property: classpath.resource.loader.class =>
> > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> > [INFO] Setting property: velocimacro.messages.on => 'false'.
> > [INFO] Setting property: resource.loader => 'classpath'.
> > [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> > [INFO] [archetype:generate]
> > [INFO] Generating project in Interactive mode
> > [INFO] Archetype defined by properties
> > [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
> > checking for updates from grails-maven-archetype-repo
> > Downloading:
> >
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> > Downloading:
> >
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] The desired archetype does not exist
> > (org.grails:grails-maven-archetype:1.0-SNAPSHOT)
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 4 seconds
> > [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008
> > [INFO] Final Memory: 8M/14M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> >
> >
> > On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <pe...@cacoethes.co.uk>
> > wrote:
> > >
> > > Hi,
> > >
> > > I have been working on the Maven integration for Grails, basically
> > > incorporating the Maven Grails Plugin and taking advantage of some
> > changes
> > > in Grails itself. There is now an archetype available that you can use
> to
> > > create Grails projects without having to install Grails manually. The
> > > command line is:
> > >
> > >  mvn archetype:generate -DarchetypeGroupId=org.grails \
> > >    -DarchetypeArtifactId=grails-maven-archetype \
> > >    -DarchetypeVersion=1.0-SNAPSHOT \
> > >    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
> > >    -DgroupId=example -DartifactId=my-app \
> > >
> > > Once you have a project, you can execute the standard phases: "clean",
> > > "compile", "test", and "package". It's a bit rough around the edges to
> > say
> > > the least, so there might be a few problems.
> > >
> > > I'm interested in what people think and whether it plays ok with other
> > > plugins (I suspect mostly not). Issues should be raised as sub-tasks
> of:
> > >
> > >  http://jira.codehaus.org/browse/GRAILS-3547
> > >
> > > Regards,
> > >
> > > Peter
> > >
> > >
> > > --
> > > View this message in context:
> >
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
> > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Ed
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.


Edderd wrote:
> 
> I get the same output even if I disable my archiva repository and I'm
> wide open.
> Here's the  output with -e:
> 

Have a look at this link - it may help:

  http://www.5341.com/msg/134177.html

Otherwise I have no idea myself, sorry.

Peter
-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20504918.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Ed <ej...@summitbid.com>.
I get the same output even if I disable my archiva repository and I'm
wide open.
Here's the  output with -e:

d:\src\workspace-Grails\rngclient-0.4.x>mvn -e archetype:generate
-DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeRepository=http://snapshots.repository.codehaus.org
-DgroupId=com.summitbid -DartifactId=TestGrailsMavenArchetype
mvn -e archetype:generate -DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeRepository=http://snapshots.repository.codehaus.org
-DgroupId=com.summitbid -DartifactId=TestGrailsMavenArchetype
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
valid version could be found
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
	at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
	at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
	at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
	... 14 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Nov 14 00:32:04 MST 2008
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

On Thu, Nov 13, 2008 at 9:02 AM, Peter Ledbrook <pe...@cacoethes.co.uk> wrote:
>
>
> Edderd wrote:
>>
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'archetype'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
>> does not exist or no valid version could be found
>>
>
> It doesn't look like the problem is with the Codehaus Snapshots repository:
> the above error is talking about the Archetype Plugin itself. I don't know
> why that might be a problem - what happens if you run "mvn -e ..."?
>
> Cheers,
>
> Peter
>
> --
> View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20481683.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.

Edderd wrote:
> 
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
> does not exist or no valid version could be found
> 

It doesn't look like the problem is with the Codehaus Snapshots repository:
the above error is talking about the Archetype Plugin itself. I don't know
why that might be a problem - what happens if you run "mvn -e ..."?

Cheers,

Peter

-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20481683.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Ed <ej...@summitbid.com>.
I thought I'd fixed the problem but it's Still not working when I
execute on one of my development boxes. I can execute the command from
the system with the archiva repository, but not on a networked
machine:

D:\src\workspace-Grails>mvn archetype:generate
-DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeRepository=http://snapshots.repository.codehaus.org
-DgroupId=com.summitbid -DartifactId=TestGrailsMavenArchetype
mvn archetype:generate -DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeRepository=http://snapshots.repository.codehaus.org
-DgroupId=com.summitbid -DartifactId=TestGrailsMavenArchetype
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin'
does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Nov 13 06:55:59 MST 2008
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------

The archetype jar is in my snapshots managed repository, so i'm baffled.

from my development box's settings.xml:

    <mirror>
        <id>internal</id>
        <mirrorOf>*</mirrorOf>
        <url>http://192.168.2.2:8090/archiva/repository/internal</url>
        <name>Archiva Managed Internal Repository</name>
    </mirror>

    <mirror>
        <id>snapshots</id>
        <mirrorOf>*</mirrorOf>
        <url>http://192.168.2.2:8090/archiva/repository/shapshots</url>
        <name>Archiva Managed Snapshot Repository</name>
    </mirror>

In my archiva config, I have to managed repositories and a proxy
connector set up for the grails.org snapshots
Grails.org Snapshot Repository
Identifier 	grails.snapshots
Name 	Grails.org Snapshot Repository
URL 	http://snapshots.repository.codehaus.org/
Type 	Maven 2.x Repository

and

Proxy Connector

grails.snapshots

Grails.org Snapshot Repository

http://snapshots.repository.codehaus.org/
Expand
Network Proxy: 	(Direct Connection)
Policies: 	
propagate-errors-on-update 	artifact not already present
propagate-errors 	queue error
releases 	hourly
snapshots 	daily
checksum 	fix
cache-failures 	no

Any ideas?



On Wed, Nov 12, 2008 at 2:05 PM, Ed <ej...@summitbid.com> wrote:
> This seems to be the issue, actually. I added the repository using the
> archiva web ui:
> Grails.org Snapshot Repository
> Identifier      grails.snapshots
> Name    Grails.org Snapshot Repository
> URL     http://snapshots.repository.codehaus.org/
> Type    Maven 2.x Repository
>
> And it shows up in the main archiva.xml file. Cool.
>
> But I don't see how to enable snapshots...It looks like it's a matter
> of editing the archiva.xml file to enable snapshots for that
> repository, and other's I guess.
>
> One thing that's odd is that it seem to work f for the octo repos...
> Forge Snapshot Repository
> Identifier      mtg
> Name    Forge Snapshot Repository
> URL     http://forge.octo.com/archiva/repository/mtg-snapshots
> Type    Maven 2.x Repository
>
> Forge Snapshot Repository
> Identifier      mtg.snapshots
> Name    Forge Snapshot Repository
> URL     http://forge.octo.com/archiva/repository/mtg-snapshots
> Type    Maven 2.x Repository
>
> Anyway, I'm zeroing in I think...
>
>
>
> On Tue, Nov 11, 2008 at 7:41 AM, Pablo Saavedra
> <pa...@gmail.com> wrote:
>> IIRC, you can add proxied repositories, and you have to make sure spnapshots
>> are enabled in them.
>>
>> Good luck with it.
>>
>> 2008/11/11 Ed <ej...@summitbid.com>
>>
>>> Same result with:
>>>  mvn -U archetype:generate -DarchetypeGroupId=org.grails
>>> -DarchetypeArtifactId=grails-maven-archetype
>>> -DarchetypeVersion=1.0-SNAPSHOT
>>> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>>> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>>>
>>> However, I'm suspecting that my shiny new archiva repos may not be
>>> configured correctly, because I don't see any SNAPSHOT type jars in
>>> there.
>>>
>>> I think SNAPSHOT jars go in the snapshot repos rather then the
>>> internal, and therefore may not be getting downloaded and installed
>>> correctly...
>>>
>>> When I say "shiny new" I really mean, I don't fully understand how
>>> it's supposed to work yet.
>>>
>>> I'll do some more work on this and let you know how it works out.
>>>
>>>
>>>
>>> On Tue, Nov 11, 2008 at 6:58 AM, Pablo Saavedra
>>> <pa...@gmail.com> wrote:
>>> > Have you tried using the -U flag?
>>> >
>>> > 2008/11/11 Ed <ej...@summitbid.com>
>>> >
>>> >> I tried the archetype, and had no luck. I already have grails
>>> >> installed (of course) but wanted to give it a try to take it for a
>>> >> spin:
>>> >>
>>> >> D:\src\workspace-Grails> mvn archetype:generate
>>> >> -DarchetypeGroupId=org.grails
>>> >> -DarchetypeArtifactId=grails-maven-archetype
>>> >> -DarchetypeVersion=1.0-SNAPSHOT
>>> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>>> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>>> >>  mvn archetype:generate -DarchetypeGroupId=org.grails
>>> >> -DarchetypeArtifactId=grails-maven-archetype
>>> >> -DarchetypeVersion=1.0-SNAPSHOT
>>> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>>> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>>> >> [INFO] Scanning for projects...
>>> >> [INFO] Searching repository for plugin with prefix: 'archetype'.
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] Building Maven Default Project
>>> >> [INFO]    task-segment: [archetype:generate] (aggregator-style)
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] Preparing archetype:generate
>>> >> [INFO] No goals needed for project - skipping
>>> >> [INFO] Setting property: classpath.resource.loader.class =>
>>> >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>>> >> [INFO] Setting property: velocimacro.messages.on => 'false'.
>>> >> [INFO] Setting property: resource.loader => 'classpath'.
>>> >> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>>> >> [INFO] [archetype:generate]
>>> >> [INFO] Generating project in Interactive mode
>>> >> [INFO] Archetype defined by properties
>>> >> [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
>>> >> checking for updates from grails-maven-archetype-repo
>>> >> Downloading:
>>> >>
>>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
>>> >> Downloading:
>>> >>
>>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [ERROR] BUILD FAILURE
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] The desired archetype does not exist
>>> >> (org.grails:grails-maven-archetype:1.0-SNAPSHOT)
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] For more information, run Maven with the -e switch
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >> [INFO] Total time: 4 seconds
>>> >> [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008
>>> >> [INFO] Final Memory: 8M/14M
>>> >> [INFO]
>>> >> ------------------------------------------------------------------------
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <pe...@cacoethes.co.uk>
>>> >> wrote:
>>> >> >
>>> >> > Hi,
>>> >> >
>>> >> > I have been working on the Maven integration for Grails, basically
>>> >> > incorporating the Maven Grails Plugin and taking advantage of some
>>> >> changes
>>> >> > in Grails itself. There is now an archetype available that you can use
>>> to
>>> >> > create Grails projects without having to install Grails manually. The
>>> >> > command line is:
>>> >> >
>>> >> >  mvn archetype:generate -DarchetypeGroupId=org.grails \
>>> >> >    -DarchetypeArtifactId=grails-maven-archetype \
>>> >> >    -DarchetypeVersion=1.0-SNAPSHOT \
>>> >> >    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
>>> >> >    -DgroupId=example -DartifactId=my-app \
>>> >> >
>>> >> > Once you have a project, you can execute the standard phases: "clean",
>>> >> > "compile", "test", and "package". It's a bit rough around the edges to
>>> >> say
>>> >> > the least, so there might be a few problems.
>>> >> >
>>> >> > I'm interested in what people think and whether it plays ok with other
>>> >> > plugins (I suspect mostly not). Issues should be raised as sub-tasks
>>> of:
>>> >> >
>>> >> >  http://jira.codehaus.org/browse/GRAILS-3547
>>> >> >
>>> >> > Regards,
>>> >> >
>>> >> > Peter
>>> >> >
>>> >> >
>>> >> > --
>>> >> > View this message in context:
>>> >>
>>> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
>>> >> > Sent from the Maven - Users mailing list archive at Nabble.com.
>>> >> >
>>> >> >
>>> >> > ---------------------------------------------------------------------
>>> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> >> > For additional commands, e-mail: users-help@maven.apache.org
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Ed
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> >> For additional commands, e-mail: users-help@maven.apache.org
>>> >>
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Ed
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>
>
>
> --
> Ed
>



-- 
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Ed <ej...@summitbid.com>.
This seems to be the issue, actually. I added the repository using the
archiva web ui:
Grails.org Snapshot Repository
Identifier 	grails.snapshots
Name 	Grails.org Snapshot Repository
URL 	http://snapshots.repository.codehaus.org/
Type 	Maven 2.x Repository

And it shows up in the main archiva.xml file. Cool.

But I don't see how to enable snapshots...It looks like it's a matter
of editing the archiva.xml file to enable snapshots for that
repository, and other's I guess.

One thing that's odd is that it seem to work f for the octo repos...
Forge Snapshot Repository
Identifier 	mtg
Name 	Forge Snapshot Repository
URL 	http://forge.octo.com/archiva/repository/mtg-snapshots
Type 	Maven 2.x Repository

Forge Snapshot Repository
Identifier 	mtg.snapshots
Name 	Forge Snapshot Repository
URL 	http://forge.octo.com/archiva/repository/mtg-snapshots
Type 	Maven 2.x Repository

Anyway, I'm zeroing in I think...



On Tue, Nov 11, 2008 at 7:41 AM, Pablo Saavedra
<pa...@gmail.com> wrote:
> IIRC, you can add proxied repositories, and you have to make sure spnapshots
> are enabled in them.
>
> Good luck with it.
>
> 2008/11/11 Ed <ej...@summitbid.com>
>
>> Same result with:
>>  mvn -U archetype:generate -DarchetypeGroupId=org.grails
>> -DarchetypeArtifactId=grails-maven-archetype
>> -DarchetypeVersion=1.0-SNAPSHOT
>> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>>
>> However, I'm suspecting that my shiny new archiva repos may not be
>> configured correctly, because I don't see any SNAPSHOT type jars in
>> there.
>>
>> I think SNAPSHOT jars go in the snapshot repos rather then the
>> internal, and therefore may not be getting downloaded and installed
>> correctly...
>>
>> When I say "shiny new" I really mean, I don't fully understand how
>> it's supposed to work yet.
>>
>> I'll do some more work on this and let you know how it works out.
>>
>>
>>
>> On Tue, Nov 11, 2008 at 6:58 AM, Pablo Saavedra
>> <pa...@gmail.com> wrote:
>> > Have you tried using the -U flag?
>> >
>> > 2008/11/11 Ed <ej...@summitbid.com>
>> >
>> >> I tried the archetype, and had no luck. I already have grails
>> >> installed (of course) but wanted to give it a try to take it for a
>> >> spin:
>> >>
>> >> D:\src\workspace-Grails> mvn archetype:generate
>> >> -DarchetypeGroupId=org.grails
>> >> -DarchetypeArtifactId=grails-maven-archetype
>> >> -DarchetypeVersion=1.0-SNAPSHOT
>> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>> >>  mvn archetype:generate -DarchetypeGroupId=org.grails
>> >> -DarchetypeArtifactId=grails-maven-archetype
>> >> -DarchetypeVersion=1.0-SNAPSHOT
>> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>> >> [INFO] Scanning for projects...
>> >> [INFO] Searching repository for plugin with prefix: 'archetype'.
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Building Maven Default Project
>> >> [INFO]    task-segment: [archetype:generate] (aggregator-style)
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Preparing archetype:generate
>> >> [INFO] No goals needed for project - skipping
>> >> [INFO] Setting property: classpath.resource.loader.class =>
>> >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>> >> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> >> [INFO] Setting property: resource.loader => 'classpath'.
>> >> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> >> [INFO] [archetype:generate]
>> >> [INFO] Generating project in Interactive mode
>> >> [INFO] Archetype defined by properties
>> >> [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
>> >> checking for updates from grails-maven-archetype-repo
>> >> Downloading:
>> >>
>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
>> >> Downloading:
>> >>
>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [ERROR] BUILD FAILURE
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] The desired archetype does not exist
>> >> (org.grails:grails-maven-archetype:1.0-SNAPSHOT)
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] For more information, run Maven with the -e switch
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >> [INFO] Total time: 4 seconds
>> >> [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008
>> >> [INFO] Final Memory: 8M/14M
>> >> [INFO]
>> >> ------------------------------------------------------------------------
>> >>
>> >>
>> >>
>> >>
>> >> On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <pe...@cacoethes.co.uk>
>> >> wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > I have been working on the Maven integration for Grails, basically
>> >> > incorporating the Maven Grails Plugin and taking advantage of some
>> >> changes
>> >> > in Grails itself. There is now an archetype available that you can use
>> to
>> >> > create Grails projects without having to install Grails manually. The
>> >> > command line is:
>> >> >
>> >> >  mvn archetype:generate -DarchetypeGroupId=org.grails \
>> >> >    -DarchetypeArtifactId=grails-maven-archetype \
>> >> >    -DarchetypeVersion=1.0-SNAPSHOT \
>> >> >    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
>> >> >    -DgroupId=example -DartifactId=my-app \
>> >> >
>> >> > Once you have a project, you can execute the standard phases: "clean",
>> >> > "compile", "test", and "package". It's a bit rough around the edges to
>> >> say
>> >> > the least, so there might be a few problems.
>> >> >
>> >> > I'm interested in what people think and whether it plays ok with other
>> >> > plugins (I suspect mostly not). Issues should be raised as sub-tasks
>> of:
>> >> >
>> >> >  http://jira.codehaus.org/browse/GRAILS-3547
>> >> >
>> >> > Regards,
>> >> >
>> >> > Peter
>> >> >
>> >> >
>> >> > --
>> >> > View this message in context:
>> >>
>> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
>> >> > Sent from the Maven - Users mailing list archive at Nabble.com.
>> >> >
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >> > For additional commands, e-mail: users-help@maven.apache.org
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Ed
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >> For additional commands, e-mail: users-help@maven.apache.org
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Ed
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>



-- 
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
IIRC, you can add proxied repositories, and you have to make sure spnapshots
are enabled in them.

Good luck with it.

2008/11/11 Ed <ej...@summitbid.com>

> Same result with:
>  mvn -U archetype:generate -DarchetypeGroupId=org.grails
> -DarchetypeArtifactId=grails-maven-archetype
> -DarchetypeVersion=1.0-SNAPSHOT
> -DarchetypeRepository=http://snapshots.repository.codehaus.org
> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>
> However, I'm suspecting that my shiny new archiva repos may not be
> configured correctly, because I don't see any SNAPSHOT type jars in
> there.
>
> I think SNAPSHOT jars go in the snapshot repos rather then the
> internal, and therefore may not be getting downloaded and installed
> correctly...
>
> When I say "shiny new" I really mean, I don't fully understand how
> it's supposed to work yet.
>
> I'll do some more work on this and let you know how it works out.
>
>
>
> On Tue, Nov 11, 2008 at 6:58 AM, Pablo Saavedra
> <pa...@gmail.com> wrote:
> > Have you tried using the -U flag?
> >
> > 2008/11/11 Ed <ej...@summitbid.com>
> >
> >> I tried the archetype, and had no luck. I already have grails
> >> installed (of course) but wanted to give it a try to take it for a
> >> spin:
> >>
> >> D:\src\workspace-Grails> mvn archetype:generate
> >> -DarchetypeGroupId=org.grails
> >> -DarchetypeArtifactId=grails-maven-archetype
> >> -DarchetypeVersion=1.0-SNAPSHOT
> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org
> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
> >>  mvn archetype:generate -DarchetypeGroupId=org.grails
> >> -DarchetypeArtifactId=grails-maven-archetype
> >> -DarchetypeVersion=1.0-SNAPSHOT
> >> -DarchetypeRepository=http://snapshots.repository.codehaus.org
> >> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'archetype'.
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Building Maven Default Project
> >> [INFO]    task-segment: [archetype:generate] (aggregator-style)
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Preparing archetype:generate
> >> [INFO] No goals needed for project - skipping
> >> [INFO] Setting property: classpath.resource.loader.class =>
> >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> >> [INFO] Setting property: velocimacro.messages.on => 'false'.
> >> [INFO] Setting property: resource.loader => 'classpath'.
> >> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> >> [INFO] [archetype:generate]
> >> [INFO] Generating project in Interactive mode
> >> [INFO] Archetype defined by properties
> >> [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
> >> checking for updates from grails-maven-archetype-repo
> >> Downloading:
> >>
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> >> Downloading:
> >>
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] The desired archetype does not exist
> >> (org.grails:grails-maven-archetype:1.0-SNAPSHOT)
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 4 seconds
> >> [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008
> >> [INFO] Final Memory: 8M/14M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >>
> >>
> >>
> >>
> >> On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <pe...@cacoethes.co.uk>
> >> wrote:
> >> >
> >> > Hi,
> >> >
> >> > I have been working on the Maven integration for Grails, basically
> >> > incorporating the Maven Grails Plugin and taking advantage of some
> >> changes
> >> > in Grails itself. There is now an archetype available that you can use
> to
> >> > create Grails projects without having to install Grails manually. The
> >> > command line is:
> >> >
> >> >  mvn archetype:generate -DarchetypeGroupId=org.grails \
> >> >    -DarchetypeArtifactId=grails-maven-archetype \
> >> >    -DarchetypeVersion=1.0-SNAPSHOT \
> >> >    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
> >> >    -DgroupId=example -DartifactId=my-app \
> >> >
> >> > Once you have a project, you can execute the standard phases: "clean",
> >> > "compile", "test", and "package". It's a bit rough around the edges to
> >> say
> >> > the least, so there might be a few problems.
> >> >
> >> > I'm interested in what people think and whether it plays ok with other
> >> > plugins (I suspect mostly not). Issues should be raised as sub-tasks
> of:
> >> >
> >> >  http://jira.codehaus.org/browse/GRAILS-3547
> >> >
> >> > Regards,
> >> >
> >> > Peter
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
> >> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Ed
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
>
>
>
> --
> Ed
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Experimental Grails archetype

Posted by Ed <ej...@summitbid.com>.
Same result with:
 mvn -U archetype:generate -DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeRepository=http://snapshots.repository.codehaus.org
-DgroupId=com.summitbid -DartifactId=TestGailsArchetype

However, I'm suspecting that my shiny new archiva repos may not be
configured correctly, because I don't see any SNAPSHOT type jars in
there.

I think SNAPSHOT jars go in the snapshot repos rather then the
internal, and therefore may not be getting downloaded and installed
correctly...

When I say "shiny new" I really mean, I don't fully understand how
it's supposed to work yet.

I'll do some more work on this and let you know how it works out.



On Tue, Nov 11, 2008 at 6:58 AM, Pablo Saavedra
<pa...@gmail.com> wrote:
> Have you tried using the -U flag?
>
> 2008/11/11 Ed <ej...@summitbid.com>
>
>> I tried the archetype, and had no luck. I already have grails
>> installed (of course) but wanted to give it a try to take it for a
>> spin:
>>
>> D:\src\workspace-Grails> mvn archetype:generate
>> -DarchetypeGroupId=org.grails
>> -DarchetypeArtifactId=grails-maven-archetype
>> -DarchetypeVersion=1.0-SNAPSHOT
>> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>>  mvn archetype:generate -DarchetypeGroupId=org.grails
>> -DarchetypeArtifactId=grails-maven-archetype
>> -DarchetypeVersion=1.0-SNAPSHOT
>> -DarchetypeRepository=http://snapshots.repository.codehaus.org
>> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'archetype'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Maven Default Project
>> [INFO]    task-segment: [archetype:generate] (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Preparing archetype:generate
>> [INFO] No goals needed for project - skipping
>> [INFO] Setting property: classpath.resource.loader.class =>
>> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
>> [INFO] Setting property: velocimacro.messages.on => 'false'.
>> [INFO] Setting property: resource.loader => 'classpath'.
>> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
>> [INFO] [archetype:generate]
>> [INFO] Generating project in Interactive mode
>> [INFO] Archetype defined by properties
>> [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
>> checking for updates from grails-maven-archetype-repo
>> Downloading:
>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
>> Downloading:
>> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The desired archetype does not exist
>> (org.grails:grails-maven-archetype:1.0-SNAPSHOT)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4 seconds
>> [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008
>> [INFO] Final Memory: 8M/14M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>> On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <pe...@cacoethes.co.uk>
>> wrote:
>> >
>> > Hi,
>> >
>> > I have been working on the Maven integration for Grails, basically
>> > incorporating the Maven Grails Plugin and taking advantage of some
>> changes
>> > in Grails itself. There is now an archetype available that you can use to
>> > create Grails projects without having to install Grails manually. The
>> > command line is:
>> >
>> >  mvn archetype:generate -DarchetypeGroupId=org.grails \
>> >    -DarchetypeArtifactId=grails-maven-archetype \
>> >    -DarchetypeVersion=1.0-SNAPSHOT \
>> >    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
>> >    -DgroupId=example -DartifactId=my-app \
>> >
>> > Once you have a project, you can execute the standard phases: "clean",
>> > "compile", "test", and "package". It's a bit rough around the edges to
>> say
>> > the least, so there might be a few problems.
>> >
>> > I'm interested in what people think and whether it plays ok with other
>> > plugins (I suspect mostly not). Issues should be raised as sub-tasks of:
>> >
>> >  http://jira.codehaus.org/browse/GRAILS-3547
>> >
>> > Regards,
>> >
>> > Peter
>> >
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
>> > Sent from the Maven - Users mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Ed
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>



-- 
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
Have you tried using the -U flag?

2008/11/11 Ed <ej...@summitbid.com>

> I tried the archetype, and had no luck. I already have grails
> installed (of course) but wanted to give it a try to take it for a
> spin:
>
> D:\src\workspace-Grails> mvn archetype:generate
> -DarchetypeGroupId=org.grails
> -DarchetypeArtifactId=grails-maven-archetype
> -DarchetypeVersion=1.0-SNAPSHOT
> -DarchetypeRepository=http://snapshots.repository.codehaus.org
> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
>  mvn archetype:generate -DarchetypeGroupId=org.grails
> -DarchetypeArtifactId=grails-maven-archetype
> -DarchetypeVersion=1.0-SNAPSHOT
> -DarchetypeRepository=http://snapshots.repository.codehaus.org
> -DgroupId=com.summitbid -DartifactId=TestGailsArchetype
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [archetype:generate] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing archetype:generate
> [INFO] No goals needed for project - skipping
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:generate]
> [INFO] Generating project in Interactive mode
> [INFO] Archetype defined by properties
> [INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
> checking for updates from grails-maven-archetype-repo
> Downloading:
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> Downloading:
> http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The desired archetype does not exist
> (org.grails:grails-maven-archetype:1.0-SNAPSHOT)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Tue Nov 11 05:54:44 MST 2008
> [INFO] Final Memory: 8M/14M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <pe...@cacoethes.co.uk>
> wrote:
> >
> > Hi,
> >
> > I have been working on the Maven integration for Grails, basically
> > incorporating the Maven Grails Plugin and taking advantage of some
> changes
> > in Grails itself. There is now an archetype available that you can use to
> > create Grails projects without having to install Grails manually. The
> > command line is:
> >
> >  mvn archetype:generate -DarchetypeGroupId=org.grails \
> >    -DarchetypeArtifactId=grails-maven-archetype \
> >    -DarchetypeVersion=1.0-SNAPSHOT \
> >    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
> >    -DgroupId=example -DartifactId=my-app \
> >
> > Once you have a project, you can execute the standard phases: "clean",
> > "compile", "test", and "package". It's a bit rough around the edges to
> say
> > the least, so there might be a few problems.
> >
> > I'm interested in what people think and whether it plays ok with other
> > plugins (I suspect mostly not). Issues should be raised as sub-tasks of:
> >
> >  http://jira.codehaus.org/browse/GRAILS-3547
> >
> > Regards,
> >
> > Peter
> >
> >
> > --
> > View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
>
> --
> Ed
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Experimental Grails archetype

Posted by Ed <ej...@summitbid.com>.
I tried the archetype, and had no luck. I already have grails
installed (of course) but wanted to give it a try to take it for a
spin:

D:\src\workspace-Grails> mvn archetype:generate
-DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeRepository=http://snapshots.repository.codehaus.org
-DgroupId=com.summitbid -DartifactId=TestGailsArchetype
 mvn archetype:generate -DarchetypeGroupId=org.grails
-DarchetypeArtifactId=grails-maven-archetype
-DarchetypeVersion=1.0-SNAPSHOT
-DarchetypeRepository=http://snapshots.repository.codehaus.org
-DgroupId=com.summitbid -DartifactId=TestGailsArchetype
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
[INFO] snapshot org.grails:grails-maven-archetype:1.0-SNAPSHOT:
checking for updates from grails-maven-archetype-repo
Downloading: http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
Downloading: http://192.168.2.2:8090/archiva/repository/internal/org/grails/grails-maven-archetype/1.0-SNAPSHOT/grails-maven-archetype-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The desired archetype does not exist
(org.grails:grails-maven-archetype:1.0-SNAPSHOT)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Nov 11 05:54:44 MST 2008
[INFO] Final Memory: 8M/14M
[INFO] ------------------------------------------------------------------------




On Sat, Nov 8, 2008 at 4:06 AM, Peter Ledbrook <pe...@cacoethes.co.uk> wrote:
>
> Hi,
>
> I have been working on the Maven integration for Grails, basically
> incorporating the Maven Grails Plugin and taking advantage of some changes
> in Grails itself. There is now an archetype available that you can use to
> create Grails projects without having to install Grails manually. The
> command line is:
>
>  mvn archetype:generate -DarchetypeGroupId=org.grails \
>    -DarchetypeArtifactId=grails-maven-archetype \
>    -DarchetypeVersion=1.0-SNAPSHOT \
>    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
>    -DgroupId=example -DartifactId=my-app \
>
> Once you have a project, you can execute the standard phases: "clean",
> "compile", "test", and "package". It's a bit rough around the edges to say
> the least, so there might be a few problems.
>
> I'm interested in what people think and whether it plays ok with other
> plugins (I suspect mostly not). Issues should be raised as sub-tasks of:
>
>  http://jira.codehaus.org/browse/GRAILS-3547
>
> Regards,
>
> Peter
>
>
> --
> View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Arnaud HERITIER <ah...@gmail.com>.
Hi Ed,

  As soon as Peter and the grails team will release the new version of the
plugin, I'll update our pages @ OCTO to note that we deprecate this plugin
and encourage to use the new one.

Arnaud

On Tue, Nov 11, 2008 at 2:09 PM, Ed <ej...@summitbid.com> wrote:

> I'm confused. Is the groupId for the grails-maven-plugin changing from
> com.octo.mtg to org.grails?
>
> If so is this web page out of date?
> http://forge.octo.com/maven/sites/mtg/grails-maven-plugin/usage.html
>
> I'm using the grails plugin in a bamboo build plan currently. Will I
> need to updated the plugin descriptors in my settings.xml?
>
> Please advise...
>
> and Thanks for your great work!
>
> On Tue, Nov 11, 2008 at 1:26 AM, Peter Ledbrook <pe...@cacoethes.co.uk>
> wrote:
> >
> >
> > PabloS wrote:
> >>
> >> Thanks. Where shall I subscribe to report bugs in the
> maven-grails-plugin?
> >> I
> >> can't generate a domain class :)
> >>
> >
> > See the end of my first e-mail - there's a link to a JIRA issue :)
> Anyway, I
> > have fixed the problem with creating a domain class (as well as all the
> > other Grails commands). Note that the group ID for the plugin is now
> > "org.grails" rather than "com.octo.mtg".
> >
> > There seems to be a problem in that the tests aren't being picked up, but
> > I'll look into that.
> >
> > Cheers,
> >
> > Peter
> >
> > --
> > View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20435285.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
>
> --
> Ed
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.


Edderd wrote:
> 
> I'm confused. Is the groupId for the grails-maven-plugin changing from
> com.octo.mtg to org.grails?
> 
> If so is this web page out of date?
> http://forge.octo.com/maven/sites/mtg/grails-maven-plugin/usage.html
> 

The main reasons for using "org.grails" as the group ID for this plugin are:

1. I didn't want to mess up anyone currently using the existing plugin
2. I have permission to upload artifacts to "org.grails" on Codehaus
3. The intention is that the plugin will form part of the Grails family

In the long run I expect that "org.grails" shall remain the group ID for the
"official" Maven plugin, but I'd like to discuss with the Octo guys before
finalising that.

As for the usage instructions, they mostly do not apply to the "org.grails"
version of the plugin. If you use the archetype as described, then there is
no setup. In fact, the only thing you might want to do is set "org.grails"
as a plugin group (and remove "com.octo.mtg").


Edderd wrote:
> 
> I'm using the grails plugin in a bamboo build plan currently. Will I
> need to updated the plugin descriptors in my settings.xml?
> 

I would continue to use "com.octo.mtg" for critical stuff, particularly as
the new plugin works with Grails 1.1 (which is in pre-beta still). You may
be ok to leave the plugin descriptor sections alone because the project's
POM includes the information on where to get the plugin from.

Hope that helps,

Peter

-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20440534.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Ed <ej...@summitbid.com>.
I'm confused. Is the groupId for the grails-maven-plugin changing from
com.octo.mtg to org.grails?

If so is this web page out of date?
http://forge.octo.com/maven/sites/mtg/grails-maven-plugin/usage.html

I'm using the grails plugin in a bamboo build plan currently. Will I
need to updated the plugin descriptors in my settings.xml?

Please advise...

and Thanks for your great work!

On Tue, Nov 11, 2008 at 1:26 AM, Peter Ledbrook <pe...@cacoethes.co.uk> wrote:
>
>
> PabloS wrote:
>>
>> Thanks. Where shall I subscribe to report bugs in the maven-grails-plugin?
>> I
>> can't generate a domain class :)
>>
>
> See the end of my first e-mail - there's a link to a JIRA issue :) Anyway, I
> have fixed the problem with creating a domain class (as well as all the
> other Grails commands). Note that the group ID for the plugin is now
> "org.grails" rather than "com.octo.mtg".
>
> There seems to be a problem in that the tests aren't being picked up, but
> I'll look into that.
>
> Cheers,
>
> Peter
>
> --
> View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20435285.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
The new issue is http://jira.codehaus.org/browse/GRAILS-3560

2008/11/11 Pablo Saavedra <pa...@gmail.com>

> Peter, which version of grails should I have installed? I'm still getting
> the same problem with the create-domain-class goal. I'll raise a JIRA issue
> with the details.
>
> Regards.
>
> 2008/11/11 Pablo Saavedra <pa...@gmail.com>
>
> Thanks Peter, you are solving issues faster than I can rise them :). I'll
>> let you know how it goes.
>>
>> Regards.
>>
>>
>>
>> 2008/11/11 Peter Ledbrook <pe...@cacoethes.co.uk>
>>
>>
>>>
>>> PabloS wrote:
>>> >
>>> > Thanks. Where shall I subscribe to report bugs in the
>>> maven-grails-plugin?
>>> > I
>>> > can't generate a domain class :)
>>> >
>>>
>>> See the end of my first e-mail - there's a link to a JIRA issue :)
>>> Anyway, I
>>> have fixed the problem with creating a domain class (as well as all the
>>> other Grails commands). Note that the group ID for the plugin is now
>>> "org.grails" rather than "com.octo.mtg".
>>>
>>> There seems to be a problem in that the tests aren't being picked up, but
>>> I'll look into that.
>>>
>>> Cheers,
>>>
>>> Peter
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20435285.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>

Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
Ok, I'll take that into account. Thanks

2008/11/11 Peter Ledbrook <pe...@cacoethes.co.uk>

>
>
> PabloS wrote:
> >
> > That's probably the cause. Where can I get the source code for the
> plugin?
> > I'd like to help debugging this issues.
> >
>
> Great, thanks! SVN repository:
>
>  http://svn.codehaus.org/grails/trunk/grails-maven-plugin/
>
> You can also browse via:
>
>  http://svn.grails.codehaus.org/browse/grails/trunk/grails-maven-plugin/
>
> The Grails POMs are in the Grails source tree on the 1.1 branch:
>
>  http://svn.codehaus.org/grails/branches/GRAILS_1_1/maven/
>
> Note that I am making most of the Maven-related changes to Grails in a
> local
> Git branch, so the artifacts in the snapshot repository don't correspond to
> the source code in the subversion repository. This only applies to Grails
> though - the maven plugin is completely up-to-date.
>
> Cheers,
>
> Peter
> --
> View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20444390.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.

PabloS wrote:
> 
> That's probably the cause. Where can I get the source code for the plugin?
> I'd like to help debugging this issues.
> 

Great, thanks! SVN repository:

  http://svn.codehaus.org/grails/trunk/grails-maven-plugin/

You can also browse via:

  http://svn.grails.codehaus.org/browse/grails/trunk/grails-maven-plugin/

The Grails POMs are in the Grails source tree on the 1.1 branch:

  http://svn.codehaus.org/grails/branches/GRAILS_1_1/maven/

Note that I am making most of the Maven-related changes to Grails in a local
Git branch, so the artifacts in the snapshot repository don't correspond to
the source code in the subversion repository. This only applies to Grails
though - the maven plugin is completely up-to-date.

Cheers,

Peter
-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20444390.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
That's probably the cause. Where can I get the source code for the plugin?
I'd like to help debugging this issues.

Cheers

2008/11/11 Peter Ledbrook <pe...@cacoethes.co.uk>

>
>
> PabloS wrote:
> >
> > That was the problem indeed. I was able to generate a domain class and
> > controller, but couldn't run the application, I get a NoClassDefFound for
> > org.mortbay.jetty.Server
> >
>
> I have created a Wiki page for the maven integration to help people get
> over
> any configuration issues:
>
>  http://www.grails.org/Maven+Integration
>
> I'm also looking at the run-app issue. It's probably a case of adding Jetty
> as a runtime dependency.
>
> Cheers,
>
> Peter
>
> --
> View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20442827.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.


Peter Ledbrook wrote:
> 
> I'm also looking at the run-app issue. It's probably a case of adding
> Jetty as a runtime dependency.
> 

It was indeed just a case of adding Jetty to the dependencies of one of the
Grails artifacts. I have uploaded a new versions that should fix the
problem.

Cheers,

Peter

-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20444267.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.

PabloS wrote:
> 
> That was the problem indeed. I was able to generate a domain class and
> controller, but couldn't run the application, I get a NoClassDefFound for
> org.mortbay.jetty.Server
> 

I have created a Wiki page for the maven integration to help people get over
any configuration issues:

  http://www.grails.org/Maven+Integration

I'm also looking at the run-app issue. It's probably a case of adding Jetty
as a runtime dependency.

Cheers,

Peter

-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20442827.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
That was the problem indeed. I was able to generate a domain class and
controller, but couldn't run the application, I get a NoClassDefFound for
org.mortbay.jetty.Server

I'll add a note to the jira issue.
Regards.

2008/11/11 Peter Ledbrook <pe...@cacoethes.co.uk>

>
> Hi Pablo
>
>
> PabloS wrote:
> >
> > Peter, which version of grails should I have installed? I'm still getting
> > the same problem with the create-domain-class goal. I'll raise a JIRA
> > issue
> > with the details.
> >
>
> You don't need to have Grails installed. That's one of the big changes with
> Grails and the Maven plugin. It will automatically download Grails 1.1 and
> run the project using those JARs. In fact, things are more likely to run
> smoothly if GRAILS_HOME is not set.
>
> Also, can you check whether you have "com.octo.mtg" set up as a plugin
> group
> in your settings file? If so, that may be the reason for problems with
> "grails:generate-all". To test whether that's the likely problem, you could
> try:
>
>  org.grails:grails:generate-all
>
> or whatever the correct syntax is.
>
> Hope that helps,
>
> Peter
>
> --
> View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20440168.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.
Hi Pablo


PabloS wrote:
> 
> Peter, which version of grails should I have installed? I'm still getting
> the same problem with the create-domain-class goal. I'll raise a JIRA
> issue
> with the details.
> 

You don't need to have Grails installed. That's one of the big changes with
Grails and the Maven plugin. It will automatically download Grails 1.1 and
run the project using those JARs. In fact, things are more likely to run
smoothly if GRAILS_HOME is not set.

Also, can you check whether you have "com.octo.mtg" set up as a plugin group
in your settings file? If so, that may be the reason for problems with
"grails:generate-all". To test whether that's the likely problem, you could
try:

  org.grails:grails:generate-all

or whatever the correct syntax is.

Hope that helps,

Peter

-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20440168.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
Peter, which version of grails should I have installed? I'm still getting
the same problem with the create-domain-class goal. I'll raise a JIRA issue
with the details.

Regards.

2008/11/11 Pablo Saavedra <pa...@gmail.com>

> Thanks Peter, you are solving issues faster than I can rise them :). I'll
> let you know how it goes.
>
> Regards.
>
>
>
> 2008/11/11 Peter Ledbrook <pe...@cacoethes.co.uk>
>
>
>>
>> PabloS wrote:
>> >
>> > Thanks. Where shall I subscribe to report bugs in the
>> maven-grails-plugin?
>> > I
>> > can't generate a domain class :)
>> >
>>
>> See the end of my first e-mail - there's a link to a JIRA issue :) Anyway,
>> I
>> have fixed the problem with creating a domain class (as well as all the
>> other Grails commands). Note that the group ID for the plugin is now
>> "org.grails" rather than "com.octo.mtg".
>>
>> There seems to be a problem in that the tests aren't being picked up, but
>> I'll look into that.
>>
>> Cheers,
>>
>> Peter
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20435285.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
Thanks Peter, you are solving issues faster than I can rise them :). I'll
let you know how it goes.

Regards.



2008/11/11 Peter Ledbrook <pe...@cacoethes.co.uk>

>
>
> PabloS wrote:
> >
> > Thanks. Where shall I subscribe to report bugs in the
> maven-grails-plugin?
> > I
> > can't generate a domain class :)
> >
>
> See the end of my first e-mail - there's a link to a JIRA issue :) Anyway,
> I
> have fixed the problem with creating a domain class (as well as all the
> other Grails commands). Note that the group ID for the plugin is now
> "org.grails" rather than "com.octo.mtg".
>
> There seems to be a problem in that the tests aren't being picked up, but
> I'll look into that.
>
> Cheers,
>
> Peter
>
> --
> View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20435285.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.

PabloS wrote:
> 
> Thanks. Where shall I subscribe to report bugs in the maven-grails-plugin?
> I
> can't generate a domain class :)
> 

See the end of my first e-mail - there's a link to a JIRA issue :) Anyway, I
have fixed the problem with creating a domain class (as well as all the
other Grails commands). Note that the group ID for the plugin is now
"org.grails" rather than "com.octo.mtg".

There seems to be a problem in that the tests aren't being picked up, but
I'll look into that.

Cheers,

Peter

-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20435285.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
Thanks. Where shall I subscribe to report bugs in the maven-grails-plugin? I
can't generate a domain class :)

Regards.

2008/11/10 Peter Ledbrook <pe...@cacoethes.co.uk>

>
> Hi Pablo,
>
>
> PabloS wrote:
> >
> > I had a problem when I tried to package the application, it gave me this
> > error:
> >
> > Error assembling WAR: webxml attribute is required (or pre-existing
> > WEB-INF/web.xml if executing in update mode
> >
> > Seems to be caused because there's no webapp/WEB-INF/web.xml file.
> >
>
> My bad. I had made the requisite changes and tested them locally but failed
> to upload them to the repository. This has now been done. In the meantime,
> you can just manually create the file:
>
>  src/main/webapp/WEB-INF/web.xml
>
> It can be empty if you want, and in fact the archetype creates it as an
> empty file. That makes the WAR plugin happy and allows the Grails "war"
> command to execute.
>
>
> PabloS wrote:
> >
> > BTW, I haven't used grails in a while, mainly due to lack of maven
> > integration, and wasn't aware of all that's been going on in this regard
> > lately. If I can help you with anything to improve maven integration,
> I'll
> > gladly do so.
> >
>
> None of the core Grails developers use Maven, so any feedback on what we
> should do to improve the integration would be most welcome.
>
> Thanks,
>
> Peter
>
> --
> View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20419660.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Experimental Grails archetype

Posted by Peter Ledbrook <pe...@cacoethes.co.uk>.
Hi Pablo,


PabloS wrote:
> 
> I had a problem when I tried to package the application, it gave me this
> error:
> 
> Error assembling WAR: webxml attribute is required (or pre-existing
> WEB-INF/web.xml if executing in update mode
> 
> Seems to be caused because there's no webapp/WEB-INF/web.xml file.
> 

My bad. I had made the requisite changes and tested them locally but failed
to upload them to the repository. This has now been done. In the meantime,
you can just manually create the file:

  src/main/webapp/WEB-INF/web.xml

It can be empty if you want, and in fact the archetype creates it as an
empty file. That makes the WAR plugin happy and allows the Grails "war"
command to execute.


PabloS wrote:
> 
> BTW, I haven't used grails in a while, mainly due to lack of maven
> integration, and wasn't aware of all that's been going on in this regard
> lately. If I can help you with anything to improve maven integration, I'll
> gladly do so.
> 

None of the core Grails developers use Maven, so any feedback on what we
should do to improve the integration would be most welcome.

Thanks,

Peter

-- 
View this message in context: http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20419660.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Experimental Grails archetype

Posted by Pablo Saavedra <pa...@gmail.com>.
Hi Peter,

I had a problem when I tried to package the application, it gave me this
error:

Error assembling WAR: webxml attribute is required (or pre-existing
WEB-INF/web.xml if executing in update mode

Seems to be caused because there's no webapp/WEB-INF/web.xml file.

BTW, I haven't used grails in a while, mainly due to lack of maven
integration, and wasn't aware of all that's been going on in this regard
lately. If I can help you with anything to improve maven integration, I'll
gladly do so.

Regards.

2008/11/8 Peter Ledbrook <pe...@cacoethes.co.uk>

>
> Hi,
>
> I have been working on the Maven integration for Grails, basically
> incorporating the Maven Grails Plugin and taking advantage of some changes
> in Grails itself. There is now an archetype available that you can use to
> create Grails projects without having to install Grails manually. The
> command line is:
>
>  mvn archetype:generate -DarchetypeGroupId=org.grails \
>    -DarchetypeArtifactId=grails-maven-archetype \
>    -DarchetypeVersion=1.0-SNAPSHOT \
>    -DarchetypeRepository=http://snapshots.repository.codehaus.org \
>    -DgroupId=example -DartifactId=my-app \
>
> Once you have a project, you can execute the standard phases: "clean",
> "compile", "test", and "package". It's a bit rough around the edges to say
> the least, so there might be a few problems.
>
> I'm interested in what people think and whether it plays ok with other
> plugins (I suspect mostly not). Issues should be raised as sub-tasks of:
>
>  http://jira.codehaus.org/browse/GRAILS-3547
>
> Regards,
>
> Peter
>
>
> --
> View this message in context:
> http://www.nabble.com/Experimental-Grails-archetype-tp20395006p20395006.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>