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 |
---|
file | project-settings-doc.html |
---|
system-type | site |
---|
check | true |
---|
label | project settings XSD |
---|
| . Code Block |
---|
language | xml |
---|
title | Structure 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>
<packagePrefix></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 |
---|
id | Sample Project Settings |
---|
| Code Block |
---|
language | xml |
---|
title | Sample 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>
<packagePrefix>com.mycompany.projectdoc.doctypes</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. |