【发布时间】:2016-02-28 19:32:16
【问题描述】:
我正在尝试将 maven 项目部署到远程存储库。
mvn install 适用于本地存储库。
我正在使用 Groovy 和 Groovy-Eclipse 编译器插件。 我尝试运行 mvn deploy 来部署到远程存储库,但出现以下错误:
The packaging for this project did not assign a file to the build artifact -> [Help 1]
这是我的 pom.xml:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.notacariocafacil</groupId>
<artifactId>notacariocafacil</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>1.8.6</version>
</dependency>
</dependencies>
<build>
<extensions>
<extension>
<groupId>org.kuali.maven.wagons</groupId>
<artifactId>maven-s3-wagon</artifactId>
<version>1.2.1</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
<source>1.6</source>
<target>1.6</target>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>1.8.6-01</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.7.0-01</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.7.0-01</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
我需要在构建步骤中添加一些东西吗?
【问题讨论】:
-
你是运行
mvn deploy还是mvndeploy:deploy?
标签: maven