mtrupkin / sbt-launch4j

launch4j sbt plugin
BSD 2-Clause "Simplified" License
4 stars 0 forks source link

Unable to resolve dependencies? #2

Open martinb3 opened 9 years ago

martinb3 commented 9 years ago

Hi there -- when I follow your setup instructions, I find that there isn't a version 0.1.0 of your project:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.trupkin#sbt-launch4j;0.1.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

When I switch to what appears to be the correct version, 0.0.6, I then see other unresolved deps:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: dsol#dsol-xml;1.6.9: not found
[warn]  :: org.apache.batik#com.springsource.org.apache.batik.ext.awt;1.7.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]      dsol:dsol-xml:1.6.9
[warn]        +- net.java.abeille:abeille:3.0
[warn]        +- net.sf.launch4j:launch4j:3.5.0
[warn]        +- org.trupkin:sbt-launch4j:0.0.6 (sbtVersion=0.13, scalaVersion=2.10) (/home/mart6985/src/egonet/project/launcher.sbt#L3-4)
[warn]        +- default:egonet-build:0.1-SNAPSHOT (sbtVersion=0.13, scalaVersion=2.10)
[warn]      org.apache.batik:com.springsource.org.apache.batik.ext.awt:1.7.0
[warn]        +- net.java.abeille:abeille:3.0
[warn]        +- net.sf.launch4j:launch4j:3.5.0
[warn]        +- org.trupkin:sbt-launch4j:0.0.6 (sbtVersion=0.13, scalaVersion=2.10) (/home/mart6985/src/egonet/project/launcher.sbt#L3-4)
[warn]        +- default:egonet-build:0.1-SNAPSHOT (sbtVersion=0.13, scalaVersion=2.10)

Is there some trick or source you've added to ivy to get it to resolve these? Thank you!

ekis commented 8 years ago

I am having the same problem, albeit on version 0.0.8.

Some digging around revealed the org.apache.batik dependency should be available through a read-only, SpringSource EBR repository but I could not figure out a correct path to retrieve the correct JAR.

Any suggestions or ideas would be greatly appreciated.

mtrupkin commented 8 years ago

Use the following code in your launch.sbt file instead of what is in the readme:

resolvers ++= Seq(
    Resolver.url("org.trupkin sbt plugins", url("http://dl.bintray.com/mtrupkin/sbt-plugins/"))(Resolver.ivyStylePatterns),
    "SpringSource" at "http://repository.springsource.com/maven/bundles/external"
)

addSbtPlugin("org.trupkin" % "sbt-launch4j" % "0.0.8")  

I will update the usage documentation and see if the batik dependency can be excluded.

ekis commented 8 years ago

OK, this did fix the dependency resolution for batik, but there were more unresolvable dependencies:

Eventually, I was able to stumble upon existing repositories containing these deps, pick them all up and move them into .ivy cache but am now facing a different issue for which I'll open a new ticket.

At any rate, the dependency resolution for this plugin is really painful and I ran into circular dependency issue more than once - it seems a global analysis of dependencies is needed; I found at least 50 MB of added dependencies just for sbt-launch4j and I am unsure if really of all of them are needed.