build-info icon indicating copy to clipboard operation
build-info copied to clipboard

Allow multiple executions of the Maven plugin

Open mp911de opened this issue 6 years ago • 2 comments

In my build, I'd like to set up multiple plugin executions:

<plugin>
	<groupId>org.jfrog.buildinfo</groupId>
	<artifactId>artifactory-maven-plugin</artifactId>
	<version>2.6.1</version>
	<executions>
		<execution>
			<id>deploy-docs</id>
			<goals>
				<goal>publish</goal>
			</goals>
			<configuration>
			…
			</configuration>
		</execution>
		<execution>
			<id>deploy-schema</id>
			<goals>
				<goal>publish</goal>
			</goals>
			<configuration>
			…
			</configuration>
		</execution>
	</executions>
</plugin>

I'm using this pattern to run the plugin with different configurations, mostly regarding inclusion/exclusion patterns and applying different deployProperties to the execution.

The plugin checks for multiple executions and runs only once.

mp911de avatar Jul 08 '19 09:07 mp911de

I think the expected syntax should look like this:

<plugin>
	<groupId>org.jfrog.buildinfo</groupId>
	<artifactId>artifactory-maven-plugin</artifactId>
	<version>2.6.1</version>
	<executions>
		<execution>
			<id>deploy-docs</id>
			<goals>
				<goal>publish</goal>
			</goals>
			<configuration>
			…
			</configuration>
		</execution>
		<execution>
			<id>deploy-schema</id>
			<goals>
				<goal>publish</goal>
			</goals>
			<configuration>
			…
			</configuration>
		</execution>
	</executions>
</plugin>

I'm having the same use case, currently you there's no workaround for this.

luiscla27 avatar Mar 06 '20 16:03 luiscla27