2011-04-16 8 views
7

जब pom.xmlOrg.springframework.security:org.springframework.security.web:jar:3.0.5.RELEASE के लिए पीओएम गुम है, कोई निर्भरता जानकारी उपलब्ध नहीं है

<dependency> 
    <groupId>org.springframework.security</groupId> 
    <artifactId>org.springframework.security.web</artifactId> 
    <version>3.0.5.RELEASE</version> 
</dependency> 

में भंडार के साथ

 <repository> 
     <id>com.springsource.repository.bundles.milestone</id> 
     <name>EBR Spring Milestone Repository</name> 
     <url>http://repository.springsource.com/maven/bundles/milestone</url> 
    </repository> 
    <repository> 
     <id>org.springframework.maven.milestone</id> 
     <name>Maven Central Compatible Spring Milestone Repository</name> 
     <url>http://maven.springframework.org/milestone</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> 

मैवेन बिल्ड करते समय मुझे निम्न त्रुटि संदेश मिलता है:

The POM for org.springframework.security:org.springframework.security.web:jar:3.0.5.RELEASE is missing, no dependency information available 

अन्य वसंत पुस्तकालयों को अच्छी तरह से शामिल किया गया है। क्या गलत हो रहा है? हर प्रकार की सहायता के लिए आपका धन्यवाद।


अद्यतन xxx99

<?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/maven-v4_0_0.xsd"> 
<modelVersion>4.0.0</modelVersion> 
<groupId>test</groupId> 
<artifactId>test</artifactId> 
<packaging>jar</packaging> 
<version>1.0.1</version> 
<name>test</name> 
<url>http://test</url> 
<dependencies> 
    <dependency> 
     <groupId>org.springframework.security</groupId> 
     <artifactId>org.springframework.security.web</artifactId> 
     <version>3.0.5.RELEASE</version> 
    </dependency> 
</dependencies> 

<repositories> 
    <repository> 
     <id>com.springsource.repository.bundles.milestone</id> 
     <name>EBR Spring Milestone Repository</name> 
     <url>http://repository.springsource.com/maven/bundles/milestone</url> 
    </repository> 
    <repository> 
     <id>org.springframework.maven.milestone</id> 
     <name>Maven Central Compatible Spring Milestone Repository</name> 
     <url>http://maven.springframework.org/milestone</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> 
</project> 

और mvn -U install (बल अद्यतन जांच) को कॉल करते समय यह

[ERROR] Failed to execute goal on project test: Could not resolve dependencies for project test:test:jar:1.0.1: Could not find artifact org.springframework.security:org.springframework.security.web:jar:3.0.5.RELEASE in com.springsource.repository.bundles.milestone (http://repository.springsource.com/maven/bundles/milestone) 
देता है
+0

आप उन सभी गैर-मानक भंडारों का उपयोग क्यों कर रहे हैं? –

+0

मानक भंडार क्या है ताकि हम दूसरों से छुटकारा पा सकें? –

+0

@ लार्स: शॉन के उत्तर का एक लिंक है। –

उत्तर

8

मुझे लगता है कि the repository ठीक से आबादी वाला है, इसलिए समस्या एक गलत artifactId है। यह spring-security-web है, org.springframework.security.web नहीं।

+0

तो http://static.springsource.org/spring-security/site/petclinic-tutorial.html में एक गलत उदाहरण है जिसका मैं अनुसरण कर रहा था। डोनाल को इंगित करने के लिए धन्यवाद! दिलचस्प है 'org.springframework.security।वेब 'संस्करण 3.0.3 के साथ अच्छी तरह से काम करता है .RELEASE। –

+0

@ लार्स: आपको * वसंत दस्तावेज के साथ * वास्तव में * देखना होगा; यह सूक्ष्म त्रुटियों के इस तरह से भरा है। (ठीक है, शायद "पूर्ण" नहीं है लेकिन मैंने निश्चित रूप से अतीत में कुछ को मारा है, पर्याप्त है कि मुझे इस पर भरोसा नहीं है ...) –

+0

अगली बात यह है कि पेटक्लिनिक उदाहरण अब और काम नहीं कर रहा है। शॉन के जवाब पर मेरी टिप्पणी देखें। वसंत चली गई है, अब गर्मी होगी ... –

0

http://static.springsource.org/spring-security/site/petclinic-tutorial.html देता है एक गलत artificact क्रमांक देता है, जहां मैं कॉपी किया गया वें ई निर्भरता से। दिलचस्प बात यह संस्करण 3.0.3 के साथ काम करता है .RELEASE लेकिन 3.0.5.RELEASE के साथ नहीं।

संकेत शॉन के लिए धन्यवाद, मैंने जवाब अपडेट किया।

+0

सच नहीं है, मेरा उत्तर देखें –

+0

धन्यवाद शॉन, मैंने अपना जवाब अपडेट किया। पेटक्लिनिक उदाहरण बिल्कुल काम नहीं करता है। वसंत सुरक्षा के लिए अपने गलत आर्टिफैक्ट आईडी के बावजूद किसी ने ट्रंक को ऐसे संस्करण में बदल दिया है जो स्थिर संसाधनों को सही तरीके से संसाधित नहीं करता है। लेकिन यह एक और विषय है। –

3

आप गलत artifactId का उपयोग कर रहे हैं। इस का उपयोग करें:

<dependency> 
    <groupId>org.springframework.security</groupId> 
    <artifactId>spring-security-web</artifactId> 
    <version>3.0.5.RELEASE</version> 
</dependency> 

और आप किसी भी कस्टम खजाने की जरूरत नहीं है, आप इसे in Maven Central पा सकते हैं।

संबंधित मुद्दे