Uploaded image for project: 'IvyDE (Retired)'
  1. IvyDE (Retired)
  2. IVYDE-160

Unable to create intial ivy configuration unless all configurations are selected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.0.beta1
    • None
    • None
    • None

    Description

      Steps:

      1. Create Ivy file with multiple confs and dependencies attached to those confs
      2. Add to the Eclipse project an Ivy Classpath Container with only one of the confs enabled.

      After clicking 'Finish' I get an error:

      java.lang.RuntimeException: problem during retrieve of GROUP#ARTIFACT: java.lang.IllegalStateException: Report file '/home/robert/.ivy2/cache/GROUP-ARTIFACT-production.xml' does not exist.
      at org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEngine.java:196)
      at org.apache.ivy.Ivy.retrieve(Ivy.java:540)
      at org.apache.ivyde.eclipse.cpcontainer.IvyResolveJob.maybeRetrieve(IvyResolveJob.java:456)
      at org.apache.ivyde.eclipse.cpcontainer.IvyResolveJob.access$6(IvyResolveJob.java:446)
      at org.apache.ivyde.eclipse.cpcontainer.IvyResolveJob$1.run(IvyResolveJob.java:292)
      Caused by: java.lang.IllegalStateException: Report file '/home/robert/.ivy2/cache/GROUP-ARTIFACT-production.xml' does not exist.
      at org.apache.ivy.plugins.report.XmlReportParser.parse(XmlReportParser.java:291)
      at org.apache.ivy.core.retrieve.RetrieveEngine.determineArtifactsToCopy(RetrieveEngine.java:278)
      at org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEngine.java:102)
      ... 4 more
      

      Where production is one of the confs which is not enabled. A snippet of the ivy xml ( may be relevant ):

          <dependencies defaultconfmapping="*->default,sources;ivy->default">
      		
      		<!-- 
      			# google collections:
      			
      			Preferred for custom collections implementations and static factory methods
      		-->
      		<dependency org="com.google.collections" name="google-collections" rev="0.8" conf="production->default"/>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: