You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Björn Kautler (Jira)" <ji...@apache.org> on 2021/02/05 15:45:00 UTC
[jira] [Commented] (IVY-1625) install produces bad ivy.xml for
log4j-core
[ https://issues.apache.org/jira/browse/IVY-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17279762#comment-17279762 ]
Björn Kautler commented on IVY-1625:
------------------------------------
I think the correct result should have both like:
{code:xml}
<dependency org="org.apache.logging.log4j" name="log4j-api" rev="2.14.0" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<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}
> 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
> Priority: Major
>
> 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)