Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Which repository to use when having dependency on virgo kernel modules?
Which repository to use when having dependency on virgo kernel modules? [message #719568] Sat, 27 August 2011 22:12 Go to next message
pinkfloyd_360 is currently offline pinkfloyd_360Friend
Messages: 15
Registered: August 2011
Junior Member
I'm building a web bundle and I'm using the virgo splash and admin web applications as my starting point.

I created a splash bundel with no problems. However, now that I'm building another bundle based on the admin web app, I'm having problems compiling my code because the dependencies are not resolved. I don't seem find the correct repositories to use with my pom file.

Here's the error that I'm receiving:

======

[ERROR] Failed to execute goal on project web: Could not resolve dependencies for project com.sample.web:war:0.0.1: Failed to collect dependencies for [org.eclipse.virgo:org.eclipse.virgo.framework:jar:2.1.0.RELEASE (compile)
======

I'm using the following in the project's pom file:


    <dependencies>
        <dependency>
            <groupId>org.eclipse.virgo</groupId>
            <artifactId>org.eclipse.virgo.framework</artifactId>
            <version>${virgo.kernel.ver}</version>
        </dependency>

        <dependency>
            <groupId>org.eclipse.virgo.test</groupId>
            <artifactId>org.eclipse.virgo.kernel</artifactId>
            <version>${virgo.kernel.ver}</version>
        </dependency>

      ...

      <repository>
        <id>eclipse.virgo.maven.repo</id>
        <name>Eclipse Virgo Maven Repository</name>
        <url>build.eclipse.org/rt/virgo/maven/bundles/</url>
      </repository>


(I removed "http" from the url link since I'm not allowed to include links with my post)

I have been switching the ${virgo.kernel.ver} to "2.1.0.RELEASE" and "3.0.0.RELEASE" but nothing is working.

Am I using the correct repository?

Thanks.

[Updated on: Sat, 27 August 2011 22:13]

Report message to a moderator

Re: Which repository to use when having dependency on virgo kernel modules? [message #719575 is a reply to message #719568] Sat, 27 August 2011 23:17 Go to previous messageGo to next message
pinkfloyd_360 is currently offline pinkfloyd_360Friend
Messages: 15
Registered: August 2011
Junior Member
I forgot to include the template.mf file:

Manifest-Version: 1.0
Bundle-Name: Web Bundle
Bundle-Version: 0.0.1
Bundle-ManifestVersion: 2
Bundle-SymbolicName: com.sample.web
Bundle-ClassPath: WEB-INF/classes
Web-ContextPath: /
Import-Template:
 org.springframework.*;version="[3.0.5, 3.1)",
 javax.servlet.http.*;version="3.0.4",
 org.eclipse.virgo.apps.admin.*,
 org.eclipse.virgo.apps.kernel.*,
 org.eclipse.virgo.apps.util.*,
 org.eclipse.virgo.apps.web.*,
 org.osgi.framework.*;version="0"
Excluded-Exports: *
Import-Package:
 org.springframework.web.servlet.mvc;version="[3.0.5, 3.1.0)",
 org.springframework.web.servlet.view;version="[3.0.5, 3.1.0)",
 org.springframework.web.servlet.handler;version="[3.0.5, 3.1)",
 org.springframework.web.servlet;version="[3.0.5, 3.1)",
 org.springframework.beans.factory.xml;version="[3.0.5, 3.1.0)",
 javax.servlet.http;version="[2.5.0, 4.0.0)"

[Updated on: Sat, 27 August 2011 23:17]

Report message to a moderator

Re: Which repository to use when having dependency on virgo kernel modules? [message #719653 is a reply to message #719575] Sun, 28 August 2011 08:00 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

You may need additional repositories for all dependiencies to resolve. For example I use:

    <repositories>
        <repository>
            <id>org.eclipse.virgo.maven.repository.bundles.release</id>
            <name>Eclipse Virgo Bundles Maven Repository</name>
            <url>http://zodiac.springsource.com/maven/bundles/release</url>
        </repository>
        <repository>
            <id>org.eclipse.virgo.maven.repository.libraries.release</id>
            <name>Eclipse Virgo Libraries Maven Repository</name>
            <url>http://zodiac.springsource.com/maven/bundles/release</url>
        </repository>
        <repository>
            <id>com.springsource.repository.bundles.release</id>
            <name>EBR Spring Release Repository</name>
            <url>http://repository.springsource.com/maven/bundles/release</url>
        </repository>
        <repository>
            <id>com.springsource.repository.bundles.external</id>
            <name>EBR External Release Repository</name>
            <url>http://repository.springsource.com/maven/bundles/external</url>
        </repository>
    </repositories>
Re: Which repository to use when having dependency on virgo kernel modules? [message #719982 is a reply to message #719653] Mon, 29 August 2011 15:48 Go to previous message
pinkfloyd_360 is currently offline pinkfloyd_360Friend
Messages: 15
Registered: August 2011
Junior Member
Thanks for the response Hristo. I'm still getting the same error though. I will check all my build setup and parent pom files as well since now I know I have the correct repositories. It must be another issue. I'm getting errors also regarding junit dependencies, and not just the virgo kernel dependencies. I must have messed up something in my build files.

Previous Topic:How to downgrade Spring version to 2.5.6?
Next Topic:Equinox Bundles not supported yet
Goto Forum:
  


Current Time: Thu Dec 18 12:37:18 GMT 2014

Powered by FUDForum. Page generated in 0.21802 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software