Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2669 Reliable solution for javax.ws packaging.type
  3. NUTCH-2672

Ant build erronously installs *-test.jar instead *.jar for target "nightly"

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.16
    • 1.18
    • build
    • None

    Description

      The Jenkins build (1.x/trunk only) failed because instead of the "normal" jars the *-test.jar versions are installed in build/lib/ which causes a compiler error ("cannot find symbol"):

      resolve-test:
      [ivy:resolve] :: Apache Ivy 2.5.0-rc1 - 20180412005306 :: http://ant.apache.org/ivy/ ::
      [ivy:resolve] :: loading settings :: file = /home/jenkins/jenkins-slave/workspace/Nutch-trunk/ivy/ivysettings.xml
      ...
      
      resolve-default:
      [ivy:resolve] downloading http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-auth/2.7.4/hadoop-auth-2.7.4-tests.jar ...
      [ivy:resolve] ...... (99kB)
      [ivy:resolve] .. (0kB)
      [ivy:resolve] 	[SUCCESSFUL ] org.apache.hadoop#hadoop-auth;2.7.4!hadoop-auth.jar(test-jar) (181ms)
      [ivy:resolve] downloading http://repo1.maven.org/maven2/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6-tests.jar ...
      [ivy:resolve] ........................................................................ (526kB)
      [ivy:resolve] .. (0kB)
      [ivy:resolve] 	[SUCCESSFUL ] org.apache.zookeeper#zookeeper;3.4.6!zookeeper.jar(test-jar) (35ms)
      [ivy:resolve] downloading http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-yarn-common/2.7.4/hadoop-yarn-common-2.7.4-tests.jar ...
      [ivy:resolve] ........................... (258kB)
      [ivy:resolve] .. (0kB)
      [ivy:resolve] 	[SUCCESSFUL ] org.apache.hadoop#hadoop-yarn-common;2.7.4!hadoop-yarn-common.jar(test-jar) (181ms)
      [ivy:resolve] downloading http://repo1.maven.org/maven2/com/j256/ormlite/ormlite-core/5.1/ormlite-core-5.1-tests.jar ...
      [ivy:resolve] ...................................................................................... (643kB)
      [ivy:resolve] .. (0kB)
      [ivy:resolve] 	[SUCCESSFUL ] com.j256.ormlite#ormlite-core;5.1!ormlite-core.jar (321ms)
        [taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.
      
      copy-libs:
      
      compile-core:
          [javac] Compiling 298 source files to /home/jenkins/jenkins-slave/workspace/Nutch-trunk/build/classes
          [javac] /home/jenkins/jenkins-slave/workspace/Nutch-trunk/src/java/org/apache/nutch/webui/model/SeedList.java:32: error: cannot find symbol
          [javac] import com.j256.ormlite.field.ForeignCollectionField;
          [javac]                              ^
          [javac]   symbol:   class ForeignCollectionField
          [javac]   location: package com.j256.ormlite.field
          [javac] /home/jenkins/jenkins-slave/workspace/Nutch-trunk/src/java/org/apache/nutch/webui/model/SeedUrl.java:29: error: cannot find symbol
          [javac] import com.j256.ormlite.field.DatabaseField;
          [javac]                              ^
      

      The problem is reproducible by:

      1. cleaning the local ivy cached
        rm -rf ~/.ivy2/cache/com.j256.ormlite/
        
      2. and running ant clean nightly or ant clean compile-core-test

      It's not reproducible

      • when rolling back NUTCH-2671 and using ivy 2.4.0
      • when running ant clean resolve-default or ant clean resolve-test

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              snagel Sebastian Nagel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: