Confluence Blueprints: Creating Multiple Blueprints within Single Plugin
Asked by Gavin Fowler:

I've been following the excellent Atlassian guides "create a blueprint plugin" (simple, intermediate, advanced) and I now have a plugin that contains one fully functional blueprint.:)

My question is: are there there any examples/resources out there (or community guidance) that outlines how I can manipulate my plugin so it houses more than one blueprint (as is done with Atlassian's "Blueprints for Business Teams Pack"). Like i mentioned i have the basics for single blueprint, so just need to understand how to organise the contents / references to now support multiple blueprints within a single plugin.

All feedback/suggestions welcomed (apologies if this is a noob question, this is my first time at coding for Atlassian products / Java).

Many thanks!

Gavin.


Answers:
author: Sherif Mansour
body: Hi Gavin,

This is done by simply appending more tags to your atlassian-plugin.xml file. As an example with our Business Blueprints, we've got common descriptors shared up the top of our file, then for each Blueprint we just keep adding the standard descriptors. Hope this helps. Here is a sample:

```
&lt;atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2"&gt;    &lt;plugin-info&gt;        &lt;description&gt;${project.description}&lt;/description&gt;        &lt;version&gt;${project.version}&lt;/version&gt;        &lt;vendor name="${project.organization.name}" url="${project.organization.url}" /&gt;    &lt;/plugin-info&gt;    &lt;!-- Common descriptors --&gt;    &lt;component-import key="localeManager" interface="com.atlassian.confluence.languages.LocaleManager"/&gt;    &lt;component-import key="i18nBeanFactory" interface="com.atlassian.confluence.util.i18n.I18NBeanFactory"/&gt;    &lt;component-import key="sharePageService" interface="com.atlassian.confluence.plugins.sharepage.api.SharePageService"/&gt;    &lt;component-import key="contentBlueprintManager" interface="com.atlassian.confluence.plugins.createcontent.ContentBlueprintManager"/&gt;    &lt;component key="contextProviderHelper" id="contextProviderHelper" class="com.atlassian.confluence.plugins.BusinessBlueprintsContextProviderHelper" /&gt;    &lt;!-- Common index page --&gt;    &lt;web-resource key="common-template-resources" name="Common Templates Resources"&gt;        &lt;transformation extension="js"&gt;            &lt;transformer key="jsI18n"/&gt;        &lt;/transformation&gt;        &lt;transformation extension="soy"&gt;            &lt;transformer key="soyTransformer"&gt;                &lt;functions&gt;com.atlassian.confluence.plugins.soy:soy-core-functions&lt;/functions&gt;            &lt;/transformer&gt;        &lt;/transformation&gt;	    &lt;resource type="download" name="common-style.css" location="com/atlassian/confluence/plugins/blueprint/common/css/common-style.css" /&gt;        &lt;resource type="download" name="common-templates.js" location="com/atlassian/confluence/plugins/blueprint/common/soy/common-templates.soy" /&gt;        &lt;context&gt;atl.general&lt;/context&gt;        &lt;context&gt;atl.admin&lt;/context&gt;    &lt;/web-resource&gt;...    &lt;!-- File List descriptors --&gt;    &lt;web-item key="file-list-item" i18n-name-key="file.list.blueprint.name" section="system.create.dialog/content"&gt;        &lt;description key="file.list.blueprint.description"/&gt;        &lt;styleClass&gt;file-list-blueprint-icon large&lt;/styleClass&gt;        &lt;param name="blueprintKey" value="file-list-blueprint"/&gt;    &lt;/web-item&gt;    &lt;blueprint ....&gt;    &lt;/blueprint&gt;    &lt;content-template ....&gt;    &lt;/content-template&gt;    &lt;resource name="file-list-i18n" type="i18n" location="com/atlassian/confluence/plugins/filelist/file-list-i18n"/&gt;    &lt;web-resource ...&gt;    &lt;/web-resource&gt;....    &lt;!-- Meeting Note descriptors --&gt;    &lt;resource name="meeting-notes-i18n" type="i18n" location="com/atlassian/confluence/plugins/meetingnotes/meeting-notes-i18n"/&gt;    &lt;web-item key="meeting-notes-item" i18n-name-key="meeting.notes.blueprint.name" section="system.create.dialog/content"&gt;        &lt;description key="meeting.notes.blueprint.description"/&gt;        &lt;styleClass&gt;meeting-notes-blueprint-icon large&lt;/styleClass&gt;        &lt;param name="blueprintKey" value="meeting-notes-blueprint"/&gt;    &lt;/web-item&gt;    &lt;blueprint ...&gt;    &lt;/blueprint&gt;    &lt;content-template ....&gt;    &lt;/content-template&gt;    &lt;web-resource ...&gt;    &lt;/web-resource&gt;....&lt;/atlassian-plugin&gt;
```

comments: author: Gavin Fowler
body: this example is most appreciated Sherif!


author: Stephan Sutter
body: Hi,

With our approach you can build blueprints based on normal confluence pages. No programming skills are needed and therefor all your users can improve the blueprints and fully collaborate.

**[Marketplace Link: Page Tree Creator](https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeCreator/server/overview)**

Regards,  
Stephan


Tags: blueprint

confluence-app