Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-453

GUI demo build fails due to unable to locate log4j

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.1.0.BETA2
    • 4.1.0.BETA1
    • None
    • None

    Description

      If you wipe your maven2 repo, you'll find that GUI demo does not build and this is related to the maven repo changes. Basically, the GUI demo depends on log4j 1.2.15 but we're not using the default one. Instead we're depending on http://repository.jboss.org/maven2/apache-log4j/log4j/1.2.15/

      Now, the reason for that I suspect is the fact that if you depend on the standard log4j 1.2.15, you get dependency failures like this:

      Missing:
      ----------
      1) com.sun.jdmk:jmxtools:jar:1.2.1

      Try downloading the file manually from:
      http://java.sun.com/products/JavaManagement/download.html

      Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

      Path to dependency:
      1) org.infinispan:infinispan-gui-demo:jar:4.1.0-SNAPSHOT
      2) log4j:log4j:jar:1.2.15
      3) com.sun.jdmk:jmxtools:jar:1.2.1

      2) com.sun.jmx:jmxri:jar:1.2.1

      Try downloading the file manually from the project website.

      Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.sun.jmx -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

      Path to dependency:
      1) org.infinispan:infinispan-gui-demo:jar:4.1.0-SNAPSHOT
      2) log4j:log4j:jar:1.2.15
      3) com.sun.jmx:jmxri:jar:1.2.1

      ----------
      2 required artifacts are missing.

      for artifact:
      org.infinispan:infinispan-gui-demo:jar:4.1.0-SNAPSHOT
      ----------

      As http://unitstep.net/blog/2009/05/18/resolving-log4j-1215-dependency-problems-in-maven-using-exclusions/ explains, these appear to be optional dependencies that log4j should have set. Issues like this might explain why we ended up building and putting our own 1.2.15 version in the old repository.

      The point is, what do we do about it? Any particular reason why the demo depends on version 1.2.15?

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: