Skip to content

Change the maven plugin to allow use a source with classifier. #9987

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

Closed

Conversation

bjornlindstrom
Copy link
Contributor

Changed the maven plugin so if a classifier is specified it will look for a source with that classifier and use it if it exists. If not found it will use the main artifact as before. #7659

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 10, 2017
@snicoll
Copy link
Member

snicoll commented Aug 11, 2017

@bjornlindstrom can you please expand a bit the use case behind that change? Why are you trying to repackage a different artifact than the the one produced by the regular lifecycle?

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Aug 11, 2017
@bjornlindstrom
Copy link
Contributor Author

@snicoll Maybe I misunderstood #7659 but I thought the solution was to repackage the classifier jar produced by the maven-jar plugin.

@snicoll
Copy link
Member

snicoll commented Aug 11, 2017

Oh my, sorry! I missed the reference to the existing issue.

@ggsenger
Copy link

@snicoll is there any further feedback you need? (the waiting-for-feedback label is still present)

we would love to see this pull request merged as we have a similar issue as described in #7659

@snicoll
Copy link
Member

snicoll commented Sep 20, 2017

Sorry that felt through the crack, thanks for reminding me

@snicoll snicoll self-requested a review September 20, 2017 08:40
Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've done a smoke test with the state of this branch and it didn't work.

I used the following config from a project generated from start.spring.io

<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<configuration>
				<classifier>foo</classifier>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
			<configuration>
				<classifier>foo</classifier>
			</configuration>
		</plugin>
	</plugins>
</build>

Also, I don't think the semantic of the classifier in this issue is clear. I think the idea I had in mind was to use the main jar but if it did not exist fallback to the classified artifact, if any.

I am not sure it actually addresses the original request so perhaps this solution is a dead-end.

@bjornlindstrom
Copy link
Contributor Author

Closing it since it seems to be wrong and I don't have the time to sort it out.

@snicoll snicoll removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Sep 20, 2017
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

Successfully merging this pull request may close these issues.

4 participants