Using source code from another folder

CelesteCS March 21, 2021

Hello,

I’ve some troubles with specifying additional source code folders for compiling Confluence plug-in.

Hare is my folder structure:

  • Root
    • my-project-1
      • src
        • main
          • java
            • userful-folder
              • **/*.java
            • not-useful-folder
              • **/*.java
    • my-project-2
      • src
        • main
          • java
            • **/*.java

I need to compile my-project-2, where additionally to its own source folders the “my-project-1/src/main/java/useful-folder” folder will be used to be compiled as well.

So, I need one of the following issues to be resolved for this:

  1. Projects are in eclipse and “useful-folder” is specified in “<linkedResources>” section of “.project” file, but on some reason this option stopped working with atlas-package or atlas-build at some point.
  2. I’ve seen some information that I can specify additional include paths in “pom.xml” file with <includes> block, but all the examples did not work. So, may be somebody have used such configuration successfully for building Atlassian plug-ins and could share it.

Thanks!

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events