Dear Paul,
I have configured my pom as you said. But it doesn't work.

Could you have a look to my pom?
Or to the fulltrace of mvn site-deploy?
You can see that it use evrytime wagon *1.0-alpha-5*

It seems that the ewtensions is not well read.

Thanks again for your help.
If you need more information, do not hesitate.

Francois

=========================
POM
========================
<project xmlns="http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>
   <groupId>fr.cns.genoscope.nemo</groupId>
   <artifactId>nemo-knowledge-base</artifactId>
   <packaging>pom</packaging>
   <version>1.0-SNAPSHOT</version>
   <name>Nemo Knowledge Base</name>
   <inceptionYear>2006</inceptionYear>

   <description>
       This project is the knowledge base for all technologies relative
       to nemo projects.
   </description>

   <organization>
       <name>Genoscope - Centre National de Sequencage</name>
       <url>http://www.genoscope.cns.fr/</url>
   </organization>

   <url>
       http://www.genoscope.cns.fr/nemo/projects/${project.artifactId}
   </url>

   <prerequisites>
       <maven>2.0</maven>
   </prerequisites>



   <developers>
       <developer>
           <id>ccombe</id>
           <name>Cyril Combe</name>
           <email>[EMAIL PROTECTED]</email>
           <organization>
               Genoscope- Computational System Biology Group - NEtwork
               MOdelling Group
           </organization>
           <roles>
               <role>Developer</role>
           </roles>
           <timezone>+1</timezone>
       </developer>
       <developer>
           <id>flefevre</id>
           <name>Francois Le Fevre</name>
           <email>[EMAIL PROTECTED]</email>
           <organization>
               Genoscope - Computational System Biology Group - NEtwork
               MOdelling Group
           </organization>
           <roles>
               <role>Developer</role>
           </roles>
           <timezone>+1</timezone>
       </developer>
   </developers>

   <!-- The issue management system -->
   <issueManagement>
       <system>Bugzilla</system>
       <url>http://mars.pc.local/bugzilla/</url>
   </issueManagement>


   <!-- The source repository -->
   <scm>
       <connection>
scm:svn:svn+ssh://subversion.genoscope.cns.fr/env/database/subversion/nemo/nemo_studio_repo/${project.artifactId}/trunk
       </connection>
       <developerConnection>
scm:svn:svn+ssh://subversion.genoscope.cns.fr/env/database/subversion/nemo/nemo_studio_repo/${project.artifactId}/trunk
       </developerConnection>
       <!-- Si viewCVS or fisheye -->
<!-- <url>http://www.genoscope.cns.fr/viewcvs.cgi/${project.artifactId}</url>-->


   </scm>

   <!-- Continuous integration -->
   <ciManagement>
       <system>continuum</system>
       <url>http://taal.genoscope.cns.fr:8090/continuum</url>
       <notifiers>
           <notifier>
               <type>mail</type>
               <configuration>
                   <sendOnSuccess>true</sendOnSuccess>
                   <sendOnWarning>true</sendOnWarning>
                   <sendOnFailure>true</sendOnFailure>
                   <sendOnError>true</sendOnError>
                   <address>[EMAIL PROTECTED]</address>
               </configuration>
           </notifier>
       </notifiers>
   </ciManagement>

   <distributionManagement>

       <!-- Configuration pour deployer le site web -->
       <site>
           <id>Maven Developper Doc Website</id>
           <url>
scp://masaya1.genoscope.cns.fr/env/cns/pub/www/data/externe/nemo/projects/${project.artifactId}
           </url>
       </site>

       <!-- Configuration pour deployer le projet dans le remote repository
attention ne devrait ne plus etre associer au developpeur mais seulement a Ci
           donc juste pour la definition dans Ci puis a retirer -->
       <repository>
           <id>inhouse</id>
           <name>Inhouse Internal Release Repository</name>
           <url>
scp://taal.genoscope.cns.fr/var/www/html/maven_repositories/inhouse
           </url>
       </repository>
       <snapshotRepository>
           <id>inhouse_snapshot</id>
           <name>Inhouse Internal Snapshot Repository</name>
           <url>
scp://taal.genoscope.cns.fr/var/www/html/maven_repositories/inhouse_snapshot
           </url>
           <uniqueVersion>false</uniqueVersion>
       </snapshotRepository>

   </distributionManagement>

   <reporting>
       <plugins>
           <!-- JAVADOC -->
           <plugin>
               <artifactId>maven-javadoc-plugin</artifactId>
           </plugin>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>jxr-maven-plugin</artifactId>
           </plugin>

           <!-- CHANGE LOG FROM SCM -->

           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>changelog-maven-plugin</artifactId>
           </plugin>

           <!-- JUNIT REPORT -->
           <plugin>
               <artifactId>maven-surefire-plugin</artifactId>
           </plugin>

           <!-- TEST COVERAGE -->
           <plugin>
               <artifactId>maven-clover-plugin</artifactId>
           </plugin>

           <!-- CODE ANALYSIS -->
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>

               <artifactId>maven-pmd-plugin</artifactId>
               <configuration>
                   <targetjdk>1.5</targetjdk>
                   <rulesets>
                       <ruleset>/rulesets/basic.xml</ruleset>
                       <ruleset>/rulesets/controversial.xml</ruleset>
                   </rulesets>
                   <format>xml</format>
                   <linkXref>true</linkXref>
                   <sourceEncoding>utf-8</sourceEncoding>

                   <minimumTokens>100</minimumTokens>
               </configuration>
           </plugin>

           <!-- RELEASE DOCUMENTATION -->
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>changes-maven-plugin</artifactId>
           </plugin>

           <!-- TODO LIST -->
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>taglist-maven-plugin</artifactId>
           </plugin>

       </plugins>
   </reporting>



   <dependencies>
       <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>3.8.1</version>
           <scope>test</scope>
       </dependency>
   </dependencies>

   <build>

       <extensions>
           <extension>
               <groupId>org.apache.maven.wagon</groupId>
               <artifactId>wagon-ssh-external</artifactId>
               <version>1.0-beta-1</version>
           </extension>
                       <extension>
               <groupId>org.apache.maven.wagon</groupId>
               <artifactId>wagon-ssh</artifactId>
               <version>1.0-beta-1</version>
           </extension>
           <extension>
               <groupId>org.apache.maven.wagon</groupId>
               <artifactId>wagon-provider-api</artifactId>
               <version>1.0-beta-1</version>
           </extension>
       </extensions>

   </build>
<repositories>
       <repository>
           <id>andromda</id>
           <name>AndroMDA Repository</name>
           <url>http://team.andromda.org/maven2</url>
       </repository>
   </repositories>
   <pluginRepositories>
       <pluginRepository>
           <id>andromda</id>
           <name>AndroMDA Repository</name>
           <url>http://team.andromda.org/maven2</url>
       </pluginRepository>
   </pluginRepositories>
<!-- repositories>
       <repository>
           <id>mvnrepository-com</id>
           <name>MVN Repository</name>
           <url>http://mvnrepository.com/artifact/</url>
       </repository>
   </repositories-->

</project>

I'm not positive, but it is probably something like what I've got for
wagon-ftp in one of my projects:

<project>
 ...
     <extensions>
         <extension>
             <groupId>org.apache.maven.wagon</groupId>
             <artifactId>wagon-ftp</artifactId>
             <version>1.0-beta-1</version>
         </extension>
     </extensions>
...
</project>

Paul


Francois Le Fevre wrote:
Paul,

i have made a false copy and paste : the post was
http://jira.codehaus.org/browse/WAGONSSH-44


a more precise question: where can I overwrite the version of wagon-ssh-external or wagin-ssh ?
in which pom ? in which parapgraph.

Thanks a lot.

Francois

Dear Paul,
You are right but I could find the solution.
I have founded this post :

http://jira.codehaus.org/browse/MASSEMBLY-153

"Upgrading wagon to version 1.0-beta-1 seems to have solved this issue for us. Just replace the wagon*.jar files in the maven/lib directory with the newer versions."

But it doesn't change anything!

Can you tell me where to configure in my pom which version of wagon to use ??

Thanks

Francois

Hi Francois,

I'm not sure about the password prompt, but the file permissions problem
looks like another case of this:

http://jira.codehaus.org/browse/MASSEMBLY-153

Paul


Francois Le Fevre wrote:


Dear all,

I am using maven 2 on a linux OS
I want to deploy my project.

I have 2 problems:
-password authentification
-right on the web site files

 1. Password
        * so when i execute the commande mvn site-deploy,
        * I need to enter each time my password !!, soi i need tyo put
          it in my settings.xml even if i use a id_rsh key
 2. Right on files
        * the file generated have the following rights :
              o drwx-w----   5 flefevre g_nemo      8192 Nov 16 12:00
                nemo-studio-bio
              o -rw--w----   1 flefevre g_nemo      5478 Nov 16 12:00
                jxr.html
        * i would like to have 664, and even if i put it to my
          settings.xml it doesn't work

Thanks a lot for your help.
Francois

  * My pom.xml
        o <distributionManagement>
                  <site>
                      <id>Nemo Projects Website</id>
                      <url>
scp://masaya1.genoscope.cns.fr/env/cns/pub/www/data/externe/nemo/projects/${project.artifactId}
                      </url>
                  </site>
  * My settings.xml
        o <server>
                      <id>Nemo Projects Website</id>
                      <username>flefevre</username>
<privateKey>/env/export/masaya/home/flefevre/.ssh/id_rsa</privateKey> <!--directoryPermissions>775</directoryPermissions>
                      <filePermissions>664</filePermissions-->
                  <password>XXXXXX</password>
                  </server>


--
Francois Le Fevre
Bioinformatics Engineer
Computational Systems Biology Group
Genoscope
Tél. : (+33) 1 60 87 45 83
Web : http://www.genoscope.cns.fr/bioinfo





--
Francois Le Fevre
Bioinformatics Engineer
Computational Systems Biology Group
Genoscope
Tél. : (+33) 1 60 87 45 83
Web : http://www.genoscope.cns.fr/bioinfo


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






--
Francois Le Fevre
Bioinformatics Engineer
Computational Systems Biology Group
Genoscope
Tél. : (+33) 1 60 87 45 83
Web : http://www.genoscope.cns.fr/bioinfo

Reply via email to