Aspose for Maven 使用

https://blog.aspose.com/2014/08/12/aspose-for-maven-aspose-cloud-maven-repository/

https://marketplace.eclipse.org/content/aspose-maven-project-wizard

 

上述配置的URL的地址是失效的!!!即:http://maven.aspose.com/repository/ext-release-local/是错误地址。

正确地址:http://maven.aspose.com/repository/repo/

 

 

Maven Settings

http://maven.aspose.com/repository/webapp/mavensettings.html?5

经过验证,可用的配置pom.xml:

    <mirror>
        <id>offical</id>  
        <name>Maven Official Repository</name>  
        <url>http://repo1.maven.org/maven2</url>  
        <mirrorOf>central</mirrorOf>  
    </mirror>
    <mirror>
        <id>jboss</id>  
        <name>Jboss Repository</name>  
        <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>  
        <mirrorOf>central</mirrorOf>  
    </mirror>
    <mirror>
      <id>AsposeJavaAPI</id>
      <name>Aspose Java API</name>
      <url>http://maven.aspose.com/repository/repo</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
    <mirror>
        <id>mvn</id>
        <name>Mvn Repository</name>  
        <url>https://mvnrepository.com/</url>
        <mirrorOf>central</mirrorOf>  
    </mirror>

 

上述方案,如果对于要修改aspose-email-16.10.0-jdk16.jar里的方式不奏效,可以采用自己上传jar到本地nexus repository的方式:

<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>fakepath</groupId>
  <artifactId>aspose-email</artifactId>
  <version>16.10.0</version>
  <description>POM was created by Sonatype Nexus</description>
</project>

 

posted @ 2018-03-06 14:34  任国强  阅读(8724)  评论(0编辑  收藏  举报