Author |
Message |
07/23/2012 15:56:41
|
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
|
|
|
07/23/2012 16:20:51
|
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.
|
|
|
07/23/2012 18:21:33
|
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) |
|
|
07/24/2012 06:25:17
|
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...
|
Filename |
Terracotta.JPG |
Download
|
Description |
I get an error when I try to add the terracotta remote repo |
Filesize |
77 Kbytes
|
Downloaded: |
489 time(s) |
|
|
|
07/24/2012 14:30:57
|
teck
seraphim
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)
|
|
|
07/26/2012 08:10:34
|
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
|
|
|
10/09/2012 08:42:18
|
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.
|
|
|
10/09/2012 09:58:36
|
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)
|
|
|
10/10/2012 01:59:57
|
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.
|
|
|
10/10/2012 09:39:41
|
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?
|
|
|
10/10/2012 14:34:46
|
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
|
|
|
|