mmh, maybe this should go into the Wiki? /peter
On Wed, Apr 30, 2008 at 1:31 PM, Mattias Persson <[EMAIL PROTECTED]> wrote: > It could be a problem in maven because wou have to specify the java > source code version (i.e 1.6 or whatever you use). Maven has a > tendency to default to java 1.4. So here is what you'll want to > include in your pom.xml: > > .... > <build> > .... > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > </plugins> > </build> > .... > > > So in a simple example the entire pom.xml would look like: > > <project> > <modelVersion>4.0.0</modelVersion> > <groupId>my-groupId</groupId> > <artifactId>my-artifactId</artifactId> > <name></name> > <version>0.1</version> > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > </plugins> > </build> > > <dependencies> > <dependency> > <groupId>org.neo4j</groupId> > <artifactId>neo</artifactId> > <version>1.0-rc1-SNAPSHOT</version> > </dependency> > </dependencies> > > <repositories> > <repository> > <id>neo4j-public-repository</id> > <name>Publically available Maven 2 repository > for Neo4j</name> > <url>http://m2.neo4j.org</url> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > </repositories> > </project> > > 2008/4/28 Emil Eifrem <[EMAIL PROTECTED]>: > > > > On Mon, Apr 28, 2008 at 11:16 AM, Philip Jägenstedt <[EMAIL PROTECTED]> > > wrote: > > > While I've been keeping the Java door open (and gotten a bit enamoured > > > with it) I am still interested. Maybe I'll even write some code in > > > Python and some in Java, if that's possible... I'm guessing it's not > > > possible for two programs to use the sasme datastore at the same time > > > though, which could potentially be a problem. > > > > Very true, you can't run two Neo instances (processes, JVMs, etc) > > against the same data store. > > > > > > > > > > Also, I'm feeling slightly retarded this morning as I can't figure out > > > a good place to put my RelationshipTypes enum in Java. Essentially it > > > needs to be package global, so all I can think of is creating a silly > > > little class like this: > > > > > > public class Mush { > > > public static enum Types implements RelationshipType { > > > MUSICBRAINZ, > > > ARTISTS, > > > ARTIST > > > } > > > } > > > > You probably want to put it into a file RelTypes.java, which looks like: > > > > enum RelTypes implements RelationshipType > > { > > BLAH, BLAH 2 > > } > > > > Good luck! > > > > Cheers, > > > > -- > > Emil Eifrém, CEO [EMAIL PROTECTED] > > > > Neo Technology, www.neotechnology.com > > Cell: +46 733 462 271 | US: 206 403 8808 > > > > > > _______________________________________________ > > Neo mailing list > > User@lists.neo4j.org > > https://lists.neo4j.org/mailman/listinfo/user > > > > _______________________________________________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > > -- GTalk: neubauer.peter Skype peter.neubauer ICQ 18762544 GTalk neubauer.peter Phone +46704 106975 LinkedIn http://www.linkedin.com/in/neubauer http://www.neo4j.org - New Energy for Data - the Graph Database. http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. http://www.qi4j.org - New Energy for Java - Domain Driven Development. _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user