다중 모듈 프로젝트의 경우 pom.xml
에 maven2 릴리스 플러그인을 구성했습니다. 프로젝트는 하나의 git repo에 있습니다. Windows에서 릴리스 프로세스가 작동하지 않습니다.Windows에서 자식 모듈을 사용하는 다중 모듈 프로젝트 릴리스
git bash 항상 부모를위한 fatal: 'C:\<PATH>\pom.xml' is outside repository
오류 메시지가 표시됩니다. pom.xml
. pom.xml
이 제자리에 있으며 이전에 repo에 추가되었습니다. 내가 자식 자식 백 슬래시 경로 구분 기호 때문에 그것을 찾을 수 없다고 생각합니다.
또한 릴리스 플러그인을 기본값 cmd에서 사용하려고했습니다. 릴리스 프로세스가 끝나면 git push가 멈춘다. 제 생각에 그것은 ssh 암호입니다. cmdssh 에이전트를 구성 할 수 없으므로 모든 유형의 대화 형 암호를 입력해야합니다. 또한 암호를 명령 줄 매개 변수로 추가하려고 시도했지만 아무 것도 변경되지 않았습니다.
또한 자동 푸시를 막기 위해 pushChanges
옵션을 false
으로 설정하려고 시도했지만 또한 걸려있었습니다. 부모 pom.xml
에서
관련 부분 :
mvn release:prepare -B
Windows에서 자식으로 출시 플러그인을 사용할 수있는 기회가 :
<properties>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp>
</properties>
<scm>
<connection>scm:git:ssh://<host>/<project>.git</connection>
<url><gitweb url></url>
</scm>
<!-- more here -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4</version>
<configuration>
<tagNameFormat>
release-${timestamp}[email protected]{project.version}
</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
<pushChanges>false</pushChanges>
</configuration>
<executions>
<execution>
<id>default</id>
<goals>
<goal>prepare</goal>
</goals>
</execution>
</executions>
</plugin>
내가이 명령을 실행?
으로 시도하십시오. –
아마도 버그가 있습니다. http://jira.codehaus.org/browse/MRELEASE-581 – Hubidubi