好的,所以我正在使用maven尝试将pom文件添加到svn存储库中:
<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>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>my-app</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>1.5</version>
<configuration>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>scm:svn:URL</connection>
</scm>
<distributionManagement>
<repository>
<id>test</id>
<name>new-test</name>
<url>URL</url>
<uniqueVersion>false</uniqueVersion>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
这就是我的pom.xml文件当前的样子;当然,URL是我的网址,用户名和密码是我的实际用户名和密码
我对用于上传此命令的命令感到非常困惑。如果有人能提供帮助,我将非常感激。另外,我不确定我的pom.xml文件是否配置正确。
答案 0 :(得分:1)