Hi Xavier,
To use the packager plugin in m2 do the following:
1) Add the xwiki remote repository either to your settings or in your
pom.xml file:
  <repositories>
    <repository>
      <id>xwiki</id>
      <name>XWiki Maven2 Remote Repository</name>
      <url>http://maven.xwiki.org</url>
      <releases>
        <enabled>true</enabled>
      </releases>
    </repository>
  </repositories>
2) Then follow the sample located at 
http://tinyurl.com/yd22mg
This examples uses default locations but you can control the parameters
using the following plugin configuration elements:
For import:
    /**
     * @parameter default-value = "xwiki"
     * @see
com.xpn.xwiki.tool.backup.Importer#importDocuments(java.io.File,String,java.
io.File)
     */
    private String databaseName;
    /**
     * @parameter default-value =
"${basedir}/src/main/packager/hibernate.cfg.xml"
     * @see
com.xpn.xwiki.tool.backup.Importer#importDocuments(java.io.File,String,java.
io.File)
     */
    private File hibernateConfig;
    /**
     * @parameter default-value = "${basedir}/src/main/documents"
     * @see
com.xpn.xwiki.tool.backup.Importer#importDocuments(java.io.File,String,java.
io.File)
     */
    private File sourceDirectory;
Here's the javadoc for the parameters:
     * @param sourceDirectory the directory where the package.xml file is
located and where the
     *        documents to import are located
     * @param databaseName some database name (TODO: find out what this name
is really)
     * @param hibernateConfig the Hibernate config fill containing the
database definition (JDBC
     *        driver, username and password, etc)
And for export:
    /**
     * @parameter default-value = "xwiki"
     * @see com.xpn.xwiki.tool.backup.Exporter#exportDocuments(java.io.File,
String, java.io.File)
     */
    private String databaseName;
    /**
     * @parameter default-value =
"${basedir}/src/main/packager/hibernate.cfg.xml"
     * @see com.xpn.xwiki.tool.backup.Exporter#exportDocuments(java.io.File,
String, java.io.File)
     */
    private File hibernateConfig;
    /**
     * @parameter default-value = "${project.build.directory}/export"
     * @see com.xpn.xwiki.tool.backup.Exporter#exportDocuments(java.io.File,
String, java.io.File)
     */
    private File exportDirectory;
Here's the javadoc for the parameters:
     * @param exportDirectory the directory where to export the documents
     * @param databaseName some database name (TODO: find out what this name
is really)
     * @param hibernateConfig the Hibernate config fill containing the
database definition (JDBC
     *        driver, username and password, etc)
3) Run mvn xwiki-packager:import  and xwiki-packager:export for import and
export
Sorry for not having a better doc for now. This will come once I've
reorganized the site... I've created a jira issue for this in order not to
forget it:
http://jira.xwiki.org/jira/browse/XWIKI-513
Thanks
-Vincent
  -----Original Message-----
 From: Vincent Massol [mailto:vincent@massol.net]
 Sent: jeudi 7 décembre 2006 00:32
 To: xwiki-users(a)objectweb.org
 Cc: xwarzee(a)acm.org
 Subject: RE: [xwiki-users] Stable backup command
  -----Original Message-----
 From: Xavier Warzee [mailto:xwarzee@gmail.com]
 Sent: mercredi 6 décembre 2006 22:32
 To: xwiki-users(a)objectweb.org
 Subject: [xwiki-users] Stable backup command
 Hi,
 I'd like to know if there is a well documented command to backup a
 XWiki avoiding to work directly with database commands :-)
 Maybe a Maven2 plugin ? ;-) 
 Hehe... It's good you ask! :-)
 It just happens that I've created a Maven2 plugin last week. You can
 find the source here:
 
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/xwiki/xwiki-
 tools/package
 r/
 I'll publish it tomorrow in XWiki's remote repo so that you can use it.
 Thanks
 -Vincent
  
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo!
Questions/Réponses
http://fr.answers.yahoo.com