How to add picture in Doxia for Markup?

242 views Asked by At

I am using Doxia plugin for markdown and I want to add pictures in

            <plugin>
                <groupId>org.apache.maven.doxia</groupId>
                <artifactId>doxia-maven-plugin</artifactId>
                <version>1.1.4</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.doxia</groupId>
                        <artifactId>doxia-module-markdown</artifactId>
                        <version>1.5</version>
                        <type>jar</type>
                        <scope>compile</scope>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>render-books</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <generatedDocs>${project.build.directory}/doxia</generatedDocs>
                    <books>
                        <book>
                            <directory>src/main/resources/UserGuide/markdown</directory>
                            <descriptor>src/main/resources/UserGuide/markdown/book.xml</descriptor>
                            <formats>
                                <format>
                                    <id>pdf</id>
                                </format>
                            </formats>
                        </book>
                    </books>
                </configuration>
            </plugin>

Then add resources:

       <resource>
            <directory>${project.basedir}/images</directory>
            <targetPath>${project.build.directory}/doxia/images</targetPath>
            <filtering>false</filtering>
        </resource>

Then in my chapter I wrote:

![Image of Test Image]("C:\Users\Xelian\Project\target\doxia\images\proxy.png")

But nothing happens? This picture is in the target path. How to specify the path in the markdown?

0

There are 0 answers