You're a star, Lukas! That's solved it!

I never would have guessed that - I wonder why I had the pluginManagement in
the first place?

thanks very much,
Allyson

On Feb 10, 2008 6:55 PM, Lukas Theussl <[EMAIL PROTECTED]> wrote:

> Remove the <pluginManagement>, just
>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.doxia</groupId>
>         <artifactId>doxia-maven-plugin</artifactId>
>         <version>1.0-alpha-10</version>
>         ...
>       </plugin>
>     </plugins>
>   </build>
>
> HTH,
> -Lukas
>
>
> Allyson Lister wrote:
> > Hi all,
> >
> > I'm having a little problem getting my maven project to build a doxia
> book.
> > I've searched on the nabble version of this mailing list, but haven't
> found
> > a post similar to this, so here goes.
> >
> > I'm using maven 2.0.7 with java 1.5. I'm running on ubuntu gutsy.
> >
> > To simplify the explanation a bit, I have generated an empty project
> using
> > the following command:
> >
> > mvn archetype:create -DgroupId=testapp -DartifactId=testapp
> >
> > With this empty project, I added the following book at the top-level of
> the
> > project in the src/books directory:
> >
> >  $ l src/books
> > total 8
> > drwxr-xr-x 2 user user 4096 2008-02-10 17:50 bookname/
> > -rw-r--r-- 1 user user 1273 2008-02-10 17:50 bookname.xml
> >
> > And I've added a bit to the default (generated) pom.xml. The full
> pom.xml is
> > shown below.
> >
> > <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>testapp</groupId>
> >     <artifactId>testapp</artifactId>
> >     <packaging>jar</packaging>
> >     <version>1.0-SNAPSHOT</version>
> >     <name>testapp</name>
> >     <url>http://maven.apache.org</url>
> >     <dependencies>
> >         <dependency>
> >             <groupId>junit</groupId>
> >             <artifactId>junit</artifactId>
> >             <version>3.8.1</version>
> >             <scope>test</scope>
> >         </dependency>
> >     </dependencies>
> >     <build>
> >         <!--<defaultGoal>install</defaultGoal>-->
> >         <pluginManagement>
> >             <plugins>
> >                 <plugin>
> >                     <groupId>org.apache.maven.doxia</groupId>
> >                     <artifactId>doxia-maven-plugin</artifactId>
> >                     <version>1.0-alpha-10</version>
> >                     <executions>
> >                         <execution>
> >                             <phase>pre-site</phase>
> >                             <goals>
> >                                 <goal>render-books</goal>
> >                             </goals>
> >                         </execution>
> >                     </executions>
> >                     <configuration>
> >                         <books>
> >                             <book>
> >
> <directory>src/books/fuge-xsd</directory>
> >                                 <descriptor>src/books/fuge-xsd.xml
> > </descriptor>
> >                                 <formats>
> >                                     <format>
> >                                         <id>latex</id>
> >                                     </format>
> >                                     <format>
> >                                         <id>xdoc</id>
> >                                     </format>
> >                                     <format>
> >                                         <id>pdf</id>
> >                                     </format>
> >                                     <format>
> >                                         <id>rtf</id>
> >                                     </format>
> >                                 </formats>
> >                             </book>
> >                         </books>
> >                     </configuration>
> >                 </plugin>
> >             </plugins>
> >         </pluginManagement>
> >     </build>
> > </project>
> >
> >
> > When I run
> >
> > mvn doxia:render-books, I get the following error:
> >
> >  $ mvn doxia:render-books
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'doxia'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] The plugin 'org.apache.maven.plugins:maven-doxia-plugin' 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: Sun Feb 10 17:50:56 GMT 2008
> > [INFO] Final Memory: 1M/12M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> > You'll notice that maven is looking for "maven-doxia-plugin" as part of
> "
> > org.apache.maven.plugins", when doxia (as is stated in the pom.xml) is
> in
> > the doxia-maven-plugin as part of org.apache.maven.doxia.
> >
> > Can anyone help me please by explaining this behavior, and perhaps
> > suggesting a fix? I've been looking, but haven't found anyone with a
> similar
> > problem (or maybe it's just that my google search term skills aren't
> very
> > good)
> >
> > Thanks very much!
> >
> > Allyson
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to