maven에서 재사용 가능한 종속성 정의 및 프로필을 만드는 가장 좋은 방법은 무엇입니까?Maven 구성 다시 사용
통합 테스트를위한 종속성과 프로파일을 별도의 pom으로 외부화하고 싶습니다. 하나의 상위 pom을 상속하지 않는 다른 maven 프로젝트에 포함될 수 있습니다. 나중에 콘솔과 Eclipse에서 서로 다른 응용 프로그램 서버에서 통합 테스트를 실행할 때 프로파일을 활성화 할 수 있습니다.
integrations-tests
pom.xml (contains Arquillian dependencies and profiles)
profile:jboss-remote
profile:tomcat-embedded
dependencies:Arquillian,Java EE,MavenShrinkWrap etc.
project1
pom.xml
dependency:integration-tests (or other way to include)
project2
module1
pom.xml
dependency:integration-tests (or other way to include)
mvn test -P jboss-remote (profile from integrations-tests)
mvn test -P tomcat-embedded (profile from integrations-tests)
많은 개발자와 CI 서버에서 프로파일을 재사용 할 수 있으므로 로컬 settings.xml을 망치고 싶지 않습니다.