Re: [m2] trunk, r231365 unable to deploy

2005-08-11 Thread John Fallows
Further investigation has yielded more interesting results. :-)

In turns out that the maven deploy plugin exception can be made to
occur or not occur simply by the presence of a profile in my
~/.m2/settings.xml.

Note that the profile does not even need to be active to trigger the
missing deploymentRepository exception, so this seems like a bug
rather than a mis-configuration of my environment.

settings
  profiles
profile
  idcorporate/id
  
  repositories
repository
  idcorporate-central/id
  nameCorporate Maven/name
  urlhttp://.../url
  layoutlegacy/layout
/repository
  /repositories
  
/profile
  /profiles
/settings

After further debugging, it turns out that the contents of the
profile actually has no impact, its mere presence triggers the bug.

So...

  profiles
profile/
  /profiles

...inside settings also triggers the exception during m2 deploy.

Kind Regards,
John Fallows.

On 8/11/05, John Fallows [EMAIL PROTECTED] wrote:
 Is there a problem with deployment on the m2 trunk, r231365?
 
 My project has pom packaging, with a distributionManagement
 section that contains repository, snapshotRepository and site,
 yet the maven-deploy-plugin deploy:deploy goal still fails with a null
 deploymentRepository parameter.
 
 See below for pom.xml and stack trace.
 
 Thanks for any help you can provide.
 
 Kind Regards,
 John Fallows.
 
 project
   modelVersion4.0.0/modelVersion
 
   groupId.../groupId
   artifactId.../artifactId
   version.../version
   packagingpom/packaging
 
   repositories
 repository
   idcorporate-central/id
   urlhttp://.../url
   layoutlegacy/layout
 /repository
 
 repository
   idcorporate-snapshots/id
   urlhttp://.../url
   layoutlegacy/layout
 /repository
 
 repository
   idcentral/id
   urlhttp://.../url
 /repository
   /repositories
 
   pluginRepositories
 pluginRepository
   idcorporate-plugins/id
   urlhttp://.../url
 /pluginRepository
 
 pluginRepository
   idcentral-plugins/id
   urlhttp://.../url
 /pluginRepository
   /pluginRepositories
 
   distributionManagement
 repository
   idcorporate-central/id
   urlscp://.../url
   layoutlegacy/layout
 /repository
 
 snapshotRepository
   idcorporate-snapshots/id
   urlscp://.../url
 /snapshotRepository
 
 site
   idbali-site/id
   urlhttp://.../url
 /site
   /distributionManagement
 /project
 
 
 
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Diagnosis: Error configuring plugin for execution of 'deploy:deploy'.
 [INFO] 
 
 [ERROR] Cause:
 org.apache.maven.plugin.MojoExecutionException: Error configuring
 plugin for execution of 'deploy:deploy'.
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:342)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:472)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:445)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:431)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:127)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:292)
 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:324)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.PluginParameterException: Invalid
 or missing parameters: [Mojo parameter [name: 'deploymentRepository';
 alias: 'null']] for mojo:
 org.apache.maven.plugins:maven-deploy-plugin:2.0-alpha-3:deploy
 at 
 org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(DefaultPluginManager.java:782)
 at 
 org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:521)
 at 
 

Re: [m2] trunk, r231365 unable to deploy

2005-08-11 Thread Kenney Westerhof
On Thu, 11 Aug 2005, John Fallows wrote:

There are some problems with profile injection.
Btw I can't find that release in svn log at the root dir.

Try r231481, it should be fixed.

 Further investigation has yielded more interesting results. :-)

 In turns out that the maven deploy plugin exception can be made to
 occur or not occur simply by the presence of a profile in my
 ~/.m2/settings.xml.

 Note that the profile does not even need to be active to trigger the
 missing deploymentRepository exception, so this seems like a bug
 rather than a mis-configuration of my environment.

 settings
   profiles
 profile
   idcorporate/id

   repositories
 repository
   idcorporate-central/id
   nameCorporate Maven/name
   urlhttp://.../url
   layoutlegacy/layout
 /repository
   /repositories

 /profile
   /profiles
 /settings

 After further debugging, it turns out that the contents of the
 profile actually has no impact, its mere presence triggers the bug.

 So...

   profiles
 profile/
   /profiles

 ...inside settings also triggers the exception during m2 deploy.

 Kind Regards,
 John Fallows.

 On 8/11/05, John Fallows [EMAIL PROTECTED] wrote:
  Is there a problem with deployment on the m2 trunk, r231365?
 
  My project has pom packaging, with a distributionManagement
  section that contains repository, snapshotRepository and site,
  yet the maven-deploy-plugin deploy:deploy goal still fails with a null
  deploymentRepository parameter.
 
  See below for pom.xml and stack trace.
 
  Thanks for any help you can provide.
 
  Kind Regards,
  John Fallows.
 
  project
modelVersion4.0.0/modelVersion
 
groupId.../groupId
artifactId.../artifactId
version.../version
packagingpom/packaging
 
repositories
  repository
idcorporate-central/id
urlhttp://.../url
layoutlegacy/layout
  /repository
 
  repository
idcorporate-snapshots/id
urlhttp://.../url
layoutlegacy/layout
  /repository
 
  repository
idcentral/id
urlhttp://.../url
  /repository
/repositories
 
pluginRepositories
  pluginRepository
idcorporate-plugins/id
urlhttp://.../url
  /pluginRepository
 
  pluginRepository
idcentral-plugins/id
urlhttp://.../url
  /pluginRepository
/pluginRepositories
 
distributionManagement
  repository
idcorporate-central/id
urlscp://.../url
layoutlegacy/layout
  /repository
 
  snapshotRepository
idcorporate-snapshots/id
urlscp://.../url
  /snapshotRepository
 
  site
idbali-site/id
urlhttp://.../url
  /site
/distributionManagement
  /project
 
 
 
  [INFO] 
  
  [ERROR] BUILD ERROR
  [INFO] 
  
  [INFO] Diagnosis: Error configuring plugin for execution of 'deploy:deploy'.
  [INFO] 
  
  [ERROR] Cause:
  org.apache.maven.plugin.MojoExecutionException: Error configuring
  plugin for execution of 'deploy:deploy'.
  at 
  org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:342)
  at 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:472)
  at 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:445)
  at 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:431)
  at 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
  at 
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:127)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:292)
  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:324)
  at 
  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at 
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.PluginParameterException: Invalid
  or missing parameters: [Mojo parameter [name: 'deploymentRepository';
  alias: 'null']] for mojo: