ivy

Ivy Custom Resolvers for Git or TFS

断了今生、忘了曾经 提交于 2019-11-29 07:35:32
I'm fairly new to Ivy, so perhaps there's a straight forward way that I'm not able to find in the documentation or what I'm looking for is not possible, but here goes. I want to be able to specify dependencies where the source code is located on local and/or remote servers which use different protocols. Specifically, I have some project dependencies that are stored on a local network TFS server and additional project dependencies stored on a remote Git server (more precisely www.github.com ). Is it possible to have Ivy download the source code and build a jar file which would then be used as

Publishing Ivy SNAPSHOTS with Maven metadata

孤街浪徒 提交于 2019-11-29 05:16:28
I have an Ivy project that publishes its artifacts to a Nexus Maven repository. I then need other Maven projects to be able to use those jars as dependencies. I have been able to get Ivy to create and upload the pom.xml along with the jars, which is working fine. The problem is, when I use Ivy to publish a new SNAPSHOT version - none of the Maven projects will retrieve the new snapshot dependency, even if I do: mvn clean install -U I have noticed that Ivy does not publish a maven-metadata.xml file to the repos -- I assume that is the problem? If so, are there any ways to get Ivy to produce

Split retrieved artifacts in two separate lib directories

百般思念 提交于 2019-11-29 04:41:57
In my web application, there are two separate lib directories: /lib , and /web/webroot/WEB-INF/lib . The idea behind it is that libraries in the latter one are used by front-end code only, and the first one by both the front-end and the business logic code. There is a class loader in place which lets the business logic code not see the jars in /web/webroot/WEB-INF/lib. How can I tell ivy that certain dependencies should go to the second directory while all others go to first one? It's not trival since the the web class loader can see jars in both directories and I don't want jars to be in both

How does ivy:publish use the [classifier] attribute

天大地大妈咪最大 提交于 2019-11-29 04:30:28
in ivy:publisher the default deliverivypattern is ${ivy.distrib.dir}/[type]s/[artifact]-[revision](-[classifier]).[ext] I try to set classifier in my ivy.xml under by adding attribute e:classifier="" to the element. But the [classifier] does not get set? When ivy:publish runs in my build.xml file it appears to be empty and thereby not included in the file name pattern. I think I've figured out your problem. Just to be clear it is the configured resolver that determines the repository filename and not the publish task. Here's my example, which utilises two extra attributes greeting and author

How are snapshot and release repositories used differently?

江枫思渺然 提交于 2019-11-29 03:02:46
问题 I understand that during development build artifacts are placed in the snapshot repository. When a product needs to go to QA for testing, do teams pull from the snapshot repository? Or do they do a full build, deploy to the release repository, and then give it to QA from there? Also, if my snapshots repository holds all the build artifacts from each build, how is this commonly cleaned up? I could see keeping the last 5 builds from the build server, but not every one. I'm using Artifactory if

Using a custom repository with Apache Ivy, no resolver found

冷暖自知 提交于 2019-11-29 02:46:56
It seems that Apache ivy downloads artifacts only from http://mvnrepository.com/ and few other places, but all the jars are outdated there. So I am trying to add custom repository for Ivy. I am using repository Ivy RoundUp : http://code.google.com/p/ivyroundup/ This is my configuration, but getting error: build.xml: <target name="update" depends="init-ivy" description="Download project dependencies"> <!-- edited for brevity --> <ivy:settings file="ivysettings.xml" /> <ivy:retrieve pattern="war/WEB-INF/lib/[artifact]-[revision].[ext]" /> <!-- edited for brevity --> </target> ivy.xml : <ivy

Recommended way to force a specific version of SBT dependency

你。 提交于 2019-11-29 02:37:45
问题 A dependency bar depends on foo 1.2.3, but that version of foo has a bug and I need to use version 1.2.2. I can do that with force() . libraryDependencies += "foo" %% "foo" % "1.2.2" force() That method is not recommended by the docs: Forcing a revision (Not recommended) Note: Forcing can create logical inconsistencies so it’s no longer recommended. Does this mean SBT has a different, better way than force() to use a specific version of a dependency? If so, what? Or am I to infer from the

How can I retrieve snapshot dependencies from Nexus using SBT?

删除回忆录丶 提交于 2019-11-29 02:36:05
I have a maven2 repository from which I'm trying to fetch an snapshot artifact with an appended timestamp. I'm (unsurprisingly) able to retrieve it fine when building with maven2 but when building with simple-build-tool (sbt) , much preferred by me, I can't pull it down. I can see from this question about snapshots in Ivy that it is possible to configure Ivy to get snapshot artifacts but I don't know how to tell sbt to do it. The relevant bits of my current configuration: val snapshotsName = "Snapshots Repository" val snapshotsUrl = new java.net.URL("http://host:port/path/to/root") val

Maven or Ivy? Which one is better with a system already in production? And the other differences? [closed]

北城余情 提交于 2019-11-28 18:26:48
问题 I know that this is a complicated question, but I would like know which one is better in the case of a system that it's already in production, with a lot of bugs and really bad design at all. A really mess. Actually, I'm asking this because I'm already converting this project to Maven and I'm facing A LOT of problems. I needed to adjust the folder structure, separate a terrible framework made at the company from the project (it was converted into a jar lib), fix a lot of details that broke

Ivy: how do I remove transitive dependencies?

↘锁芯ラ 提交于 2019-11-28 17:56:19
I'm using Ivy to manage the dependencies on my project. So far, I've specified a dependency on Hibernate and servlet-api. However, the hibernate jar itself has a lot of dependencies that aren't really needed, such as jaas and jacc . This becomes a show-stopper because jaas and jaac are Sun libraries and therefore their licenses forbid to place them in the Maven repos, so Ivy can't find them there. How do I make Ivy download Hibernate but not these two ? As a bonus, if I actually needed those and downloaded their Jars from Sun, in which folder in my machine would Ivy look for them ? Jared How