Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple executions of the Maven plugin #239

Open
mp911de opened this issue Jul 8, 2019 · 1 comment
Open

Allow multiple executions of the Maven plugin #239

mp911de opened this issue Jul 8, 2019 · 1 comment

Comments

@mp911de
Copy link

mp911de commented Jul 8, 2019

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>
	</executions>
	<executions>
		<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.

@luiscla27
Copy link

luiscla27 commented Mar 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants