0
내 Maven 프로파일의 자동 활성화에 문제가 있습니다. 변수를 사용할 때 (예 : $ {project.basedir}) 작동하지 않습니다. 내가 변수없이 경로를 쓸 때Maven - 변수를 사용한 프로파일 활성화
<profiles>
<profile>
<id>prof1</id>
<activation>
<file>
<exists>${project.basedir}\mark.txt</exists>
</file>
</activation>
<build>
<plugins>
<plugin>...
, 그것은 완벽하게 작동합니다
<profiles>
<profile>
<id>prof1</id>
<activation>
<file>
<exists>C:\projects\trainings\own\MavenPrj\mark.txt</exists>
</file>
</activation>
<build>
<plugins>...
파일 C : 물론 \ 프로젝트 \ 교육 자신의 \ \ MavenPrj \의 mark.txt이 존재합니다.
My Maven 버전은 3.0.4입니다.
감사 Piotrek Maven의 Introduction to Build Profiles에서
대신'$ {basedir}'를 사용하면 효과가 있습니다. – Tunaki