2013-08-15 3 views
10

나는 Vaadin/Hibernate/Spring 프로젝트에 대한 작업 maven archetype을 만들었습니다. 이 아키 타입을 로컬 저장소에 설치하고 새로운 maven 프로젝트를 생성하는 데 사용할 수 있습니다.Maven 배포 용 커넥터가 필요합니까?

이제 내 회사 저장소에 아키타 입을 배포하여 다른 개발자가 사용할 수도 있습니다.

[ERROR] Failed to execute goal org.apache.maven.plugins: 
maven-deploy-plugin:2.7:deploy (default-deploy) on project 
vaadin-hibernate-archetype: Failed to deploy artifacts/metadata: 
No connector available to access repository maven.planet-ic.de 
(maven.planet-ic.de/planet-ic-releases) of type default using the 
available factories WagonRepositoryConnectorFactory -> [Help 1] 

내가 실종 오전 connector 무엇입니까 : 나는 mvn deploy을 실행할 때, 나는 다음과 같은 오류 메시지를받을?

편집 : 내 문제를 해결하기 위해 누군가를 요구하지 않고 'connector'에 대한 약간의 통찰력을 요구합니다.

<?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> 
    <properties> 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    </properties> 
    <groupId>de.planetic.maven.archetype.vaadin</groupId> 
    <artifactId>vaadin-hibernate-archetype</artifactId> 
    <version>1.1.0</version> 
    <packaging>jar</packaging> 
    <inceptionYear>2013</inceptionYear> 
    <description> 
     This archetype generates a Vaadin application for use with Hibernate, and to be deployed to a Tomcat 7 server. It may also work with other Tomcat versions and other servers. 
    </description> 
    <developers> 
     <developer> 
      <name>Maximilian Friedersdorff</name> 
      <email>[email protected]</email> 
     </developer> 
    </developers> 
    <scm> 
     <connection>scm:svn:http://subversion.planet-ic.de/internal/maven/archetype/pinnwand-webapp/tags/pinnwand-webapp-archetype-1.1.0</connection> 
     <developerConnection>scm:svn:http://subversion.planet-ic.de/internal/maven/archetype/pinnwand-webapp/tags/pinnwand-webapp-archetype-1.1.0</developerConnection> 
     <url>http://subversion.planet-ic.de/internal/maven/archetype/pinnwand-webapp/tags/pinnwand-webapp-archetype-1.1.0</url> 
    </scm> 
    <distributionManagement> 
     <repository> 
      <id>maven.planet-ic.de</id> 
      <name>planet-ic-releases</name> 
      <url>maven.planet-ic.de/planet-ic-releases</url> 
     </repository> 
     <snapshotRepository> 
      <id>maven.planet-ic.de</id> 
      <name>planet-ic-snapshots</name> 
      <url>http://maven.planet-ic.de/planet-ic-snapshots</url> 
     </snapshotRepository> 
    </distributionManagement> 

    <build> 
     <pluginManagement> 
      <plugins> 
       <plugin> 
        <groupId>org.apache.maven.plugins</groupId> 
        <artifactId>maven-deploy-plugin</artifactId> 
        <version>2.7</version> 
       </plugin> 
      </plugins> 
     </pluginManagement> 

     <extensions> 
      <extension> 
       <groupId>org.apache.maven.wagon</groupId> 
       <artifactId>wagon-ssh</artifactId> 
       <version>2.4</version> 
      </extension> 
     </extensions> 
    </build> 
</project> 
+0

은'pom.xml'에서 전혀 관련 스탠 더 도움 –

+1

@JarrodRoberson을 의미 '입니다. – maxf130

+0

@ DB5 와우! 좋은 편집. 당신은 그렇게 않았다 방법? – maxf130

답변

11

당신이 당신의 유물을 업로드 사용할 수있는 다양한 방법이 있습니다에 배포하려고하는 받는다는 저장소에 따라 다음이 관심을하는 경우는

여기 내 pom.xml 파일입니다.

이러한 메서드는 다양한 전송 프로토콜 (예 : ssh, dav 등)에 대해 Maven Wagon 커넥터를 사용하여 구현됩니다.이 용어는 사용자가 찾고있는 용어입니다.

Apache Maven Guide to using Extensions에는 설정에 커넥터를 추가하는 방법에 대한 소개가 나와 있습니다.

+1

@Torten 고마워요, 이것이 제가 찾고 있었던 것입니다. 나를 올바른 방향으로 가리켜 주셔서 감사합니다. – maxf130

0
<build> 
<extensions> 
    <extension> 
     <groupId>org.apache.maven.wagon</groupId> 
     <artifactId>wagon-ssh</artifactId> 
     <version>2.4</version> 
    </extension> 
</extensions> 
</build> 

<distributionManagement> 
<repository> 
    <id>remoteserver</id> 
    <name>MyCompany Repository</name> 
    <url>scp://server/path/repo</url> 
</repository> 

다음 줄에

+0

SFTP가 아닌 SCP입니다. – mirabilos

1

: 당신은 "파일 : // '의 접두사를 추가 할 필요가

<url>maven.planet-ic.de/planet-ic-releases</url> 

당신이하지 FTP 파일 커넥터를 사용하는 받는다는 얘기해야하기 때문에, http 또는 다른 것. 그리고 상대 경로를 사용하는 것이 좋습니다. 내 특정 문제에 대한 도움을 찾고 있지만 무엇 '커넥터로 설명하고 있지 않다 : 예를 들면 : 내가 말했듯이

<url>file://${project.basedir}/maven.planet-ic.de/planet-ic-releases/</url> 
+0

이것은 파일 저장소가 아닙니다. – maxf130

+0

올바른 URL이어야합니다. 나에게 유용한 말 이었어. – user1767316