akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
153 stars 51 forks source link

Build error #75

Open khatchad opened 9 years ago

khatchad commented 9 years ago

I followed the steps for the existing projects for three Eclipse plugins but I am getting the following error:

$ gradle check
:edu.cuny.citytech.defaultrefactoring.tests:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':edu.cuny.citytech.defaultrefactoring.tests:compile'.
> Could not find any version that matches eclipse-luna-sr2:org.eclipse.ltk.ui.refactoring.tests:+.
  Searched in the following locations:
      file:/Users/raffi/.m2/repository/eclipse-luna-sr2/org.eclipse.ltk.ui.refactoring.tests/maven-metadata.xml
      file:/Users/raffi/.m2/repository/eclipse-luna-sr2/org.eclipse.ltk.ui.refactoring.tests/
      https://jcenter.bintray.com/eclipse-luna-sr2/org.eclipse.ltk.ui.refactoring.tests/maven-metadata.xml
      https://jcenter.bintray.com/eclipse-luna-sr2/org.eclipse.ltk.ui.refactoring.tests/
      file:/Users/raffi/.wuff/m2_repository/eclipse-luna-sr2/org.eclipse.ltk.ui.refactoring.tests/maven-metadata.xml
      file:/Users/raffi/.wuff/m2_repository/eclipse-luna-sr2/org.eclipse.ltk.ui.refactoring.tests/
  Required by:
      Java-8-Interface-Refactoring:edu.cuny.citytech.defaultrefactoring.tests:1.0.0
> Could not find any version that matches eclipse-luna-sr2:org.eclipse.jdt.ui.tests:+.
  Searched in the following locations:
      file:/Users/raffi/.m2/repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests/maven-metadata.xml
      file:/Users/raffi/.m2/repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests/
      https://jcenter.bintray.com/eclipse-luna-sr2/org.eclipse.jdt.ui.tests/maven-metadata.xml
      https://jcenter.bintray.com/eclipse-luna-sr2/org.eclipse.jdt.ui.tests/
      file:/Users/raffi/.wuff/m2_repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests/maven-metadata.xml
      file:/Users/raffi/.wuff/m2_repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests/
  Required by:
      Java-8-Interface-Refactoring:edu.cuny.citytech.defaultrefactoring.tests:1.0.0
> Could not find any version that matches eclipse-luna-sr2:org.eclipse.jdt.ui.tests.refactoring:+.
  Searched in the following locations:
      file:/Users/raffi/.m2/repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests.refactoring/maven-metadata.xml
      file:/Users/raffi/.m2/repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests.refactoring/
      https://jcenter.bintray.com/eclipse-luna-sr2/org.eclipse.jdt.ui.tests.refactoring/maven-metadata.xml
      https://jcenter.bintray.com/eclipse-luna-sr2/org.eclipse.jdt.ui.tests.refactoring/
      file:/Users/raffi/.wuff/m2_repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests.refactoring/maven-metadata.xml
      file:/Users/raffi/.wuff/m2_repository/eclipse-luna-sr2/org.eclipse.jdt.ui.tests.refactoring/
  Required by:
      Java-8-Interface-Refactoring:edu.cuny.citytech.defaultrefactoring.tests:1.0.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
pandaadb commented 8 years ago

Hey,

not sure if that will help you, but there is a hacky workaround that you can use to resolve this issue. I had a similar issue, with the only difference being that my output said it was looking in the jar or pom file.

The output is quite handy in terms of telling you what it needs. What I did is manually create the locations that are searched and then add the correct jar files into there. That way the build script will pick them up correctly. I used the jar files that I import in my eclipse project, since they should be the correct ones. (Note: You will most likely have to rename the jars as they are versioned by default).

Having done all of that, my mac application still didn't run.