RE: How to run multiple goals via maven-scm-plugin on a scm provi der plugin

2006-06-26 Thread Sharma, Jaikumar
Title: Message



could 
you please mention this using a small example using xml constructs 
?
Regards,

  
  -Original Message-From: dan tran 
  [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 12:33 
  PMTo: scm-dev@maven.apache.orgSubject: Re: How to run 
  multiple goals via maven-scm-plugin on a scm provi der 
  plugin
  it is not normal to build thru scm:bootstrap by specify in the pom, but 
  you can certainly do so, by binding scm:boostrap mojo to a
  phase in your pom.
   
  -Dan 
  On 6/25/06, Sharma, 
  Jaikumar <[EMAIL PROTECTED]> 
  wrote: 
  


Thanks 
Dan, 
I think, what you have 
mentioned is command line option ? how to achieve this in pom.xml 
?
Regards.

 
 

  
  -Original 
  Message-From: dan tran [mailto: [EMAIL PROTECTED]] 
  Sent: Monday, June 26, 2006 12:18 PMTo: scm-dev@maven.apache.org Subject: Re: How to 
  run multiple goals via maven-scm-plugin on a scm provider 
  plugin
  The answer is no, but you can run mvn scm:bootstrap 
  -Dgoals="goal1,goal2, goal2, etc"
   
  -D 
  On 6/25/06, Sharma, 
  Jaikumar <[EMAIL PROTECTED] > wrote: 
  


Emmanuel,
 
Is it possible to run multiple goals 
in sequence via maven-scm-plugin like the following 
:
 
    

    
scm:mks:[EMAIL PROTECTED]@[EMAIL PROTECTED]
     
  how 
to specify other goal here, which might be next step like creating a 
sandbox on local machine  ?  

    

 
Is scm providers plugins are always 
works as dependency to maven-scm-plugin ? 
 
Regards.
   
    

- - - - - - - DISCLAIMER- - - - - - - 
-
Unless indicated otherwise, the information 
contained in this message is privileged and confidential, and is 
intended only for the use of the addressee(s) named above and others who 
have been specifically authorized to receive it. If you are not the 
intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this message and/or attachments is strictly 
prohibited. The company accepts no liability for any damage caused by 
any virus transmitted by this email. Furthermore, the company does not 
warrant a proper and complete transmission of this information, nor does 
it accept liability for any delays. If you have received this message in 
error, please contact the sender and delete the message. Thank you. 




RE: M2 : How to implement goals in SCM provider implementation ?

2006-06-01 Thread Sharma, Jaikumar
Title: RE: M2 : How to implement goals in SCM provider implementation ?





Fine, I have compiled it now by setting the packaging to 'jar', but now it is giving 'NullPointerExecption' after I try to pass the parameters to 


 
  scm:mks:"[EMAIL PROTECTED]"
 



Parameter  username and password in the form as mentioned above, it expects as a parameter of MksScmProvider classs'


Please suggest!
 



-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 01, 2006 6:38 PM
To: scm-dev@maven.apache.org
Subject: Re: M2 : How to implement goals in SCM provider implementation ?



your provider must be a jar (default type) and not a plugin.


Emmanuel


Sharma, Jaikumar a écrit :
> Hi Emmanuel,
> Something unusual, which I am not aware of, while building the plugin 
> it
> says java 0 mojo descriptors. Could you please see, where I am wrong ?
> 
> Regards, Jaikumar
> --
> -
> 
> D:\Plugin_Development\maven-mks-provider>mvn clean install [INFO]
> Scanning for projects... [INFO] 
> 
> 
> [INFO] Building Unnamed -
> org.apache.maven.scm:maven-mks-provider:maven-plugin:1.0
> [INFO]    task-segment: [clean, install]
> [INFO] 
>  
> 
> [INFO] [clean:clean]
> [INFO] Deleting directory 
> D:\Plugin_Development\maven-mks-provider\target
> [INFO] Deleting directory 
> D:\Plugin_Development\maven-mks-provider\target\classes
> [INFO] Deleting directory 
> D:\Plugin_Development\maven-mks-provider\target\test-classes
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors. [INFO] 
> Applying extractor for language: bsh [INFO] Extractor for language: bsh 
> found 0 mojo descriptors. [INFO] [resources:resources] [INFO] Using 
> default encoding to copy filtered resources. [INFO] [compiler:compile] 
> Compiling 6 source files to 
> D:\Plugin_Development\maven-mks-provider\target\classes
> 
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources. [INFO]
> [compiler:testCompile] [INFO] No sources to compile [INFO] 
> [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building 
> jar: 
> D:\Plugin_Development\maven-mks-provider\target\maven-mks-provider-1.0.jar
> 
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [install:install]
> [INFO] Installing
> D:\Plugin_Development\maven-mks-provider\target\maven-mks-provider-1.0.jar 
> to 
> C:\Lang\maven-2.0.4\Repository\org\apache\maven\scm\maven-mks-provider\1.0\maven-mks-provider-1.0.jar
> 
> [INFO] [plugin:updateRegistry]
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> 
> [INFO] Total time: 19 seconds
> [INFO] Finished at: Thu Jun 01 18:14:36 GMT+05:30 2006
> [INFO] Final Memory: 6M/15M
> [INFO] 
> 
> --- 
> 
> 
> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 01, 2006 12:42 PM
> To: scm-dev@maven.apache.org
> Subject: Re: M2 : How to implement goals in SCM provider 
> implementation ?
> 
> 
> I guess you have define the scm url for MKS, right?
> 
> so, you can test it by adding this in your pom:
> 
>    scm:mks:mks_connection_parameters
>    
> scm:mks:mks_connection_parameters
> ction>
> 
> 
> 
> The first steap you can test is to add your provider as a dependency 
> of
> maven-scm plugin and you'll
> can try scm:checkout, scm:update and other.
> 
> If all is ok, you'll need to test it with changelog plugin, release
> plugin and Continuum.
> 
> For changelog and release plugins, you'll need to add your provider as 
> a
> dependency in the plugin or
> if you don't want to modify them for now, you can add it as a plugin 
> dependency in your pom.
> 
> For continuum, put your provider in $CONTINUUM/apps/continuum/lib
> 
> Emmanuel
> 
> Sharma, Jaikumar a écrit :
>  > Hi Emmanuel,
>  > Initially, I have implemented the connect method other 
> functionality  > in  > SCM provider for MKS plugin and it has been 
> been built and installed in  > local repository. I want to know, how 
> 

RE: M2 : How to implement goals in SCM provider implementation ?

2006-06-01 Thread Sharma, Jaikumar
Title: RE: M2 : How to implement goals in SCM provider implementation ?





Hi Emmanuel,
Something unusual, which I am not aware of, while building the plugin it says java 0 mojo descriptors. Could you please see, where I am wrong ?

Regards, Jaikumar 
---
D:\Plugin_Development\maven-mks-provider>mvn clean install [INFO] Scanning for projects... [INFO] 

[INFO] Building Unnamed - org.apache.maven.scm:maven-mks-provider:maven-plugin:1.0
[INFO]    task-segment: [clean, install]
[INFO] 
[INFO] [clean:clean]
[INFO] Deleting directory D:\Plugin_Development\maven-mks-provider\target
[INFO] Deleting directory D:\Plugin_Development\maven-mks-provider\target\classes
[INFO] Deleting directory D:\Plugin_Development\maven-mks-provider\target\test-classes
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 0 mojo descriptors. [INFO] Applying extractor for language: bsh [INFO] Extractor for language: bsh found 0 mojo descriptors. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 6 source files to D:\Plugin_Development\maven-mks-provider\target\classes

[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: D:\Plugin_Development\maven-mks-provider\target\maven-mks-provider-1.0.jar

[INFO] [plugin:addPluginArtifactMetadata]
[INFO] [install:install]
[INFO] Installing D:\Plugin_Development\maven-mks-provider\target\maven-mks-provider-1.0.jar to C:\Lang\maven-2.0.4\Repository\org\apache\maven\scm\maven-mks-provider\1.0\maven-mks-provider-1.0.jar

[INFO] [plugin:updateRegistry]
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 19 seconds
[INFO] Finished at: Thu Jun 01 18:14:36 GMT+05:30 2006
[INFO] Final Memory: 6M/15M
[INFO] 
---


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 01, 2006 12:42 PM
To: scm-dev@maven.apache.org
Subject: Re: M2 : How to implement goals in SCM provider implementation ?



I guess you have define the scm url for MKS, right?


so, you can test it by adding this in your pom:

   scm:mks:mks_connection_parameters
   scm:mks:mks_connection_parameters



The first steap you can test is to add your provider as a dependency of maven-scm plugin and you'll 
can try scm:checkout, scm:update and other.


If all is ok, you'll need to test it with changelog plugin, release plugin and Continuum.


For changelog and release plugins, you'll need to add your provider as a dependency in the plugin or 
if you don't want to modify them for now, you can add it as a plugin dependency in your pom.


For continuum, put your provider in $CONTINUUM/apps/continuum/lib


Emmanuel


Sharma, Jaikumar a écrit :
> Hi Emmanuel,
> Initially, I have implemented the connect method other functionality
> in
> SCM provider for MKS plugin and it has been been built and installed in 
> local repository. I want to know, how to configure this plugin in my pom 
> so that I can test to connect to MKS provider, if it works or I have to 
> change something ?
> 
> Thanks for your help!
> 
> Regards, Jaikumar
> 
> -Original Message-
> From: Sharma, Jaikumar
> Sent: Monday, May 29, 2006 2:12 PM
> To: 'scm-dev@maven.apache.org'
> Subject: RE: M2 : How to implement goals in SCM provider
> implementation ?
> 
> 
> Thanks Emmanuel, that was the enlightment, I was expecting from you
> ;-)
> 
> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 29, 2006 1:54 PM
> To: scm-dev@maven.apache.org
> Subject: Re: M2 : How to implement goals in SCM provider
> implementation ?
> 
> 
> ok, it what I thought :-)
> 
> SCM providers don't know anythink about maven and goals. It's the role 
> of scm plugin.
> 
> SCM providers implements SCM commands and scm plugin use them with 
> Maven-SCM APIs.
> 
> Emmanuel
> 
> Sharma, Jaikumar a écrit :
>  > Emmanuel, As per the documentation on
>  >
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.ht
>  > ml
>  >