You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-dev@maven.apache.org by "Sharma, Jaikumar" <ja...@barco.com> on 2006/06/05 12:52:51 UTC

RE: RE: M2 : How to implement goals in SCM provider implementatio n ?

Ah. Great, it worked and after pasring the string it is giving me that
connectionUrl is valid.

I had disabled repository downloads on every pom run and pointed the same to
the local repository in settings.xml now I disabled that and it downloaded
all the artifacts and giving me the parsed url info stating that parsed url
is valid.

Thanks a lot again Emmanuel.

Regards.

-----Original Message-----
From: Emmanuel Venisse [mailto:emmanuel@venisse.net] 
Sent: Monday, June 05, 2006 3:58 PM
To: scm-dev@maven.apache.org
Subject: Re: RE: M2 : How to implement goals in SCM provider implementation
?


It seems you got some connection pb to the repo because artifacts are there.
http://repo.mergere.com/maven2/org/apache/maven/scm/maven-scm-provider-bazaa
r/1.0-beta-3/
http://repo.mergere.com/maven2/org/apache/maven/scm/maven-scm-provider-local
/1.0-beta-3/
http://repo.mergere.com/maven2/org/apache/maven/scm/maven-scm-provider-vss/1
.0-beta-3/

Emmanuel

Sharma, Jaikumar a écrit :
> I run mvn scm:validate in the folder where the test pom is located, it 
> gave me the following, or I had to run different command line ?
> 
> D:\Plugin_Tests>mvn scm:validate
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'scm'. [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Building Unnamed - com.mycompany.testplugin:testmksplugin:jar:1.0
> [INFO]    task-segment: [scm:validate] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Preparing scm:validate
> [INFO] No goals needed for project - skipping
> Downloading:
> file:////C:\Lang\maven-2.0.4/Repository/org/apache/maven/scm/maven-scm-p
> rovider-local/1.0-beta-3/maven-scm-provider-local-1.0-beta-3.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> file:////C:\Lang\maven-2.0.4/Repository/org/apache/maven/scm/maven-scm-p
> rovider-bazaar/1.0-beta-3/maven-scm-provider-bazaar-1.0-beta-3.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [WARNING]
>         Artifact org.codehaus.plexus:plexus-utils:jar:1.1:runtime
> retains local scope 'runtime' overriding broader scope 'compile'
>         given by a dependency. If this is not intended, modify or remove
> the local scope.
> 
> Downloading: 
> file:////C:\Lang\maven-2.0.4/Repository/org/apache/maven/scm/maven-scm
> -p
> rovider-bazaar/1.0-beta-3/maven-scm-provider-bazaar-1.0-beta-3.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> file:////C:\Lang\maven-2.0.4/Repository/org/apache/maven/scm/maven-scm-p
> rovider-vss/1.0-beta-3/maven-scm-provider-vss-1.0-beta-3.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> file:////C:\Lang\maven-2.0.4/Repository/org/apache/maven/scm/maven-scm-p
> rovider-local/1.0-beta-3/maven-scm-provider-local-1.0-beta-3.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> Missing:
> ----------
> 1) org.apache.maven.scm:maven-scm-provider-bazaar:jar:1.0-beta-3
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.maven.scm 
> -DartifactId=maven-scm-provider-bazaar \
>           -Dversion=1.0-beta-3 -Dpackaging=jar -Dfile=/path/to/file
> 
>   Path to dependency:
>         1) 
> org.apache.maven.plugins:maven-scm-plugin:maven-plugin:1.0-beta-3
>         2) 
> org.apache.maven.scm:maven-scm-provider-bazaar:jar:1.0-beta-3
> 
> 2) org.apache.maven.scm:maven-scm-provider-vss:jar:1.0-beta-3
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.maven.scm 
> -DartifactId=maven-scm-provider-vss \
>           -Dversion=1.0-beta-3 -Dpackaging=jar -Dfile=/path/to/file
> 
>   Path to dependency:
>         1) 
> org.apache.maven.plugins:maven-scm-plugin:maven-plugin:1.0-beta-3
>         2) org.apache.maven.scm:maven-scm-provider-vss:jar:1.0-beta-3
> 
> 3) org.apache.maven.scm:maven-scm-provider-local:jar:1.0-beta-3
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.maven.scm 
> -DartifactId=maven-scm-provider-local \
>           -Dversion=1.0-beta-3 -Dpackaging=jar -Dfile=/path/to/file
> 
>   Path to dependency:
>         1) 
> org.apache.maven.plugins:maven-scm-plugin:maven-plugin:1.0-beta-3
>         2) 
> org.apache.maven.scm:maven-scm-provider-local:jar:1.0-beta-3
> 
> ----------
> 3 required artifacts are missing.
> 
> for artifact:
>   org.apache.maven.plugins:maven-scm-plugin:maven-plugin:1.0-beta-3
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://svn.apache.org/maven-snapshot-repository)
> 
> 
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Jun 05 15:40:05 GMT+05:30 2006
> [INFO] Final Memory: 3M/6M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> 
> -----Original Message-----
> From: Emmanuel Venisse [mailto:emmanuel@venisse.net]
> Sent: Monday, June 05, 2006 3:32 PM
> To: scm-dev@maven.apache.org
> Subject: Re: M2 : How to implement goals in SCM provider 
> implementation ?
> 
> 
>  >
>  > Do you have some errors when you run the scm plugin?
>  > <<  Do you mean, if I have the correct / running version of scm 
> plugin  > is installed ? if yes, then yes, I can see al the gols 
> listed in that using  >
>  >   command : mvn help:describe -DgroupId=org.apache.maven.plugins
>  > -DartifactId=maven-scm-plugin -Dfull=true >>>
> 
> I meant when you run scm:validate with the mks provider.
> 
>  >
>  > Why do you add a main method in MksScmProvider?
>  > <<< It had been add to test the results of scmURL, this has to be  
> > removed >>>
> 
> It would be better to implement junit tests so you'll can check the 
> test coverage.
> 
>  >
>  > Thanks for your help!
> 
> No Problem
> 
> Emmanuel
> 

- - - - - - - 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.