POM File Added to Aspose.Words for Java 19.12 Maven Repository Package

Hi,

It seems like the aspose-words 19.12 version does not contain the pom.xml file in the maven repository:
https://repository-stage.aspose.com/words/

Can you please add this?

@European_Commission,

Thanks for reporting this problem to us. We have logged your requirement in our issue tracking system. Your ticket number is WORDSJAVA-2278. We will keep you updated on the status of the linked issue and apologize for your inconvenience.

In the meantime, you can get POM file from previous releases and update accordingly. For example, we had added automation code in the Main Maven POM file. When you run this POM file, it will automatically choose the correct JDK version and also download the plugin (if needed) for advanced HarfBuzz Shaper based Typography (note that this only works for windows).

You may please also try the following POM.XML file:

    <?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>https://repository.aspose.com/repo/</url>
            </repository>
        </repositories>
    <dependencies>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>19.12</version>
            <classifier>jdk17</classifier>
        </dependency>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>19.12</version>
            <classifier>javadoc</classifier>
        </dependency>

        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>19.12</version>
            <classifier>shaping-harfbuzz-plugin</classifier>
        </dependency>
    </dependencies>
</project>

Hope, this helps.

Is this something that will be resolved soon? We are trying to investigate an issue and are hoping 9.12 will help, but we cannot test it without this being resolved.

@dgulick,

We are working on fixing this problem. You will be notified via this thread as soon as this issue will be resolved. Sorry for any inconvenience.

We also need the 19.12 aspose-words version. The pom file is already on the maven repository now, but we still have problems because the name of the following jar is not correct with the name expected in the pom file: Aspose.Words.Shaping.HarfBuzz-19.12.jar. Expected filename: aspose-words-19.12-shaping-harfbuzz-plugin.jar

1 Like

Same here.
Workaround: use 19.11

@AnnBaert,

Yes, we have added a POM file to the Aspose.Words for Java 19.12 Maven package now. However, you can add the following dependency snippets in your existing POM file to be able to use Aspose.Words.Shaping.HarfBuzz-19.12.jar in your Java application:

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

<repositories>
    <repository>
        <id>AsposeJavaAPI</id>
        <name>Aspose Java API</name>
        <url>https://repository.aspose.com/repo/</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-words</artifactId>
    <version>19.12</version>
    <classifier>shaping-harfbuzz-plugin</classifier>
</dependency>

Hope, this helps.

The plugin is named wrongly:
https://repository.aspose.com/words/19-2/
looking at the pom:

<dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>19.12</version>
            <classifier>shaping-harfbuzz-plugin</classifier>
        </dependency>

it should be:
aspose-words-19.12-shaping-harfbuzz-plugin.jar

@European_Commission,

We are checking this problem further on our end and will get back to you soon.

@European_Commission,

It is to update you that we have now fixed the problem WORDSJAVA-2278. The test Maven-dependent project on our end works fine with ‘pom’ type dependency inside pom.xml:

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-words</artifactId>
    <version>19.12</version>
    <type>pom</type>
</dependency>

Using the ‘pom’ type, Maven will load all dependencies i.e.: jdk16 or jdk17.jar (depending on local platform), Harfbazz plugin and Javadoc etc. Hoe, this helps.

The issues you have found earlier (filed as WORDSJAVA-2278) have been fixed in this Aspose.Words for .NET 20.1 update and this Aspose.Words for Java 20.1 update.