ivy

Can we use pom.xml into ANT

大城市里の小女人 提交于 2019-12-06 03:18:03
问题 I know that, we can very well use ANT and Maven together to build the project.We can run ANT scripts through Maven's POM.xml. But my question is can we run pom.xml through ANT's build.xml ? i.e. can we create maven build from build.xml 回答1: Yes, using maven ant tasks. The page lists out multiple maven tasks which can be integrated into an ant build script, thus combining the features of both. To take an example, there is the mvn task, which as documented can do a full maven build from ant.

ivy retrieve leads to “module not found: org.slf4j#slf4j-api;${slf4j.version}”

牧云@^-^@ 提交于 2019-12-06 02:43:15
My question is, why am I able to pull dependencies from some, but not all, of the public ivy repos? I am using an ant build.xml script to call the ivy:retrieve command. Here is the relevant line from my ivy.xml file, where I have removed all of the other dependencies for clarity: <dependencies> <dependency org="log4j" name="log4j" rev="1.2.16"/> </dependencies> which is being pulled from a public repository given in my ivysettings.xml file <!-- General public repository !--> <ibiblio name="public" m2compatible="true"/> It manages to pull in some of the dependencies, so I know it's accessing

Need presentation materials for convincing a customer to use Maven

余生颓废 提交于 2019-12-06 01:31:04
问题 My customer needs a more organized inventory of all 3rd-party libraries (such as JAR files) that are used in production for their projects. I am involved with a number of their Java-based projects. Their inventory has not been consistently maintained in the past and the time has come to account for all the libraries that are currently being used (there are quite a few!) and to enforce a structured process for introducing new libraries into the build environment. I have tried pitching the idea

How to set up a local proxy repository for SBT?

…衆ロ難τιáo~ 提交于 2019-12-06 01:28:35
问题 I have near zero knowledge of Maven/Ivy but know that these technologies are behind SBT's ability to download and manage libraries automatically. When I was trying to generate an IntelliJ Idea project from SBT it (Idea or the generator plug-in) has failed to find cached libraries stored in the common Ivy 2 cache. I've solved the problem by setting up the SBT project to use the old scheme storing downloaded libraries under the project directory. Another project of mine uses old SBT version

How do I get Ivy to copy the dependencies to the lib directory when using it from the command line?

主宰稳场 提交于 2019-12-06 00:53:14
问题 I have the following command: java -jar ...\ivy-2.2.0-rc1.jar -ivy ...\ivy.xml Which I am expecting to resolve the dependencies and copy them to the lib folder of my project. Ivy seems to resolve the dependencies but does not do the copy. If I run the ant task the copy happens correctly. Does anyone know why the copy to lib does not happen with my command line call? 回答1: You're missing the retrieve option. java -jar $IVYJAR \ -settings ivysettings.xml \ -ivy ivy.xml \ -retrieve "lib/[artifact

How does Apache Ivy resolve the variables in artifact patterns provided in the ivysettings.xml file?

浪子不回头ぞ 提交于 2019-12-05 23:19:03
If my ivysettings.xml file includes: <url name="com.springsource.repository.bundles.external"> <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> </url> And my ivy.xml file includes: <dependency org="org.junit" name="com.springsource.org.junit" rev="4.4.0" /> From when I ran Ivy, I can tell that this resolves to: http://repository.springsource.com/ivy/bundles/external

Resolving XSD's using Ivy

岁酱吖の 提交于 2019-12-05 21:53:11
Forgive the double post but I am keen on an answer to this. I would like some advice as to the approach I am taking. I am using Ivy for dependency management and am able to download and use all my jar files no issues. I would like to also run the <schemavalidate> task in Ant and would like to use Ivy to download the xsd's and dtd's as specified, thereby eliminating the need for a network connection after the initial download and also reducing my build time. I think I have a solution but wanted to run it by some extra eyes for a sanity check and suggestions for possible improvements. Below is

Avoiding re-building prerequisites in Ant

时间秒杀一切 提交于 2019-12-05 17:05:44
I have an existing Ant project and would like to speed up the build process by avoiding re-building components that are already up to date. Ant permits you to specify that one target depends on another, but by default every prerequisite is always rebuilt, even if it is already up to date. (This is a key difference between Ant and make. By default, make only re-builds a target when needed -- that is, if some prerequisite is newer.) <uptodate property="mytarget.uptodate"> // in set.mytarget.uptodate task ... </uptodate> <!-- The prerequisites are executed before the "unless" is checked. -->

Location of xsd for ant ivy lib “antlib:org.apache.ivy.ant” for IDE autocomplete with xsd?

≡放荡痞女 提交于 2019-12-05 17:03:46
问题 I want create Ivy Ant tasks in xml editor in IDE (Intellij iDEA) with autocomplete based on xsd , but I cannot find xsd for register XML namespace xmlns:ivy="antlib:org.apache.ivy.ant" Where I can find it? 回答1: might be, there was no xsd in the past time this discussion started, but at least since may 2011 the ivy scheme is well documented at http://ant.apache.org/ivy/schemas/ivy.xsd which is linked right from the documentation in http://ant.apache.org/ivy/ so, to start over using the scheme,

Ivy Retrieve with Classifiers

血红的双手。 提交于 2019-12-05 15:52:17
I have the following ivy.xml : <ivy-module version="1.0" xmlns:maven="http://maven.apache.org"> <configurations> ... </configurations> <dependencies> <dependency org="com.foo" name="fubur" rev="1.3" conf="runtime->default"/> <dependency org="com.snafu" name="barfu" rev="1.4" conf="runtime->default"> <artifact name="barfu" maven:classifier="ID_10T" type="jar" ext="jar"/> </dependency> </dependencies> </ivy-module> In my build.xml , I want to retrieve all of my jars for the war I'm building: <ivy:retrieve pattern="${lib.dir}/[artifact]-[classifier]-[revision].[ext]" conf="runtime"/> No, that won