Yes, Im using a proxy to connect to Internet, the mvn install command should 
not work?

--- En date de : Jeu 21.5.09, Stefano Lenzi <kis...@interfree.it> a écrit :

De: Stefano Lenzi <kis...@interfree.it>
Objet: Re: UPnP Basedriver
À: users@felix.apache.org
Date: Jeudi 21 Mai 2009, 23h36

chihi asma wrote:
> I downloaded the subproject and when I execute the mvn install command I get 
> this error:
> 
> [INFO] Scanning for projects...
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/felix/felix/1.0.2/felix-1.0.2.pom
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.apache.felix
> ArtifactId: felix
> Version: 1.0.2
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.felix:felix:pom:1.0.2
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)

>From the above error message it seems that maven could not find one of the 
>dependency needed by the goal, but I have checked and the required artifact is 
>deploy on the Maven Central repository. So, maven should be able to download 
>the missing artifact by itself as long as maven can access to internet.

Were you connect to internet when you executed the command "mvn install"? Are 
you using a proxy to access to internet?



> 
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent: 
> org.apache.felix:felix for project: null:upnp:pom:1.0.0 for project 
> null:upnp:pom:1.0.0
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:376)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:289)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>         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:585)
>         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.apache.felix:felix for project: null:upnp:pom:1.0.0 for project 
> null:upnp:pom:1.0.0
>         at 
>org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1259)
>         at 
>org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:745)
>         at 
>org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:476)
>         at 
>org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:197)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:548)
>         at 
>org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:458)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:362)
>         ... 11 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 
> 'org.apache.felix:felix' not found in repository: Unable to download the 
> artifact from any repository
> 
>   org.apache.felix:felix:pom:1.0.2
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project org.apache.felix:felix
>         at 
>org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:571)
>         at 
>org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1255)
>         ... 17 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: 
> Unable to download the artifact from any repository
> 
>   org.apache.felix:felix:pom:1.0.2
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
>         at 
>org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:206)
>         at 
>org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
>         at 
>org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:524)
>         ... 18 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:324)
>         at 
>org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:194)
>         ... 20 more
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 20 seconds
> [INFO] Finished at: Thu May 21 16:25:48 WAT 2009
> [INFO] Final Memory: 1M/2M
> [INFO] 
> ------------------------------------------------------------------------
>  Thanks in advance
> --- En date de : Jeu 21.5.09, Stefano Lenzi <kis...@interfree.it> a écrit :
> 
> De: Stefano Lenzi <kis...@interfree.it>
> Objet: Re: UPnP Basedriver
> À: users@felix.apache.org
> Date: Jeudi 21 Mai 2009, 14h00
> 
> 
> chihi asma wrote:
>> Hi,
>> I created a new projet netbeans containing all the basedriver packages, 
>> created the manifest and builded all to get the jar file. I start the jar 
>> file with start file://......
>> I'm new in OSGi so please tell me if Im wrong.
> 
> Dear Asma,
> 
> I'm wondering that the problem could be the configuration of your Netbeans 
> project (and I'm not a Netbeans expert). BTW, if you don't mind you may try 
> the following steps to get and full working OSGi platform with UPnP Base 
> Driver support:
> 
> 1 - Checkout the upnp subproject from: 
> http://svn.apache.org/repos/asf/felix/trunk/upnp into a directory called 
> org.apache.felix.upnp
> 
> 2 - From the directory org.apache.felix.upnp execute the command "mvn install"
> 
> 3 - From the directory org.apache.felix.upnp execute the command "mvn pax:run"
> 
> If the step number 2 fail do not try to execute the step number 3 but send us 
> the output of the command.
> 
> During the execution of the step number 3 the maven will configure pax-runner 
> by means of maven-pax-plugin to download the default OSGi platform and 
> pax-runner will install also most of the Apache Felix UPnP related bundles. 
> Again if this step fail please send us an e-mail with the output.
> 
> Thank you!
> 
>> Asma
>> 
> 
> Ciao,
> Stefano "Kismet" Lenzi
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
> 
> 
> 
> 
>       


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




      

Reply via email to