I hope to get this released very soon as 1.0, then move on the 1.1 and
get the rest of the annotation, generics and enum stuff working very
soon.
--jason
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Jason Dillon wrote:
>
> Can folks please give the latest 1.0-rc-5-SNAPSHOT a whirl... and lemme
> know if anything starts breaking.
>
Works fine for me.
Cheers,
Peter
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22169639.html
Sent from the groovy - user mailing list archive at Nabble.com.
I'm gonna wait another 24 hrs for feedback then push out a release...
so please, if you got a few minutes, try it out now :-)
--jason
It uses a Groovy 1.6 feature - an AST called @Entity
(org.grails.persistence). Do you have support currently for working with
ASTs from gmaven? It is supposed to inject GORM functionality (such as the
Id primary key) and seems not to be doing it when I do the build from maven.
For reference you can find my original query to Graeme (and his responses)
here if you want to see the maven build file.
http://www.nabble.com/Standalone-GORM-td21548547.html
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22186715.html
Missing:
----------
1) org.codehaus.groovy.maven.runtime:gmaven-runtime-default:jar:1.0-rc-5-SNAPSHOT
This seems to be supported when viewing the codehaus repo location
<http://repository.codehaus.org/org/codehaus/groovy/maven/runtime/gmaven-runtime-default/>.
/Ian
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0-rc-5-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy.maven.runtime</groupId>
<artifactId>gmaven-runtime-1.6</artifactId>
<version>1.0-rc-5-SNAPSHOT</version>
</dependency>
</dependencies>
<configuration>
<providerSelection>1.6</providerSelection>
</configuration>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
Ian, I am assuming you are not explicitly including gmaven-runtime in the plugin definition???
correct - I added in only the stanzas you have above.
URL for reference:
http://www.nabble.com/Standalone-Gorm-via-Maven---almost-there-but-Identity-Property-not-found-error...-td22170609.html
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22191954.html
My configuration, now working, after a mvn -U clean install :
<repositories>
<repository>
<id>codehaus-snapshots</id>
<url>http://snapshots.repository.codehaus.org</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>codehaus-plugin-snapshots</id>
<url>http://snapshots.repository.codehaus.org</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
...
<build>
<plugins>
...
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0-rc-5-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy.maven.runtime</groupId>
<artifactId>gmaven-runtime-1.6</artifactId>
<version>1.0-rc-5-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
<build>
...
Ken
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22192005.html
Sent from the groovy - user mailing list archive at Nabble.com.
<snapshots>
<enabled>true</enabled>
</snapshots>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy.maven.runtime</groupId>
<artifactId>gmaven-runtime-1.6</artifactId>
<version>1.0-rc-5-SNAPSHOT</version>
</dependency>
</dependencies>
Cheers,
Peter
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22192665.html
The default runtime was dropped in 1.0-rc-4 (it was in the release
notes: http://groovy.codehaus.org/GMaven+-+1.0-rc-4+Release), though
ATM I can't remember why I dropped it.
Use gmaven-runtime-1.6 or add the dependencies on the groovy jars
directly, which is probably better for most users.
If you do want the default runtime back, please file a JIRA stating
what your use-case is and I will look into breathing life back into it.
--jason
You should not need to include the runtime in your plugin dependencies
section, the artifact is loaded automatically based on what the
providerSelection parameter has resolved to.
--jason
--jason
1.0-rc-4 had problems with AST bits, so I'd only expect 1.0-rc-5-
SNAPSHOT to function.
--jason
I switched to 1.0-rc-5, and removed the dependency on the gmaven and
groovy-all artifacts, only using the plugin itself as a dependency.
I think the whole problem was that I was using 1.0-rc-4 to begin with. After
I switched, I found other errors that were due to my overmanagement of the
situation (I was excluding artifacts from one dependency, etc...) Pilot
error, so to speak.
Now I only have:
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0-rc-5-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy.maven.runtime</groupId>
<artifactId>gmaven-runtime-1.6</artifactId>
<version>1.0-rc-5-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
Is there anything I don't need? I had to add the snapshot repository and
mvn -U to get things going.
Ken
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22203032.html
You should not need the gmaven-runtime-1.6 or any other plugin/
dependencies/dependency* configured for the gmaven-plugin. The
runtime dependency artifacts are internally automatically resolved and
used to build the classpath to execute the various GMaven components.
--jason
I'm on maven 2.0.10 with the following config:
<repositories>
<repository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
...
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>${gmaven.version}</version>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
The maven output is:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Adaptive Collaboration Architecture - Common
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
...
Downloading:
http://mars.wal.novell.com/archiva/repository/snapshots//org/codehaus/groovy/maven/runtime/gmaven-runtime-default/1.0-rc-5-SNAPSHOT/gmaven-runtime-default-1.0-rc-5-SNAPSHOT.pom
Downloading:
http://repo1.maven.org/maven2/org/codehaus/groovy/maven/runtime/gmaven-runtime-default/1.0-rc-5-SNAPSHOT/gmaven-runtime-default-1.0-rc-5-SNAPSHOT.pom
Downloading:
http://snapshots.repository.codehaus.org//org/codehaus/groovy/maven/runtime/gmaven-runtime-default/1.0-rc-5-SNAPSHOT/gmaven-runtime-default-1.0-rc-5-SNAPSHOT.pom
Downloading:
http://mars.wal.novell.com/archiva/repository/snapshots//org/codehaus/groovy/maven/runtime/gmaven-runtime-default/1.0-rc-5-SNAPSHOT/gmaven-runtime-default-1.0-rc-5-SNAPSHOT.jar
Downloading:
http://repo1.maven.org/maven2/org/codehaus/groovy/maven/runtime/gmaven-runtime-default/1.0-rc-5-SNAPSHOT/gmaven-runtime-default-1.0-rc-5-SNAPSHOT.jar
Downloading:
http://snapshots.repository.codehaus.org//org/codehaus/groovy/maven/runtime/gmaven-runtime-default/1.0-rc-5-SNAPSHOT/gmaven-runtime-default-1.0-rc-5-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.codehaus.groovy.maven.runtime:gmaven-runtime-default:jar:1.0-rc-5-SNAPSHOT
Try downloading the file manually from the project website.
...
from the specified remote repositories:
codehaus (http://repository.codehaus.org/),
aca.snapshots (http://mars.wal.novell.com/archiva/repository/snapshots/),
central (http://repo1.maven.org/maven2),
aca.internal (http://mars.wal.novell.com/archiva/repository/internal/),
Codehaus Snapshots (http://snapshots.repository.codehaus.org/)
If I go to the repo location
http://snapshots.repository.codehaus.org//org/codehaus/groovy/maven/runtime/gmaven-runtime-default/
there is only a rc-4, so it kinda makes sense. Adding in the dependency stanza provided the same
results.
/Ian
> plugin/dependencies/dependency* configured for the gmaven-plugin. The
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>${gmaven.version}</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy.maven.runtime</groupId>
<artifactId>gmaven-runtime-1.6</artifactId>
<version>${gmaven.version}</version>
</dependency>
</dependencies>
<configuration>
<providerSelection>1.6</providerSelection>
</configuration>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
-----Original Message-----
From: Ian Roughley [mailto:roug...@gmail.com]
Sent: Wednesday, February 25, 2009 7:32 AM
To: us...@groovy.codehaus.org
--jason
The reason I keep adding that in is it comes from code I copied from your wiki page. :-) Also, there has to be a way to specify the version of Groovy I want to use. 1.5.7 is different from 1.6, and I don't know what DEFAULT means just by looking at it. And neither would someone who is reading my POM. I assume there are differences in compilation from 1.5.7 to 1.6... ???
Things to try:
* Wipe your local Maven repo, usually under c:\Documents and Settings\username\.m2\repository. Sometimes these sorts of things happen because you have a corrupt local repo.
* Build from source code. Available at http://svn.codehaus.org/groovy/gmaven/trunk. That will put all the dependencies into your local repo.
* Make sure you aren't suppressing online checking of anything in your settings.xml. You can get fancy later - right now you just want it to work. :-)
Best of luck.
I think I worked out the problem (just checking it now). For some reason, issuing mvn -U -cpu
install doesn't work from the root of a multi-project pom. I've had to go into each individual
project that uses the gmaven plugin and run the update. This has led to either (a) problems moving
from groovy 1.5.6 to 1.6.0, or (b) someone else messing up some of my groovy scripts. Checking on
this as we speak. And then I'll be able to circle around and see if the site command work ;-)
/Ian
Jason Smith-11 wrote:
>
> Also, there has to be a way to specify the version of Groovy I want to
> use.
>
IMHO, the preferred way to specify a Groovy version is:
<configuration>
<providerSelection>1.5</providerSelection>
</configuration>
I only mess around with gmaven-runtime dependencies when I need to compile
with a Groovy version that I built myself.
Cheers,
Peter
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22222128.html
Sent from the groovy - user mailing list archive at Nabble.com.
I'm setting up a maven build for a multi module project. I'm getting the
following error during the generateStubs goal execution of one of the
sub-modules:
[WARNING] Attempting to build MavenProject instance for Artifact
(org.codehaus.mojo:groovy-maven-plugin:1.0-rc-5-20090223.182426-3) of type:
maven-plugin; constructing POM artifact instead.
[INFO] snapshot org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5-SNAPSHOT:
checking for updates from codehaus.org
[INFO] [groovy:generateStubs]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] String index out of range: -2
Any ideas how I can figure out what is going on? I can import the poms (a
root pom w/ 2 modules) into IntelliJ and run all my tests. But maven can't.
I'm using the pom configuration that has been referred to in this thread.
Thanks-
Zak
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22235296.html
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: String index out of
range: -2
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
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.MojoExecutionException: String index out
of range: -2
at
org.codehaus.groovy.maven.plugin.MojoSupport.execute(MojoSupport.java:85)
at
org.codehaus.groovy.maven.plugin.stubgen.AbstractGenerateStubsMojo.execute(AbstractGenerateStubsMojo.java:60)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -2
at java.lang.String.substring(String.java:1768)
at org.codehaus.groovy.antlr.SourceBuffer.getSnippet(SourceBuffer.java:77)
at
org.codehaus.groovy.maven.runtime.v1_6.stubgen.ParserFactoryImpl$ParserSupport.snippet(ParserFactoryImpl.java:182)
at
org.codehaus.groovy.maven.runtime.support.stubgen.model.ModelFactorySupport.javadocs(ModelFactorySupport.java:704)
at
org.codehaus.groovy.maven.runtime.support.stubgen.model.ModelFactorySupport.classDef(ModelFactorySupport.java:259)
at
org.codehaus.groovy.maven.runtime.support.stubgen.model.ModelFactorySupport.process(ModelFactorySupport.java:120)
at
org.codehaus.groovy.maven.runtime.support.stubgen.model.ModelFactorySupport.create(ModelFactorySupport.java:84)
at
org.codehaus.groovy.maven.runtime.v1_6.StubCompilerFeature$StubCompilerImpl.render(StubCompilerFeature.java:100)
at
org.codehaus.groovy.maven.runtime.v1_6.StubCompilerFeature$StubCompilerImpl.compile(StubCompilerFeature.java:89)
at
org.codehaus.groovy.maven.plugin.stubgen.AbstractGenerateStubsMojo.compile(AbstractGenerateStubsMojo.java:160)
at
org.codehaus.groovy.maven.plugin.stubgen.AbstractGenerateStubsMojo.process(AbstractGenerateStubsMojo.java:131)
at
org.codehaus.groovy.maven.plugin.ComponentMojoSupport.doExecute(ComponentMojoSupport.java:60)
at
org.codehaus.groovy.maven.plugin.MojoSupport.execute(MojoSupport.java:69)
... 19 more
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22235298.html
-----Original Message-----
From: ZJacobson [mailto:jaco...@gmail.com]
Sent: Thursday, February 26, 2009 4:35 PM
To: us...@groovy.codehaus.org
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22237960.html
-----Original Message-----
From: ZJacobson [mailto:jaco...@gmail.com]
Sent: Thursday, February 26, 2009 4:38 PM
To: us...@groovy.codehaus.org
Subject: Re: [groovy-user] GMaven 1.0-rc-5-SNAPSHOT updated
Note that when I look at this file in vi, I see ^M's, but when I look at the
file I uploaded in a browser it looks ok.
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22251088.html
On Tue, Mar 3, 2009 at 06:18, Jason Dillon <ja...@planet57.com> wrote:
> Looks like a runtime mismatch.
> --jason
> - Show quoted text -
--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one
--jason
gyrm wrote:
>
> I'm getting an error like the following when trying to use a jar
> containing
> classes built with 1.0-rc-5. The error happens when I try to instantiate
> the
> Groovy class. Has anyone else seen this?
>
>
> Caught: java.lang.NoClassDefFoundError:
> org/codehaus/groovy/runtime/callsite/CallSiteArray
> at
> com.thoughtworks.selenium.GroovySelenium.$createCallSiteArray(GroovySelenium.groovy)
> at
> com.thoughtworks.selenium.GroovySelenium.$getCallSiteArray(GroovySelenium.groovy)
> at
> com.thoughtworks.selenium.GroovySelenium.<clinit>(GroovySelenium.groovy:12)
> at SimpleTest.class$(SimpleTest.groovy)
> at SimpleTest.run(SimpleTest.groovy:4)
> at SimpleTest.main(SimpleTest.groovy)
>
>
> Haw-Bin
>
>
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22305032.html
Cases where things just start breaking, especially after a release,
smells like you have not configured your project to use specific
versions of the GMaven plugin.
Always, always... ALWAYS, configure the versions of Maven plugins your
project uses.
--jason
>
> gyrm wrote:
>>
>> I'm getting an error like the following when trying to use a jar
>> containing
>> classes built with 1.0-rc-5. The error happens when I try to
>> instantiate
>> the
>> Groovy class. Has anyone else seen this?
>>
>>
>> Caught: java.lang.NoClassDefFoundError:
>> org/codehaus/groovy/runtime/callsite/CallSiteArray
>> at
>> com.thoughtworks.selenium.GroovySelenium.
>> $createCallSiteArray(GroovySelenium.groovy)
>> at
>> com.thoughtworks.selenium.GroovySelenium.
>> $getCallSiteArray(GroovySelenium.groovy)
>> at
>> com
>> .thoughtworks
Tom
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22305372.html
Sorry for confusion.
Tom
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22305476.html
Unfortunately Maven lets users configure a plugin w/o a version...
which IMO is very bad *feature*, allowing crazy problems to just start
magically when a new version is released.
Always configure the version of the plugins you are using :-)
Consider using the enforcer plugin to make sure you do: http://maven.apache.org/enforcer/enforcer-rules/requirePluginVersions.html
--jason
<pom-new-not-working.xml><pom-old-working-ok.xml>---------------------------------------------------------------------
We are currently running Maven 2.0.1.
I received some error messages when I tried to run the command:
mvn archetype:generate
-DarchetypeGroupId=org.codehaus.groovy.maven.archetypes
-DarchetypeArtifactId=gmaven-archetype-basic
Based on the output, it looks like we need Maven 2.0.7, at a minimum for
this to work.
Results:
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] EAST shared code
[INFO] Course Guide
[INFO] EAST applications bundle
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-3 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-2 as it requires Maven
version 2.0.7
[INFO] Ignoring available plugin update: 2.0-alpha-1 as it requires Maven
version 2.0.7
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Required goal not found: archetype:generate
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Mar 05 11:04:46 CST 2009
[INFO] Final Memory: 2M/6M
[INFO]
----------------------------------------------------------------------------
Thanks,
Mike
--
View this message in context: http://www.nabble.com/GMaven-1.0-rc-5-SNAPSHOT-updated-tp22167405p22356081.html