Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Import External Library

Steve Vogel August 25, 2014

Hi

I would like to use the EWS Java API (from http://code.msdn.microsoft.com/Exchange-EWS-Java-API-12-1a5a1143) in a confluence macro.I run this command:

atlas-mvn install:install-file -Dfile="Path/EWSJavaAPI_1.2.jar" -DgroupId=microsoft.exchange.webservices -DartifactId=ews -Dversion=1.0 -Dpackaging=jar

And configured the pom.xml with this:

<dependency>
<groupId>microsoft.exchange.webservices</groupId>
<artifactId>ews</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>

But I still get this error:

Error rendering macro 'confluence-macro' : microsoft/exchange/webservices/data/ExchangeService

On the commandline where the instance is running of the confluence there I see:

[INFO] [talledLocalContainer] Caused by: java.lang.ClassNotFoundException: microsoft.exchange.webservices.data.ExchangeService

What do I wrong or how can I solve this?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Steve Vogel August 28, 2014

I changed the scope from "provided" to "compile" and now it works.

0 votes
Deleted user October 12, 2018

@Steve Vogel I followed your link above and the page said "This item is not yet published.". Do you have another source?

TAGS
AUG Leaders

Atlassian Community Events