Uploaded image for project: 'Maven Doxia Tools'
  1. Maven Doxia Tools
  2. DOXIATOOLS-21

Problem to create a book with Maven 3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • doxia-book-renderer-1.2
    • None
    • Doxia Book Renderer
    • None
    • Maven 3

    Description

      I had a project configured for Maven 2 and everything worked perfectly. Today, I was trying to update it to Maven 3 and all plugin to newer versions. However, I found that I cannot use doxia-maven-plugin 1.2 to create the book.

      After executing

      mvn doxia:render-books

      I got

      [ERROR] Failed to execute goal org.apache.maven.doxia:doxia-maven-plugin:1.2:render-books (default-cli) on project user-site: Execution default-cli of goal org.apache.maven.doxia:doxia-maven-plugin:1.2:render-books failed: Unable to load the mojo 'render-books' in the plugin 'org.apache.maven.doxia:doxia-maven-plugin:1.2'. A required class is missing: org/codehaus/plexus/util/interpolation/ValueSource
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.apache.maven.doxia:doxia-maven-plugin:1.2
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/C:/Users/Andres/.m2/repository/org/apache/maven/doxia/doxia-maven-plugin/1.2/doxia-maven-plugin-1.2.jar
      [ERROR] urls[1] = file:/C:/Users/Andres/.m2/repository/org/apache/maven/doxia/doxia-book/1.2/doxia-book-1.2.jar
      ...
      [ERROR] urls[24] = file:/C:/Users/Andres/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.4/maven-reporting-api-2.0.4.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR]
      [ERROR] -----------------------------------------------------: org.codehaus.plexus.util.interpolation.ValueSource
      

      My pom.xml is

      <project>
      ...
        <!-- Build Settings -->
        <build>
          <plugins>
            <!-- mvn doxia:render-books -->
            <plugin>
              <groupId>org.apache.maven.doxia</groupId>
              <artifactId>doxia-maven-plugin</artifactId>
              <version>1.2</version>
              <executions>
                <execution>
                  <phase>pre-site</phase>
                  <goals>
                    <goal>render-books</goal>
                  </goals>
                </execution>
              </executions>
              <configuration>
                <books>
                  <book>
                    <directory>src/site/apt</directory>
                    <descriptor>src/books/usersManual.xml</descriptor>
                    <formats>
                      <format>
                        <id>pdf</id>
                      </format>
                    </formats>
                  </book>
                  <book>
                    <directory>src/site/es/apt</directory>
                    <descriptor>src/books/usersManual_es.xml</descriptor>
                    <formats>
                      <format>
                        <id>pdf</id>
                      </format>
                    </formats>
                  </book>
                </books>
              </configuration>
            </plugin>
      ...
          </plugins>
        </build>
      </project>
      

      What is the problem?
      If I change the Doxia version to 1.1, it works normally.

      Attachments

        1. pom.xml
          7 kB
          Andres Gomez Casanova

        Activity

          People

            Unassigned Unassigned
            angoca Andres Gomez Casanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: