Maven deploy
phương tiện triển khai vật để một Maven Repository, không phải là một máy chủ ứng dụng.
Configure thêm vật JAR như thế này:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>make-a-jar</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
Đính kèm vật mới này để dự án của bạn:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>some file</file>
<type>jar</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
"con đường riêng" mà bạn đang xây dựng và triển khai là gì? "Trong quá trình triển khai" có nghĩa là gì? Một mẫu của pom hiện tại của bạn có thể giúp làm cho câu hỏi này rõ ràng hơn. –