[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Artifactory mirroring terracota dependencies  XML
Forum Index -> General
Author Message
rblanco

neo

Joined: 07/23/2012 15:46:06
Messages: 3
Offline

Hello,

We have a private artifactory and we want to use it as proxy for remote repositories. Unfortunately, we are having some problems with ehcache-terracota dependency, because it says that the dependency does not exist this happen when I setup my artifactory as a mirror of remote repositories, otherwise maven will find the dependency correctly.

Also, I try to add the releases repository to my artifactory but seems that is not working, I'm using this url: http://repo.terracotta.org/maven2/

In our pom file we used this
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.5.0</version>
<type>pom</type>
<scope>compile</scope>
</dependency>

When we run a clean install we get this error (I don't get this error if I do not enable the mirroring feature of artifactory):

[ERROR] Failed to execute goal on project commons: Could not resolve dependencie
s for project com.company:commons:jar:0.0.1-SNAPSHOT: Could not find artifact n
et.sf.ehcache:ehcache-terracotta:jar:2.5.0 in remote-repos (http://artifacts.company.com:8081/artifactory/remote-repos) -> [Help 1]


can anybody help me with this problem?

Thanks
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

Direct link to that artifact is here and it's working just fine.

http://repo.terracotta.org/maven2/net/sf/ehcache/ehcache-terracotta/2.5.0/ehcache-terracotta-2.5.0.jar

You might want to double check your Artifactory settings.
klalithr

consul

Joined: 01/23/2011 10:58:07
Messages: 489
Offline

Like hhyynh mentioned, you might want to check your settings.xml as well.

A couple of other options ...

<repository>
<id>terracotta-snapshots</id>
<url>http://www.terracotta.org/download/reflector/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>terracotta-releases</id>
<url>http://www.terracotta.org/download/reflector/releases</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>

Karthik Lalithraj (Terracotta)
rblanco

neo

Joined: 07/23/2012 15:46:06
Messages: 3
Offline

Thank you for your quick response...

I know how to add remote repositories in artifactory but I was googling trying to get the terracotta repo for releases but I cannot find it.

Do you know which repo (url) I can used to added in aritfactory?

Thanks...
[Thumb - Terracotta.JPG]
 Filename Terracotta.JPG [Disk] Download
 Description I get an error when I try to add the terracotta remote repo
 Filesize 77 Kbytes
 Downloaded:  489 time(s)

teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1128
Offline

I believe either of the URLs listed in this thread are valid repo locations (at least for the use within maven proper)

Any idea if artifactory is trying to "browse" through this URLs by inspecting html output or something? Unfortunately given our hosting on S3 our repo isn't browesable like many others. Of course I'd be surprised if some tool was integrated that way (as opposed to using maven metadata files)





Tim Eck (terracotta engineer)
rblanco

neo

Joined: 07/23/2012 15:46:06
Messages: 3
Offline

Any idea if artifactory is trying to "browse" through this URLs by inspecting html output or something?
- No idea, but it is funny is that I dont get the error when I include the terracotta repository for snapshots
arikogan

journeyman

Joined: 06/20/2011 05:48:48
Messages: 12
Offline

Any luck with this guys? I'm not being able to proxy the Terracotta releases repo with Artifactory.
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

Use this link and since it's Amazon S3, it's not browsable. The connection test will fail but it will work when you resolve Terracotta artifacts

http://www.terracotta.org/download/reflector/releases

See this post for comment from Artifactory engineers regarding Amazon S3 http://forums.jfrog.org/Proper-Remote-Repo-Setup-for-SpringFramework-td6784990.html (comment from Yossi Shaul-2)
arikogan

journeyman

Joined: 06/20/2011 05:48:48
Messages: 12
Offline

Thank you very much hhuynh. I still can't get it to work. If I have any news, I'll post them here.
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

Do you meant you still can't resolve dependencies from terracotta-releases after adding it Artifactory? Could you post the maven log?
arikogan

journeyman

Joined: 06/20/2011 05:48:48
Messages: 12
Offline

Hello hhyunh,

Thanks for the interest. It's finally working, even with the Terracotta repository configuration that you can import from Artifactory itself. Turns out that both Terracotta repos (releases and snapshots) point to the same URL that is configured on an out-of-the-box installation of Artifactory. I just had to make sure that Artifactory will use it for releases and the repository won't be in offline mode.

Thanks,


Ariel
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team