Hi,

I'm trying to get the Maven Site plugin running.  I'm interested in trying
out some of the new features that have been added since 2.0-beta4, but I'm
having some difficulty.    I'm running Maven 2.0.4 on Linux with Java 1.4.2. 
I think the crux of the problem is that I'm not installing or referring to
the Maven skins properly.  Any help is appreciated!

Here's what I've done:
1. Checked out the Maven Site Plugin from Subversion (r394712):
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin

2. Run 'mvn install'.  I successfully install the 2.0-SNAPSHOT jar.  I can
successfully query the version using 'mvn help:describe' and it returns
2.0-SNAPSHOT as expected.

3. I used the maven site archetype to create a project.  I edited the
site.xml and placed:
  <skin>
    <groupId>org.apache.maven.skins</groupId>
    <artifactId>maven-default-skin</artifactId>
    <version>1.0-SNAPSHOT</version>
  </skin>
inbetween the <bannerRight> element and the <body> element, per
http://jira.codehaus.org/browse/MSITE-48

4. I checked out the maven skins (r394708) from
https://svn.apache.org/repos/asf/maven/skins/trunk, and performed a 'mvn
install':
Installing /home/esm/src/maven-skins/pom.xml to
/home/esm/.m2/repository/org/apache/maven/skins/maven-skins/2/maven-skins-2.pom
Installing
/home/esm/src/maven-skins/maven-default-skin/target/maven-default-skin-1.0-SNAPSHOT.jar
to
/home/esm/.m2/repository/org/apache/maven/skins/maven-default-skin/1.0-SNAPSHOT/maven-default-skin-1.0-SNAPSHOT.jar
Installing
/home/esm/src/maven-skins/maven-classic-skin/target/maven-classic-skin-1.0-SNAPSHOT.jar
to
/home/esm/.m2/repository/org/apache/maven/skins/maven-classic-skin/1.0-SNAPSHOT/maven-classic-skin-1.0-SNAPSHOT.jar
Installing
/home/esm/src/maven-skins/maven-stylus-skin/target/maven-stylus-skin-1.0-SNAPSHOT.jar
to
/home/esm/.m2/repository/org/apache/maven/skins/maven-stylus-skin/1.0-SNAPSHOT/maven-stylus-skin-1.0-SNAPSHOT.jar

5. BUT I am unable to run a 'mvn help:describe
-DgroupId=org.apache.maven.skins -DartifactId=maven-default-skin' -- I
receive the error message: The plugin
'org.apache.maven.skins:maven-default-skin' does not exist or no valid
version could be found.  For example:
[EMAIL PROTECTED] maven-skins]$ mvn help:describe 
-DgroupId=org.apache.maven.skins
-DartifactId=maven-default-skin
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Maven Skins
[INFO]   Maven Default Skin
[INFO]   Maven Classic Skin
[INFO]   Maven Site Skin
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Skins
[INFO]    task-segment: [help:describe] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [help:describe]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.skins:maven-default-skin' does not exist
or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Apr 17 13:34:20 EDT 2006
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------

6.  I attempted to use the new 2.0-SNAPSHOT site plugin anyway and here's
the output:
[EMAIL PROTECTED] site-test]$ mvn site
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven
[INFO]    task-segment: [site]
[INFO]
----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [site:site]
[INFO] Generate "Continuous Integration" report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate "Dependencies" report.
[INFO] Generate "Issue Tracking" report.
[INFO] Generate "Project License" report.
[INFO] Generate "Mailing Lists" report.
[INFO] Generate "Source Repository" report.
[INFO] Generate "Project Team" report.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The skin does not exist: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.skins
-DartifactId=maven-default-skin \
        -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file


  org.apache.maven.skins:maven-default-skin:jar:RELEASE


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Apr 17 13:36:15 EDT 2006
[INFO] Final Memory: 6M/13M
[INFO]
------------------------------------------------------------------------


Here is my pom.xml and site.xml:

pom.xml
======
<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>edu.jhu.library.site</groupId>
  <artifactId>site-test</artifactId>
  <version>1.0-SNAPSHOT</version>
  <name>Maven</name>
  <url>http://maven.apache.org/maven2</url>
  <inceptionYear>2001</inceptionYear>

  <packaging>pom</packaging>

  <distributionManagement>
    <site>
      <id>website</id>
      <url>scp://webhost.company.com/www/website</url>
    </site>
  </distributionManagement>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <configuration>
          <locales>en,fr</locales>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

site.xml
======
<project name="Maven">
  <bannerLeft>
    <name>Maven</name>
    <src>http://maven.apache.org/images/apache-maven-project.png</src>
    <href>http://maven.apache.org/</href>
  </bannerLeft>
  <bannerRight>
    <src>http://maven.apache.org/images/maven-small.gif</src>
  </bannerRight>

  <skin>
    <groupId>org.apache.maven.skins</groupId>
    <artifactId>maven-default-skin</artifactId>
    <version>1.0-SNAPSHOT</version>
  </skin>

<body>
    <breadcrumbs>
      <item name="Library Homepage" href="http://www.library.jhu.edu"/>
    </breadcrumbs>
    <links>
      <item name="Apache" href="http://www.apache.org/"; />
      <item name="Maven 1.0" href="http://maven.apache.org/"/>
      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
    </links>

    <menu name="Maven 2.0">
      <item name="APT Format" href="format.html"/>
      <item name="FAQ" href="faq.html"/>
      <item name="Xdoc Example" href="xdoc.html"/>
    </menu>
  </body>
</project>


--
View this message in context: 
http://www.nabble.com/Running-maven-site-plugin-from-svn-t1462915.html#a3953978
Sent from the Maven - Dev forum at Nabble.com.


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

Reply via email to