Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use aspectJ or spring aop in jira server plugin?

Ahmet Yilmaz February 2, 2022

Hi,

I have some problems when I want to use aspectj library. When I try to add aop dependencies as follows in my project. Maven is said that 

"Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.2.0:validate-banned-dependencies".

Is there a way applying aop with AspectJ in jira server plugin?

By the way how can I can see provided dependecies from jira-server project?

Because When I specify scope of dependencies as provided, they are missing.

Added Dependencies ;

<dependency>
   <groupId>org.aspectj</groupId>
   <artifactId>aspectjrt</artifactId>
    <version>1.8.7</version>
</dependency>

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>aspectj-maven-plugin</artifactId>
    <executions>
      <execution>
      <goals>
         <goal>compile</goal>
     </goals>
    <configuration>
        <complianceLevel>1.8</complianceLevel>
        <source>1.8</source>
        <target>1.8</target>
    </configuration>
    </execution>
    </executions>
</plugin>

 

1 answer

1 accepted

0 votes
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
February 6, 2022

Hi @Ahmet Yilmaz 

Welcome to the community.

As you can see from the error message it is listed as one of the banned dependencies. 

The easiest way to see which libraries can be used is documented on OSGi Browser page.

I used to check https://packages.atlassian.com/mvn/maven-atlassian-external/ for the external dependencies as well.

Hope it was helpful.

Tuncay

Ahmet Yilmaz February 21, 2022

Thank you for your clear explanation, Tuncay. I have not tried to add any implementation but this information is very useful for me. I can see there is an aspectjweaver jar in the dependencies. I think I can use the dependency.

Tuncay Senturk _Snapbytes_
Community Champion
February 22, 2022

Thanks for informing @Ahmet Yilmaz 

Suggest an answer

Log in or Sign up to answer