I selected the "File->Import->Maven->Existing Maven Projects" option. Admittedly I already have the entire source tree local.

I've successfully used "File->Import->Maven->Check out Maven Projects fro SCM" too, but have not tried just for examples.

2010/10/3 Aman <boy18nj@gmail.com>

How do you import examples by only using m2 in eclipse?

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Sunday, October 03, 2010 1:57 PM


To: Rules Users List
Subject: Re: [rules-users] mvn failed to install under drools-5.1.1-examples.zip

 

I was also able to import just the examples into Eclipse without problem using m2eclipse.

2010/10/2 AMANDEEP JASWAL SINGH <boy18nj@gmail.com>

Never mind, I got it http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk

 

On Sat, Oct 2, 2010 at 5:45 PM, Aman <boy18nj@gmail.com> wrote:

I downloaded Drools 5.1 examples from http://www.jboss.org/drools/downloads.html.

Then inside the folder F:\Drools\drools-examples\drools-examples-drl, I ran mvn install. This will give you below error.

 

Could you please provide SVN url link?

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Saturday, October 02, 2010 5:39 PM
To: Rules Users List
Subject: Re: [rules-users] mvn failed to install under drools-5.1.1-examples.zip

 

Did you check out from subversion with a tag?

I just checked out trunk and ran "mvn clean install -DskipTests=true" without any issues from within the trunk folder?

2010/10/2 Aman <boy18nj@gmail.com>

When I tried to run mvn install, it gave me following error-

 

[INFO] Scanning for projects...

Downloading: http://repo1.maven.org/maven2/org/drools/drools/5.1.1/drools-5.1.1.pom

[INFO] Unable to find resource 'org.drools:drools:pom:5.1.1' in repository central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------

[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: null:drools-examples:pom:null

 

Reason: Cannot find parent: org.drools:drools for project: null:drools-examples:pom:null for project null:drools-examples:pom:null

 

 

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.drools:drools for project: null:drools-examples:pom:null for project null:drools-examples:pom:null

                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:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                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.ProjectBuildingException: Cannot find parent: org.drools:drools for project: null:drools-examples:pom:null for project null:drools-examples:pom:null

                at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)

                at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)

                at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)

                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.apache.maven.project.ProjectBuildingException: POM 'org.drools:drools' not found in repository: Unable to download the artifact from any repository

 

  org.drools:drools:pom:5.1.1

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2)

 

 for project org.drools:drools

                at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)

                at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)

                ... 18 more

Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

 

  org.drools:drools:pom:5.1.1

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2)

 

 

                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)

                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)

                at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)

                ... 19 more

Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository

                at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)

                at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)

                ... 21 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: < 1 second

[INFO] Finished at: Sat Oct 02 16:37:04 EDT 2010

[INFO] Final Memory: 1M/4M

[INFO] ------------------------------------------------------------------------


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

 

 


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

 


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users