I have a request for templates in a confluence space to generate labels based on the parent page.
Example: the parent page is e-commerce. When a user selects a particular template we want that template to automatically populate with the label "e-commerce".
The templates are used on multiple pages in the space and on other spaces.
The user has attempted to use Atlassian Spring Scanner (
https://bitbucket.org/atlassian/atlassian-spring-scanner/src/master/) to write code to accomplish this, however, when he uses the example plugin he get the following errors:
mac-xxxxxxxxx-l:atlassian-atlassian-spring-scanner-67506429d402 projdirectory$ mvn -U clean install
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/pom/public-pom/5.0.24/public-pom-5.0.24.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.atlassian.plugin:atlassian-spring-scanner-parent:2.1.9-SNAPSHOT: Could not find artifact com.atlassian.pom:public-pom:pom:5.0.24 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 3, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.atlassian.plugin:atlassian-spring-scanner-parent:2.1.9-SNAPSHOT (/Users/nagchirala/Desktop/Sandbox/confluence/atlassian-atlassian-spring-scanner-67506429d402/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.atlassian.plugin:atlassian-spring-scanner-parent:2.1.9-SNAPSHOT: Could not find artifact com.atlassian.pom:public-pom:pom:5.0.24 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Does anyone have any suggestions on how to automate the label process or help with these errors?
Thank you