Problem configuring plugins
Hi, I am currently working on some Issues in the flexmojos projects build. One is sort of me. I assume there have been some changes in Maven that now prevent the plugin configuration from working the same way it did with earlier maven versions. I have a Plugin flexmojos-maven-plugin and the Mojo implementation has a field: /** * The list of modules to be compiled. * * pre * lt;modulesgt; * lt;modulegt;Module1.mxmllt;/modulegt; * lt;modulegt;Module2.mxmllt;/modulegt; * lt;modulegt; * lt;sourceFilegt;Module3.mxmllt;/sourceFilegt; * lt;optimizegt;falselt;/optimizegt; * lt;finalNamegt;MyModulelt;/finalNamegt; * lt;destinationPathgt;dir1/dir2lt;/destinationPathgt; * lt;/modulegt; * lt;/modulesgt; * /pre * * @parameter */ private Module[] modules; As you can see there were two options to configure these Module Object. The simple one with just a String and a complex one initializing the individual properties. No it seems that there must have been an option for the shorthand configuration, because the Module class contains a set-Method without a name: public void set( String sourceFile ) { this.sourceFile = sourceFile; } Now all I am getting is the following error if I use the short version: Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot assign configuration entry 'module' to 'class net.flexmojos.oss.plugin.compiler.attributes.Module' from 'module1/AnModule.mxml', which is of type class java.lang.String at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.fromExpression(AbstractConfigurationConverter.java:165) at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:73) at org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromConfiguration(ArrayConverter.java:131) at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:260) at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137) at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:563) ... 22 more How do I support the two config options now? I guess there must have been such an option, but I conldn't find any reference to such a thing using Goolge for quite some time. I know the Testsuite of Flexmojos used to run through and that pom configuration hasn't changed for quite some time. Chris [ C h r i s t o f e r D u t z ] C-Ware IT-Service Inhaber Dipl. Inf. Christofer Dutz Karlstraße. 104, 64285 Darmstadt [cid:image001.gif@01CD2D09.09DD5C30]http://www.benchpark.com/788335/kundenzufriedenheit.htm IT- und Systemhäuserhttp://www.benchpark.com/it_und_systemhaeuser.htm fon: 0 61 51 / 27315 - 61 fax: 0 61 51 / 27315 - 64 mobil: 0171 / 7 444 2 33 email: christofer.d...@c-ware.demailto:christofer.d...@c-ware.de http://www.c-ware.dehttp://www.c-ware.de/ UStId-Nr. DE195700962
Re: [VOTE] Release Maven Release Plugin version 2.3
Do I get to vote on this? If so, +1 from me. The jazz stuff works perfectly. Ta. -Chris Sent from my iPhone On 08/05/2012, at 8:15 AM, Robert Scholte apa...@sourcegrounds.com wrote: Hi, I'd like to release the maven-release-plugin 2.3 We solved 22 issues: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11144version=18334 There are still a couple of issues left in JIRA: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=11144status=1 Staging repo: https://repository.apache.org/content/repositories/maven-053/ Staging site: http://maven.apache.org/plugins/maven-release-plugin-2.3/ (once synced) Guide to testing staged releases: http://maven.apache.org/guides/development/guide-testing-releases.html Vote open for 72 hours. [ ] +1 [ ] +0 [ ] -1 Thanks, -Robert - 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: [VOTE] Release Maven Release Plugin version 2.3
Hello Robert, +1 (non-binding) for the plugin I tested release:prepate with one of my pet projects and http://jira.codehaus.org/browse/MRELEASE-723 seems to work (at least for GIT :-)) and another project using subversion seems to work as well (i.e. does not change the 2.2.2 behavior). -1 (non-binding) for the site at http://maven.apache.org/plugins/maven-release-plugin-2.3/. Looks really weird and misses images and stylesheets though I do not know whether this is a sync problem only. This is what Firefox's Webconsole says: [17:10:09.089] GET http://maven.apache.org/plugins/maven-release-plugin-2.3/prepare-mojo.html [HTTP/1.1 200 OK 35ms] [17:10:09.139] GET http://maven.apache.org/plugins/maven-release-plugin-2.3/css/print.css [HTTP/1.1 404 Not Found 22ms] [17:10:09.141] GET http://www.google-analytics.com/urchin.js [HTTP/1.1 304 Not Modified 46ms] [17:10:09.144] GET http://maven.apache.org/plugins/maven-release-plugin-2.3/images/logos/maven-feather.png [HTTP/1.1 404 Not Found 45ms] [17:10:09.155] GET http://maven.apache.org/plugins/maven-release-plugin-2.3/css/maven-base.css [HTTP/1.1 404 Not Found 52ms] [17:10:09.158] GET http://maven.apache.org/plugins/maven-release-plugin-2.3/css/maven-theme.css [HTTP/1.1 404 Not Found 53ms] [17:10:09.160] GET http://maven.apache.org/plugins/maven-release-plugin-2.3/css/site.css [HTTP/1.1 404 Not Found 53ms] [17:10:09.223] GET http://www.google-analytics.com/__utm.gif?X [HTTP/1.1 200 OK 59ms] [17:10:09.238] GET http://maven.apache.org/images/apache-maven-project-2.png [HTTP/1.1 304 Not Modified 12ms] [17:10:09.240] GET http://maven.apache.org/images/maven-logo-2.gif [HTTP/1.1 304 Not Modified 11ms] [17:10:09.243] GET http://maven.apache.org/plugins/maven-release-plugin-2.3/images/logos/maven-feather.png [HTTP/1.1 404 Not Found 21ms] Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Tue, May 8, 2012 at 3:51 PM, Chris Graham chrisgw...@gmail.com wrote: Do I get to vote on this? If so, +1 from me. The jazz stuff works perfectly. Ta. -Chris Sent from my iPhone On 08/05/2012, at 8:15 AM, Robert Scholte apa...@sourcegrounds.com wrote: Hi, I'd like to release the maven-release-plugin 2.3 We solved 22 issues: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11144version=18334 There are still a couple of issues left in JIRA: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=11144status=1 Staging repo: https://repository.apache.org/content/repositories/maven-053/ Staging site: http://maven.apache.org/plugins/maven-release-plugin-2.3/ (once synced) Guide to testing staged releases: http://maven.apache.org/guides/development/guide-testing-releases.html Vote open for 72 hours. [ ] +1 [ ] +0 [ ] -1 Thanks, -Robert - 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 - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
AW: Problem configuring plugins
Ok ... I resolved this Issue myself. The problem was, that internally the build was using Maven 3.0.2 for executing sub-tests. It seems that this type of configuration is only possible in Maven 3.0.3 and higher. Chris Von: christofer.d...@c-ware.de [mailto:christofer.d...@c-ware.de] Gesendet: Dienstag, 8. Mai 2012 10:58 An: dev@maven.apache.org Betreff: Problem configuring plugins Hi, I am currently working on some Issues in the flexmojos projects build. One is sort of me. I assume there have been some changes in Maven that now prevent the plugin configuration from working the same way it did with earlier maven versions. I have a Plugin flexmojos-maven-plugin and the Mojo implementation has a field: /** * The list of modules to be compiled. * * pre * lt;modulesgt; * lt;modulegt;Module1.mxmllt;/modulegt; * lt;modulegt;Module2.mxmllt;/modulegt; * lt;modulegt; * lt;sourceFilegt;Module3.mxmllt;/sourceFilegt; * lt;optimizegt;falselt;/optimizegt; * lt;finalNamegt;MyModulelt;/finalNamegt; * lt;destinationPathgt;dir1/dir2lt;/destinationPathgt; * lt;/modulegt; * lt;/modulesgt; * /pre * * @parameter */ private Module[] modules; As you can see there were two options to configure these Module Object. The simple one with just a String and a complex one initializing the individual properties. No it seems that there must have been an option for the shorthand configuration, because the Module class contains a set-Method without a name: public void set( String sourceFile ) { this.sourceFile = sourceFile; } Now all I am getting is the following error if I use the short version: Caused by: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot assign configuration entry 'module' to 'class net.flexmojos.oss.plugin.compiler.attributes.Module' from 'module1/AnModule.mxml', which is of type class java.lang.String at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.fromExpression(AbstractConfigurationConverter.java:165) at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:73) at org.codehaus.plexus.component.configurator.converters.composite.ArrayConverter.fromConfiguration(ArrayConverter.java:131) at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:260) at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137) at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:563) ... 22 more How do I support the two config options now? I guess there must have been such an option, but I conldn't find any reference to such a thing using Goolge for quite some time. I know the Testsuite of Flexmojos used to run through and that pom configuration hasn't changed for quite some time. Chris [ C h r i s t o f e r D u t z ] C-Ware IT-Service Inhaber Dipl. Inf. Christofer Dutz Karlstraße. 104, 64285 Darmstadt [cid:image001.gif@01CD2D09.09DD5C30]http://www.benchpark.com/788335/kundenzufriedenheit.htm IT- und Systemhäuserhttp://www.benchpark.com/it_und_systemhaeuser.htm fon: 0 61 51 / 27315 - 61 fax: 0 61 51 / 27315 - 64 mobil: 0171 / 7 444 2 33 email: christofer.d...@c-ware.demailto:christofer.d...@c-ware.de http://www.c-ware.dehttp://www.c-ware.de/ UStId-Nr. DE195700962
[VOTE] Release Maven Enforcer version 1.1
Hi, We solved 5 issues: https://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11530version=17443 There are still a couple of issues left in JIRA: https://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truejqlQuery=project+%3D+MENFORCER+AND+status+%3D+Open+ORDER+BY+priority+DESCmode=hide Staging repo: https://repository.apache.org/content/repositories/maven-058/ Staging site: http://maven.apache.org/enforcer-1.1/ http://maven.apache.org/plugins/maven-enforcer-plugin-1.1/ Guide to testing staged releases: http://maven.apache.org/guides/development/guide-testing-releases.html Vote open for 72 hours. [ ] +1 [ ] +0 [ ] -1 - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org