-
Type: Bug
-
Status: Acknowledged
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: CLI-2.0.0
-
Fix Version/s: None
nuxeo bootstrap multi-module
=> enter UPPERCASE, transformed to lowercase => Good
nuxeo bootstrap test-empty
=> enter UPPERCASE, transformed to lowercase => Good
nuxeo bootstrap package
=> enter package name in UPPERCASE => Bad idea
info Your target Nuxeo version is: 10.10 info You will be prompted for generation of: info reproducer-package: package create Generate Module: reproducer-package create Generating Package info Parameters: Parent group, Parent artifact, Parent version, Package artifact, Package version, Package name, Company name ? Parent Group id: reproducer.group ? Parent Artifact id: reproducer-parent ? Parent version: 1.0-SNAPSHOT ? Package Artifact id: reproducer-package ? Package name: REPRODUCER ? Company name: Nuxeo create Writing Package force pom.xml create reproducer-package\pom.xml create reproducer-package\src\main\assemble\assembly.xml create reproducer-package\src\main\resources\install\templates\r-e-p-r-o-d-u-c-e-r\nuxeo.defaults create reproducer-package\src\main\resources\install.xml create reproducer-package\src\main\resources\package.xml create Your project is ready! info You can start editing code or you can continue with calling another generator (C:\Users\pabgrall\AppData\Roaming\npm\node_modules\nuxeo-cli\bin\nuxeo-cli.js bootstrap [<generator>..]) create Messages from Package
Notice that in Package name entry, I am using an uppercase name (REPRODUCER) resulting into a template name r-e-p-r-o-d-u-c-e-r
mvn -DskipTests install
results in install.xml in package containing the template name:
type reproducer-package\target\marketplace\install.xml
<copy dir="${package.root}/install/templates" todir="${env.templates}" overwrite="true" /> <config addtemplate="reproducer" />
where the template name is "reproducer" without dashes
Furthermore,
type reproducer-package\target\marketplace\install\templates\r-e-p-r-o-d-u-c-e-r\nuxeo.defaults
shows
# Set list of templates to include, comma separated values. nuxeo.template.includes=common
which includes the common template at the end of the nuxeo.templates variable by default and without warning, thus overridden variable by previous templates are not overridden anymore
Due to a bug in nuxeoctl rollback of template, this issue has the potential to break completely a configuration simply upon package installation and de-installation
- is related to
-
NXP-30467 nuxeoctl rollback template feature leads to unpredictable results
- Open