You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sommers, Elizabeth" <So...@Pragmatics.com> on 2008/03/25 17:27:50 UTC

Resolving an artifact (plugin problem)

Is there anyway to resolve an artifact when the only repository you
should be able to find it in is artifactory? There is no chance that the
artifact will be in my local repository and the same goes for remote
repositories (we are deploying our projects straight to artifactory).

Thanks in advance for any help.

Liz Sommers
sommerse@pragmatics.com
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Resolving an artifact (plugin problem)

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Maven doesn't care what is running out there, apache, nexus, proximity,
artifactory, archiva...but you need to tell it about it. Have you added
your repository to either the pom or settings (preferred)? The
distribution management is to tell maven how to upload not download.

Assuming you have your repos configured it should just work. If the
question is how to force a download, use dependency:resolve

-----Original Message-----
From: Sommers, Elizabeth [mailto:SommersE@Pragmatics.com] 
Sent: Tuesday, March 25, 2008 12:55 PM
To: Maven Users List
Subject: RE: Resolving an artifact (plugin problem)


Yes, artifactory the maven2 proxy software.

I am trying to retrieve a number of artifacts from our release
repository.  I cannot guarantee that the artifacts are in the local
repository (I can almost guarantee they aren't).  I then need to resolve
these artifacts and retrieve their attached artifacts.  This is easy to
do if you have the artifacts in the local repository.  Our artifactory
repository does not show up in project.getRemoteArtifactRepositories().
I have a couple of other things I can and will try, but I was hoping
that somebody else had already solved the problem.


The distribution management we use for our projects is
 
<distributionManagement>
		<snapshotRepository>
				<id>snapshots</id>
	
<url>dav:http://redcat:8081/artifactory/libs-snapshots</url>
		</snapshotRepository>
		<repository>
				<id>releases</id>
	
<url>dav:http://redcat:8081/artifactory/libs-releases</url>
		</repository>

		<site>
			<id>redcat</id>
			<url>
				scpexe://10.20.20.15/var/maven/sites
			</url>
		</site>
	</distributionManagement>


-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Tuesday, March 25, 2008 12:38 PM
To: Maven Users List
Subject: Re: Resolving an artifact (plugin problem)

Artifactory, as in the Maven2 proxy software?

I guess I don't understand your question. Can you explain more? What
exactly is the problem you're running into that prompts this email?

Wayne

On 3/25/08, Sommers, Elizabeth <So...@pragmatics.com> wrote:
> Is there anyway to resolve an artifact when the only repository you 
> should be able to find it in is artifactory? There is no chance that 
> the artifact will be in my local repository and the same goes for 
> remote repositories (we are deploying our projects straight to
artifactory).
>
> Thanks in advance for any help.
>
> Liz Sommers
> sommerse@pragmatics.com
>
>
> ---------------------------------------------------------------------
> 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


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


RE: Resolving an artifact (plugin problem)

Posted by "Sommers, Elizabeth" <So...@Pragmatics.com>.
Yes, artifactory the maven2 proxy software.

I am trying to retrieve a number of artifacts from our release
repository.  I cannot guarantee that the artifacts are in the local
repository (I can almost guarantee they aren't).  I then need to resolve
these artifacts and retrieve their attached artifacts.  This is easy to
do if you have the artifacts in the local repository.  Our artifactory
repository does not show up in project.getRemoteArtifactRepositories().
I have a couple of other things I can and will try, but I was hoping
that somebody else had already solved the problem.


The distribution management we use for our projects is
 
<distributionManagement>
		<snapshotRepository>
				<id>snapshots</id>
	
<url>dav:http://redcat:8081/artifactory/libs-snapshots</url>
		</snapshotRepository>
		<repository>
				<id>releases</id>
	
<url>dav:http://redcat:8081/artifactory/libs-releases</url>
		</repository>

		<site>
			<id>redcat</id>
			<url>
				scpexe://10.20.20.15/var/maven/sites
			</url>
		</site>
	</distributionManagement>


-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Tuesday, March 25, 2008 12:38 PM
To: Maven Users List
Subject: Re: Resolving an artifact (plugin problem)

Artifactory, as in the Maven2 proxy software?

I guess I don't understand your question. Can you explain more? What
exactly is the problem you're running into that prompts this email?

Wayne

On 3/25/08, Sommers, Elizabeth <So...@pragmatics.com> wrote:
> Is there anyway to resolve an artifact when the only repository you 
> should be able to find it in is artifactory? There is no chance that 
> the artifact will be in my local repository and the same goes for 
> remote repositories (we are deploying our projects straight to
artifactory).
>
> Thanks in advance for any help.
>
> Liz Sommers
> sommerse@pragmatics.com
>
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Resolving an artifact (plugin problem)

Posted by Wayne Fay <wa...@gmail.com>.
Artifactory, as in the Maven2 proxy software?

I guess I don't understand your question. Can you explain more? What
exactly is the problem you're running into that prompts this email?

Wayne

On 3/25/08, Sommers, Elizabeth <So...@pragmatics.com> wrote:
> Is there anyway to resolve an artifact when the only repository you
> should be able to find it in is artifactory? There is no chance that the
> artifact will be in my local repository and the same goes for remote
> repositories (we are deploying our projects straight to artifactory).
>
> Thanks in advance for any help.
>
> Liz Sommers
> sommerse@pragmatics.com
>
>
> ---------------------------------------------------------------------
> 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