Re: Maven plugin in ant/beanshell
Hello Olivier, where I work we have two plugins written in Ant. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On May 12, 2012 11:36 PM, Olivier Lamy ol...@apache.org wrote: Hi, Do we still maintain those extractor ? Do you think users write maven plugin in ant/beanshell ? Thanks, -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
Re: svn commit: r1337586 - in /maven/plugin-tools/trunk: maven-plugin-annotations/ maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/ maven-plugin-tools-annotations/src/main/
2012/5/12 hbout...@apache.org: Author: hboutemy Date: Sat May 12 16:14:40 2012 New Revision: 1337586 URL: http://svn.apache.org/viewvc?rev=1337586view=rev Log: added DependencyScope enumeration Added: maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java (with props) Modified: maven/plugin-tools/trunk/maven-plugin-annotations/pom.xml maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Mojo.java maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/datamodel/MojoAnnotationContent.java maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/site/apt/index.apt Modified: maven/plugin-tools/trunk/maven-plugin-annotations/pom.xml URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-annotations/pom.xml?rev=1337586r1=1337585r2=1337586view=diff == --- maven/plugin-tools/trunk/maven-plugin-annotations/pom.xml (original) +++ maven/plugin-tools/trunk/maven-plugin-annotations/pom.xml Sat May 12 16:14:40 2012 @@ -31,4 +31,11 @@ nameMaven Plugin Java 5 Annotations/name descriptionJava 5 annotations to use in Mojos./description + dependencies + dependency + groupIdorg.apache.maven/groupId + artifactIdmaven-artifact/artifactId + version3.0/version + /dependency + /dependencies /project Added: maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java?rev=1337586view=auto == --- maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java (added) +++ maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java Sat May 12 16:14:40 2012 @@ -0,0 +1,46 @@ +package org.apache.maven.plugins.annotations; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * License); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.apache.maven.artifact.Artifact; + +/** + * @author Hervé Boutemy + * @since 3.0 + */ +public enum DependencyScope +{ + COMPILE( Artifact.SCOPE_COMPILE ), + COMPILE_PLUS_RUNTIME( Artifact.SCOPE_COMPILE_PLUS_RUNTIME ), with maven 2 ? + RUNTIME( Artifact.SCOPE_RUNTIME ), + TEST( Artifact.SCOPE_TEST ); + + private final String id; + + DependencyScope( String id ) + { + this.id = id; + } + + public String id() + { + return this.id; + } +} Propchange: maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java -- svn:eol-style = native Propchange: maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java -- svn:keywords = Author Date Id Revision Propchange: maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/DependencyScope.java -- svn:mime-type = text/plain Modified: maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Mojo.java URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Mojo.java?rev=1337586r1=1337585r2=1337586view=diff == ---
Re: svn commit: r1337586 - in /maven/plugin-tools/trunk: maven-plugin-annotations/ maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/ maven-plugin-tools-annotations/src/main/
Le dimanche 13 mai 2012 14:39:29 Olivier Lamy a écrit : 2012/5/12 hbout...@apache.org: Author: hboutemy Date: Sat May 12 16:14:40 2012 New Revision: 1337586 URL: http://svn.apache.org/viewvc?rev=1337586view=rev Log: added DependencyScope enumeration +public enum DependencyScope +{ +COMPILE( Artifact.SCOPE_COMPILE ), +COMPILE_PLUS_RUNTIME( Artifact.SCOPE_COMPILE_PLUS_RUNTIME ), with maven 2 ? yes, no problem notice I ha to override dependency to maven-artifact 3.0 to make the code compile then it works a like a charm at runtime too, since constants are inlined in the class, so the compile-time dependency isn't visible Regards, Hervé - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
Re: Maven plugin in ant/beanshell
ok, the feature works and is used: we'll continue supporting it thank you for your reply Hervé Le dimanche 13 mai 2012 08:37:08 Mirko Friedenhagen a écrit : Hello Olivier, where I work we have two plugins written in Ant. Regards Mirko Hi, Do we still maintain those extractor ? Do you think users write maven plugin in ant/beanshell ? Thanks, -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
Maven Plugin Tools - renaming expression
As discussed previously, there was some interest in changing supported tags. Now that Java 5 annotations support is ok, I already added some change in MPLUGIN-194 [1]: you can remove ${ } when defining parameter expression I just created MPLUGIN-196 issue [2] to rename expression to property, where ${ } would even not be supported Please comment: any objection? any better idea? Regards, Hervé [1] https://jira.codehaus.org/browse/MPLUGIN-194 [2] https://jira.codehaus.org/browse/MPLUGIN-196 - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
Re: [maven-assembly-plugin] bug in documentation and possible misbehavior
yes, please file a Jira issue http://jira.codehaus.org/browse/MASSEMBLY and if you can attach a patch, don't hesitate :) source repository location is documented in corresponding report Regards, Hervé Le lundi 14 mai 2012 00:02:00 Alexander Tumin a écrit : Hello, I've found a bug on the page http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/m odule-binary-inclusion-simple.html ; at third code snippet (one that goes to pom.xml if distribution module) there is missing plugins tag between build and plugin tags, which leads to xml validation error. Also, whole multimodule section of examples might be wrong, because it says: This example demonstrates how to include the artifact and dependencies of a module, under the directory modules/module-name. and Furthermore, it states that we wish to include the artifact files for the module with a groupId of org.test and an artifactId of child1, along with its dependency artifacts. These artifacts should be contained within the directory structure modules/child1 for this module, since the outputDirectory expression will be interpolated on a module-by-module basis. Which is not happening in real life. Instead of modules/child1 directory, the modules/distribution directory is being created and this distribution directory is used for _all_ modules in project instead of creating directories with names of corresponding with ${artifactId} of each module, so resulting content of target/distribution/distribution-1.0-bin/modules directory with all child modules included in descriptor would not be child1/child1-1.0.jar child2/child2-1.0.jar child3/child3-1.0.jar as expected, but instead would be flattened to distribution/child1-1.0.jar distribution/child2-1.0.jar distribution/child3-1.0.jar . This applies to version 2.3 of both maven-assembly-plugin and documentation page. Should i file this report to some ticket management/bug tracker system here? Related StackOverflow question: http://stackoverflow.com/questions/10571575/maven-assembly-plugin-how-to-ena ble-module-by-module-basis-of-processing-proje - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
Re: svn commit: r1337586 - in /maven/plugin-tools/trunk: maven-plugin-annotations/ maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/ maven-plugin-tools-annotations/src/main/
2012/5/13 Hervé BOUTEMY herve.bout...@free.fr: Le dimanche 13 mai 2012 14:39:29 Olivier Lamy a écrit : 2012/5/12 hbout...@apache.org: Author: hboutemy Date: Sat May 12 16:14:40 2012 New Revision: 1337586 URL: http://svn.apache.org/viewvc?rev=1337586view=rev Log: added DependencyScope enumeration +public enum DependencyScope +{ + COMPILE( Artifact.SCOPE_COMPILE ), + COMPILE_PLUS_RUNTIME( Artifact.SCOPE_COMPILE_PLUS_RUNTIME ), with maven 2 ? yes, no problem notice I ha to override dependency to maven-artifact 3.0 to make the code compile then it works a like a charm at runtime too, since constants are inlined in the class, so the compile-time dependency isn't visible No it's the problem :-) I mean someone use @Mojo( .. requiresDependencyResolution = DependencyScope.COMPILE_PLUS_RUNTIME ... ) and a field @Parameter( defaultValue = ${project.artifacts}, required = true, readonly = true ) private SetArtifact dependencies; dependencies will be null when running this mojo with m2 whereas not with m3. Regards, Hervé - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
[RESULT] [VOTE] Release maven-changes-plugin 2.7.1
The vote passed. binding +1: bimargulies, hboutemy, olamy, Mark Struberg nonbinding +1: ltheussl - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
Am I a dev or am't I?
Has the POM with me in it not trickled down yet? [ERROR] Failed to execute goal org.apache.maven.plugins:maven-changes-plugin:2.6:announcement-mail (default-cli) on project maven-changes-plugin: Missing developer with id 'bimargulies' in the developers section in your pom. - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
[ANN] maven-changes-plugin 2.7.1 released
The Maven team is pleased to announce the release of the Maven Changes Report Plugin, version 2.7.1 Creates a release history for inclusion into the site and assists in generating an announcement mail. http://maven.apache.org/plugins/maven-changes-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.7.1/version /plugin Release Notes - Maven Changes Report Plugin - Version 2.7.1 Bug * [MCHANGES-281] jira report fails with Jira 5.0.3 (NPE) Enjoy, -The Maven team - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
Re: Am I a dev or am't I?
mvn help:effective-pom shows just 3. It looks like it's picking up only the developers in the POM, not the ones inherited. I've fixed it on trunk. - Brett On 14/05/2012, at 9:20 AM, Benson Margulies wrote: Has the POM with me in it not trickled down yet? [ERROR] Failed to execute goal org.apache.maven.plugins:maven-changes-plugin:2.6:announcement-mail (default-cli) on project maven-changes-plugin: Missing developer with id 'bimargulies' in the developers section in your pom. - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter http://twitter.com/brettporter - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org