KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a Maven project with multiple overlapping profiles. I want to display the active profiles at the beginning of every build. So I put the following into the pom.xml <build> section: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-help-plugin</artifactId> <version>2.1.1</version> <executions> <execution> <id>display-active-profiles-at-start-of-build</id> <phase>validate</phase> <goals> <goal>active-profiles</goal> </goals> </execution> </executions> </plugin> The problem is that the plugin executes multiple times during the build: At the beginning of the build (during the validate phase). When jar:jar executes. After source:jar / during pre-integration-test (?), when Jetty is being started. Similar results when specifying <phase>initialize</phase> . Is there a way to get this to only run at the beginning of the build?
Tags (comma-separated)
Save Edits
Cancel