Enable add-ons / Import dependencies

HI,

I have followed the instructions about creating a macro (Helloworld) for confluence and everything works fine until now. After that, i decided to import these dependencies (Outlook dependencies):

        <dependency>
            <groupId>com.microsoft.ews-java-api</groupId>
            <artifactId>ews-java-api</artifactId>
            <version>2.0</version>
            <scope>compile</scope> 
        </dependency>
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
            <version>1.1.1</version>
            <scope>compile</scope> 
        </dependency>

but these dependencies keep disabling my add-on and when i try to re-enable i get this error “This add-on failed to enable. Refer to the logs for more information”.

What do the logs say? In particular the target/confluence-LATEST.log ?

Hi,

Thanks for the reply. I managed to solve my problem by adding this line:

*;resolution:=optional

in the pom file.

1 Like