install or deploy

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

install or deploy

Ido Tamir

hi,
how do I install or deploy an artifact to my local repository such that it
is available from artifactory?

after mvn install, its on the file system, but not available in artifactory.
for mvn deploy I added in pom.xml

<distributionManagement>
  <repository>
    <id>local-repo</id>
    <url>scp://epx-mcp:8090/artifactory/repo</url>
  </repository>
  <snapshotRepository>
    <id>snapshots</id>
    <url>scp://epx-mcp:8090/artifactory/repo</url>
  </snapshotRepository>
  </distributionManagement>

and in settings.xml
<servers>
  <server>
      <id>local-snapshots</id>
      <!-->snapshots</id-->
      <username>admin</username>
      <password>password</password>
   </server>
  </servers>


but I get:
[INFO] Retrieving previous build number from local-snapshots
[WARNING] repository metadata for: 'snapshot at.ac.imp:funcGen:0.1-SNAPSHOT'
could not be retrieved from repository: local-snapshots due to an error:
Authentication failed: Cannot connect. Reason: invalid server's version
string

thank you very much for your help

ido

--
View this message in context: http://www.nabble.com/install-or-deploy-tf3446627.html#a9611795
Sent from the Artifactory-Users mailing list archive at Nabble.com.



Reply | Threaded
Open this post in threaded view
|

Re: install or deploy

Thorsten Heit
Hi Ido,

> after mvn install, its on the file system, but not available in
> artifactory.
> for mvn deploy I added in pom.xml
>
> <distributionManagement>
>   <repository>
>     <id>local-repo</id>
>     <url>scp://epx-mcp:8090/artifactory/repo</url>
>   </repository>
>   <snapshotRepository>
>     <id>snapshots</id>
>     <url>scp://epx-mcp:8090/artifactory/repo</url>
>   </snapshotRepository>
>   </distributionManagement>
>
> and in settings.xml
> <servers>
>   <server>
>       <id>local-snapshots</id>
>       <!-->snapshots</id-->
>       <username>admin</username>
>       <password>password</password>
>    </server>
>   </servers>

The entries in your pom.xml under distributionManagement don't mach those in your settings.xml. Use the following instead:

pom.xml:

<distributionManagement>
  <repository>
    <id>my.releases</id>  <!-- must match settings.xml: servers/server/id -->
    <name>Releases</name>
    <url>http://epx-mcp:8090/artifactory/local-repo@repo</url>
  </repository>
  <snapshotRepository>
    <id>my.snapshots</id>  <!-- must match settings.xml: servers/server/id -->
    <name>Snapshots</name>
    <url>http://epx-mcp:8090/artifactory/local-snapshots@repo</url>
  </snapshotRepository>
</distributionManagement>


and in your settings.xml:

<servers>
  <server>
    <id>my.releases</id>
    <username>(your user name, e.g. admin)</username>
    <password>(the user's password, e.g. password)</password>
  </server>
  <server>
    <id>my.snapshots</id>
    <username>(your user name, e.g. admin)</username>
    <password>(the user's password, e.g. password)</password>
  </server>
</servers>


HTH

Thorsten


Reply | Threaded
Open this post in threaded view
|

Re: install or deploy

zalym

Hi Thorst,

I tried it the way you have given it, but I get the following error.

 Error deploying artifact: Authentication failed: Cannot connect. Reason:
invalid server's version string

I have attached my relevant portions of the settings.xml and the pom.xml.

pom.xml
<distributionManagement>
                <repository>
                        <id>libs-releases</id>
                        <name>Releases</name>
                        <url>scp://localhost:2906/artifactory/libs-releases@repo</url>
                </repository>
                <snapshotRepository>
                        <id>libs-snapshots</id>
                        <name>Snapshots</name>
                        <url>scp://localhost:2906/artifactory/libs-snapshots@repo</url>
                </snapshotRepository>
  </distributionManagement>


Settings.xml

<servers>
<server>
                        <id>libs-releases</id>
                        <username>saleem</username>
                        <password>saleem</password>
                </server>
                <server>
                        <id>libs-snapshots</id>
                        <username>saleem</username>
                        <password>saleem</password>
                </server>
  </servers>

artifactory config
        <localRepository>
            <key>libs-releases</key>
            <description>Zafin Repository for Applications
Releases</description>
            <handleReleases>true</handleReleases>
            <handleSnapshots>false</handleSnapshots>
        </localRepository>
        <localRepository>
            <key>libs-snapshots</key>
            <description>Zafin Repository for Applications
Snapshots</description>
            <handleReleases>false</handleReleases>
            <handleSnapshots>true</handleSnapshots>
        </localRepository>

--Saleem
--
View this message in context: http://www.nabble.com/install-or-deploy-tf3446627.html#a10158387
Sent from the Artifactory-Users mailing list archive at Nabble.com.



Reply | Threaded
Open this post in threaded view
|

Re: install or deploy

Thorsten Heit
Hi Saleem,

> I tried it the way you have given it, but I get the following error.
>
>  Error deploying artifact: Authentication failed: Cannot connect. Reason:
> invalid server's version string
>
> I have attached my relevant portions of the settings.xml and the pom.xml.
>
> pom.xml
> <distributionManagement>
> <repository>
> <id>libs-releases</id>
> <name>Releases</name>
> <url>scp://localhost:2906/artifactory/libs-releases@repo</url>
> </repository>
> <snapshotRepository>
> <id>libs-snapshots</id>
> <name>Snapshots</name>
> <url>scp://localhost:2906/artifactory/libs-snapshots@repo</url>
> </snapshotRepository>
>   </distributionManagement>

The URLs are wrong: You're accessing your repository via SSH instead of HTTP. Replace "scp" by "http", and it should work (hopefully ;-))


HTH

Thorsten


Reply | Threaded
Open this post in threaded view
|

Re: install or deploy

zalym
It worked.  How silly...  Thanks!!!

I get this warning...
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '00575efb8d333ddda6feb26066fc38b85312aff7'; remote = 'da39a3ee5e6b4b0d3255bfef956
01890afd80709' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '00575efb8d333ddda6feb26066fc38b85312aff7'; remote = 'da39a3ee5e6b4b0d3255bfef956
01890afd80709' - IGNORING
[INFO] Uploading repository metadata for: 'artifact com.zafinlabs.projects:zafin-project'

Is this an issue?

Thanks again,
Regards
Saleem

On 4/24/07, Thorsten Heit <[hidden email]> wrote:
Hi Saleem,

> I tried it the way you have given it, but I get the following error.
>
>  Error deploying artifact: Authentication failed: Cannot connect. Reason:
> invalid server's version string
>
> I have attached my relevant portions of the settings.xml and the pom.xml.
>
> pom.xml
> <distributionManagement>
>               <repository>
>                       <id>libs-releases</id>
>                       <name>Releases</name>
>                       <url>scp://localhost:2906/artifactory/libs-releases@repo</url>
>               </repository>
>               <snapshotRepository>
>                       <id>libs-snapshots</id>
>                       <name>Snapshots</name>
>                       <url>scp://localhost:2906/artifactory/libs-snapshots@repo </url>
>               </snapshotRepository>
>       </distributionManagement>

The URLs are wrong: You're accessing your repository via SSH instead of HTTP. Replace "scp" by "http", and it should work (hopefully ;-))


HTH

Thorsten

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



--
Regards,
Mohammed Saleem

"Jack of all trades. Master of some."
Reply | Threaded
Open this post in threaded view
|

Re: install or deploy

Thorsten Heit
Hi,

> It worked.  How silly...  Thanks!!!

Glad to head :-)


> I get this warning...
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '00575efb8d333ddda6feb26066fc38b85312aff7'; remote =
> 'da39a3ee5e6b4b0d3255bfef956
> 01890afd80709' - RETRYING
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '00575efb8d333ddda6feb26066fc38b85312aff7'; remote =
> 'da39a3ee5e6b4b0d3255bfef956
> 01890afd80709' - IGNORING
> [INFO] Uploading repository metadata for: 'artifact
> com.zafinlabs.projects:zafin-project'
>
> Is this an issue?

I'm getting this too. AFAIK it's being worked on...


Regards

Thorsten


Reply | Threaded
Open this post in threaded view
|

Re: install or deploy

Yoav Landman
Administrator
On 4/24/07, Thorsten Heit <[hidden email]> wrote:

> Hi,
>
> > It worked.  How silly...  Thanks!!!
>
> Glad to head :-)
>
>
> > I get this warning...
> > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> > '00575efb8d333ddda6feb26066fc38b85312aff7'; remote =
> > 'da39a3ee5e6b4b0d3255bfef956
> > 01890afd80709' - RETRYING
> > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> > '00575efb8d333ddda6feb26066fc38b85312aff7'; remote =
> > 'da39a3ee5e6b4b0d3255bfef956
> > 01890afd80709' - IGNORING
> > [INFO] Uploading repository metadata for: 'artifact
> > com.zafinlabs.projects:zafin-project'
> >
> > Is this an issue?
>
> I'm getting this too. AFAIK it's being worked on...
>
True. It is already fixed in the upcoming 1.2.1rc1.

>
> Regards
>
> Thorsten
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Artifactory-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>