Maven plugin development - parameters - good practices

2022-04-30 Thread Slawomir Jaranowski
Hi, I'm working on validation for plugin configuration in Maven ... I've found some interesting cases about declaration of maven plugin parameters. We should add validation in Maven plugins tools ## read-only - possible declaration @Parameter( readonly = true ) - without default value .. so wh

Re: Maven Plugin Development and the @Produces

2018-07-17 Thread Romain Manni-Bucau
Inject a component, set the current mojo and just "get" it when you need from the component you can inject? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github

Re: Maven Plugin Development and the @Produces

2018-07-17 Thread exabrial
Unfortunately, my module is not being called, so I don't think it's supported. Is there *ANY* way to inject Configuration parameters into sub-modules? ANY possible way? On 2018/07/16 19:53:33, Romain Manni-Bucau wrote: > Maven tries to limit that to jsr330 usage hoping it stays portable ( > h

Re: Maven plugin development: Getting a Set<Artifact> of an declared and transitive dependencies

2018-07-16 Thread exabrial
Thank you Robert! That fixed the issue with getArticats(). I didn't see that option beforehand. On 2018/07/16 19:44:36, "Robert Scholte" wrote: > See > https://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html > > if you want the jars, set requiresDependencyResolution

Re: Maven Plugin Development and the @Produces

2018-07-16 Thread Romain Manni-Bucau
Maven tries to limit that to jsr330 usage hoping it stays portable ( https://maven.apache.org/maven-jsr330.html). Probably just implement the api and register the class in guice/sisu or plexus (old way). Will avoid some headaches. Sisu-guice (the guice impl of maven) should support defining a name

Re: Maven plugin development: Getting a Set of an declared and transitive dependencies

2018-07-16 Thread Robert Scholte
See https://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html if you want the jars, set requiresDependencyResolution thanks, Robert On Mon, 16 Jul 2018 21:40:18 +0200, Romain Manni-Bucau wrote: Hi, GetArtifacts should work if you run it in the right phase. Le lun

Re: Maven plugin development: Getting a Set of an declared and transitive dependencies

2018-07-16 Thread Romain Manni-Bucau
Hi, GetArtifacts should work if you run it in the right phase. Le lun. 16 juil. 2018 21:19, exabr...@gmail.com a écrit : > Hey guys, > > Right now, I'm doing the following: > > ``` > ... > @Inject > private ProjectDependenciesResolver projectDependenciesResolver; > ... > final List scopes

Re: Maven Plugin Development and the @Produces

2018-07-16 Thread exabrial
I tried the @Provides annotation but it could not get it to supply a value. Do you have an example? On 2018/07/12 06:33:19, Romain Manni-Bucau wrote: > Hi Jonathan, > > you can use Guice in plexus components but not CDI. the cdi-api.jar is a > transitive leaked dependency and almost nothing is

Maven plugin development: Getting a Set of an declared and transitive dependencies

2018-07-16 Thread exabrial
Hey guys, Right now, I'm doing the following: ``` ... @Inject private ProjectDependenciesResolver projectDependenciesResolver; ... final List scopes = Arrays.asList(new String[] { "compile", "runtime", "test" }); final Set artifacts = projectDependenciesResolver.resolve(mavenProject, sc

Re: Maven Plugin Development and the @Produces

2018-07-11 Thread Romain Manni-Bucau
Hi Jonathan, you can use Guice in plexus components but not CDI. the cdi-api.jar is a transitive leaked dependency and almost nothing is supported in current maven (there are several threads to drop it). To be concrete, only @Typed is used. Romain Manni-Bucau @rmannibucau

Maven Plugin Development and the @Produces

2018-07-11 Thread exabrial
Hey Guys, I'm developing my first maven plugin. I was curious, is there any way to use the @javax.enterprise.inject.Produces annotation? Here's why I ask. I have my main mojo, but it is composed of several dependencies that are @Inject'd into the mojo. These submodules ('components') may have

Re: Maven plugin development - reading and writing in the project POM file

2011-09-28 Thread Hervé BOUTEMY
ok, then you'll have to duplicate the code: it's not really big nor complex regards, Hervé Le mercredi 28 septembre 2011, Samuel Robert a écrit : > Thanks. > However it seems to work only with a Maven 3 environment. I am still using > Maven 2. > > Samuel > > On 28 September 2011 15:28, Hervé B

Re: Maven plugin development - reading and writing in the project POM file

2011-09-28 Thread Samuel Robert
Thanks. However it seems to work only with a Maven 3 environment. I am still using Maven 2. Samuel On 28 September 2011 15:28, Hervé BOUTEMY wrote: > Hi, > > have a look at [1] > > Regards, > > Hervé > > [1] http://maven.apache.org/ref/3.0.3/maven-model- > builder/apidocs/org/apache/maven/model

Re: Maven plugin development - reading and writing in the project POM file

2011-09-28 Thread Hervé BOUTEMY
Hi, have a look at [1] Regards, Hervé [1] http://maven.apache.org/ref/3.0.3/maven-model- builder/apidocs/org/apache/maven/model/io/package-frame.html Le mercredi 28 septembre 2011, Samuel Robert a écrit : > Hi, > > I am starting with writing a custom Maven plugin for my projects (Maven > 2).

Maven plugin development - reading and writing in the project POM file

2011-09-28 Thread Samuel Robert
Hi, I am starting with writing a custom Maven plugin for my projects (Maven 2). I would like to read and write in the POM file of the project. Is the use of org.codehaus.plexus.util.xml classes the standard way to do that ? Or are there some other helper classes? thanks, Samuel

Maven Plugin Development - mvn release:prepare

2010-12-13 Thread Karl Heinz Marbaise
Hi to all, currently i'm working on a plugin which will check the entries in the POM to be sure some of them have more or less good values...(cause we have faced ofter problems with that). In particular scm (developerConnection and connection)...I currently simply check against svn info outp

Re: Maven Plugin Development

2010-12-03 Thread Karl Heinz Marbaise
Hi Stehpen, have a look at the integration tests for maven-release-plugin Many thanks for your hint... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177

Re: Maven Plugin Development

2010-12-03 Thread Stephen Connolly
> other integration-test tools for Maven plugin development ? > > Many thanks in advance > Kind regards > Karl Heinz Marbaise > -- > SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 > Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 > Hauptstrass

Maven Plugin Development

2010-12-03 Thread Karl Heinz Marbaise
fully made an integration test for one or both of the above phases via maven-invoker plugin as an integration test or with any other integration-test tools for Maven plugin development ? Many thanks in advance Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +

Re: Maven Plugin Development - IT with Maven Invoker

2010-01-05 Thread Karl Heinz Marbaise
Hi Benjamin, > > Does exist a way to suppress the update check > > Sure, specify the version of the skin in the site descriptor as > illustrated in [0]. Sometimes it's very simple...thanks... But...there is coming up a question about this...doesn't that mean that the dependency has mentioned s

Re: Maven Plugin Development - IT with Maven Invoker

2010-01-05 Thread Benjamin Bentmann
Karl Heinz Marbaise wrote: Does exist a way to suppress the update check Sure, specify the version of the skin in the site descriptor as illustrated in [0]. Benjamin [0] http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html

Maven Plugin Development - IT with Maven Invoker

2010-01-05 Thread Karl Heinz Marbaise
is doesn't change anything... Does some has a suggestion or a hint to solve this problem? May be i oversight something or misunderstand a things... Many thanks in advance. Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Maven-Plugin-Development---IT-wit

Re: maven plugin development in IntelliJ Idea

2006-05-19 Thread Trygve Laugstøl
Roald Bankras wrote: So for now, all I need to do is attach the diff file to the jira issue. Right? Yep, and in time (hopefully short time) someone will take a look at it and if it's good enough commit it. -- Trygve - To un

RE: maven plugin development in IntelliJ Idea

2006-05-19 Thread Roald Bankras
ay 19, 2006 1:33 PM To: Maven Developers List Subject: Re: maven plugin development in IntelliJ Idea Roald Bankras wrote: > I'm not allowed to resolve the task in jira. Can you do it for me? > It's MNG-2306. You should be able to resolve it as the submitter, but it should not

RE: maven plugin development in IntelliJ Idea

2006-05-19 Thread Roald Bankras
So for now, all I need to do is attach the diff file to the jira issue. Right? Roald Bankras Software Engineer JTeam b.v. -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 1:33 PM To: Maven Developers List Subject: Re: maven plugin development

Re: maven plugin development in IntelliJ Idea

2006-05-19 Thread Trygve Laugstøl
Roald Bankras wrote: I'm not allowed to resolve the task in jira. Can you do it for me? It's MNG-2306. You should be able to resolve it as the submitter, but it should not be closed until it's commited in subversion and verified. Furthermore, I'm not allowed to commit to subversion. That'

RE: maven plugin development in IntelliJ Idea

2006-05-19 Thread Roald Bankras
006 12:46 PM To: Maven Developers List Subject: Re: maven plugin development in IntelliJ Idea Roald Bankras wrote: > Where is the maven site jira project? Or is there some otherway to comment > the commit? The site uses the main JIRA project [1] and it has a set of 'components' in

Re: maven plugin development in IntelliJ Idea

2006-05-19 Thread Trygve Laugstøl
Roald Bankras wrote: Where is the maven site jira project? Or is there some otherway to comment the commit? The site uses the main JIRA project [1] and it has a set of 'components' in that project. Thanks for your work! :) -- Trygve

RE: maven plugin development in IntelliJ Idea

2006-05-19 Thread Roald Bankras
Where is the maven site jira project? Or is there some otherway to comment the commit? Roald Bankras Software Engineer JTeam b.v. -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 8:56 AM To: Maven Developers List Subject: Re: maven plugin

Re: maven plugin development in IntelliJ Idea

2006-05-18 Thread Trygve Laugstøl
Roald Bankras wrote: Ok. How do I do that? This is the short answer: Please read [1]. You can find the site module in subversion at [2]. To generate the site a "mvn site" should be sufficient. [1]: http://maven.apache.org/guides/development/guide-m2-development.html [2]: http://svn.apache.or

RE: maven plugin development in IntelliJ Idea

2006-05-18 Thread Roald Bankras
Ok. How do I do that? Roald Bankras Software Engineer JTeam b.v. -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 3:51 PM To: Maven Developers List Subject: Re: maven plugin development in IntelliJ Idea Roald Bankras wrote: > I've

Re: maven plugin development in IntelliJ Idea

2006-05-18 Thread Trygve Laugstøl
Roald Bankras wrote: I've created some live templates for the maven javadoc annotations. You can find more info on my blog: http://roald.bankras.net/blog/?p=10 It would be great if you could submit a patch to the documentation too to make it a bit easier to find. -- Trygve

maven plugin development in IntelliJ Idea

2006-05-18 Thread Roald Bankras
I've created some live templates for the maven javadoc annotations. You can find more info on my blog: http://roald.bankras.net/blog/?p=10 Roald Bankras Software Engineer JTeam b.v. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database:

maven plugin development in IntelliJ Idea

2006-05-18 Thread Roald Bankras
http://roald.bankras.net/blog/?p=10 Roald Bankras Software Engineer JTeam b.v. M: +31 6 229 558 92 T: +31 20 48 62 036 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.0/342 - Release Date: 5/17/2006