Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22373

discovery site build does not need to fetch ant-contrib repeatedly when already available as maven dependency

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.4.0.Alpha2
    • 4.4.0.Alpha1
    • build, central-update
    • None
    • devex #114 May 2016
    • 2

      Realized due to a network glitch that the process of building the discovery sites currently attempts to fetch & unzip ant-contrib 4 times.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (install) on project org.jboss.tools.central.discovery: An Ant BuildException has occured: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:37: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:52: Error while expanding /home/hudson/static_build_env/jbds/tools/ant-contrib-1.0b2-bin.zip
      [ERROR] java.io.IOException: Negative seek offset
      [ERROR] around Ant part ...<ant antfile="build.xml" dir="../../" target="basic.build">... @ 4:62 in /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/jbosstools/org.jboss.tools.central.discovery/target/antrun/build-main.xml
      [ERROR] -> [Help 1]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (install) on project org.jboss.tools.central.discovery.earlyaccess: An Ant BuildException has occured: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:37: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:52: Error while expanding /home/hudson/static_build_env/jbds/tools/ant-contrib-1.0b2-bin.zip
      [ERROR] java.io.IOException: Negative seek offset
      [ERROR] around Ant part ...<ant antfile="build.xml" dir="../../" target="basic.build">... @ 4:62 in /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/jbosstools/org.jboss.tools.central.discovery.earlyaccess/target/antrun/build-main.xml
      [ERROR] -> [Help 1]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (install) on project com.jboss.jbds.central.discovery: An Ant BuildException has occured: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:37: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:52: Error while expanding /home/hudson/static_build_env/jbds/tools/ant-contrib-1.0b2-bin.zip
      [ERROR] java.io.IOException: Negative seek offset
      [ERROR] around Ant part ...<ant antfile="build.xml" dir="../../" target="basic.build">... @ 4:62 in /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/jbdevstudio/com.jboss.jbds.central.discovery/target/antrun/build-main.xml
      [ERROR] -> [Help 1]
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (install) on project com.jboss.jbds.central.discovery.earlyaccess: An Ant BuildException has occured: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:37: The following error occurred while executing this line:
      [ERROR] /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/build.xml:52: Error while expanding /home/hudson/static_build_env/jbds/tools/ant-contrib-1.0b2-bin.zip
      [ERROR] java.io.IOException: Negative seek offset
      [ERROR] around Ant part ...<ant antfile="build.xml" dir="../../" target="basic.build">... @ 4:62 in /home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-discovery/jbdevstudio/com.jboss.jbds.central.discovery.earlyaccess/target/antrun/build-main.xml
      

      But this is declared as a dependency in each pom that uses the build.xml script.

      So we can probably skip this step entirely and just rely on the maven dep.

            nickboldt Nick Boldt
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: