Are you sure it shouldn't be
!images/hello-world.jpg!
? ie is your confluence source document really one level below the images/ folder,
after being processed by Maven? Check the directory structure in the target/
folder since Maven copies resources differently.
HTH,
-Lukas
reselbob wrote:
PS:
!../images/hello-world!
Should be:
!../images/hello-world.jpg!
Sorry for the typo
reselbob wrote:
Hi:
I am trying to get an image to display using Doxia's confluence module
1.1. When I run 'mvn site', the markup text renders, not the image.
Here is the markup:
--------------
Developer Notes Here!
!../images/hello-world!
--------------
Here are my POM settings:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.0-beta-7</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-confluence</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<configuration>
<inputEncoding>UTF-8</inputEncoding>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${project.build.finalName}</finalName>
<createDependencyReducedPom>false</createDependencyReducedPom>
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer"
/>
</transformers>
<artifactSet>
<includes>
<include>org.apache.maven.doxia:doxia-sink-api</include>
<include>org.apache.maven.doxia:doxia-logging-api</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
Thanks in advance for any help!