M2 - Site & Deploy - Help needed

2006-01-19 Thread raghurajan . x . gurunathan
Hi All,

Thanks for reading this, I Need help on 2 things, if anyone has solution 
for this please post it

My Project has multi module like

project
   |+ - - Module-A
   |+ - -  pom.xml
   | + - - Module-B
   | + - - pom.xm
   + - - pom.xml

1. Deploy Related
   lets say in my Module-B when i used  tag in my build 
section to create a jar file as "Raghu.jar" instead of 
"Module-B-SNAPSHOT.jar". so when
   i do "mvn package" i'm getting "Raghu.jar" and everything works 
fine. so far Great!!. 
   But now when i wanted to deploy this artifact to my repository 
(i.e) when i don "mvn deploy" my artifact is being deployed as 
"Module-B-SNAPSHOT.jar" 
   instead of "Raghu.jar". Is there way to ask maven to deploy it has 
"Raghu.jar" ??

2. Site Related

 How do i spcify url location for the dependencies., lets say for e.g 
i created  a site using "mvn site:site" its created a webpages, but there 
is no navigation
 link from project --> Module-A  & Module-B. i want to give navigation 
link so that i can just click on that link to go to either Module-A 
/Module-B instead of
 typing the address in address bar.. also if a i have Module-A has 
depedency in Module-B  after site is created when i look at the Module-B 
site there is no
 link at the url section for Module-A, Is there a way we can specify 
this ???

Please Help 
 




Thanks,
Raghurajan G 


Re: m2 site-deploy Help

2005-12-28 Thread Edwin Punzalan


The error was thrown inside the Jsch library which the wagon uses on ssh 
connections.


It seems to me like it is executing a file named "mkdir" which really 
doesn't exist on windows machines.  I had the same problem with a 
different application and had to resort to detecting the OS first and 
execute "cmd.exe" or "command.com" on windows machines.  I don't see any 
open issues on wagon-ssh related to this error so I think you should 
create one and there'll probably be a better response from there IF this 
is a bug.


wagon-ssh Jira issues are here: http://jira.codehaus.org/browse/WAGONSSH


[EMAIL PROTECTED] wrote:

Hi All, 

I'm getting the following error when i execute "mvn -e site-deploy"  my 
scp works fine from command line any ideas?


The authenticity of host 'Tiger' can't be established.
RSA key fingerprint is 73:47:7e:3d:5d:3c:33:71:07:f2:7d:01:43:06:fd:33.
Are you sure you want to continue connecting? (yes/no): yes
scp://Tiger - Session: Opened
Executing command: mkdir -p /.
scp://10.72.87.103 - Session: Disconnecting
scp://10.72.87.103 - Session: Disconnected
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Error uploading site

Embedded error: Error performing commands for file transfer
bash: /c/Program Files/AdminTools/Resource Kit/mkdir: No such file or 
directory
[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading 
site
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:30

1)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   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.MojoExecutionException: Error uploading 
site
   at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:142)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)

   ... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error 
performing commands for file transfer
   at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.putDirectory(AbstractSshWagon.java:498)
   at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:134)

   ... 18 more
Caused by: org.apache.maven.wagon.CommandExecutionException: bash: 
/c/Program Files/AdminTools/Resource Kit/mkdir: No such f

ile or directory
   at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.executeCommand(AbstractSshWagon.java:287)
   at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.putDirectory(AbstractSshWagon.java:494)

   ... 19 more
[INFO] 


[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Dec 20 13:41:19 CST 2005
[INFO] Final Memory: 6M/11M
[INFO] 








Thanks,
=
Raghurajan Gurunathan 
Desk : 713.427.5305 
=
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



m2 site-deploy Help

2005-12-20 Thread raghurajan . x . gurunathanv
Hi All, 

I'm getting the following error when i execute "mvn -e site-deploy"  my 
scp works fine from command line any ideas?

The authenticity of host 'Tiger' can't be established.
RSA key fingerprint is 73:47:7e:3d:5d:3c:33:71:07:f2:7d:01:43:06:fd:33.
Are you sure you want to continue connecting? (yes/no): yes
scp://Tiger - Session: Opened
Executing command: mkdir -p /.
scp://10.72.87.103 - Session: Disconnecting
scp://10.72.87.103 - Session: Disconnected
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Error uploading site

Embedded error: Error performing commands for file transfer
bash: /c/Program Files/AdminTools/Resource Kit/mkdir: No such file or 
directory
[INFO] 

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading 
site
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:30
1)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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.MojoExecutionException: Error uploading 
site
at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:142)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error 
performing commands for file transfer
at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.putDirectory(AbstractSshWagon.java:498)
at 
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:134)
... 18 more
Caused by: org.apache.maven.wagon.CommandExecutionException: bash: 
/c/Program Files/AdminTools/Resource Kit/mkdir: No such f
ile or directory
at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.executeCommand(AbstractSshWagon.java:287)
at 
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.putDirectory(AbstractSshWagon.java:494)
... 19 more
[INFO] 

[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Dec 20 13:41:19 CST 2005
[INFO] Final Memory: 6M/11M
[INFO] 







Thanks,
=
Raghurajan Gurunathan 
Desk : 713.427.5305 
=