btw. thx! On Wed, Jul 13, 2011 at 3:12 PM, Zhiguo Zhang <mikewolfx...@gmail.com>wrote:
> > I think the <version>1.5-SNAPSHOT</version> and > <neo4j.version>1.5-SNAPSHOT</neo4j.version> > are important, I download the src from github, in that pom.xml are 1.4M06 > but not 1.5-SNAPSHOT > > any way it build successful. I will try to use that. > > > On Wed, Jul 13, 2011 at 3:04 PM, Michael Hunger < > michael.hun...@neotechnology.com> wrote: > >> The parent section is this: >> >> <parent> >> <groupId>org.neo4j</groupId> >> <artifactId>parent-pom</artifactId> >> <version>21</version> >> </parent> >> >> So your pom should look like this: >> >> >> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >> http://maven.apache.org/POM/4.0.0 >> http://maven.apache.org/maven-v4_0_0.xsd"> >> >> <modelVersion>4.0.0</modelVersion> >> <groupId>org.neo4j.server.plugin</groupId> >> <artifactId>neo4j-cypher-plugin</artifactId> >> <packaging>jar</packaging> >> <version>1.5-SNAPSHOT</version> >> <name>neo4j-cypher-plugin</name> >> >> <properties> >> <!-- Jar Versions --> >> <junit.version>4.8.2</junit.version> >> <spring.version>3.0.4.RELEASE</spring.version> >> <jackson.version>1.5.2</jackson.version> >> <cxf.version>2.3.1</cxf.version> >> <servlet-api.version>2.5</servlet-api.version> >> <neo4j.version>1.5-SNAPSHOT</neo4j.version> >> <jersey.server.version>1.6</jersey.server.version> >> <license-text.header>GPL-3-header.txt</license-text.header> >> </properties> >> .............. >> </project> >> Am 13.07.2011 um 15:00 schrieb Zhiguo Zhang: >> >> > hi, >> > >> > Thanks for help, then i try to edit the pom.xml like this: >> > >> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" >> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >> > http://maven.apache.org/POM/4.0.0 >> http://maven.apache.org/maven-v4_0_0.xsd"> >> > >> > <artifactId>pom</artifactId> >> > >> > <modelVersion>4.0.0</modelVersion> >> > <groupId>org.neo4j.server.plugin</groupId> >> > <artifactId>neo4j-cypher-plugin</artifactId> >> > <packaging>jar</packaging> >> > <version>1.4</version> >> > <name>neo4j-cypher-plugin</name> >> > >> > ...... >> > >> > delete the <parent> section, but looks like it has another error like >> > following: >> > >> > still got error like this: >> > >> > >> > + Error stacktraces are turned on. >> > [INFO] Scanning for projects... >> > [INFO] >> > ------------------------------------------------------------------------ >> > [ERROR] FATAL ERROR >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Error building POM (may not be this project's POM). >> > >> > >> > Project ID: unknown >> > POM Location: /home/root/cypher-plugin/pom.xml >> > >> > Reason: Parse error reading POM. Reason: Duplicated tag: 'artifactId' >> > (position: START_TAG seen ...</groupId>\n <artifactId>... @6:15) for >> > project unknown at /home/root/cypher-plugin/pom.xml >> > >> > >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Trace >> > org.apache.maven.reactor.MavenExecutionException: Parse error reading >> POM. >> > Reason: Duplicated tag: 'artifactId' (position: START_TAG seen >> > ...</groupId>\n <artifactId>... @6:15) for project unknown at >> > /home/root/cypher-plugin/pom.xml >> > at >> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404) >> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272) >> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) >> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >> > at >> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at >> > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> > at >> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> > at java.lang.reflect.Method.invoke(Method.java:616) >> > at >> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> > at >> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> > Caused by: org.apache.maven.project.InvalidProjectModelException: Parse >> > error reading POM. Reason: Duplicated tag: 'artifactId' (position: >> START_TAG >> > seen ...</groupId>\n <artifactId>... @6:15) for project unknown at >> > /home/root/cypher-plugin/pom.xml >> > at >> > >> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1610) >> > at >> > >> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1571) >> > at >> > >> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) >> > at >> > >> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200) >> > at >> org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604) >> > at >> > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487) >> > at >> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391) >> > ... 12 more >> > Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: >> > Duplicated tag: 'artifactId' (position: START_TAG seen ...</groupId>\n >> > <artifactId>... @6:15) >> > at >> > >> org.apache.maven.model.io.xpp3.MavenXpp3Reader.checkFieldWithDuplicate(MavenXpp3Reader.java:116) >> > at >> > >> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:1862) >> > at >> > >> org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3912) >> > at >> > >> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1606) >> > ... 18 more >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Total time: < 1 second >> > [INFO] Finished at: Wed Jul 13 14:43:01 CEST 2011 >> > [INFO] Final Memory: 1M/4M >> > [INFO] >> > ------------------------------------------------------------------------ >> > >> > >> > >> > >> > >> > On Wed, Jul 13, 2011 at 2:39 PM, Michael Hunger < >> > michael.hun...@neotechnology.com> wrote: >> > >> >> If you just take the pom, remove the complete <parent> section, make >> sure >> >> that the neo4j.version is set to 1.4 you should be able to build it >> without >> >> problems standalone. >> >> >> >> Thanks >> >> >> >> Michael >> >> >> >> Am 13.07.2011 um 14:31 schrieb Zhiguo Zhang: >> >> >> >>> hi, >> >>> >> >>> after successful install and running the gremlin-plugin, i continue >> try >> >> to >> >>> install the cypher-plugin. >> >>> >> >>> This time i changed first the artifactId to parent-central >> >>> >> >>> then also follow the [INFO] Failed to resolve artifact. Missing:..... >> >>> >> >>> install the missing packages. Then try to compiler again with command >> >> line: >> >>> >> >>> mvn -Dmaven.test.skip=true -e clean package >> >>> >> >>> then got the following information: (Please help me, thank you!) >> >>> >> >>> >> >>> + Error stacktraces are turned on. >> >>> [INFO] Scanning for projects... >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] Building neo4j-cypher-plugin >> >>> [INFO] task-segment: [clean, package] >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] [clean:clean {execution: default-clean}] >> >>> [INFO] Deleting /home/root/cypher-plugin/target >> >>> [INFO] [enforcer:enforce {execution: enforce-maven}] >> >>> [INFO] [license:check {execution: check-licenses}] >> >>> [INFO] Checking licenses... >> >>> [INFO] [resources:resources {execution: default-resources}] >> >>> [INFO] Using 'UTF-8' encoding to copy filtered resources. >> >>> [INFO] Copying 1 resource >> >>> [INFO] skip non existing resourceDirectory >> >>> /home/root/cypher-plugin/src/main/webapp >> >>> [INFO] skip non existing resourceDirectory >> /home/root/cypher-plugin/data >> >>> [INFO] [compiler:compile {execution: default-compile}] >> >>> [INFO] Compiling 2 source files to >> >> /home/root/cypher-plugin/target/classes >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [ERROR] BUILD FAILURE >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] Compilation failure >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[30,48] >> >>> cannot find symbol >> >>> symbol: class ObjectRepresentation >> >>> public class CypherResultRepresentation extends ObjectRepresentation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[41,5] >> >>> cannot find symbol >> >>> symbol : class Mapping >> >>> location: class org.neo4j.server.rest.repr.CypherResultRepresentation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[48,5] >> >>> cannot find symbol >> >>> symbol : class Mapping >> >>> location: class org.neo4j.server.rest.repr.CypherResultRepresentation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[30,48] >> >>> cannot find symbol >> >>> symbol: class ObjectRepresentation >> >>> public class CypherResultRepresentation extends ObjectRepresentation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[41,5] >> >>> cannot find symbol >> >>> symbol : class Mapping >> >>> location: class org.neo4j.server.rest.repr.CypherResultRepresentation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[48,5] >> >>> cannot find symbol >> >>> symbol : class Mapping >> >>> location: class org.neo4j.server.rest.repr.CypherResultRepresentation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/plugin/cypher/CypherPlugin.java:[68,19] >> >>> incompatible types >> >>> found : org.neo4j.server.rest.repr.CypherResultRepresentation >> >>> required: org.neo4j.server.rest.repr.Representation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[78,23] >> >>> cannot find symbol >> >>> symbol : class NodeRepresentation >> >>> location: class org.neo4j.server.rest.repr.CypherResultRepresentation >> >>> >> >>> >> >> >> /home/root/cypher-plugin/src/main/java/org/neo4j/server/rest/repr/CypherResultRepresentation.java:[82,23] >> >>> cannot find symbol >> >>> symbol : class RelationshipRepresentation >> >>> location: class org.neo4j.server.rest.repr.CypherResultRepresentation >> >>> >> >>> >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] Trace >> >>> org.apache.maven.BuildFailureException: Compilation failure >> >>> at >> >>> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715) >> >>> at >> >>> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) >> >>> at >> >>> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) >> >>> at >> >>> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) >> >>> at >> >>> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) >> >>> at >> >>> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) >> >>> at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) >> >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) >> >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >> >>> at >> >>> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) >> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >>> at >> >>> >> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> >>> at >> >>> >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> >>> at java.lang.reflect.Method.invoke(Method.java:616) >> >>> at >> >>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> >>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> >>> at >> >>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> >>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> >>> Caused by: org.apache.maven.plugin.CompilationFailureException: >> >> Compilation >> >>> failure >> >>> at >> >>> >> >> >> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516) >> >>> at >> >>> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) >> >>> at >> >>> >> >> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) >> >>> at >> >>> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) >> >>> ... 17 more >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] Total time: 3 seconds >> >>> [INFO] Finished at: Wed Jul 13 14:21:31 CEST 2011 >> >>> [INFO] Final Memory: 38M/68M >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> _______________________________________________ >> >>> 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 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