jppf-grid / JPPF

The open source grid computing solution
https://www.jppf.org
Apache License 2.0
65 stars 12 forks source link

Dependencies cannot be downloaded automatically #1

Closed trinhpham closed 6 years ago

trinhpham commented 6 years ago

Dear @lolocohen ,

The latest source code (at this moment) can't be built because of most of dependencies cannot be download automatically. I attach my console output below, could you please take a look? Another concern that I have is: we are download libs from Maven Central Repository by some tricky Ant task , why don't we just use Maven for our projects?

Thanks

D:\Working\JPPF>ant dependencies
Buildfile: D:\Working\JPPF\build.xml

dependencies:
     [echo] Downloading JPPF dependencies
Duplicated project name in import. Project JPPF-libs defined first in D:\Working\JPPF\JPPF\bin\build-libs.xml and again in D:\Working\JPPF\JPPF\bin\build-dependencies.xml

dependencies:
     [echo] downloading http://repo.maven.apache.org/maven2/com/puppycrawl.tools/checkstyle/6.19/checkstyle-6.19.jar to D:\Working\JPPF\JPPF/lib/Checkstyle/checkstyle-6.19.jar
      [get] Getting: http://repo.maven.apache.org/maven2/com/puppycrawl.tools/checkstyle/6.19/checkstyle-6.19.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Checkstyle\checkstyle-6.19.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/puppycrawl.tools/checkstyle/6.19/checkstyle-6.19.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/puppycrawl.tools/checkstyle/6.19/checkstyle-6.19.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/puppycrawl.tools/checkstyle/6.19/checkstyle-6.19.jar
      [get] Can't get http://repo.maven.apache.org/maven2/com/puppycrawl.tools/checkstyle/6.19/checkstyle-6.19.jar to D:\Working\JPPF\JPPF\lib\Checkstyle\checkstyle-6.19.jar
     [echo] downloading http://repo.maven.apache.org/maven2/com/google.guava/guava/19.0/guava-19.0.jar to D:\Working\JPPF\JPPF/lib/Checkstyle/guava-19.0.jar
      [get] Getting: http://repo.maven.apache.org/maven2/com/google.guava/guava/19.0/guava-19.0.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Checkstyle\guava-19.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/google.guava/guava/19.0/guava-19.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/google.guava/guava/19.0/guava-19.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/google.guava/guava/19.0/guava-19.0.jar
      [get] Can't get http://repo.maven.apache.org/maven2/com/google.guava/guava/19.0/guava-19.0.jar to D:\Working\JPPF\JPPF\lib\Checkstyle\guava-19.0.jar
     [echo] downloading http://repo.maven.apache.org/maven2/org/codehaus.groovy/groovy-all/1.6.5/groovy-all-1.6.5.jar to D:\Working\JPPF\JPPF/lib/Groovy/groovy-all-1.6.5.jar
      [get] Getting: http://repo.maven.apache.org/maven2/org/codehaus.groovy/groovy-all/1.6.5/groovy-all-1.6.5.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Groovy\groovy-all-1.6.5.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/codehaus.groovy/groovy-all/1.6.5/groovy-all-1.6.5.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/codehaus.groovy/groovy-all/1.6.5/groovy-all-1.6.5.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/codehaus.groovy/groovy-all/1.6.5/groovy-all-1.6.5.jar
      [get] Can't get http://repo.maven.apache.org/maven2/org/codehaus.groovy/groovy-all/1.6.5/groovy-all-1.6.5.jar to D:\Working\JPPF\JPPF\lib\Groovy\groovy-all-1.6.5.jar
     [echo] downloading http://repo.maven.apache.org/maven2/org/apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar to D:\Working\JPPF\JPPF/lib/J2EE/geronimo-j2ee-connector_1.5_spec-2.0.0.jar
      [get] Getting: http://repo.maven.apache.org/maven2/org/apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar
      [get] To: D:\Working\JPPF\JPPF\lib\J2EE\geronimo-j2ee-connector_1.5_spec-2.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar
      [get] Can't get http://repo.maven.apache.org/maven2/org/apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0/geronimo-j2ee-connector_1.5_spec-2.0.0.jar to D:\Working\JPPF\JPPF\lib\J2EE\geronimo-j2ee-connector_1.5_spec-2.0.0.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/java.dev.jna/jna/4.5.1/jna-4.5.1.jar to D:\Working\JPPF\JPPF/lib/JNA/jna-4.5.1.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna/4.5.1/jna-4.5.1.jar
      [get] To: D:\Working\JPPF\JPPF\lib\JNA\jna-4.5.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna/4.5.1/jna-4.5.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna/4.5.1/jna-4.5.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna/4.5.1/jna-4.5.1.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/java.dev.jna/jna/4.5.1/jna-4.5.1.jar to D:\Working\JPPF\JPPF\lib\JNA\jna-4.5.1.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/java.dev.jna/jna-platform/4.5.1/jna-platform-4.5.1.jar to D:\Working\JPPF\JPPF/lib/JNA/jna-platform-4.5.1.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna-platform/4.5.1/jna-platform-4.5.1.jar
      [get] To: D:\Working\JPPF\JPPF\lib\JNA\jna-platform-4.5.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna-platform/4.5.1/jna-platform-4.5.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna-platform/4.5.1/jna-platform-4.5.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/java.dev.jna/jna-platform/4.5.1/jna-platform-4.5.1.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/java.dev.jna/jna-platform/4.5.1/jna-platform-4.5.1.jar to D:\Working\JPPF\JPPF\lib\JNA\jna-platform-4.5.1.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/sourceforge.collections/collections-generic/4.01/collections-generic-4.01.jar to D:\Working\JPPF\JPPF/lib/Jung/collections-generic-4.01.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/sourceforge.collections/collections-generic/4.01/collections-generic-4.01.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Jung\collections-generic-4.01.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sourceforge.collections/collections-generic/4.01/collections-generic-4.01.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sourceforge.collections/collections-generic/4.01/collections-generic-4.01.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sourceforge.collections/collections-generic/4.01/collections-generic-4.01.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/sourceforge.collections/collections-generic/4.01/collections-generic-4.01.jar to D:\Working\JPPF\JPPF\lib\Jung\collections-generic-4.01.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/sf.jung/jung-algorithms/2.0.1/jung-algorithms-2.0.1.jar to D:\Working\JPPF\JPPF/lib/Jung/jung-algorithms-2.0.1.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/sf.jung/jung-algorithms/2.0.1/jung-algorithms-2.0.1.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Jung\jung-algorithms-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-algorithms/2.0.1/jung-algorithms-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-algorithms/2.0.1/jung-algorithms-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-algorithms/2.0.1/jung-algorithms-2.0.1.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/sf.jung/jung-algorithms/2.0.1/jung-algorithms-2.0.1.jar to D:\Working\JPPF\JPPF\lib\Jung\jung-algorithms-2.0.1.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/sf.jung/jung-api/2.0.1/jung-api-2.0.1.jar to D:\Working\JPPF\JPPF/lib/Jung/jung-api-2.0.1.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/sf.jung/jung-api/2.0.1/jung-api-2.0.1.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Jung\jung-api-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-api/2.0.1/jung-api-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-api/2.0.1/jung-api-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-api/2.0.1/jung-api-2.0.1.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/sf.jung/jung-api/2.0.1/jung-api-2.0.1.jar to D:\Working\JPPF\JPPF\lib\Jung\jung-api-2.0.1.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/sf.jung/jung-graph-impl/2.0.1/jung-graph-impl-2.0.1.jar to D:\Working\JPPF\JPPF/lib/Jung/jung-graph-impl-2.0.1.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/sf.jung/jung-graph-impl/2.0.1/jung-graph-impl-2.0.1.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Jung\jung-graph-impl-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-graph-impl/2.0.1/jung-graph-impl-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-graph-impl/2.0.1/jung-graph-impl-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-graph-impl/2.0.1/jung-graph-impl-2.0.1.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/sf.jung/jung-graph-impl/2.0.1/jung-graph-impl-2.0.1.jar to D:\Working\JPPF\JPPF\lib\Jung\jung-graph-impl-2.0.1.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/sf.jung/jung-visualization/2.0.1/jung-visualization-2.0.1.jar to D:\Working\JPPF\JPPF/lib/Jung/jung-visualization-2.0.1.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/sf.jung/jung-visualization/2.0.1/jung-visualization-2.0.1.jar
      [get] To: D:\Working\JPPF\JPPF\lib\Jung\jung-visualization-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-visualization/2.0.1/jung-visualization-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-visualization/2.0.1/jung-visualization-2.0.1.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/sf.jung/jung-visualization/2.0.1/jung-visualization-2.0.1.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/sf.jung/jung-visualization/2.0.1/jung-visualization-2.0.1.jar to D:\Working\JPPF\JPPF\lib\Jung\jung-visualization-2.0.1.jar
     [echo] downloading http://repo.maven.apache.org/maven2/net/jpountz.lz4/lz4/1.3.0/lz4-1.3.0.jar to D:\Working\JPPF\JPPF/lib/LZ4/lz4-1.3.0.jar
      [get] Getting: http://repo.maven.apache.org/maven2/net/jpountz.lz4/lz4/1.3.0/lz4-1.3.0.jar
      [get] To: D:\Working\JPPF\JPPF\lib\LZ4\lz4-1.3.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/jpountz.lz4/lz4/1.3.0/lz4-1.3.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/jpountz.lz4/lz4/1.3.0/lz4-1.3.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/net/jpountz.lz4/lz4/1.3.0/lz4-1.3.0.jar
      [get] Can't get http://repo.maven.apache.org/maven2/net/jpountz.lz4/lz4/1.3.0/lz4-1.3.0.jar to D:\Working\JPPF\JPPF\lib\LZ4\lz4-1.3.0.jar
     [echo] downloading http://repo.maven.apache.org/maven2/org/apache.maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar to D:\Working\JPPF\JPPF/lib/maven/maven-ant-tasks-2.1.3.jar
      [get] Getting: http://repo.maven.apache.org/maven2/org/apache.maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
      [get] To: D:\Working\JPPF\JPPF\lib\maven\maven-ant-tasks-2.1.3.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/apache.maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/apache.maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/org/apache.maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
      [get] Can't get http://repo.maven.apache.org/maven2/org/apache.maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar to D:\Working\JPPF\JPPF\lib\maven\maven-ant-tasks-2.1.3.jar
     [echo] downloading http://repo.maven.apache.org/maven2/com/github.oshi/oshi-core/3.5.0/oshi-core-3.5.0.jar to D:\Working\JPPF\JPPF/lib/oshi/oshi-core-3.5.0.jar
      [get] Getting: http://repo.maven.apache.org/maven2/com/github.oshi/oshi-core/3.5.0/oshi-core-3.5.0.jar
      [get] To: D:\Working\JPPF\JPPF\lib\oshi\oshi-core-3.5.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/github.oshi/oshi-core/3.5.0/oshi-core-3.5.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/github.oshi/oshi-core/3.5.0/oshi-core-3.5.0.jar
      [get] Error opening connection java.io.FileNotFoundException: http://repo.maven.apache.org/maven2/com/github.oshi/oshi-core/3.5.0/oshi-core-3.5.0.jar
      [get] Can't get http://repo.maven.apache.org/maven2/com/github.oshi/oshi-core/3.5.0/oshi-core-3.5.0.jar to D:\Working\JPPF\JPPF\lib\oshi\oshi-core-3.5.0.jar

BUILD SUCCESSFUL
Total time: 9 seconds
lolocohen commented 6 years ago

For some reason, the following line in the build script is working with Java 7, but not with Java 8 or later:

<script language="javascript">
  project.setProperty("path", project.getProperty("group").replace(".", "/"));
</script>

I'm assuming this is due to the new Javascript engine in Java 8.

The following works with all JDK versions:

<script language="javascript">
  project.setProperty("path", project.getProperty("group").replaceAll("\\.", "/"));
</script>

@trinhpham,

Thanks for this report. To answer your question:

why don't we just use Maven for our projects?

This is a choice we made many years ago. Now we have a complex build that works. The dependencies management is this easy part of the build, and you can see that this issue here is easily fixed, thanks to you. The rest of the build just works and there is currently no compelling reason to fix something that is not broken.

trinhpham commented 6 years ago

Thanks for your very quick support & explanation @lolocohen :)