You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fa...@mpsa.com on 2006/02/15 15:36:09 UTC

Site deploy fails with m2.0.2: any easy workaround?




Hi guys,

I'm trying to deploy the generated site with maven 2.0.2 and the site
plugin 2.0-beta-4, and I get the following error, which some of you already
experienced:

      Embedded error: Could not make directory
'/users2/jip00/jip01/root/.'.

The bug is known (http://jira.codehaus.org/browse/WAGON-30) and seems to be
fixed in SVN. However, is there an _easy_ workaround to make site:deploy
work while waiting for the next release? (I tried Brett's workaround  -
i.e. delete everything before deploying, but it still breaks when Maven
tries to create the directory.)
If not, this will prevent me from using Maven 2.0.2, which is annoying
because 2.0.3 does not seem to be ready any time soon...

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  fabrice.belingard@mpsa.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Site deploy fails with m2.0.2: any easy workaround?

Posted by fa...@mpsa.com.



Hi Nicolas,

You can generate the site for a project even if you don't have any file
related to the site (site.xml, Xdoc, apt, fml, ...).

As for your error when you try to deploy, this is probably because you
didn't define the credentials for repository in your "settings.xml". If you
try to deploy via scp, you need to have something in your "settings.xml"
file that looks like: (cf.
http://maven.apache.org/guides/mini/guide-deployment-security-settings.html)

<settings>
  .
  .
  <servers>
    <server>
      <id>repo1</id>
      <username>repouser</username>
      <!-- other optional elements:
        <password>my_login_password</password>
        <privateKey>/path/to/identity</privateKey> (default is
~/.ssh/id_dsa)
        <passphrase>my_key_passphrase</passphrase>
      -->
    </server>
  </servers>
  .
  .
</settings>


You can also deploy via the file protocol. In this case, you would have in
your POM something like:

<distributionManagement>
  <site>
    <id>deployFolder</id>
    <url>file:///foo/myWebFolder/</url>
  </site>
</distributionManagement>

More generally, you'll find almost all you need at :
http://maven.apache.org/guides/index.html

Hope this helps,

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  fabrice.belingard@mpsa.com


                                                                           
             Nicolas Gonzalez                                              
             <nicogonzalez200                                              
             2@yahoo.com.ar>                                          Pour 
                                       Maven Users List                    
             15/02/2006 15:49          <us...@maven.apache.org>            
                                                                        cc 
                                                                           
                 Veuillez                                            Objet 
                répondre à             Re: Site deploy fails with m2.0.2:  
             Maven Users List          any easy workaround?                
             <users@maven.apa                                              
                 che.org>                                                  
                                                                           
                                                                           
                                                                           
                                                                           




Hi Fabrice,
I've been reading the maven site mini guide but i
cant't find out where to configure the user, password
and that sort of stuffs.
The only thing i've done is to add
"<distributionManagement/>" in pom.xml but i get this
exception when invoking mvn site:deploy =

Session error: com.jcraft.jsch.JSchException:
Session.connect: java.net.ConnectException: Connectio
n refused: connect

Is it necessary to create site.xml? if so, am i
responsible for creating the tree directory explained
at:
http://maven.apache.org/guides/mini/guide-site.html
???


I really appreciate your help but i can't figure out
what to do...


Regards,

Nicolas Gonzalez
Buenos Aires - Argentina






___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Site deploy fails with m2.0.2: any easy workaround?

Posted by Nicolas Gonzalez <ni...@yahoo.com.ar>.
Hi Fabrice,
I've been reading the maven site mini guide but i
cant't find out where to configure the user, password
and that sort of stuffs.
The only thing i've done is to add   
"<distributionManagement/>" in pom.xml but i get this
exception when invoking mvn site:deploy =

Session error: com.jcraft.jsch.JSchException:
Session.connect: java.net.ConnectException: Connectio
n refused: connect

Is it necessary to create site.xml? if so, am i
responsible for creating the tree directory explained
at:
http://maven.apache.org/guides/mini/guide-site.html
???


I really appreciate your help but i can't figure out
what to do...


Regards,

Nicolas Gonzalez
Buenos Aires - Argentina



	
	
		
___________________________________________________________ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Site deploy fails with m2.0.2: any easy workaround?

Posted by fa...@mpsa.com.



Hi Nicolas,

Here's what you've always dreamt to learn about the site plugin:
http://maven.apache.org/guides/mini/guide-site.html
Especially, look at section "Deploying the site" for your problem.

HTH,

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  fabrice.belingard@mpsa.com


                                                                           
             Nicolas Gonzalez                                              
             <nicogonzalez200                                              
             2@yahoo.com.ar>                                          Pour 
                                       Maven Users List                    
             15/02/2006 16:11          <us...@maven.apache.org>            
                                                                        cc 
                                                                           
                 Veuillez                                            Objet 
                répondre à             Re: Site deploy fails with m2.0.2:  
             Maven Users List          any easy workaround?                
             <users@maven.apa                                              
                 che.org>                                                  
                                                                           
                                                                           
                                                                           
                                                                           




I'm having a problem with maven site-deploy: the fact
is that i don't know how to use it and how to
configure it.
Could you sen me your pom as an example?

Thanks in advance

Nicolas Gonzalez
Buenos Aires - Argentina

P.S.: Sorry for my english!!





___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Site deploy fails with m2.0.2: any easy workaround?

Posted by Nicolas Gonzalez <ni...@yahoo.com.ar>.
I'm having a problem with maven site-deploy: the fact
is that i don't know how to use it and how to
configure it.
Could you sen me your pom as an example?

Thanks in advance

Nicolas Gonzalez
Buenos Aires - Argentina

P.S.: Sorry for my english!!


	
	
		
___________________________________________________________ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Site deploy fails with m2.0.2: any easy workaround?

Posted by fa...@mpsa.com.



I tried this, but it didn't work :o(

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  fabrice.belingard@mpsa.com


                                                                           
             Tim Davies                                                    
             <tim.davies@ktsp                                              
             lc.com>                                                  Pour 
                                       Maven Users List                    
             15/02/2006 15:37          <us...@maven.apache.org>            
                                                                        cc 
                                                                           
                 Veuillez                                            Objet 
                répondre à             Re: Site deploy fails with m2.0.2:  
             Maven Users List          any easy workaround?                
             <users@maven.apa                                              
                 che.org>                                                  
                                                                           
                                                                           
                                                                           
                                                                           




Theres a patched jar file available on the jira page. Use it to replace
the wagon-file jar in your MAVEN_HOME lib directory and you should be
fine. This worked fine for me anyway. :-)

fabrice.belingard@mpsa.com wrote:
>
>
> Hi guys,
>
> I'm trying to deploy the generated site with maven 2.0.2 and the site
> plugin 2.0-beta-4, and I get the following error, which some of you
already
> experienced:
>
>       Embedded error: Could not make directory
> '/users2/jip00/jip01/root/.'.
>
> The bug is known (http://jira.codehaus.org/browse/WAGON-30) and seems to
be
> fixed in SVN. However, is there an _easy_ workaround to make site:deploy
> work while waiting for the next release? (I tried Brett's workaround  -
> i.e. delete everything before deploying, but it still breaks when Maven
> tries to create the directory.)
> If not, this will prevent me from using Maven 2.0.2, which is annoying
> because 2.0.3 does not seem to be ready any time soon...
>
> Best Regards / Cordialement,
> Fabrice BELLINGARD
> DINQ/DSIN/INSI/EATE/IDVS/AIDV
> (+33) (01 61) 45 15 91  -  fabrice.belingard@mpsa.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

--
Tim Davies
Analyst Developer

KTS PLC: Service you can bank on
8th Floor, Finsbury Tower,
103-105 Bunhill Row,
London  EC1Y 8LZ
tel: +44 (0)20 7256 2300
fax: +44 (0)20 7256 2301

email: tim.davies@ktsplc.com
web: http://www.ktsplc.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Site deploy fails with m2.0.2: any easy workaround?

Posted by Tim Davies <ti...@ktsplc.com>.
Theres a patched jar file available on the jira page. Use it to replace 
the wagon-file jar in your MAVEN_HOME lib directory and you should be 
fine. This worked fine for me anyway. :-)

fabrice.belingard@mpsa.com wrote:
>
>
> Hi guys,
>
> I'm trying to deploy the generated site with maven 2.0.2 and the site
> plugin 2.0-beta-4, and I get the following error, which some of you already
> experienced:
>
>       Embedded error: Could not make directory
> '/users2/jip00/jip01/root/.'.
>
> The bug is known (http://jira.codehaus.org/browse/WAGON-30) and seems to be
> fixed in SVN. However, is there an _easy_ workaround to make site:deploy
> work while waiting for the next release? (I tried Brett's workaround  -
> i.e. delete everything before deploying, but it still breaks when Maven
> tries to create the directory.)
> If not, this will prevent me from using Maven 2.0.2, which is annoying
> because 2.0.3 does not seem to be ready any time soon...
>
> Best Regards / Cordialement,
> Fabrice BELLINGARD
> DINQ/DSIN/INSI/EATE/IDVS/AIDV
> (+33) (01 61) 45 15 91  -  fabrice.belingard@mpsa.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>   

-- 
Tim Davies
Analyst Developer

KTS PLC: Service you can bank on
8th Floor, Finsbury Tower,
103-105 Bunhill Row,
London  EC1Y 8LZ
tel: +44 (0)20 7256 2300
fax: +44 (0)20 7256 2301

email: tim.davies@ktsplc.com
web: http://www.ktsplc.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org