For CR1 we'll have .project and .classpath files in the examples and
info on how to use it is in its readme.
Try it out:
Feedback to improve it is welcome here. We're releasing CR1 soon, if the
feedback is soon, I might be able to process it.
Op 13-05-11 08:54, clement.pernot schreef:
hi,
I have download: "Drools Examples" on
http://www.jboss.org/drools/downloads
I use eclipse in order to build.
I have follow this:
https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/READ...
in order to configure eclipse.
I don't know what i must do.
After one build i got this:
Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: /home/newel/eclipse/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "2.6.35-28-generic", arch:
"i386", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from EMBEDDED/conf/settings.xml
[DEBUG] Reading user settings from /home/newel/.m2/settings.xml
[DEBUG] Using local repository at /home/newel/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for
/home/newel/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Verifying availability of
/home/newel/.m2/repository/org/drools/drools/5.1.1/drools-5.1.1.pom from
[central (
http://repo1.maven.org/maven2, releases=true, snapshots=false,
managed=false)]
[DEBUG] Using connector AsyncRepositoryConnector with priority 100 for
http://repo1.maven.org/maven2
[DEBUG] Reading resolution tracking file
/home/newel/.m2/repository/org/drools/drools/5.1.1/drools-5.1.1.pom.lastUpdated
[DEBUG] Writing resolution tracking file
/home/newel/.m2/repository/org/drools/drools/5.1.1/drools-5.1.1.pom.lastUpdated
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were
encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Could not find artifact
org.drools:drools:pom:5.1.1 in central (
http://repo1.maven.org/maven2) and
'parent.relativePath' points at wrong local POM @ line 5, column 11
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR]
[ERROR] The project org.drools:drools-examples:5.1.1
(/home/newel/workspace/drools-5.1.1-examples/drools-examples/pom.xml) has 1
error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.drools:drools:pom:5.1.1 in central (
http://repo1.maven.org/maven2) and
'parent.relativePath' points at wrong local POM @ line 5, column 11 -> [Help
2]
org.apache.maven.model.resolution.UnresolvableModelException: Could not find
artifact org.drools:drools:pom:5.1.1 in central
(
http://repo1.maven.org/maven2)
at
org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:183)
at
org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:819)
at
org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:354)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:305)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could
not find artifact org.drools:drools:pom:5.1.1 in central
(
http://repo1.maven.org/maven2)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:526)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:214)
at
org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:179)
... 21 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not
find artifact org.drools:drools:pom:5.1.1 in central
(
http://repo1.maven.org/maven2)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1409)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector$3.wrap(AsyncRepositoryConnector.java:1404)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask.flush(AsyncRepositoryConnector.java:895)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask.flush(AsyncRepositoryConnector.java:889)
at
org.sonatype.aether.connector.async.AsyncRepositoryConnector.get(AsyncRepositoryConnector.java:276)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:438)
... 23 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-run-one-example-of-drools-in-ecl...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users