Cannot find jai-core in maven repository

2,627 views
Skip to first unread message

Sverre Moe

unread,
Apr 5, 2016, 3:16:57 AM4/5/16
to izpack-user
Plugin org.codehaus.izpack:izpack-maven-plugin:5.0.7 or one of its dependencies could not be resolved: Failure to find javax.media:jai-core:jar:1.1.3

I have looked within my Maven Nexus repository and can find javax.media:jai_core:1.1.3
Perhaps misspelled within the pom of izpack-maven-plugin?

Sverre Moe

unread,
Apr 5, 2016, 3:19:18 AM4/5/16
to izpack-user
The entry javax.media:jai_core was found, but there was no jar in my repository.

Sverre Moe

unread,
Apr 5, 2016, 3:27:55 AM4/5/16
to izpack-user
I managed to get jai-core from jboss maven repository

I also had to add the icesoft maven repository to get icepdf dependency wich izpack insisted on even though I did not use it.
It would look like the izpack-maven-plugin in Maven central is not complete as it would need additinal dependencies not in Maven central repository.

René Krell

unread,
Apr 5, 2016, 4:02:12 AM4/5/16
to izpack-user
Hi Sverre,

try mvn dependency:tree to check where a dependency come from.

The IceSoft dependency has been already discussed here, it is used for the PDFLicencePanel, IceSoft doesn't deploy their open source artifacts (even not those based on Apache 2.0 license) to Maven Central at this time. I sent them a request, but no reaction to this time.
I don't see this as a big problem at this time. If you don't use PDFLicencePanel you can exclude IceSoft artifacts and their dependencies in the POM easily.

René


Dne úterý 5. dubna 2016 9:27:55 UTC+2 Sverre Moe napsal(a):

Sverre Moe

unread,
Apr 5, 2016, 5:35:25 AM4/5/16
to izpack-user
It seems it is IcePDF which requires jai-core
[INFO] |  +- org.codehaus.izpack:izpack-compiler:jar:5.0.7:compile
[INFO] |  |  +- org.codehaus.izpack:izpack-native:jar:5.0.7:compile
[INFO] |  |  +- org.codehaus.izpack:izpack-panel:jar:5.0.7:compile
[INFO] |  |  |  +- org.apache.pdfbox:pdfbox:jar:1.8.10:compile
[INFO] |  |  |  |  +- org.apache.pdfbox:fontbox:jar:1.8.10:compile
[INFO] |  |  |  |  +- org.apache.pdfbox:jempbox:jar:1.8.10:compile
[INFO] |  |  |  |  \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] |  |  |  +- org.icepdf.os:icepdf-core:jar:6.0.1:compile
[INFO] |  |  |  |  +- javax.media:jai-core:jar:1.1.3:compile
[INFO] |  |  |  |  \- com.sun.media:jai_imageio:pom:1.1:compile

Since I only use LicencePanel I can exclude org.icesoft.so.
            <plugin>
                <groupId>org.codehaus.izpack</groupId>
                <artifactId>izpack-maven-plugin</artifactId>
                <version>5.0.7</version>
                <configuration>
                    <descriptorEncoding>UTF-8</descriptorEncoding>
                    <baseDir>${izpack.staging.dir}</baseDir>
                    <installFile>${project.build.directory}/installer/${project.artifactId}.xml</installFile>
                    <outputDirectory>${project.build.directory}</outputDirectory>
                    <finalName>${project.artifactId}-installer</finalName>
                </configuration>
                <executions>
                    <execution>
                        <phase>install</phase>
                        <goals>
                            <goal>izpack</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.codehaus.izpack</groupId>
                        <artifactId>izpack-panel</artifactId>
                        <version>5.0.7</version>
                        <exclusions>
                            <exclusion>
                                <groupId>org.icepdf.os</groupId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                </dependencies>
            </plugin>

René Krell

unread,
Apr 5, 2016, 7:24:37 AM4/5/16
to izpack-user
Ok, this is the right way.
IcePDF is some kind of a "hungry" framework. But the PDFLicencePanel is cool, though.


Dne úterý 5. dubna 2016 11:35:25 UTC+2 Sverre Moe napsal(a):
Reply all
Reply to author
Forward
0 new messages