jira-importer commented on issue #501: URL: https://github.com/apache/maven-deploy-plugin/issues/501#issuecomment-2771546839
**[Benjamin Bentmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bentmann)** commented > I am using project.addAttachedArtifact(artifact); in my mojo to attach the artifact > That's a valuable piece of info. Could you try calling `MavenProjectHelper.attachArtifact()` instead of directly mutating the project? Use something like ```java /** * @component */ private MavenProjectHelper projectHelper; ``` to get the component injected into your mojo. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org