2012-09-17 1 views
5

관리자가 아닌 Maven Repository로 Artifactory를 사용합니다. 나는 (AppFuse에 - 기본 - 스트럿의 원형의 많은 의존성을 통해)에 XmlSchema를 사용하기 위해 노력하고있어하지만 난 내가 실행할 때 이해할 수없는 나는 문제의 얼굴이야 MVN 패키지 :HTTP 상태 409 - 대상 배포 경로 [...]이 POM의 예상 경로 접두사와 일치하지 않습니다.

HTTP Status 409 - The target deployment path 'org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom' does not match the POM's expected path prefix 'org/apache/ws/commons/XmlSchema/SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path.

type Status report

message The target deployment path 'org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom' does not match the POM's expected path prefix 'org/apache/ws/commons/XmlSchema/SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path.

description The request could not be completed due to a conflict with the current state of the resource (The target deployment path 'org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom' does not match the POM's expected path prefix 'org/apache/ws/commons/XmlSchema/SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path.). Apache Tomcat/6.0.18

전이 종속성조차도 찾지 못했습니다. 누군가 문제를 설명 할 수 있습니까?

이 게시물 Using Maven-3 Got Http 409 error when re-deploy with archiva을 찾았지만 내 문제와 일치하지 않는 것 같습니다.

EDIT 1 : 회사의 repo를 사용하지 않을 때 아주 잘 작동합니다.

편집 2 : HTTP를 통해 REPO의 여기보기 :

 
Index of repo/org/apache/ws/commons/XmlSchema/1.1 

Name      Last modified  Size 

../ 
maven-metadata.xml->   - - 
maven-metadata.xml.md5->  - - 
maven-metadata.xml.sha1-> - - 
XmlSchema-1.1.jar  18-Sep-2006 20:12 124.96 KB 
XmlSchema-1.1.jar.asc->  - - 
XmlSchema-1.1.jar.md5 18-Sep-2006 20:12 32 bytes 
XmlSchema-1.1.jar.sha1 18-Sep-2006 20:12 40 bytes 
XmlSchema-1.1.pom->   - - 
XmlSchema-1.1.pom.md5->  - - 
XmlSchema-1.1.pom.sha1->  - - 

EDIT 3 : 이적 의존성이 거의 중독 된

 
mvn dependency:tree 

[INFO] com.edf.dpi.esip.gdt:gdt-ihm:war:7.0.1-SNAPSHOT 
[INFO] +- org.appfuse:appfuse-struts:war:2.0-m5:compile 
[INFO] +- org.appfuse:appfuse-struts:warpath:2.0-m5:compile 
[INFO] | +- org.appfuse:appfuse-web-common:war:2.0-m5:compile 
[INFO] | +- org.appfuse:appfuse-web-common:warpath:2.0-m5:compile 
[INFO] | | +- org.appfuse:appfuse-service:jar:2.0-m5:compile 
[INFO] | | | +- aspectj:aspectjweaver:jar:1.5.3:compile 
[INFO] | | | +- net.sf.ehcache:ehcache:jar:1.3.0-beta2:compile 
[INFO] | | | | \- net.sf.jsr107cache:jsr107cache:jar:1.0:compile 
[INFO] | | | +- velocity:velocity:jar:1.4:compile 
[INFO] | | | | \- velocity:velocity-dep:jar:1.4:runtime 
[INFO] | | | \- org.codehaus.xfire:xfire-all:jar:1.2.6:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-aegis:jar:1.2.6:compile 
[INFO] | | |  | \- net.java.dev.stax-utils:stax-utils:jar:20040917:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-ws-security:jar:1.2.6:compile 
[INFO] | | |  | +- xfire:opensaml:jar:1.0.1:compile 
[INFO] | | |  | +- bouncycastle:bcprov-jdk15:jar:133:compile 
[INFO] | | |  | +- xerces:xercesImpl:jar:2.7.1:compile 
[INFO] | | |  | +- xml-apis:xml-apis:jar:1.0.b2:compile 
[INFO] | | |  | +- xml-security:xmlsec:jar:1.3.0:compile 
[INFO] | | |  | +- wss4j:wss4j:jar:1.5.1:compile 
[INFO] | | |  | \- commons-discovery:commons-discovery:jar:0.2:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-core:jar:1.2.6:compile 
[INFO] | | |  | +- wsdl4j:wsdl4j:jar:1.6.1:compile 
[INFO] | | |  | +- jaxen:jaxen:jar:1.1-beta-9:compile 
[INFO] | | |  | | \- xerces:xmlParserAPIs:jar:2.6.2:compile 
[INFO] | | |  | +- stax:stax-api:jar:1.0.1:compile 
[INFO] | | |  | +- org.apache.ws.commons:XmlSchema:jar:1.1:compile 
[INFO] | | |  | +- org.codehaus.woodstox:wstx-asl:jar:3.2.0:compile 
[INFO] | | |  | +- jdom:jdom:jar:1.0:compile 
[INFO] | | |  | \- commons-httpclient:commons-httpclient:jar:3.0:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-java5:jar:1.2.6:compile 
[INFO] | | |  | \- xfire:xfire-jsr181-api:jar:1.0-M1:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-generator:jar:1.2.6:compile 
[INFO] | | |  | \- org.codehaus.xfire:xfire-jaxb2:jar:1.2.6:compile 
[INFO] | | |  |  \- com.sun.xml.bind:jaxb-xjc:jar:2.0.1:compile 
[INFO] | | |  |  \- com.sun.xml.bind:jaxb-impl:jar:2.0.1:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-xmlbeans:jar:1.2.6:compile 
[INFO] | | |  | \- xmlbeans:xbean:jar:2.2.0:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-annotations:jar:1.2.6:compile 
[INFO] | | |  | \- commons-attributes:commons-attributes-api:jar:2.1:compile 
[INFO] | | |  |  +- ant:ant:jar:1.5:compile 
[INFO] | | |  |  \- qdox:qdox:jar:1.5:compile 
[INFO] | | |  +- org.codehaus.xfire:xfire-jaxws:jar:1.2.6:compile 
[INFO] | | |  | +- javax.xml.ws:jaxws-api:jar:2.0:compile 
[INFO] | | |  | | \- javax.xml.bind:jaxb-api:jar:2.0:compile 
[INFO] | | |  | |  \- javax.xml.bind:jsr173_api:jar:1.0:compile 
[INFO] | | |  | +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3:compile 
[INFO] | | |  | \- javax.xml.soap:saaj-api:jar:1.3:compile 
[INFO] | | |  \- org.codehaus.xfire:xfire-spring:jar:1.2.6:compile 
[INFO] | | |  \- org.apache.xbean:xbean-spring:jar:2.8:compile 
[INFO] | | +- commons-collections:commons-collections:jar:3.2:compile 
[INFO] | | +- commons-dbcp:commons-dbcp:jar:1.2.2:compile 
[INFO] | | | \- commons-pool:commons-pool:jar:1.3:compile 
[INFO] | | +- org.directwebremoting:dwr:jar:2.0.1:compile 
[INFO] | | +- javax.servlet:jstl:jar:1.1.2:compile 
[INFO] | | +- taglibs:standard:jar:1.1.2:compile 
[INFO] | | +- struts-menu:struts-menu:jar:2.4.2:compile 
[INFO] | | | +- commons-digester:commons-digester:jar:1.7:compile 
[INFO] | | | \- velocity-tools:velocity-tools-view:jar:1.0:compile 
[INFO] | | +- opensymphony:clickstream:jar:1.0.2:compile 
[INFO] | | +- opensymphony:oscache:jar:2.3:compile 
[INFO] | | +- opensymphony:sitemesh:jar:2.2.1:compile 
[INFO] | | \- org.tuckey:urlrewrite:jar:2.5.2:compile 
[INFO] | +- org.apache.struts:struts2-core:jar:2.0.6:compile 
[INFO] | | +- opensymphony:xwork:jar:2.0.1:compile 
[INFO] | | +- freemarker:freemarker:jar:2.3.8:compile 
[INFO] | | +- opensymphony:ognl:jar:2.6.11:compile 
[INFO] | | +- commons-logging:commons-logging:jar:1.1:compile 
[INFO] | | \- com.sun:tools:jar:1.5.0:system 
[INFO] | +- org.apache.struts:struts2-codebehind-plugin:jar:2.0.6:compile 
[INFO] | +- org.apache.struts:struts2-spring-plugin:jar:2.0.6:compile 
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.1.1:compile 
[INFO] | +- commons-io:commons-io:jar:1.1:compile 
[INFO] | +- displaytag:displaytag:jar:1.1:compile 
[INFO] | | +- commons-lang:commons-lang:jar:2.1:compile 
[INFO] | | +- com.lowagie:itext:jar:1.3:compile 
[INFO] | | \- commons-beanutils:commons-beanutils:jar:1.7.0:compile 
[INFO] | +- org.acegisecurity:acegi-security-tiger:jar:1.0.3:compile 
[INFO] | | \- org.acegisecurity:acegi-security:jar:1.0.3:compile 
[INFO] | |  +- commons-codec:commons-codec:jar:1.3:compile 
[INFO] | |  \- oro:oro:jar:2.0.8:compile 
[INFO] | +- log4j:log4j:jar:1.2.15:compile 
[INFO] | | +- javax.mail:mail:jar:1.4:compile 
[INFO] | | | \- javax.activation:activation:jar:1.1:compile 
[INFO] | | +- javax.jms:jms:jar:1.1:compile 
[INFO] | | +- com.sun.jdmk:jmxtools:jar:1.2.1:compile 
[INFO] | | \- com.sun.jmx:jmxri:jar:1.2.1:compile 
[INFO] | \- org.springframework:spring:jar:2.0.5:compile 
[INFO] +- org.appfuse:appfuse-hibernate:jar:2.0-m5:compile 
[INFO] | +- org.appfuse:appfuse-data-common:jar:2.0-m5:compile 
[INFO] | | \- javax.persistence:persistence-api:jar:1.0:compile 
[INFO] | \- org.hibernate:hibernate-annotations:jar:3.2.1.ga:compile 
[INFO] |  \- org.hibernate:hibernate:jar:3.2.1.ga:compile 
[INFO] |  +- javax.transaction:jta:jar:1.0.1B:compile 
[INFO] |  +- asm:asm-attrs:jar:1.5.3:compile 
[INFO] |  +- dom4j:dom4j:jar:1.6.1:compile 
[INFO] |  +- antlr:antlr:jar:2.7.6:compile 
[INFO] |  +- cglib:cglib:jar:2.1_3:compile 
[INFO] |  \- asm:asm:jar:1.5.3:compile 
[INFO] +- mysql:mysql-connector-java:jar:5.0.5:compile 
[INFO] +- javax.servlet:jsp-api:jar:2.0:provided 
[INFO] +- javax.servlet:servlet-api:jar:2.4:provided 
[INFO] +- jmock:jmock:jar:1.1.0:test (scope not updated to compile) 
[INFO] +- junit:junit:jar:4.10:test 
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:test 
[INFO] +- org.springframework:spring-mock:jar:2.0.8:test 
[INFO] \- org.subethamail:subethasmtp-wiser:jar:1.0.3:test 
[INFO] \- org.subethamail:subethasmtp-smtp:jar:1.0.3:test 

+0

오류에 명시된 바와 같이, 종속 POM 파일이 GAVC에 배포되고는 좌표하지만, POM의 내용이 실제의 좌표를 선언 'org.apache.ws.commons : XmlSchema : SNAPSHOT'. 'mvn dependency : tree'를 실행 해 어디에서 왔는지 찾으려고 했습니까? – noamt

+0

예,하지만 놓쳤습니다. 작업을 재실행하고 실제로 찾았습니다. org.codehaus.xfire : xfire-java5 : jar : 1.2.6 : 컴파일 -> org.codehaus.xfire : xfire-core : jar : 1.2.6 : 컴파일 -> org.codehaus.xfire : xfire-all : jar : 1.2.6 : 컴파일 -> org.appfuse : appfuse-service : jar : 2.0-m5 : 컴파일 –

답변

4

종속성. 당신이 할 수있는

가장 좋은 것은 '에 XmlSchema'의 원래 POM이 버전 '스냅' 여부에 게시되었는지 확인합니다. 그렇다면 프로젝트 유지 관리자에게 에게이 실수를 수정하고 POM을 다시 게시하도록 요청하십시오. 그것이 이런 식으로 출판되지 않은 경우, 잘못된 POM 파일을 제거하고 있는지 확인 당신 해결이 다시 건강한 소스에서.

이 옵션을 모두 적용 할 수없는 경우, 당신은 수정하고 로컬 저장소에 다시 배포하려면 편집을 POM 파일을 다운로드 할 수 있습니다

+0

이것을 시도 할 것입니다. 도움 주셔서 감사합니다 –

+0

더 이상 테스트 할 수 없게되면이 대답을 수락합니다. 그것은 출판 문제라고 생각하는 것이 옳은 것처럼 보입니다. –

0

저도 같은 오류가 있습니다에 XmlSchema 1.1의 공식 치어가를

  1. artifactory에 손으로 그것을 수정,
  2. 가 (변경 필요 없음) 로컬 저장소에 수동으로 복사, : 잘못, 당신은 그래서 당신은 다음과 같은 옵션이 있습니다에서 그것을 얻을 수있는 홍삼 소스가 없습니다
  3. 최근 버전으로 업그레이드 on (xfire 1.2.6의 전이 의존성이기 때문에 가능하지 않지만 시도 할 수는 있습니다).

은 더 많은 정보 this post에 대한 답변을 참조하십시오 메이븐 중앙 저장소 관리자는 치어가 잘못된 것을 알고 있지만 그것을 해결할 수없는 아파치는 더 이상에 XmlSchema 1.1을 지원하지 않습니다.

또한 문제가있는 것은 아닙니다. 아파치 commons-logging v1.1은 잘못되었습니다 (잘못된 의존성을 나열합니다). 그래서 항상 v1.1.1 이상을 사용합니다.

2

나는이 같은 문제가 있었고 Artifactory 원격 저장소 설정에서 "Supress POM Consistency Checks"확인란을 선택하여 해결할 수있었습니다. '에 XmlSchema : org.apache.ws.commons 1.1'

maven repo settings

관련 문제