Maven: Unterschied zwischen den Versionen
		
		
		
		
		
		Zur Navigation springen
		Zur Suche springen
		
				
		
		
	
| Zeile 46: | Zeile 46: | ||
|        </plugin> |        </plugin> | ||
|      </plugins> |      </plugins> | ||
|     ... | |||
|   </build> | |||
|   ... | |||
| </project> | |||
| </pre> | |||
| === Failed to deploy artifacts/metadata: No connector available to access repository === | |||
| Mit Maven 3 werden standardmäßig nur ''ftp'', ''http'' und ''https'' als Protokoll unterstützt.  | |||
| Andere Protokolle, wie z.B. ''dav'' benötigen eine Erweiterung für das jeweilige Protokoll: | |||
| <pre> | |||
| <project> | |||
|   ... | |||
|   <build> | |||
|     ... | |||
|     <extensions> | |||
|       <!-- Enabling the use of WebDAV --> | |||
|         <extension> | |||
|           <groupId>org.apache.maven.wagon</groupId> | |||
|           <artifactId>wagon-webdav-jackrabbit</artifactId> | |||
|           <version>2.10</version> | |||
|         </extension> | |||
|       </extensions> | |||
|      ... |      ... | ||
|    </build> |    </build> | ||
Version vom 20. Mai 2016, 15:38 Uhr
Pfade
Windows
JAVA_HOME = <path to jdk> M2_HOME = <path to maven>
Profile
mvn install -P <profil1>[,<profile2>]
Debugging
mvn install -X
Abhängigkeiten anzeigen
mvn dependency:tree
Warnungen
[WARNING] Using platform encoding (windows-1252 actually) to copy filtered resources, i.e. build is platform dependent!
<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          ...
          <encoding>UTF-8</encoding>
          ...
        </configuration>
      </plugin>
    </plugins>
    ...
  </build>
  ...
</project>
Failed to deploy artifacts/metadata: No connector available to access repository
Mit Maven 3 werden standardmäßig nur ftp, http und https als Protokoll unterstützt. Andere Protokolle, wie z.B. dav benötigen eine Erweiterung für das jeweilige Protokoll:
<project>
  ...
  <build>
    ...
    <extensions>
      <!-- Enabling the use of WebDAV -->
        <extension>
          <groupId>org.apache.maven.wagon</groupId>
          <artifactId>wagon-webdav-jackrabbit</artifactId>
          <version>2.10</version>
        </extension>
      </extensions>
    ...
  </build>
  ...
</project>
Zurück zu Java