[ https://issues.apache.org/jira/browse/IVY-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15781331#comment-15781331 ]
Reşat SABIQ commented on IVY-1553: ---------------------------------- I had a need to to add a target to publish individual artifacts instead of all, so i gave the last suggestion a try. 1. The following still throws NCDFE for me (in subsequent publish task): <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant_2"> </taskdef> <ivy2:cachepath pathid="bc.classpath" conf="bc" /> <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant"> <classpath> <path refid="bc.classpath" /> </classpath> </taskdef> 2. But again i worked around it by using bc.classpath from line 4 above to fork a child ant process (instead of 2nd taskdef)... So IMHO the issue still needs attention: a. Updated doc, and ideally a runnable example (at a minimum). b. More friendly implementation (e.g., automatically picking up BC from project dependencies w/o requiring extra steps (possibly w/ a warning if not found)), at a maximum. > PGP signing during publication shouldn't require bouncy castle dependencies > to be in .ant/lib or forking another java process with classpath explicitly > configured to contain bouncy castle modules > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: IVY-1553 > URL: https://issues.apache.org/jira/browse/IVY-1553 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.4.0 > Reporter: Reşat SABIQ > Labels: pgp > > With > <signers> > <pgp name="default-sig" keyId="${pgp.key}" > password="${pgp.password}"/> > </signers> > in ivysettings.xml, > ivy kept throwing CNFE until i put these dependencies in .ant/lib: > <dependency org="org.bouncycastle" name="bcpg-jdk15on" > rev="1.49" conf="default"/> > <dependency org="org.bouncycastle" name="bcprov-jdk15on" > rev="1.49" conf="default"/> > I ended up putting the following comment in ivy.xml: > <!-- First 2 currently must be in .ant/lib (pgp signer didn't > work via dependency or ivycache manipulation, etc). --> > P.S. I believe this issue is ongoing since 2012/13. -- This message was sent by Atlassian JIRA (v6.3.4#6332)