我正在使用Doxia插件进行降价,我想在
中添加图片 <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>
然后添加资源:
<resource>
<directory>${project.basedir}/images</directory>
<targetPath>${project.build.directory}/doxia/images</targetPath>
<filtering>false</filtering>
</resource>
然后在我的章节中写道:
![Image of Test Image]("C:\Users\Xelian\Project\target\doxia\images\proxy.png")
但没有任何反应?此图片位于目标路径中。如何在降价处指定路径?