Hi All,
I've followed the "Write a simple space blueprint tutorial" and for whatever reason it won't accept my "Title" input as the page Title. It always comes back with inputting the Title of the Space I provided in the dialog and results in this "Test2 confluence.blueprints.space.example.home.title.suffix"
-- Edited.. Added POM and plugin.xml
POM.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.plugins.tutorial.confluence.spacebp</groupId>
<artifactId>spacebp</artifactId>
<version>1.0.3</version>
<organization>
<name>Nick Martin</name>
<url>url</url>
</organization>
<name>spacebp</name>
<description>This is the Space Creator tool, to create Account spaces on Confluence.</description>
<packaging>atlassian-plugin</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.atlassian.confluence</groupId>
<artifactId>confluence</artifactId>
<version>${confluence.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-annotation</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-runtime</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
<scope>provided</scope>
</dependency>
<!-- WIRED TEST RUNNER DEPENDENCIES -->
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-osgi-testrunner</artifactId>
<version>${plugin.testrunner.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2-atlassian-1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-confluence-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<productVersion>${confluence.version}</productVersion>
<productDataVersion>${confluence.data.version}</productDataVersion>
<enableQuickReload>true</enableQuickReload>
<enableFastdev>false</enableFastdev>
<!-- See here for an explanation of default instructions: -->
<!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
<instructions>
<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
<!-- Add package to export here -->
<Export-Package>
com.example.plugins.tutorial.confluence.spacebp.api,
</Export-Package>
<!-- Add package import here -->
<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional",
*
</Import-Package>
<!-- Ensure plugin is spring powered -->
<Spring-Context>*</Spring-Context>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<executions>
<execution>
<goals>
<goal>atlassian-spring-scanner</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
<configuration>
<scannedDependencies>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-external-jar</artifactId>
</dependency>
</scannedDependencies>
<verbose>false</verbose>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<confluence.version>6.6.0</confluence.version>
<confluence.data.version>6.6.0</confluence.data.version>
<amps.version>6.3.13</amps.version>
<plugin.testrunner.version>1.2.3</plugin.testrunner.version>
<atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>
<!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. -->
<atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
SOY File
<fieldset> <div class="field-group"> <label for="space-homepage-heading">{getText('confluence.blueprints.space.example.dialog.label.heading')}</label> <textarea id="space-homepage-heading" class="textarea long-field" rows="3" type="text" name="spaceHomepageHeading" placeholder="{getText('confluence.blueprints.space.example.dialog.label.heading.placeholder')}"></textarea> </div> </fieldset>
JS File
<fieldset>
<div class="field-group">
<label for="space-homepage-heading">{getText('confluence.blueprints.space.example.dialog.label.heading')}</label>
<textarea id="space-homepage-heading" class="textarea long-field" rows="3" type="text" name="spaceHomepageHeading"
placeholder="{getText('confluence.blueprints.space.example.dialog.label.heading.placeholder')}"></textarea>
</div>
</fieldset>
plugin.xml
<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}" />
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
</plugin-info>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="spacebp"/>
<!-- add our web resources -->
<web-resource key="spacebp-resources" name="spacebp Web Resources">
<transformation extension="soy">
<transformer key="soyTransformer">
<functions>com.atlassian.confluence.plugins.soy:soy-core-functions</functions>
</transformer>
<transformation extension="js">
<transformer key="jsI18n"/>
</transformation>
</transformation>
<resource type="download" name="spacebp.css" location="/css/spacebp.css"/>
<resource type="download" name="spacebp.js" location="/js/spacebp.js"/>
<resource type="download" name="dialog-page.js" location="/soy/dialog-page.soy"/>
<resource type="download" name="images/" location="/images"/>
<dependency>com.atlassian.confluence.plugins.confluence-create-content-plugin:space-blueprints</dependency> <!-- This dependency is not required for confluence 5.4+ -->
<context>atl.general</context>
<context>atl.admin</context>
</web-resource>
<web-item key='example-space-blueprint-item' i18n-name-key='confluence.blueprints.space.example.name'
section='system.create.space.dialog/content'>
<description key='confluence.blueprints.space.example.description'/>
<param name='blueprintKey' value='example-space-blueprint'/>
</web-item>
<content-template key="example-space-homepage-template" i18n-name-key="confluence.blueprints.space.example.homepage.name">
<description key="confluence.blueprints.space.example.homepage.desc"/>
<resource name="template" type="download" location="/xml/example-space-home.xml"/>
</content-template>
<content-template key="example-space-task-reports-template" i18n-name-key="confluence.blueprints.space.sp.task-reports.name">
<description key="confluence.blueprints.space.example.homepage.desc"/>
<resource name="template" type="download" location="/xml/example-space-task-reports-template.xml"/>
</content-template>
<content-template key="example-space-issues-template" i18n-name-key="confluence.blueprints.space.sp.issues.name">
<description key="confluence.blueprints.space.sp.meeting-notes.desc"/>
<resource name="template" type="download" location="xml/example-space-issues-template.xml"/>
</content-template>
<content-template key="example-space-meeting-notes-template" i18n-name-key="confluence.blueprints.space.sp.meeting-notes.name">
<description key="confluence.blueprints.space.sp.product-requirements.desc"/>
<resource name="template" type="download" location="xml/example-space-meeting-notes-template.xml"/>
</content-template>
<content-template key="example-space-company-info-template" i18n-name-key="confluence.blueprints.space.sp.company-info.name">
<description key="confluence.blueprints.space.sp.file-lists.desc"/>
<resource name="template" type="download" location="xml/example-space-company-info-template.xml"/>
</content-template>
<content-template key="example-space-documents-template" i18n-name-key="confluence.blueprints.space.sp.documents.name">
<description key="confluence.blueprints.space.sp.decisions.desc"/>
<resource name="template" type="download" location="xml/example-space-documents-template.xml"/>
</content-template>
<content-template key="example-space-projects-template" i18n-name-key="confluence.blueprints.space.sp.projects.name">
<description key="confluence.blueprints.space.sp.retrospectives.desc"/>
<resource name="template" type="download" location="xml/example-space-projects-template.xml"/>
</content-template>
<space-blueprint key="example-space-blueprint" i18n-name-key="confluence.blueprints.space.example.name">
<content-template ref="example-space-homepage-template"/>
<content-template ref="example-space-homepage-template">
<content-template ref="example-space-issues-template"/>
<content-template ref="example-space-meeting-notes-template"/>
<content-template ref="example-space-company-info-template"/>
<content-template ref="example-space-documents-template"/>
<content-template ref="example-space-projects-template"/>
<content-template ref="example-space-task-reports-template"/>
</content-template>
<dialog-wizard key="example-space-blueprint-wizard">
<dialog-page id="exampleSpaceId"
template-key="Confluence.SpaceBlueprints.Example.dialogForm"
title-key="confluence.blueprints.space.example.dialog.create.title"
description-header-key="confluence.blueprints.space.example.dialog.create.heading"
description-content-key="confluence.blueprints.space.example.dialog.create.description"
last="true"/>
</dialog-wizard>
</space-blueprint>
</atlassian-plugin>