Yes,
I have an SNAPSHOT view of development project in my box
Earlier when i used ant for build i used to first update and then compile,
i will proceed to compile only if there is some source code has changed
other wise i just stops there and send notification to every one saying
that there is no files changed for build
I'm trying to acheive this using maven now thats why i did
<scm>
<connection>scm:clearcase:</connection>
<developerConnection>scm:clearcase</developerConnection>
<tag />
<url>/myview/my_dev_prj</url>
</scm>
then i used "m2 -X scm:update" command it did download the plugin and after it
throws the following
error
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\raghu\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\Program
Files\maven-2.0-beta-3\conf\plugin-registry.xml'
[INFO] Searching repository for plugin with prefix: 'scm'.
[DEBUG] maven-scm-plugin: resolved to version 1.0-alpha-2 from repository
central
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [scm:update]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Reason: Cannot execute mojo: update. It requires a project, but the
build is not using one.
[INFO]
----------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo:
update. It requires a project, but the build is not using one
.
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:332)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
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:324)
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: < 1 second
[INFO] Finished at: Wed Oct 19 10:08:51 CDT 2005
[INFO] Final Memory: 1M/4M
[INFO]
----------------------------------------------------------------------------
Thanks,
Raghurajan Gurunathan