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

The Maven Assembly plugin should handle aop.xml in a better way #10717

Closed
Gilead opened this issue Oct 20, 2017 · 4 comments
Closed

The Maven Assembly plugin should handle aop.xml in a better way #10717

Gilead opened this issue Oct 20, 2017 · 4 comments

Comments

@Gilead
Copy link

Gilead commented Oct 20, 2017

It seems that as a result of #7587 aop.xml is being moved out of the META-INF package by the Spring Boot Maven Assembly plugin. I'm sure it was causing issues but the result is that, from what I see, AspectJ doesn't recognise it under the BOOT-INF/... at all.

I just spent an entire day fighting with the plugin to put it in a place visible to AspectJ. I finally found out that using Maven resource plugin to manually copy aop.xml to org.aspectj package works and the file is finally seen by AspectJ.

If leaving aop.xml in META-INF is not viable for some reason then perhaps the assembly plugin should move META-INF/aop.xml to BOOT-INF/classes/org/aspectj/aop.xml where it is actually seen by AspectJ.

As a test case please consider this simple configuration file:
<aspectj> <weaver options="-verbose"> <dump within="com.example..*" /> </weaver> </aspectj>

If you put that file into META-INF it'll be moved to BOOT-INF where it does nothing. If you include it manually in the org.aspectj package then AspectJ does see the file and acts accordingly.

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

Unfortunately a single line of XML isn’t enough for us to diagnose the problem. If you would like us to spend some time investigating, please spend the time to produce a complete sample that reproduces the behaviour you have described.

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Oct 20, 2017
@Gilead
Copy link
Author

Gilead commented Oct 20, 2017 via email

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Oct 20, 2017
@snicoll snicoll added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Oct 21, 2017
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Oct 28, 2017
@spring-projects-issues
Copy link
Collaborator

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Nov 4, 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

No branches or pull requests

4 participants