Björn Kautler created IVY-1625:
----------------------------------
Summary: install produces bad ivy.xml for log4j-core
Key: IVY-1625
URL: https://issues.apache.org/jira/browse/IVY-1625
Project: Ivy
Issue Type: Bug
Affects Versions: 2.5.0
Reporter: Björn Kautler
This is probably related to IVY-1624.
Given the {{build.xml}}
{code:xml}
<project default="install" xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="check-ivy">
<available property="ivy.jar.present"
file="lib/ivy/ivy-2.5.0.jar"
type="file"/>
</target>
<target name="download-ivy"
depends="check-ivy"
unless="ivy.jar.present">
<mkdir dir="lib/ivy"/>
<get
src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/2.5.0/ivy-2.5.0.jar"
dest="lib/ivy/ivy-2.5.0.jar"
usetimestamp="true"/>
</target>
<target name="init-ivy"
depends="download-ivy">
<property name="ivy.retrieve.pattern"
value="lib/[conf]/[artifact](-[classifier]).[ext]"/>
<taskdef resource="org/apache/ivy/ant/antlib.xml"
classpath="lib/ivy/ivy-2.5.0.jar"
loaderref="ivy.loader"
uri="antlib:org.apache.ivy.ant"/>
</target>
<target name="install"
depends="init-ivy">
<ivy:install from="public"
to="local"
organisation="org.apache.logging.log4j"
module="log4j-core"
revision="2.14.0"
overwrite="true"/>
</target>
</project>
{code}
If you now execute Ant, you end up with a
{{~/.ivy2/local/org.apache.logging.log4j/log4j-core/2.14.0/ivys/ivy.xml}} file
that contains
{code:xml}
<dependency org="org.apache.logging.log4j" name="log4j-api" rev="2.14.0"
force="true" conf="test->runtime(*),master(*)">
<artifact name="log4j-api" type="test-jar" ext="jar" conf="test"
m:classifier="tests"/>
</dependency>{code}
but is missing the normal dependency to the normal {{log4j-api}} artifact.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)