[
https://issues.apache.org/jira/browse/WICKET-7136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903200#comment-17903200
]
Martin Tzvetanov Grigorov commented on WICKET-7136:
---------------------------------------------------
I cannot say what you propose, [~solomax] ! Please use a diff format next time!
:)
IMO the problem is that the -SNAPSHOTs use the new Velocity syntax (#[[ ]]#,
[https://github.com/apache/wicket/commit/49caf8784f82356975742f76f813669162ab96dc)]
that works with maven-archetype-plugin:3.x, while the old releases use
#literal() (Velocity2 syntax) supported by maven-archetype-plugin:2.x.
If my assumption is correct then maybe
[https://github.com/apache/wicket-site/commit/e069e91aafd71da39bcad2c70209ff940cea9b50]
needs to be re-worked and the `if` condition should be made smarter.
Or revert the Velocity syntax and stay forever with maven-archetype-plugin:2
for all versions.
> all quickstarts cannot be installed
> -----------------------------------
>
> Key: WICKET-7136
> URL: https://issues.apache.org/jira/browse/WICKET-7136
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 9.18.0, 10.2.0
> Reporter: Franz Kolberg
> Priority: Major
>
> all versions offered on [https://wicket.apache.org/start/quickstart.html]
> have this problem:
>
> $ mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=10.2.0
> -DgroupId=com.mycompany -DartifactId=myproject
> -DarchetypeRepository=https://[repository.apache.org/content/repositories/snapshots/|https://repository.apache.org/content/repositories/sna]
> -DinteractiveMode=false
> [WARNING]
> [WARNING] Some problems were encountered while building the effective settings
> [WARNING] Unrecognised tag: 'blocked' (position: START_TAG seen ...</url>\n
> <blocked>... @164:16) @ /usr/share/maven/conf/settings.xml, line 164,
> column 16
> [WARNING]
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------< org.apache.maven:standalone-pom
> >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] >>> maven-archetype-plugin:3.3.1:generate (default-cli) >
> generate-sources @ standalone-pom >>>
> [INFO]
> [INFO] <<< maven-archetype-plugin:3.3.1:generate (default-cli) <
> generate-sources @ standalone-pom <<<
> [INFO]
> [INFO]
> [INFO] --- maven-archetype-plugin:3.3.1:generate (default-cli) @
> standalone-pom ---
> [INFO] Generating project in Batch mode
> [INFO] Archetype repository not defined. Using the one from
> [org.apache.wicket:wicket-archetype-quickstart:10.2.0] found in catalog remote
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Using following parameters for creating project from Archetype:
> wicket-archetype-quickstart:10.2.0
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Parameter: groupId, Value: com.mycompany
> [INFO] Parameter: artifactId, Value: myproject
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: package, Value: com.mycompany
> [INFO] Parameter: packageInPathFormat, Value: com/mycompany
> [INFO] Parameter: package, Value: com.mycompany
> [INFO] Parameter: groupId, Value: com.mycompany
> [INFO] Parameter: artifactId, Value: myproject
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [ERROR] archetype-resources/pom.xml: Encountered "#end" at line 210, column 9.
> Was expecting one of:
> "\u001c" ...
> "\u001c" ...
> "||" ...
> "|" ...
> "(" ...
> ")" ...
> <ESCAPE_DIRECTIVE> ...
> "]]#" ...
> <WHITESPACE> ...
> <NEWLINE> ...
> <SUFFIX> ...
> <STRING_LITERAL> ...
> <INTEGER_LITERAL> ...
> <FLOATING_POINT_LITERAL> ...
> <DOT> ...
> "{" ...
> "}" ...
> "\\\\" ...
> "\\" ...
> <TEXT> ...
> <INLINE_TEXT> ...
> <EMPTY_INDEX> ...
> "{" ...
> "\u001c" ...
>
> [ERROR] ResourceManager: parse exception: Encountered "#end" at
> archetype-resources/pom.xml[line 210, column 9]
> Was expecting one of:
> "\u001c" ...
> "\u001c" ...
> "||" ...
> "|" ...
> "(" ...
> ")" ...
> <ESCAPE_DIRECTIVE> ...
> "]]#" ...
> <WHITESPACE> ...
> <NEWLINE> ...
> <SUFFIX> ...
> <STRING_LITERAL> ...
> <INTEGER_LITERAL> ...
> <FLOATING_POINT_LITERAL> ...
> <DOT> ...
> "{" ...
> "}" ...
> "\\\\" ...
> "\\" ...
> <TEXT> ...
> <INLINE_TEXT> ...
> <EMPTY_INDEX> ...
> "{" ...
> "\u001c" ...
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.094 s
> [INFO] Finished at: 2024-12-03T15:17:59+01:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate (default-cli)
> on project standalone-pom: Error merging velocity templates: Encountered
> "#end" at archetype-resources/pom.xml[line 210, column 9]
> [ERROR] Was expecting one of:
--
This message was sent by Atlassian Jira
(v8.20.10#820010)