Re: [Neo4j] Different build errors

2011-03-16 Thread Nolan Darilek
Just wanted to say that I finally played with this today and it works 
almost perfectly.

The only issue I'm uncertain about is whether or not Spatial is 
published to the snapshot repository, as I get a POM error when doing an 
update. I don't have the error at hand, and everything works out of my 
local repo, but not remotely.

If this isn't a known issue, then I can post that error as soon as I get 
to a good stopping place with the work I'm doing now.

Thanks again.


On 03/09/2011 10:44 AM, Andreas Kollegger wrote:
 Well, that was fun.

 Turns out that one of our artifacts had the wrong scope for depending on 
 neo4j-kernel-tests. So the transitive dependencies should've included both. 
 Maven does, but Ivy doesn't.

 In my local project, I added my local maven repository like this:
val mavenLocal = Local Maven Repository at 
 file://+Path.userHome+/.m2/repository

 Then changed the neo4j version to 1.3-SNAPSHOT and experimented with the 
 upstream poms.

 I've fixed the scope of the upstream dependency and will include the 
 corrections in this week's milestone. I'll have to check that it is still 
 added to our distribution properly, but at least in terms of 
 dependency-resolution this should improve the current situation.

 Again, sorry for the confusion.

 -Andreas

 On Mar 9, 2011, at 2:25 PM, Nolan Darilek wrote:

 On 03/08/2011 10:23 AM, Andreas Kollegger wrote:
 Interesting. I've never used the libraryDependencies approach for 
 specifying dependencies. What's the advantage? I'll have to read up about 
 that.


 I think it ultimately does the same thing as specifying separate vals,
 so no advantage, just preference. I like the clarity of stating this is
 a library dependency rather than relying on val introspection.

 In any case, I contorted my build definition in a variety of ways, but
 no matter what I did, I never downloaded anything other than
 neo4j-kernel-tests.jar. Eventually I tried your working project below,
 and that failed too. So it doesn't appear to be my project definition.
 I'm also regularly removing ~/.ivy2, ~/.m2, lib_managed/ and target/.
 Not sure if I'm missing anything, though the SBT download process does
 state 16 artifacts copied, 0 already retrieved so I think I'm getting
 them all.

   What Scala and SBT versions are you using? 2.8.1 and 0.7.5.RC0 here.

 Not sure where to go from here. I'll try a post to the SBT list later today.

 Thanks for the help.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-09 Thread Nolan Darilek
On 03/08/2011 10:23 AM, Andreas Kollegger wrote:
 Interesting. I've never used the libraryDependencies approach for specifying 
 dependencies. What's the advantage? I'll have to read up about that.


I think it ultimately does the same thing as specifying separate vals, 
so no advantage, just preference. I like the clarity of stating this is 
a library dependency rather than relying on val introspection.

In any case, I contorted my build definition in a variety of ways, but 
no matter what I did, I never downloaded anything other than 
neo4j-kernel-tests.jar. Eventually I tried your working project below, 
and that failed too. So it doesn't appear to be my project definition. 
I'm also regularly removing ~/.ivy2, ~/.m2, lib_managed/ and target/. 
Not sure if I'm missing anything, though the SBT download process does 
state 16 artifacts copied, 0 already retrieved so I think I'm getting 
them all.

  What Scala and SBT versions are you using? 2.8.1 and 0.7.5.RC0 here.

Not sure where to go from here. I'll try a post to the SBT list later today.

Thanks for the help.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-08 Thread Andreas Kollegger
Hi Nolan,

Sorry about that. The graphdb components needs to be built without any external 
repository dependencies. Unfortunately JBoss does not sync netty with maven 
central (some JBoss stuff does, though). 

This next milestone release will replace that dependency with a third-party 
packaging which is available on maven central. 

Best,
Andreas

On Mar 8, 2011, at 12:13 AM, Nolan Darilek wrote:

 On 03/05/2011 12:50 PM, Andreas Kollegger wrote:
 Did `sbt update` fail?
 
 Yes, actually, it just did for me. I just blew away my ~/.ivy2, my ~/.m2 
 and tried again, getting the update failures. Adding the JBoss 
 repository helps.
 
 Now I'm getting errors resolving org.neo4j.neo4j-spatial 0.5-SNAPSHOT. 
 Is it not published to the snapshots repository?
 
 As an aside, I'm not sure why I'm having so many local repository issues 
 with these projects. Other projects just seem to work, but the org.neo4j 
 projects seem to require me to blow away my .m2/.ivy directories 
 regularly. I'm not sure if that's a consequence of me combining Maven 
 local repositories  and my Ivy cache, but it definitely seems to behave 
 differently than every other project I've built locally.
 
 Anyhow, I'm rebuilding the latest Git checkout and will see if the old 
 errors persist, or indeed if I can now fetch the right dependencies.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-08 Thread Nolan Darilek
On 03/08/2011 09:40 AM, Andreas Kollegger wrote:

 Sorry about that. The graphdb components needs to be built without any 
 external repository dependencies. Unfortunately JBoss does not sync netty 
 with maven central (some JBoss stuff does, though).


OK, here's what I figured out yesterday. No matter what I do in SBT, I 
can't get the neo4j-kernel dependency. Here's my project configuration, 
or at least the relevant parts:

class Project(info: ProjectInfo) extends DefaultProject(info) {

   val mavenLocal = Local Maven Repository at 
file://+Path.userHome+/.m2/repository

   val osmVersion = 2.5.2-RC1
   val osmURL = 
http://downloads.sourceforge.net/project/travelingsales/libosm/+osmVersion+/;

   val databinder = databinder at http://databinder.net/repo/;

   val neo4JSnapshots = Neo4J at http://m2.neo4j.org/snapshots;
   val jBossRepository = JBoss at 
http://repository.jboss.org/nexus/content/groups/public;

   val neo4JVersion = 1.3.M03

   override def libraryDependencies = Set(
 net.databinder %% dispatch-http % 0.7.8,
 net.sf.travelingsales % osmlib % osmVersion from 
osmURL+libosm-+osmVersion+.jar,
 org.geotools % gt-main % 2.7-M3,
 org.neo4j % neo4j % neo4JVersion,
 org.neo4j % neo4j-kernel % neo4JVersion,
 org.neo4j % neo4j-spatial % 0.5-SNAPSHOT
   )++super.libraryDependencies

}

Regardless of whether or not I specify the kernel dependency, it is 
never fetched. I do, however, get the neo4j-kernel-test jar. This is 
after multiple iterations of removing and recreating all caches, 
lib_managed/ and target/.

If I pull the kernel jar from my local cache, placing it in lib/, 
everything works as expected. But something in SBT's dependency 
resolution breaks on Neo4J. I've not experienced this issue before in 
over a year of using SBT, so I'm not sure where to go from here. The 
placement of the kernel jar in my project is a good temporary solution, 
but I'm trying not to commit binary artifacts to my repository unless 
absolutely necessary.

Thanks.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-08 Thread Jim Webber
Hey Nolan,

I can confirm similar behaviour using Ant + Ivy. Super frustrating.

Jim

On 8 Mar 2011, at 16:03, Nolan Darilek wrote:

 On 03/08/2011 09:40 AM, Andreas Kollegger wrote:
 
 Sorry about that. The graphdb components needs to be built without any 
 external repository dependencies. Unfortunately JBoss does not sync netty 
 with maven central (some JBoss stuff does, though).
 
 
 OK, here's what I figured out yesterday. No matter what I do in SBT, I 
 can't get the neo4j-kernel dependency. Here's my project configuration, 
 or at least the relevant parts:
 
 class Project(info: ProjectInfo) extends DefaultProject(info) {
 
   val mavenLocal = Local Maven Repository at 
 file://+Path.userHome+/.m2/repository
 
   val osmVersion = 2.5.2-RC1
   val osmURL = 
 http://downloads.sourceforge.net/project/travelingsales/libosm/+osmVersion+/;
 
   val databinder = databinder at http://databinder.net/repo/;
 
   val neo4JSnapshots = Neo4J at http://m2.neo4j.org/snapshots;
   val jBossRepository = JBoss at 
 http://repository.jboss.org/nexus/content/groups/public;
 
   val neo4JVersion = 1.3.M03
 
   override def libraryDependencies = Set(
 net.databinder %% dispatch-http % 0.7.8,
 net.sf.travelingsales % osmlib % osmVersion from 
 osmURL+libosm-+osmVersion+.jar,
 org.geotools % gt-main % 2.7-M3,
 org.neo4j % neo4j % neo4JVersion,
 org.neo4j % neo4j-kernel % neo4JVersion,
 org.neo4j % neo4j-spatial % 0.5-SNAPSHOT
   )++super.libraryDependencies
 
 }
 
 Regardless of whether or not I specify the kernel dependency, it is 
 never fetched. I do, however, get the neo4j-kernel-test jar. This is 
 after multiple iterations of removing and recreating all caches, 
 lib_managed/ and target/.
 
 If I pull the kernel jar from my local cache, placing it in lib/, 
 everything works as expected. But something in SBT's dependency 
 resolution breaks on Neo4J. I've not experienced this issue before in 
 over a year of using SBT, so I'm not sure where to go from here. The 
 placement of the kernel jar in my project is a good temporary solution, 
 but I'm trying not to commit binary artifacts to my repository unless 
 absolutely necessary.
 
 Thanks.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-08 Thread Andreas Kollegger
Interesting. I've never used the libraryDependencies approach for specifying 
dependencies. What's the advantage? I'll have to read up about that.

By the way, maven-central has been down for part of today, and the JBoss 
repository has been super-flaky as well. 

For reference, my working test sbt project looks like this...

import sbt._

class Neo4jTrialProject(info: ProjectInfo) extends DefaultProject(info)
{
  //
  // Repositories
  //
  val jboss_bleh = fix-this at 
http://repository.jboss.org/nexus/content/groups/public;

  //
  // Versions
  //
  val NEO4J_VERSION = 1.3.M03

  //
  // Dependencies
  //
  val scala_test = org.scalatest % scalatest % 1.2 % test
  val neo4j = org.neo4j % neo4j % NEO4J_VERSION
  //val neo4j_kernel = org.neo4j % neo4j-kernel % NEO4J_VERSION
  val neo4j_kernel_tests = org.neo4j % neo4j-kernel % NEO4J_VERSION % 
test classifier tests

}

Best,
Andreas

On Mar 8, 2011, at 5:03 PM, Nolan Darilek wrote:

 On 03/08/2011 09:40 AM, Andreas Kollegger wrote:
 
 Sorry about that. The graphdb components needs to be built without any 
 external repository dependencies. Unfortunately JBoss does not sync netty 
 with maven central (some JBoss stuff does, though).
 
 
 OK, here's what I figured out yesterday. No matter what I do in SBT, I 
 can't get the neo4j-kernel dependency. Here's my project configuration, 
 or at least the relevant parts:
 
 class Project(info: ProjectInfo) extends DefaultProject(info) {
 
   val mavenLocal = Local Maven Repository at 
 file://+Path.userHome+/.m2/repository
 
   val osmVersion = 2.5.2-RC1
   val osmURL = 
 http://downloads.sourceforge.net/project/travelingsales/libosm/+osmVersion+/;
 
   val databinder = databinder at http://databinder.net/repo/;
 
   val neo4JSnapshots = Neo4J at http://m2.neo4j.org/snapshots;
   val jBossRepository = JBoss at 
 http://repository.jboss.org/nexus/content/groups/public;
 
   val neo4JVersion = 1.3.M03
 
   override def libraryDependencies = Set(
 net.databinder %% dispatch-http % 0.7.8,
 net.sf.travelingsales % osmlib % osmVersion from 
 osmURL+libosm-+osmVersion+.jar,
 org.geotools % gt-main % 2.7-M3,
 org.neo4j % neo4j % neo4JVersion,
 org.neo4j % neo4j-kernel % neo4JVersion,
 org.neo4j % neo4j-spatial % 0.5-SNAPSHOT
   )++super.libraryDependencies
 
 }
 
 Regardless of whether or not I specify the kernel dependency, it is 
 never fetched. I do, however, get the neo4j-kernel-test jar. This is 
 after multiple iterations of removing and recreating all caches, 
 lib_managed/ and target/.
 
 If I pull the kernel jar from my local cache, placing it in lib/, 
 everything works as expected. But something in SBT's dependency 
 resolution breaks on Neo4J. I've not experienced this issue before in 
 over a year of using SBT, so I'm not sure where to go from here. The 
 placement of the kernel jar in my project is a good temporary solution, 
 but I'm trying not to commit binary artifacts to my repository unless 
 absolutely necessary.
 
 Thanks.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-07 Thread Anders Nawroth
Hi!

2011-03-08 00:13, Nolan Darilek:
 Now I'm getting errors resolving org.neo4j.neo4j-spatial 0.5-SNAPSHOT.
 Is it not published to the snapshots repository?

It's here:
http://m2.neo4j.org/snapshots/org/neo4j/neo4j-spatial/0.5-SNAPSHOT/
(and BTW here as well: 
http://m2.neo4j.org/org/neo4j/neo4j-spatial/0.5-SNAPSHOT/ )

/anders

 As an aside, I'm not sure why I'm having so many local repository issues
 with these projects. Other projects just seem to work, but the org.neo4j
 projects seem to require me to blow away my .m2/.ivy directories
 regularly. I'm not sure if that's a consequence of me combining Maven
 local repositories  and my Ivy cache, but it definitely seems to behave
 differently than every other project I've built locally.

 Anyhow, I'm rebuilding the latest Git checkout and will see if the old
 errors persist, or indeed if I can now fetch the right dependencies.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-06 Thread Anders Nawroth
Maybe we could change to the bundle-packaged one that is on maven central?

http://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.netty/3.2.3.Final_1/

It's also a more recent version.


/anders

2011-03-05 19:50, Andreas Kollegger skrev:
 Did `sbt update` fail? Because it did for me when I just now set up a sample 
 project, failing to find org.jboss.netty#netty;3.2.1.Final, which I believe 
 is only available from the JBoss repository.

 We should look into making that an optional dependency since it isn't 
 available from maven central and probably isn't needed unless you're using 
 HighAvailablity.

 For now, you could either include the JBoss repository -- 
 http://repository.jboss.org/nexus/content/groups/public -- or skip the Neo4j 
 dependency jar, instead specifying each individual artifact.

 -Andreas

 On Mar 5, 2011, at 7:34 PM, Nolan Darilek wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 03/05/2011 12:27 PM, Andreas Kollegger wrote:

 What build tool are you using: maven, sbt, ant, gradle, or other?


 SBT.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEUEARECAAYFAk1ygkkACgkQIaMjFWMehWJ6qwCfYPtD4Wi0gVKSaMVUpTYFDv9a
 V2UAmNfMu+haW5i1v+DEuC6gxFTCP/E=
 =9TAx
 -END PGP SIGNATURE-
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Different build errors

2011-03-05 Thread Nolan Darilek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

OK, picking up my Neo4J project again. Updating the dependency to
Spatial 0.5-SNAPSHOT seems to have resolved the issue wherein I was
having M01 jars on my classpath despite using the M03 branch. Now I'm
getting a different error.

References to any contents of org.neo4j and subpackages are all unresolved.

I poked around in my lib_managed directory and noticed some oddities. I
do have a neo4j-1.3.M03.jar, but it's only 16K. Uncompressing it gives
me a pom.xml, MetaINF/ but no classes. Should it be this way?

I have a neo4j-kernel-1.3.M03-test.jar, but no neo4j-kernel jar. Should I?

It looks like my dependency retrieval process isn't downloading
something despite my specifying the dependency as documented on the
downloads page, or the jar isn't being built correctly.

Thanks.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1yfVEACgkQIaMjFWMehWIpvwCeNPlALB6r4uEjTc6Bkb39wPV1
E1AAn09ZhD7m1rp/frSJmZYMZ86e+1S/
=txGS
-END PGP SIGNATURE-
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-05 Thread Andreas Kollegger
Hi Nolan,

The org.neo4j:neo4j artifact is just there to pass through transitive 
dependencies on the official distribution of neo4j libraries. You'll need to 
be sure to include transitive dependencies, or specifically include each 
artifact.

What build tool are you using: maven, sbt, ant, gradle, or other?

-Andreas

On Mar 5, 2011, at 7:13 PM, Nolan Darilek wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 OK, picking up my Neo4J project again. Updating the dependency to
 Spatial 0.5-SNAPSHOT seems to have resolved the issue wherein I was
 having M01 jars on my classpath despite using the M03 branch. Now I'm
 getting a different error.
 
 References to any contents of org.neo4j and subpackages are all unresolved.
 
 I poked around in my lib_managed directory and noticed some oddities. I
 do have a neo4j-1.3.M03.jar, but it's only 16K. Uncompressing it gives
 me a pom.xml, MetaINF/ but no classes. Should it be this way?
 
 I have a neo4j-kernel-1.3.M03-test.jar, but no neo4j-kernel jar. Should I?
 
 It looks like my dependency retrieval process isn't downloading
 something despite my specifying the dependency as documented on the
 downloads page, or the jar isn't being built correctly.
 
 Thanks.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk1yfVEACgkQIaMjFWMehWIpvwCeNPlALB6r4uEjTc6Bkb39wPV1
 E1AAn09ZhD7m1rp/frSJmZYMZ86e+1S/
 =txGS
 -END PGP SIGNATURE-
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-05 Thread Nolan Darilek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/05/2011 12:27 PM, Andreas Kollegger wrote:
 
 What build tool are you using: maven, sbt, ant, gradle, or other?
 

SBT.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAk1ygkkACgkQIaMjFWMehWJ6qwCfYPtD4Wi0gVKSaMVUpTYFDv9a
V2UAmNfMu+haW5i1v+DEuC6gxFTCP/E=
=9TAx
-END PGP SIGNATURE-
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-05 Thread Andreas Kollegger
Did `sbt update` fail? Because it did for me when I just now set up a sample 
project, failing to find org.jboss.netty#netty;3.2.1.Final, which I believe 
is only available from the JBoss repository. 

We should look into making that an optional dependency since it isn't available 
from maven central and probably isn't needed unless you're using 
HighAvailablity. 

For now, you could either include the JBoss repository -- 
http://repository.jboss.org/nexus/content/groups/public -- or skip the Neo4j 
dependency jar, instead specifying each individual artifact.

-Andreas

On Mar 5, 2011, at 7:34 PM, Nolan Darilek wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 03/05/2011 12:27 PM, Andreas Kollegger wrote:
 
 What build tool are you using: maven, sbt, ant, gradle, or other?
 
 
 SBT.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEUEARECAAYFAk1ygkkACgkQIaMjFWMehWJ6qwCfYPtD4Wi0gVKSaMVUpTYFDv9a
 V2UAmNfMu+haW5i1v+DEuC6gxFTCP/E=
 =9TAx
 -END PGP SIGNATURE-
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Different build errors

2011-03-05 Thread Nolan Darilek
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/05/2011 12:50 PM, Andreas Kollegger wrote:
 Did `sbt update` fail? Because it did for me when I just now set up a sample 
 project, failing to find org.jboss.netty#netty;3.2.1.Final, which I believe 
 is only available from the JBoss repository. 
 

No, seems to work fine for me here. It did fail on that before, maybe a
few weeks back, but not now.


 
 SBT.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1yohIACgkQIaMjFWMehWJi+wCdERkQv8kkELcjZ4m4G9z/ZSxl
8X0An3ym7DpPHAlplE1sFVUi5BiAj78Q
=hMCg
-END PGP SIGNATURE-
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user