You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julien Martin <ba...@gmail.com> on 2007/01/25 12:31:34 UTC
You must specify at least one goal. Try 'install'
Hello,
I have the latest version of maven installed on my machine. (2.0.4) as
well as the maven netbeans module installed.
When I run "mvn initialize" I get this:
*****************************************************************************************
C:\dev\miscenalleous\rcc-maven>mvn initialize
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building rcc-maven
[INFO] task-segment: [initialize]
[INFO] ----------------------------------------------------------------------------
[INFO] [scm:bootstrap {execution: default}]
[INFO] Removing C:\dev\miscenalleous\rcc-maven\target\checkout
[INFO] Executing: cvs -z3 -f -d
:pserver:jumartin@cvs:/usr/local/cvsroot -q checkout -d checkout rcc
[INFO] Working directory: C:\dev\miscenalleous\rcc-maven\target
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] You must specify at least one goal. Try 'install'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Jan 25 12:26:09 CET 2007
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Result of mvn execution is: '1'. Release failed.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu Jan 25 12:26:09 CET 2007
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
C:\dev\miscenalleous\rcc-maven>
*****************************************************************************************
here is my POM:
*****************************************************************************************
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.calyonfinancial</groupId>
<artifactId>rcc-maven</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>rcc-maven</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<directory>target</directory>
<outputDirectory>target/classes</outputDirectory>
<finalName>${artifactId}-${version}</finalName>
<testOutputDirectory>target/test-classes</testOutputDirectory>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>bootstrap</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<scm>
<connection>scm:cvs:pserver:jumartin:Welcome02@cvs:/usr/local/cvsroot:rcc</connection>
<tag>HEAD</tag>
</scm>
<!--
<repositories>
<repository>
<id>OurCVSRepository</id>
<url>scm:cvs:pserver:jumartin:Welcome02@cvs:/usr/local/cvsroot:rcc</url>
</repository>
</repositories>
-->
</project>
*****************************************************************************************
I would be grateful for some help.
Thanks in advance,
Julien.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: You must specify at least one goal. Try 'install'
Posted by Edwin Punzalan <ep...@exist.com>.
The basic command for maven is "mvn [goal|phase]"
where goal is a plugin goal, and phase is lifecycle phase "install" is
an example of a lifecycle phase... you can type several space delimited
goals/phases and maven will execute them.
For a list of maven lifecycle phases, please see:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Hope that helps,
^_^
Julien Martin wrote:
> Hello,
>
> I have the latest version of maven installed on my machine. (2.0.4) as
> well as the maven netbeans module installed.
>
> When I run "mvn initialize" I get this:
>
> *****************************************************************************************
>
> C:\dev\miscenalleous\rcc-maven>mvn initialize
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Building rcc-maven
> [INFO] task-segment: [initialize]
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] [scm:bootstrap {execution: default}]
> [INFO] Removing C:\dev\miscenalleous\rcc-maven\target\checkout
> [INFO] Executing: cvs -z3 -f -d
> :pserver:jumartin@cvs:/usr/local/cvsroot -q checkout -d checkout rcc
> [INFO] Working directory: C:\dev\miscenalleous\rcc-maven\target
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] You must specify at least one goal. Try 'install'
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Jan 25 12:26:09 CET 2007
> [INFO] Final Memory: 1M/2M
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Result of mvn execution is: '1'. Release failed.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 16 seconds
> [INFO] Finished at: Thu Jan 25 12:26:09 CET 2007
> [INFO] Final Memory: 4M/8M
> [INFO]
> ------------------------------------------------------------------------
>
> C:\dev\miscenalleous\rcc-maven>
> *****************************************************************************************
>
>
> here is my POM:
>
> *****************************************************************************************
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.calyonfinancial</groupId>
> <artifactId>rcc-maven</artifactId>
> <packaging>jar</packaging>
> <version>1.0</version>
> <name>rcc-maven</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
>
> <build>
> <directory>target</directory>
> <outputDirectory>target/classes</outputDirectory>
> <finalName>${artifactId}-${version}</finalName>
> <testOutputDirectory>target/test-classes</testOutputDirectory>
> <sourceDirectory>src/main/java</sourceDirectory>
> <testSourceDirectory>src/test/java</testSourceDirectory>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> </resource>
> </resources>
> <testResources>
> <testResource>
> <directory>src/test/resources</directory>
> </testResource>
> </testResources>
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-scm-plugin</artifactId>
> <executions>
> <execution>
> <phase>initialize</phase>
> <goals>
> <goal>bootstrap</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
> <scm>
>
> <connection>scm:cvs:pserver:jumartin:Welcome02@cvs:/usr/local/cvsroot:rcc</connection>
>
> <tag>HEAD</tag>
> </scm>
> <!--
> <repositories>
> <repository>
> <id>OurCVSRepository</id>
>
> <url>scm:cvs:pserver:jumartin:Welcome02@cvs:/usr/local/cvsroot:rcc</url>
> </repository>
> </repositories>
> -->
> </project>
>
> *****************************************************************************************
>
>
> I would be grateful for some help.
>
> Thanks in advance,
>
> Julien.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org