maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Rivard <adrien.riv...@gmail.com>
Subject Re: Problem downloading dependencies
Date Tue, 22 Oct 2013 12:44:54 GMT
Hi Robert,

spring-web-osgi 1.1.2 is depending on org.springframework.osgi:
servlet-api.osgi:jar:2.5-SNAPSHOT which is rather surprising (A release
should never contains any snapshot, and even more considering it is on
maven central)

I would try to update spring-web-osgi to 1.2.0 which does not seems to
suffer from the same problem.




On Tue, Oct 22, 2013 at 2:10 PM, Russell Gold <russ@gold-family.us> wrote:

> Hi Robert,
>
> I don't see the artifact you want in the repository you listed. I don't
> see it in Maven Central, either. So:
>
> 1) What makes you think such an artifact exists? It looks to me as though
> all of the spring artifacts have names beginning with "spring-osgi"
> 2) Why are you trying to use a snapshot? Prefer the releases unless you
> have some specific reason to look for unreleased features.
>
> Regards,
> Russ
>
> On Oct 21, 2013, at 3:35 PM, Robert Dailey <rcdailey.lists@gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm very new to maven so I have no idea what's causing this error. I
> > have a sample application and I type "mvn clean install -U", which
> > seems to grab all dependencies except one:
> >
> > [WARNING] The POM for
> > org.springframework.osgi:servlet-api.osgi:jar:2.5-SNAPSHOT is missing,
> > no dependency information available
> >
> > Because of this, building my project eventually has an error:
> >
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] simple-bundle ..................................... SUCCESS
> [1.029s]
> > [INFO] simpleweb-war ..................................... SUCCESS
> [2.764s]
> > [INFO] simple-kar ........................................ FAILURE
> [3.378s]
> > [INFO] simpleweb ......................................... SKIPPED
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Total time: 7.632s
> > [INFO] Finished at: Mon Oct 21 14:25:17 CDT 2013
> > [INFO] Final Memory: 29M/561M
> > [INFO]
> ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal on project simple-kar: Could not
> > resolve dependencies for project com.good.server:simple-kar:pom:1.0:
> > Could not find artifact
> > org.springframework.osgi:servlet-api.osgi:jar:2.5-SNAPSHOT in
> > repository.springsource.snapshot
> > (http://repo.springsource.org/snapshot) -> [Help 1]
> >
> > I have tried messing around with <repositories> in my pom.xml, but
> > that doesn't seem to help. Here is my project pom.xml (for
> > simple-kar). Any idea whats going on?
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <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/xsd/maven-4.0.0.xsd">
> >
> >    <modelVersion>4.0.0</modelVersion>
> >
> >    <groupId>com.good.server</groupId>
> >    <artifactId>simple-kar</artifactId>
> >    <version>1.0</version>
> >    <packaging>pom</packaging>
> >
> >    <repositories>
> >        <repository>
> >            <id>repository.springsource.snapshot</id>
> >            <name>SpringSource Snapshot Repository</name>
> >            <url>http://repo.springsource.org/snapshot</url>
> >        </repository>
> >        <repository>
> >            <id>mvnrepository</id>
> >            <url>http://repo1.maven.org/maven2</url>
> >            <!--<snapshots>
> >                <enabled>false</enabled>
> >            </snapshots>
> >            <releases>
> >                <enabled>true</enabled>
> >            </releases>-->
> >        </repository>
> >    </repositories>
> >
> > <properties>
> > <java.version>1.7</java.version>
> > <org.springframework.version>3.1.1.RELEASE
> > </org.springframework.version>
> > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> > </properties>
> >
> > <dependencies>
> > <dependency>
> > <groupId>javax.servlet</groupId>
> > <artifactId>javax.servlet-api</artifactId>
> > <version>3.0.1</version>
> > <scope>provided</scope>
> > </dependency>
> >        <dependency>
> >            <groupId>org.springframework.osgi</groupId>
> >            <artifactId>spring-osgi-web</artifactId>
> >            <version>1.1.2</version>
> >        </dependency>
> > </dependencies>
> >
> >    <build>
> >        <plugins>
> >            <plugin>
> >                <groupId>org.apache.karaf.tooling</groupId>
> >                <artifactId>features-maven-plugin</artifactId>
> >                <version>2.2.8</version>
> >                <executions>
> >                    <execution>
> >                        <id>create-kar</id>
> >                        <goals>
> >                            <goal>create-kar</goal>
> >                        </goals>
> >                        <configuration>
> >
> > <featuresFile>src/main/resources/features.xml</featuresFile>
> >                        </configuration>
> >                    </execution>
> >                </executions>
> >            </plugin>
> >        </plugins>
> >    </build>
> >
> > </project>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
> -----------------
> Author, Getting Started with Apache Maven <
> http://www.packtpub.com/getting-started-with-apache-maven/video>
>
> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
> and listen to the Misfile radio play <
> http://www.fuzzyfacetheater.com/misfile/>!
>
>
>
>
>
>
>
>


-- 
Adrien Rivard

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message