Re: change the location of pom File within maven extension

2021-06-30 Thread Torsten Liermann
Right, Falk. But unfortunately I'm just creating the model (ModelProcessor). Therefore the attempt to set the correct POM file via model.setPomFile (), but unfortunately it does not work. There are certainly extension points that maven calls at a later point in time, but unfortunately I am not f

Re: change the location of pom File within maven extension

2021-06-28 Thread Falko Modler
Sorry, I totally missed that flatten bit in your message. You can access all projects via the MavenSession that get's passed in to your extension. See getProjects(). Cheers, Falko - To unsubscribe, e-mail: users-unsubscr...@mav

Re: change the location of pom File within maven extension

2021-06-28 Thread torsten . liermann
Thanks, Falko. In my question I mentioned the flatten plugin with snippets of code. Can I access MavenProject in a Maven Extension? The flatten plugin uses this Injection @Parameter (defaultValue = "$ {project}", readonly = true, required = true) MavenProject project; What would the equiva

Re: change the location of pom File within maven extension

2021-06-28 Thread Torsten Liermann
Thanks, Falko. In my question I mentioned the flatten plugin with snippets of code. Can I access MavenProject in a Maven Extension? The flatten plugin uses this Injection @Parameter (defaultValue = "$ {project}", readonly = true, required = true) MavenProject project; What would the equiva

change the location of pom File within maven extension

2021-06-28 Thread Falko Modler
Hi, I think flatten-maven-plugin is doing something like that, see: https://github.com/mojohaus/flatten-maven-plugin/blob/4efae7e8d180e838ff25a1daffab712166911328/src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java#L224 Cheers, Falko

change the location of pom File within maven extension

2021-06-28 Thread Torsten Liermann
Hi, My English is poor, but I hope for help in this place. I am trying to manipulate an org.apache.maven.model.Model via a maven extension and at the same time create a new POM file. But unfortunately the new location of the POM file does not apply. The plugins (e.g. maven-deploy-plugin) still