I recently had trouble importing the com.sun.media.jai imaging library into appfuse :
The import com.sun.media.jai cannot be resolved
To add a dependency in your pom.xml, first add the new repository (may not be strictly necessary if the library is already in the default appfuse repositories) :
<repositories>
......
<repository>
<id>com.sun.media</id>
<url>http://repository.jboss.com/maven2</url>
</repository>
......
</repositories>
Next, add the dependency version :
<properties>
......
<jai.version>1.1.3</jai.version>
......
<properties>
And finally, add the dependency itself :
<dependencies>
......
<dependency>
<groupId>com.sun.media</groupId>
<artifactId>jai-codec</artifactId>
<version>${jai.version}</version>
</dependency>
......
</dependencies>