Free Support Forum - aspose.com

Problem with the Maven repository

Hi Aspose-support,

It seems like I have a problem with the Maven repository for Aspose Words.

I am using the following in my pom.xml:

<repositories>
	<repository>
		<id>AsposeJavaAPI</id>
		<name>Aspose Java API</name>
		<url>http://maven.aspose.com/artifactory/simple/ext-release-local/</url>
	</repository>
</repositories>
<dependencies>
	<dependency>
		<groupId>com.aspose</groupId>
		<artifactId>aspose-words</artifactId>
		<version>18.10</version>
		<classifier>jdk16</classifier>
	</dependency>
</dependencies>

Eclipse can find the library and is “successfully downloading” it.
But the size of the aspose-words-18.10-jdk16.jar is only 3KB and therefore my project of course does not work.

Is there anything I am doing wrong here?
Is the maven repository maybe wrong?

Btw I tried to download any other library from the normal maven repository like log4j which is working fine.

Thank you

image.png (8.8 KB)

@kai20511,

Please try again the following POM file. Hope, this helps:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.aspose</groupId>
    <artifactId>AsposeWordsMavenTest</artifactId>
    <version>1.0-SNAPSHOT</version>

    <repositories>
        <repository>
            <id>AsposeJavaAPI</id>
            <name>Aspose Java API</name>
            <url>http://artifact.aspose.com/repo/</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>18.10</version>
            <classifier>jdk16</classifier>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>18.10</version>
            <classifier>javadoc</classifier>
        </dependency>
    </dependencies>
</project>

Thanks @awais.hafeez

Working fine now!