maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed <...@summitbid.com>
Subject Re: Adding a GroovyTestCase to a maven project
Date Mon, 17 Nov 2008 04:54:14 GMT
Thanks for the encouragement...

What's the recipe? Seems like there's alot to do.

I added a couple more dependencies for the GMaven runtime and the gmaven mojo:

         <dependency>
                <groupId>org.codehaus.groovy.maven</groupId>
                <artifactId>gmaven-mojo</artifactId>
                <version>1.0-rc-3</version>
        </dependency>
        <dependency>
                <groupId>org.codehaus.groovy.maven.runtime</groupId>
                <artifactId>gmaven-runtime-default</artifactId>
                <version>1.0-rc-3</version>
        </dependency>

and

      <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.groovy.maven</groupId>
                    <artifactId>gmaven-plugin</artifactId>
                    <version>1.0-rc-3</version>
                </plugin>
            </plugins>
        </pluginManagement>

In the build section

I tried to install the jar file to my local repository:

mvn -e install:install-file
-DgroupId=org.codehaus.groovy.maven.runtime
-DartifactId=gmaven-runtime-default -Dversion=1.0-rc-3 -Dpackaging=jar
-Dfile=c:/Documents and
Settings/eyoun/Desktop/gmaven-runtime-default-1.0-rc-3.jar
mvn -e install:install-file
-DgroupId=org.codehaus.groovy.maven.runtime
-DartifactId=gmaven-runtime-default -Dversion=1.0-rc-3 -Dpackaging=jar
-Dfile=c:/Documents and
Settings/eyoun/Desktop/gmaven-runtime-default-1.0-rc-3.jar
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] com.octo.mtg: checking for updates from central-plugins
[WARNING] repository metadata for: 'com.octo.mtg' could not be
retrieved from repository: central-plugins due to an error: Error
transferring file
[INFO] Repository 'central-plugins' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'and': you must specify a valid lifecycle phase,
or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task 'and': you must
specify a valid lifecycle phase, or a goal in the format plugin:goal
or pluginGroupId:pluginArtifactId:pluginVersion:goal
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1521)
	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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Sun Nov 16 21:51:27 MST 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------

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


Mime
View raw message