Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Document Properties Marker
overridefalse
Short DescriptionThe project-settings.xml allows user specific defaults for parameter values used for the project creation process.
Doctypetopichide
NameProject Settings
Short Name
Parent
Parent Property
propertyParent
property-nameName
hide
Audience

Name List
doctyperole
render-no-hits-as-blanktrue
namesMaven Plugin Developer
propertyAudience


Level of Experience

Name List
doctypeexperience-level
render-no-hits-as-blanktrue
namesAdvanced Beginner
propertyLevel of Experience


Expected Duration
Subject
Name List
doctypesubject
propertySubject

Categories
Name List
doctypecategory
propertyCategories

Tags
Tag List
propertyTags

Iteration

Iteration
valuefilledfinished

hide
Type
Name List
doctypetopic-type
render-no-hits-as-blanktrue
propertyType

Sponsors
Name List
doctypestakeholder
render-no-hits-as-blanktrue
propertySponsors

Sort Keyhide
Content Marker
hidetrue

Cheese

Status
titlexx

Section
show-titlefalse
titleDescription

User need to supply the following information to create a new project with the doctype:create mojo.

  • coordinates
    • groupId
    • artifactIdPrefix
    • version
  • layout
    • modelsFolder
  • keys
    • packagePathPrefixpackagePrefix

The mojo cannot guess defaults for all of these values. The groupId, the artifactId, and the packagePathPrefix packagePrefix are specific to the owner of the project.

The project-settings.xml allows to specify defaults for these parameters.

...

Section
titleProject Settings

The project settings provides defaults for the creation of new doctype add-on projects for the projectdoc Toolbox.

The project settings are stored in a file names project-settings.xml which is expected to be located in the user's .m2 folder within the user home.

The XML schema for that file is defined by the

System Link
fileproject-settings-doc.html
system-typesite
checktrue
labelproject settings XSD
.

Code Block
languagexml
titleStructure of Project Settings
<?xml version='1.0'?>

<project-settings
  xmlns="http://smartics.de/xsd/projectdoc/project-settings/1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <coordinates>
    <groupId></groupId>
    <artifactIdPrefix></artifactIdPrefix>
    <version></version>
  </coordinates>

  <layout>
    <modelsFolder></modelsFolder>
  </layout>

  <keys>
    <packagePathPrefix><<packagePrefix></packagePathPrefix>packagePrefix>
  </keys>
</project-settings>

Not all values need to be defined. There are valid defaults for version (which defines the default version for a new project) and modelsFolder (which specifies the location of the models within the project folder) that usually need not to be overridden.

Content Marker
idSample Project Settings
Code Block
languagexml
titleSample Project Settings
<?xml version='1.0'?>

<project-settings
  xmlns="http://smartics.de/xsd/projectdoc/project-settings/1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <coordinates>
    <groupId>com.mycompany.projectdoc.doctypes</groupId>
    <artifactIdPrefix>mycompany-doctype-addon-</artifactIdPrefix>
  </coordinates>

  <keys>
    <packagePathPrefix>com<packagePrefix>com.mycompany.projectdoc.doctypes.<doctypes</packagePathPrefix>packagePrefix>
    <organization-signature>My<organizationSignature>My Company</organization-signature>organizationSignature>
  </keys>
</project-settings>

The file is picked-up per default. Parameters specified on the command-line override the values in the project settings.

Section
titleDefault POM Elements

The creation of a customized POM file for the new project contains typically organization and / or project specific elements. These can be provided in a base POM file that is located next to the project-settings.xml file. The name for this file that provides fragments for the project POM file is project-settings-pom.xml.

Section
titleSubordinate Topics
Display Table
doctypetopic
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name

...

Section
titleReferences

Section
titleResources

Piwik Set Multiple Custom Variables
NameValue
Departmentprojectdoc
Categorymaven-plugin
Typedoctype-maven-plugin