Re: Disable Automatic Plugin Updates in Maven ? + Config management question in [m2]
Hey guys! How convenient... I just wanted to ask a question for Maven 2.0 concerning this topic: configuration management. It's not only a matter of corporate procedures. but rather a general configuration mangement issue. When you release a software product, if you want to have a reproducible build, you must save the complete configuration and that includes you build system. With standard IDEs or languages like C or C++, its pretty straight forward. You save the compiler's version and options you used, same thing with all external libraries. You may have to check in also the compiler itself or any other tool you require to build your system, you tag all your sources and you're almost done. With Maven, its may be a little more complicated. Not only the engine itself is evoluting but all plugins are constantly changing to. I myself wrote a plugin and I know that if I checkout an old version of my project (lets say one from last year), I will have to modify the build script that was savec in CVS because there is something missing that is now required by new version of the plugin. In other words, what was building without problems a year agon with Maven 1.0 and some plugins won't build today. So here is the question: Was that thought of in Maven 2.0? Will it be possible to "save" the configuration used to build and dig it out when its needed? Without going in the very specific details, I think that if we can tell maven to use a specific version of a plugin even if newer versions are available and installed, it'll fix most config. management issues. A specialize maven plugin could do that save and load config, as long as the core engine accepts "overrides" on which plugin version to use instead of always picking up the latest. thx! Eric. Jamie Bisotti wrote: Even though a plug-in update should be checked, tested and harmless, lots of corporations have a lot of processes in place regarding build reproducability. Doing a build with the updated v1.1 maven-foo-plugin could cause the build to look ever so slightly different than the build previously done with the orignial v1.0. This could cause red flags to go flying. I'd think an easy flag for disabling automatic plug-in updating is a must. On 5/19/05, Brett Porter <[EMAIL PROTECTED]> wrote: A couple of ways presently: - use -o on the command line (it can be in MAVEN_OPTS), but this disables all downloads - ad a pluginRepository to your project (or one you inherit from) with id = central and never - explicitly list all plugins you use in pom.xml with their versions. We intend to improve this in the next release: http://jira.codehaus.org/browse/MNG-379 Note that plugin updates should only be checked, and published after sufficient testing so there should be no harm in leaving it enabled at the moment. Regards, Brett On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: How do i disable the Automatic Maven Plugin Updates in Maven2 ? -- Malcolm Wong Ho May you live in uninteresting times. -- Chinese proverb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ? + Config management question in [m2]
That's excellent! You're right, I didn't got the answer, there seems to be a small problem with the list today. Got a failed delivery message. Great, impressive work Brett! Eric. Brett Porter wrote: On 5/20/05, Eric Giguere <[EMAIL PROTECTED]> wrote: Hey guys! So here is the question: Was that thought of in Maven 2.0? Will it be possible to "save" the configuration used to build and dig it out when its needed? Yes (I think this was in my response to Jamie, but the mail has been slow arriving, so not sure if you got it). You can put the plugin versions in your POM to ensure it always behaves the same. The release plugin will help you populate them at the point you cut a release. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ? + Config management question in [m2]
On 5/20/05, Eric Giguere <[EMAIL PROTECTED]> wrote: > Hey guys! > > So here is the question: Was that thought of in Maven 2.0? Will it be > possible to "save" the configuration used to build and dig it out when its > needed? Yes (I think this was in my response to Jamie, but the mail has been slow arriving, so not sure if you got it). You can put the plugin versions in your POM to ensure it always behaves the same. The release plugin will help you populate them at the point you cut a release. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ?
Quoting previously: "We intend to improve this in the next release: http://jira.codehaus.org/browse/MNG-379"; and one way to avoid it: "- explicitly list all plugins you use in pom.xml with their versions." Every version you list explicitly is used, regardless of what version is current, for reasons of reproducibility. We are also making a release plugin that will populate that field in the SCM with current values to help this happen. - Brett On 5/19/05, Jamie Bisotti <[EMAIL PROTECTED]> wrote: > Even though a plug-in update should be checked, tested and harmless, > lots of corporations have a lot of processes in place regarding build > reproducability. Doing a build with the updated v1.1 maven-foo-plugin > could cause the build to look ever so slightly different than the > build previously done with the orignial v1.0. This could cause red > flags to go flying. I'd think an easy flag for disabling automatic > plug-in updating is a must. > > On 5/19/05, Brett Porter <[EMAIL PROTECTED]> wrote: > > A couple of ways presently: > > > > - use -o on the command line (it can be in MAVEN_OPTS), but this > > disables all downloads > > - ad a pluginRepository to your project (or one you inherit from) with > > id = central and never > > - explicitly list all plugins you use in pom.xml with their versions. > > > > We intend to improve this in the next release: > > http://jira.codehaus.org/browse/MNG-379 > > > > Note that plugin updates should only be checked, and published after > > sufficient testing so there should be no harm in leaving it enabled at > > the moment. > > > > Regards, > > Brett > > > > On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > > > > > > How do i disable the Automatic Maven Plugin Updates in Maven2 ? > > > > > > -- > > > Malcolm Wong Ho > > > > > > May you live in uninteresting times. -- Chinese proverb > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Jamie Bisotti > Software Engineer > Lexmark International, Inc. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ?
Even though a plug-in update should be checked, tested and harmless, lots of corporations have a lot of processes in place regarding build reproducability. Doing a build with the updated v1.1 maven-foo-plugin could cause the build to look ever so slightly different than the build previously done with the orignial v1.0. This could cause red flags to go flying. I'd think an easy flag for disabling automatic plug-in updating is a must. On 5/19/05, Brett Porter <[EMAIL PROTECTED]> wrote: > A couple of ways presently: > > - use -o on the command line (it can be in MAVEN_OPTS), but this > disables all downloads > - ad a pluginRepository to your project (or one you inherit from) with > id = central and never > - explicitly list all plugins you use in pom.xml with their versions. > > We intend to improve this in the next release: > http://jira.codehaus.org/browse/MNG-379 > > Note that plugin updates should only be checked, and published after > sufficient testing so there should be no harm in leaving it enabled at > the moment. > > Regards, > Brett > > On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > > > > How do i disable the Automatic Maven Plugin Updates in Maven2 ? > > > > -- > > Malcolm Wong Ho > > > > May you live in uninteresting times. -- Chinese proverb > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jamie Bisotti Software Engineer Lexmark International, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ?
seems like a bug :( can you record it in JIRA? I'll fix it asap. You'll probably find that if you run with -u (allowing updates), it will work, and then the settings you have will work after that. - Brett On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > Exception : > > java.lang.NullPointerException > at > org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:140) > at > org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transformForResolve(ReleaseArtifactTransformation.java:52) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:99) > at > org.codehaus.plexus.DefaultArtifactEnabledContainer.addComponent(DefaultArtifactEnabledContainer.java:104) > at > org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:285) > at > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:241) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:389) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.configureMojo(DefaultLifecycleExecutor.java:337) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:135) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90) > at > org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:246) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) > at org.codehaus.classworlds.Launcher.main(Launcher.java:363) > > > change to (sorry, the docs are in > > error). > > > > - Brett > > > > On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > >> I get an error, the proxy here is blocking the download site. > >> > >> [INFO] Reason: Failed to parse model from file > >> 'C:\blackbird\projects\spring\mypetstore\pom.xml'. > >> Error: 'TEXT must be immediately followed by END_TAG and not START_TAG > >> (position: START_TAG seen ...\r\n\t\t\t... @9:8) ' > >> > >> > >> Sample pom.xml : > >> > >> > >> 4.0.0 > >> za.co.mypetstore > >> mypetstore > >> war > >> 1.0-SNAPSHOT > >> > >> > >> central > >> central > >> never > >> > >> > >> > >> > >> Original Message > >> > >> Subject: Re: Disable Automatic Plugin Updates in Maven ? > >> From:"Brett Porter" <[EMAIL PROTECTED]> > >> Date:Thu, May 19, 2005 9:04 am > >> To: "Maven Users List" > >> -- > >> > >> A couple of ways presently: > >> > >> - use -o on the command line (it can be in MAVEN_OPTS), but this > >> disables all downloads > >> - ad a pluginRepository to your project (or one you inherit from) with > >> id > >> = central and never > >> - explicitly list all plugins you use in pom.xml with their versions. > >> > >> We intend to improve this in the next release: > >> http://jira.codehaus.org/browse/MNG-379 > >> > >> Note that plugin updates should only be checked, and published after > >> sufficient testing so there should be no harm in leaving it enabled at > >> the > >> moment. > >> > >> Regards, > >> Brett > >> > >> On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: >
Re: Disable Automatic Plugin Updates in Maven ?
Exception : java.lang.NullPointerException at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:140) at org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transformForResolve(ReleaseArtifactTransformation.java:52) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:99) at org.codehaus.plexus.DefaultArtifactEnabledContainer.addComponent(DefaultArtifactEnabledContainer.java:104) at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:285) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:241) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:389) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.configureMojo(DefaultLifecycleExecutor.java:337) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:135) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90) at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167) at org.apache.maven.cli.MavenCli.main(MavenCli.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) at org.codehaus.classworlds.Launcher.main(Launcher.java:363) > change to (sorry, the docs are in > error). > > - Brett > > On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: >> I get an error, the proxy here is blocking the download site. >> >> [INFO] Reason: Failed to parse model from file >> 'C:\blackbird\projects\spring\mypetstore\pom.xml'. >> Error: 'TEXT must be immediately followed by END_TAG and not START_TAG >> (position: START_TAG seen ...\r\n\t\t\t... @9:8) ' >> >> >> Sample pom.xml : >> >> >> 4.0.0 >> za.co.mypetstore >> mypetstore >> war >> 1.0-SNAPSHOT >> >> >> central >> central >> never >> >> >> >> >> Original Message >> >> Subject: Re: Disable Automatic Plugin Updates in Maven ? >> From:"Brett Porter" <[EMAIL PROTECTED]> >> Date:Thu, May 19, 2005 9:04 am >> To: "Maven Users List" >> -- >> >> A couple of ways presently: >> >> - use -o on the command line (it can be in MAVEN_OPTS), but this >> disables all downloads >> - ad a pluginRepository to your project (or one you inherit from) with >> id >> = central and never >> - explicitly list all plugins you use in pom.xml with their versions. >> >> We intend to improve this in the next release: >> http://jira.codehaus.org/browse/MNG-379 >> >> Note that plugin updates should only be checked, and published after >> sufficient testing so there should be no harm in leaving it enabled at >> the >> moment. >> >> Regards, >> Brett >> >> On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: >> > >> > How do i disable the Automatic Maven Plugin Updates in Maven2 ? >> > >> > -- >> > Malcolm Wong Ho >> > >> > May you live in uninteresting times. -- Chinese proverb >> > >> > - >> To >> unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> - To >> unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> -- >> Malcolm Wong Ho >> [EMAIL PROTECTED] >> >> May you live in uninteresting times. -- Chi
Re: Disable Automatic Plugin Updates in Maven ?
change to (sorry, the docs are in error). - Brett On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > I get an error, the proxy here is blocking the download site. > > [INFO] Reason: Failed to parse model from file > 'C:\blackbird\projects\spring\mypetstore\pom.xml'. > Error: 'TEXT must be immediately followed by END_TAG and not START_TAG > (position: START_TAG seen ...\r\n\t\t\t... @9:8) ' > > > Sample pom.xml : > > > 4.0.0 > za.co.mypetstore > mypetstore > war > 1.0-SNAPSHOT > > > central > central > never > > > > > ---------------- Original Message > Subject: Re: Disable Automatic Plugin Updates in Maven ? > From:"Brett Porter" <[EMAIL PROTECTED]> > Date:Thu, May 19, 2005 9:04 am > To: "Maven Users List" > -- > > A couple of ways presently: > > - use -o on the command line (it can be in MAVEN_OPTS), but this > disables all downloads > - ad a pluginRepository to your project (or one you inherit from) with id > = central and never > - explicitly list all plugins you use in pom.xml with their versions. > > We intend to improve this in the next release: > http://jira.codehaus.org/browse/MNG-379 > > Note that plugin updates should only be checked, and published after > sufficient testing so there should be no harm in leaving it enabled at the > moment. > > Regards, > Brett > > On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > > > > How do i disable the Automatic Maven Plugin Updates in Maven2 ? > > > > -- > > Malcolm Wong Ho > > > > May you live in uninteresting times. -- Chinese proverb > > > > - To > unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - To > unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > Malcolm Wong Ho > [EMAIL PROTECTED] > > May you live in uninteresting times. -- Chinese proverb > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ?
I get an error, the proxy here is blocking the download site. [INFO] Reason: Failed to parse model from file 'C:\blackbird\projects\spring\mypetstore\pom.xml'. Error: 'TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...\r\n\t\t\t... @9:8) ' Sample pom.xml : 4.0.0 za.co.mypetstore mypetstore war 1.0-SNAPSHOT central central never Original Message ---- Subject: Re: Disable Automatic Plugin Updates in Maven ? From:"Brett Porter" <[EMAIL PROTECTED]> Date:Thu, May 19, 2005 9:04 am To: "Maven Users List" -- A couple of ways presently: - use -o on the command line (it can be in MAVEN_OPTS), but this disables all downloads - ad a pluginRepository to your project (or one you inherit from) with id = central and never - explicitly list all plugins you use in pom.xml with their versions. We intend to improve this in the next release: http://jira.codehaus.org/browse/MNG-379 Note that plugin updates should only be checked, and published after sufficient testing so there should be no harm in leaving it enabled at the moment. Regards, Brett On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > > How do i disable the Automatic Maven Plugin Updates in Maven2 ? > > -- > Malcolm Wong Ho > > May you live in uninteresting times. -- Chinese proverb > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Malcolm Wong Ho [EMAIL PROTECTED] May you live in uninteresting times. -- Chinese proverb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ?
A couple of ways presently: - use -o on the command line (it can be in MAVEN_OPTS), but this disables all downloads - ad a pluginRepository to your project (or one you inherit from) with id = central and never - explicitly list all plugins you use in pom.xml with their versions. We intend to improve this in the next release: http://jira.codehaus.org/browse/MNG-379 Note that plugin updates should only be checked, and published after sufficient testing so there should be no harm in leaving it enabled at the moment. Regards, Brett On 5/19/05, Malcolm Wong Ho <[EMAIL PROTECTED]> wrote: > > How do i disable the Automatic Maven Plugin Updates in Maven2 ? > > -- > Malcolm Wong Ho > > May you live in uninteresting times. -- Chinese proverb > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Disable Automatic Plugin Updates in Maven ?
How do i disable the Automatic Maven Plugin Updates in Maven2 ? -- Malcolm Wong Ho May you live in uninteresting times. -- Chinese proverb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]