You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Shengche Hsiao <sh...@gmail.com> on 2024/10/01 07:07:18 UTC

Re: maven archetype error

Hello

My instructions and error messages, thanks. I am using macos 15.0, java version 17 and maven 3.9.9


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/ -Dlog4j.properties=wildfly-doesnt-need-log4j.properties -DinteractiveMode=false


shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java -version
openjdk version "17.0.12" 2024-07-16 LTS
OpenJDK Runtime Environment Corretto-17.0.12.7.1 (build 17.0.12+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn -vsersion
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
Java version: 22.0.2, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: en_TW, platform encoding: UTF-8
OS name: "mac os x", version: "15.0", arch: "aarch64", family: "mac"
shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/ -Dlog4j.properties=wildfly-doesnt-need-log4j.properties -DinteractiveMode=false
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> archetype:3.3.0:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< archetype:3.3.0:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- archetype:3.3.0: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.1.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:  0.620 s
[INFO] Finished at: 2024-10-01T15:06:55+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
[ERROR]     "\u001c" ...
[ERROR]     "\u001c" ...
[ERROR]     "||" ...
[ERROR]     "|" ...
[ERROR]     "(" ...
[ERROR]     ")" ...
[ERROR]     <ESCAPE_DIRECTIVE> ...
[ERROR]     "]]#" ...
[ERROR]     <WHITESPACE> ...
[ERROR]     <NEWLINE> ...
[ERROR]     <SUFFIX> ...
[ERROR]     <STRING_LITERAL> ...
[ERROR]     <INTEGER_LITERAL> ...
[ERROR]     <FLOATING_POINT_LITERAL> ...
[ERROR]     <DOT> ...
[ERROR]     "{" ...
[ERROR]     "}" ...
[ERROR]     "\\\\" ...
[ERROR]     "\\" ...
[ERROR]     <TEXT> ...
[ERROR]     <INLINE_TEXT> ...
[ERROR]     <EMPTY_INDEX> ...
[ERROR]     "{" ...
[ERROR]     "\u001c" ...
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



From: Andrea Del Bene <an...@gmail.com>
Date: Tuesday, October 1, 2024 at 4:06 AM
To: users@wicket.apache.org <us...@wicket.apache.org>
Subject: Re: maven archetype error
Are you using the archetype at
https://wicket.apache.org/start/quickstart.html  ? I can't replicate the
error.  Could you show the full command?
Thank you.

On 9/30/24 15:19, Shengche Hsiao wrote:
> Hi
>
> I tried 10.2.0, and 9.x, they draw the same error
>
> From: Andrea Del Bene <an...@gmail.com>
> Date: Monday, September 30, 2024 at 9:02 PM
> To: users@wicket.apache.org <us...@wicket.apache.org>
> Subject: Re: maven archetype error
> Hi,
>
> which version of Wicket are you trying to use for the quickstart?
>
> On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
>
>> Dear all
>>
>> Using new archetype caused error and cannot create new maven-quick-start
>> project
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time:  2.018 s
>> [INFO] Finished at: 2024-09-29T10:03:11+08:00
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
>> [ERROR]     "\u001c" ...
>> [ERROR]     "\u001c" ...
>> [ERROR]     "||" ...
>> [ERROR]     "|" ...
>> [ERROR]     "(" ...
>> [ERROR]     ")" ...
>> [ERROR]     <ESCAPE_DIRECTIVE> ...
>> [ERROR]     "]]#" ...
>> [ERROR]     <WHITESPACE> ...
>> [ERROR]     <NEWLINE> ...
>> [ERROR]     <SUFFIX> ...
>> [ERROR]     <STRING_LITERAL> ...
>> [ERROR]     <INTEGER_LITERAL> ...
>> [ERROR]     <FLOATING_POINT_LITERAL> ...
>> [ERROR]     <DOT> ...
>> [ERROR]     "{" ...
>> [ERROR]     "}" ...
>> [ERROR]     "\\\\" ...
>> [ERROR]     "\\" ...
>> [ERROR]     <TEXT> ...
>> [ERROR]     <INLINE_TEXT> ...
>> [ERROR]     <EMPTY_INDEX> ...
>> [ERROR]     "{" ...
>> [ERROR]     "\u001c" ...
>> [ERROR]
>> [ERROR] -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>
>>
> --
> Andrea Del Bene.
> Apache Wicket committer.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

Re: maven archetype error

Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Nov 6, 2024 at 1:16 PM Maxim Solodovnik <so...@gmail.com>
wrote:

> from mobile (sorry for typos ;)
>
>
> On Wed, Nov 6, 2024, 13:38 Martin Grigorov <mg...@apache.org> wrote:
>
> > Hello,
> >
> > 10.3.0 has been released ?! When ? Where ?
> > https://wicket.apache.org/start/wicket-10.x.html and
> > https://central.sonatype.com/search?q=wicket-core say that 10.2.0 is the
> > last release ;-)
> >
> > You could use:
> >
> > mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> > -DarchetypeArtifactId=wicket-archetype-quickstart
> > -DarchetypeVersion=10.3.0-SNAPSHOT -DgroupId=com.mycompany
> > -DartifactId=myproject -DarchetypeRepository=
> > https://repository.apache.org/
> > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > <
> https://repository.apache.org/-Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> >
> > -DinteractiveMode=false
> >
>
> Maybe we should change the default template
> So the displayed command would include the exact maven coordinates for
> "archetype:generate"?
> This way we (most probably) will have less issues :))
>

I think I found the problem:
https://github.com/apache/wicket-site/blob/asf-site/start/quickstart.md?plain=1#L38-L40

For non-SNAPSHOT versions we suggest "mvn archetype:generate ...", while
for SNAPSHOTs: "mvn
org.apache.maven.plugins:maven-archetype-plugin:2.4:generate ..."
According to
https://central.sonatype.com/artifact/org.apache.maven.plugins/maven-archetype-plugin
the latest version is 3.3.1 ...
I bet 2.4 uses Velocity 1.x that worked with the old syntax.

https://github.com/apache/wicket-site/commit/e069e91aafd71da39bcad2c70209ff940cea9b50



>
>
> > I don't see #[[ and/or ]]# in the generated ./myproject/pom.xml.
> > If you still see those please file a Jira ticket with exact steps to
> > reproduce!
> >
> > Martin
> >
> >
> > On Tue, Nov 5, 2024 at 2:35 PM Dr. Janko Jochimsen <
> > Janko.Jochimsen@urios-beratung.de> wrote:
> >
> > > Hallo to all,
> > >
> > > first let me say thank you to all the people that maintain the wicket
> > core
> > > and the other projects. I think that wicket is really a completely
> > > underestimated and undervalued programming environment.
> > >
> > > Therefore it is really really important that it is accessible to all
> > > newcomers. Here seems to be some room for improvement:
> > >
> > > While the maven archetype error Shengch Hsiao raised is technically
> > solved
> > > it is still quite hard to reach the solution and get a working
> > quickstart:
> > >
> > > A.
> > > The quickstart form on https://wicket.apache.org/start/quickstart.html
> > is
> > > still configured for the broken 10.2.0 as default. It really takes a
> > while
> > > to understand that there is also a 10.3.0 available that works. It
> would
> > > also be helpful if this quickstart would be reachable from within
> > eclipse.
> > >
> > > B:
> > > While the 10.3.0 creates a project, the pom.xml can not be imported
> into
> > > eclipse without editing:
> > > There are two placeholders in this file that break the pom.xml logic:
> > > In Line 27              #[[
> > > In Line 210             ]]#
> > >
> > > Once they are deleted you can import the project and everything runs as
> > > expected.
> > >
> > >
> > > Maybe someone could adjust these two points please.
> > >
> > >
> > > Best
> > >
> > >
> > > Janko
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Shengche Hsiao <sh...@gmail.com>
> > > Gesendet: Mittwoch, 2. Oktober 2024 14:40
> > > An: users@wicket.apache.org
> > > Betreff: Re: maven archetype error
> > >
> > > Martin
> > >
> > > Thanks
> > >
> > > Get Outlook for iOS<https://aka.ms/o0ukef>
> > > ________________________________
> > > From: Martin Grigorov <mg...@apache.org>
> > > Sent: Wednesday, October 2, 2024 8:15:44 PM
> > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > Subject: Re: maven archetype error
> > >
> > > Hi,
> > >
> > > https://issues.apache.org/jira/browse/WICKET-7124
> > > https://github.com/apache/wicket/pull/981
> > >
> > > Martin
> > >
> > > On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao <
> shengchehsiao@gmail.com>
> > > wrote:
> > >
> > > > Hello
> > > >
> > > > My instructions and error messages, thanks. I am using macos 15.0,
> > > > java version 17 and maven 3.9.9
> > > >
> > > >
> > > > 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/
> > > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > > -DinteractiveMode=false
> > > >
> > > >
> > > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java
> -version
> > > > openjdk version "17.0.12" 2024-07-16 LTS OpenJDK Runtime Environment
> > > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS) OpenJDK 64-Bit Server VM
> > > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
> > > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn
> -vsersion
> > > > Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> > > > Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> > > > Java version: 22.0.2, vendor: Homebrew, runtime:
> > > > /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/Home
> > > > Default locale: en_TW, platform encoding: UTF-8 OS name: "mac os x",
> > > > version: "15.0", arch: "aarch64", family: "mac"
> > > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> > > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > > -DinteractiveMode=false
> > > > [INFO] Scanning for projects...
> > > > [INFO]
> > > > [INFO] ------------------< org.apache.maven:standalone-pom
> > > > >-------------------
> > > > [INFO] Building Maven Stub Project (No POM) 1 [INFO]
> > > > --------------------------------[ pom
> > > > ]---------------------------------
> > > > [INFO]
> > > > [INFO] >>> archetype:3.3.0:generate (default-cli) > generate-sources
> @
> > > > standalone-pom >>> [INFO] [INFO] <<< archetype:3.3.0:generate
> > > > (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO]
> > > > [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> > > > [INFO] Finished at: 2024-10-01T15:06:55+08:00 [INFO]
> > > >
> ----------------------------------------------------------------------
> > > > --
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > > [ERROR]     "\u001c" ...
> > > > [ERROR]     "\u001c" ...
> > > > [ERROR]     "||" ...
> > > > [ERROR]     "|" ...
> > > > [ERROR]     "(" ...
> > > > [ERROR]     ")" ...
> > > > [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > > [ERROR]     "]]#" ...
> > > > [ERROR]     <WHITESPACE> ...
> > > > [ERROR]     <NEWLINE> ...
> > > > [ERROR]     <SUFFIX> ...
> > > > [ERROR]     <STRING_LITERAL> ...
> > > > [ERROR]     <INTEGER_LITERAL> ...
> > > > [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > > [ERROR]     <DOT> ...
> > > > [ERROR]     "{" ...
> > > > [ERROR]     "}" ...
> > > > [ERROR]     "\\\\" ...
> > > > [ERROR]     "\\" ...
> > > > [ERROR]     <TEXT> ...
> > > > [ERROR]     <INLINE_TEXT> ...
> > > > [ERROR]     <EMPTY_INDEX> ...
> > > > [ERROR]     "{" ...
> > > > [ERROR]     "\u001c" ...
> > > > [ERROR]
> > > > [ERROR] -> [Help 1]
> > > > [ERROR]
> > > > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > > > the -e switch.
> > > > [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> > > > [ERROR]
> > > > [ERROR] For more information about the errors and possible solutions,
> > > > please read the following articles:
> > > > [ERROR] [Help 1]
> > > >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptio
> > > > n
> > > >
> > > >
> > > >
> > > > From: Andrea Del Bene <an...@gmail.com>
> > > > Date: Tuesday, October 1, 2024 at 4:06 AM
> > > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > > Subject: Re: maven archetype error
> > > > Are you using the archetype at
> > > > https://wicket.apache.org/start/quickstart.html  ? I can't replicate
> > > > the error.  Could you show the full command?
> > > > Thank you.
> > > >
> > > > On 9/30/24 15:19, Shengche Hsiao wrote:
> > > > > Hi
> > > > >
> > > > > I tried 10.2.0, and 9.x, they draw the same error
> > > > >
> > > > > From: Andrea Del Bene <an...@gmail.com>
> > > > > Date: Monday, September 30, 2024 at 9:02 PM
> > > > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > > > Subject: Re: maven archetype error
> > > > > Hi,
> > > > >
> > > > > which version of Wicket are you trying to use for the quickstart?
> > > > >
> > > > > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> > > > >
> > > > >> Dear all
> > > > >>
> > > > >> Using new archetype caused error and cannot create new
> > > > >> maven-quick-start project
> > > > >>
> > > > >> [INFO]
> > > > >>
> -------------------------------------------------------------------
> > > > >> -----
> > > > >> [INFO] BUILD FAILURE
> > > > >> [INFO]
> > > > >>
> -------------------------------------------------------------------
> > > > >> -----
> > > > >> [INFO] Total time:  2.018 s
> > > > >> [INFO] Finished at: 2024-09-29T10:03:11+08:00 [INFO]
> > > > >>
> -------------------------------------------------------------------
> > > > >> -----
> > > > >> [ERROR] Failed to execute goal
> > > > >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > > >> [ERROR]     "\u001c" ...
> > > > >> [ERROR]     "\u001c" ...
> > > > >> [ERROR]     "||" ...
> > > > >> [ERROR]     "|" ...
> > > > >> [ERROR]     "(" ...
> > > > >> [ERROR]     ")" ...
> > > > >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > > >> [ERROR]     "]]#" ...
> > > > >> [ERROR]     <WHITESPACE> ...
> > > > >> [ERROR]     <NEWLINE> ...
> > > > >> [ERROR]     <SUFFIX> ...
> > > > >> [ERROR]     <STRING_LITERAL> ...
> > > > >> [ERROR]     <INTEGER_LITERAL> ...
> > > > >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > > >> [ERROR]     <DOT> ...
> > > > >> [ERROR]     "{" ...
> > > > >> [ERROR]     "}" ...
> > > > >> [ERROR]     "\\\\" ...
> > > > >> [ERROR]     "\\" ...
> > > > >> [ERROR]     <TEXT> ...
> > > > >> [ERROR]     <INLINE_TEXT> ...
> > > > >> [ERROR]     <EMPTY_INDEX> ...
> > > > >> [ERROR]     "{" ...
> > > > >> [ERROR]     "\u001c" ...
> > > > >> [ERROR]
> > > > >> [ERROR] -> [Help 1]
> > > > >> [ERROR]
> > > > >> [ERROR] To see the full stack trace of the errors, re-run Maven
> > > > >> with the -e switch.
> > > > >> [ERROR] Re-run Maven using the -X switch to enable full debug
> > logging.
> > > > >> [ERROR]
> > > > >> [ERROR] For more information about the errors and possible
> > > > >> solutions, please read the following articles:
> > > > >> [ERROR] [Help 1]
> > > > >>
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExcep
> > > > >> tion
> > > > >>
> > > > >>
> > > > > --
> > > > > Andrea Del Bene.
> > > > > Apache Wicket committer.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > >
> > > ________________________
> > > This email was scanned by Bitdefender
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> >
>

Re: maven archetype error

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

We have already fixed the problem!
See my message just before your last email at
https://lists.apache.org/thread/ljq33932p3lwotylznlh2srmyzwt8ol5

Thank you!

On Wed, Nov 6, 2024 at 3:22 PM Dr. Janko Jochimsen <
Janko.Jochimsen@urios-beratung.de> wrote:

>
> Hi,
>
> sorry I was referring to 10.3.0-SNAPSHOT and not to 10.3.0 proper.
>
> As I doesn’t get the password reset for JIRA I document what I see here:
>
> 1.
> The maven command for 10.3.0-SNAPSHOT generated by the Website starts with
>
> mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate
>
> while the command you send me starts with
>
> mvn archetype:generate
>
> (Also the command from the website for 10.2.0 starts like yours)
>
> Running the command for 10.3.0-SNAPSHOT from the website
>
> mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate
> -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart
> -DarchetypeVersion=10.3.0-SNAPSHOT -DgroupId=com.mycompany
> -DartifactId=myproject -DarchetypeRepository=
> https://repository.apache.org/content/repositories/snapshots/
> -DinteractiveMode=false
>
> generates a pom.xml with the  #[[  ]]# lines
>
> […]
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>com.mycompany</groupId>
>         <artifactId>myproject</artifactId>
>         <packaging>war</packaging>
>         <version>1.0-SNAPSHOT</version>
>         #[[
>         <!-- TODO project name  -->
>         <name>quickstart</name>
>         <description></description>
> […]
>
>         <repositories>
>                 <repository>
>                         <id>Apache Nexus</id>
>                         <url>
> https://repository.apache.org/content/repositories/snapshots/</url>
>                         <releases>
>                                 <enabled>false</enabled>
>                         </releases>
>                         <snapshots>
>                                 <enabled>true</enabled>
>                         </snapshots>
>                 </repository>
>         </repositories>
>         ]]#
> </project>
>
> The command you send me works fine.
>
> 2.
> The maven command for 10.2.0 from the website fails due to the old problem:
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  2.888 s
> [INFO] Finished at: 2024-11-06T14:13:01+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:
> [ERROR]     "\u001c" ...
> [ERROR]     "\u001c" ...
> [ERROR]     "||" ...
> [ERROR]     "|" ...
> [ERROR]     "(" ...
> [ERROR]     ")" ...
> [ERROR]     <ESCAPE_DIRECTIVE> ...
> [ERROR]     "]]#" ...
> [ERROR]     <WHITESPACE> ...
> [ERROR]     <NEWLINE> ...
> [ERROR]     <SUFFIX> ...
> [ERROR]     <STRING_LITERAL> ...
> [ERROR]     <INTEGER_LITERAL> ...
> [ERROR]     <FLOATING_POINT_LITERAL> ...
> [ERROR]     <DOT> ...
> [ERROR]     "{" ...
> [ERROR]     "}" ...
> [ERROR]     "\\\\" ...
> [ERROR]     "\\" ...
> [ERROR]     <TEXT> ...
> [ERROR]     <INLINE_TEXT> ...
> [ERROR]     <EMPTY_INDEX> ...
> [ERROR]     "{" ...
> [ERROR]     "\u001c" ...
> [ERROR]
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
> I think this Version should be removed as it can only lead to frustration
>
>
> Thank you for the support.
>
>
> Best
>
>
> Janko
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Maxim Solodovnik <so...@gmail.com>
> Gesendet: Mittwoch, 6. November 2024 12:15
> An: users@wicket.apache.org
> Betreff: Re: maven archetype error
>
> from mobile (sorry for typos ;)
>
>
> On Wed, Nov 6, 2024, 13:38 Martin Grigorov <mg...@apache.org> wrote:
>
> > Hello,
> >
> > 10.3.0 has been released ?! When ? Where ?
> > https://wicket.apache.org/start/wicket-10.x.html and
> > https://central.sonatype.com/search?q=wicket-core say that 10.2.0 is
> > the last release ;-)
> >
> > You could use:
> >
> > mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> > -DarchetypeArtifactId=wicket-archetype-quickstart
> > -DarchetypeVersion=10.3.0-SNAPSHOT -DgroupId=com.mycompany
> > -DartifactId=myproject -DarchetypeRepository=
> > https://repository.apache.org/
> > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > <https://repository.apache.org/-Dlog4j.properties=wildfly-doesnt-need-
> > log4j.properties>
> > -DinteractiveMode=false
> >
>
> Maybe we should change the default template So the displayed command would
> include the exact maven coordinates for "archetype:generate"?
> This way we (most probably) will have less issues :))
>
>
> > I don't see #[[ and/or ]]# in the generated ./myproject/pom.xml.
> > If you still see those please file a Jira ticket with exact steps to
> > reproduce!
> >
> > Martin
> >
> >
> > On Tue, Nov 5, 2024 at 2:35 PM Dr. Janko Jochimsen <
> > Janko.Jochimsen@urios-beratung.de> wrote:
> >
> > > Hallo to all,
> > >
> > > first let me say thank you to all the people that maintain the
> > > wicket
> > core
> > > and the other projects. I think that wicket is really a completely
> > > underestimated and undervalued programming environment.
> > >
> > > Therefore it is really really important that it is accessible to all
> > > newcomers. Here seems to be some room for improvement:
> > >
> > > While the maven archetype error Shengch Hsiao raised is technically
> > solved
> > > it is still quite hard to reach the solution and get a working
> > quickstart:
> > >
> > > A.
> > > The quickstart form on
> > > https://wicket.apache.org/start/quickstart.html
> > is
> > > still configured for the broken 10.2.0 as default. It really takes a
> > while
> > > to understand that there is also a 10.3.0 available that works. It
> > > would also be helpful if this quickstart would be reachable from
> > > within
> > eclipse.
> > >
> > > B:
> > > While the 10.3.0 creates a project, the pom.xml can not be imported
> > > into eclipse without editing:
> > > There are two placeholders in this file that break the pom.xml logic:
> > > In Line 27              #[[
> > > In Line 210             ]]#
> > >
> > > Once they are deleted you can import the project and everything runs
> > > as expected.
> > >
> > >
> > > Maybe someone could adjust these two points please.
> > >
> > >
> > > Best
> > >
> > >
> > > Janko
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Shengche Hsiao <sh...@gmail.com>
> > > Gesendet: Mittwoch, 2. Oktober 2024 14:40
> > > An: users@wicket.apache.org
> > > Betreff: Re: maven archetype error
> > >
> > > Martin
> > >
> > > Thanks
> > >
> > > Get Outlook for iOS<https://aka.ms/o0ukef>
> > > ________________________________
> > > From: Martin Grigorov <mg...@apache.org>
> > > Sent: Wednesday, October 2, 2024 8:15:44 PM
> > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > Subject: Re: maven archetype error
> > >
> > > Hi,
> > >
> > > https://issues.apache.org/jira/browse/WICKET-7124
> > > https://github.com/apache/wicket/pull/981
> > >
> > > Martin
> > >
> > > On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao
> > > <sh...@gmail.com>
> > > wrote:
> > >
> > > > Hello
> > > >
> > > > My instructions and error messages, thanks. I am using macos 15.0,
> > > > java version 17 and maven 3.9.9
> > > >
> > > >
> > > > 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/
> > > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > > -DinteractiveMode=false
> > > >
> > > >
> > > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java
> > > > -version openjdk version "17.0.12" 2024-07-16 LTS OpenJDK Runtime
> > > > Environment
> > > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS) OpenJDK 64-Bit Server
> > > > VM
> > > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
> > > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn
> > > > -vsersion Apache Maven 3.9.9
> > > > (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> > > > Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> > > > Java version: 22.0.2, vendor: Homebrew, runtime:
> > > > /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/H
> > > > ome Default locale: en_TW, platform encoding: UTF-8 OS name: "mac
> > > > os x",
> > > > version: "15.0", arch: "aarch64", family: "mac"
> > > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> > > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > > -DinteractiveMode=false
> > > > [INFO] Scanning for projects...
> > > > [INFO]
> > > > [INFO] ------------------< org.apache.maven:standalone-pom
> > > > >-------------------
> > > > [INFO] Building Maven Stub Project (No POM) 1 [INFO]
> > > > --------------------------------[ pom
> > > > ]---------------------------------
> > > > [INFO]
> > > > [INFO] >>> archetype:3.3.0:generate (default-cli) >
> > > > generate-sources @ standalone-pom >>> [INFO] [INFO] <<<
> > > > archetype:3.3.0:generate
> > > > (default-cli) < generate-sources @ standalone-pom <<< [INFO]
> > > > [INFO] [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> > > > [INFO] Finished at: 2024-10-01T15:06:55+08:00 [INFO]
> > > > ------------------------------------------------------------------
> > > > ----
> > > > --
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > > [ERROR]     "\u001c" ...
> > > > [ERROR]     "\u001c" ...
> > > > [ERROR]     "||" ...
> > > > [ERROR]     "|" ...
> > > > [ERROR]     "(" ...
> > > > [ERROR]     ")" ...
> > > > [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > > [ERROR]     "]]#" ...
> > > > [ERROR]     <WHITESPACE> ...
> > > > [ERROR]     <NEWLINE> ...
> > > > [ERROR]     <SUFFIX> ...
> > > > [ERROR]     <STRING_LITERAL> ...
> > > > [ERROR]     <INTEGER_LITERAL> ...
> > > > [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > > [ERROR]     <DOT> ...
> > > > [ERROR]     "{" ...
> > > > [ERROR]     "}" ...
> > > > [ERROR]     "\\\\" ...
> > > > [ERROR]     "\\" ...
> > > > [ERROR]     <TEXT> ...
> > > > [ERROR]     <INLINE_TEXT> ...
> > > > [ERROR]     <EMPTY_INDEX> ...
> > > > [ERROR]     "{" ...
> > > > [ERROR]     "\u001c" ...
> > > > [ERROR]
> > > > [ERROR] -> [Help 1]
> > > > [ERROR]
> > > > [ERROR] To see the full stack trace of the errors, re-run Maven
> > > > with the -e switch.
> > > > [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> > > > [ERROR]
> > > > [ERROR] For more information about the errors and possible
> > > > solutions, please read the following articles:
> > > > [ERROR] [Help 1]
> > > > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExce
> > > > ptio
> > > > n
> > > >
> > > >
> > > >
> > > > From: Andrea Del Bene <an...@gmail.com>
> > > > Date: Tuesday, October 1, 2024 at 4:06 AM
> > > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > > Subject: Re: maven archetype error Are you using the archetype at
> > > > https://wicket.apache.org/start/quickstart.html  ? I can't
> > > > replicate the error.  Could you show the full command?
> > > > Thank you.
> > > >
> > > > On 9/30/24 15:19, Shengche Hsiao wrote:
> > > > > Hi
> > > > >
> > > > > I tried 10.2.0, and 9.x, they draw the same error
> > > > >
> > > > > From: Andrea Del Bene <an...@gmail.com>
> > > > > Date: Monday, September 30, 2024 at 9:02 PM
> > > > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > > > Subject: Re: maven archetype error Hi,
> > > > >
> > > > > which version of Wicket are you trying to use for the quickstart?
> > > > >
> > > > > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> > > > >
> > > > >> Dear all
> > > > >>
> > > > >> Using new archetype caused error and cannot create new
> > > > >> maven-quick-start project
> > > > >>
> > > > >> [INFO]
> > > > >> ---------------------------------------------------------------
> > > > >> ----
> > > > >> -----
> > > > >> [INFO] BUILD FAILURE
> > > > >> [INFO]
> > > > >> ---------------------------------------------------------------
> > > > >> ----
> > > > >> -----
> > > > >> [INFO] Total time:  2.018 s
> > > > >> [INFO] Finished at: 2024-09-29T10:03:11+08:00 [INFO]
> > > > >> ---------------------------------------------------------------
> > > > >> ----
> > > > >> -----
> > > > >> [ERROR] Failed to execute goal
> > > > >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > > >> [ERROR]     "\u001c" ...
> > > > >> [ERROR]     "\u001c" ...
> > > > >> [ERROR]     "||" ...
> > > > >> [ERROR]     "|" ...
> > > > >> [ERROR]     "(" ...
> > > > >> [ERROR]     ")" ...
> > > > >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > > >> [ERROR]     "]]#" ...
> > > > >> [ERROR]     <WHITESPACE> ...
> > > > >> [ERROR]     <NEWLINE> ...
> > > > >> [ERROR]     <SUFFIX> ...
> > > > >> [ERROR]     <STRING_LITERAL> ...
> > > > >> [ERROR]     <INTEGER_LITERAL> ...
> > > > >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > > >> [ERROR]     <DOT> ...
> > > > >> [ERROR]     "{" ...
> > > > >> [ERROR]     "}" ...
> > > > >> [ERROR]     "\\\\" ...
> > > > >> [ERROR]     "\\" ...
> > > > >> [ERROR]     <TEXT> ...
> > > > >> [ERROR]     <INLINE_TEXT> ...
> > > > >> [ERROR]     <EMPTY_INDEX> ...
> > > > >> [ERROR]     "{" ...
> > > > >> [ERROR]     "\u001c" ...
> > > > >> [ERROR]
> > > > >> [ERROR] -> [Help 1]
> > > > >> [ERROR]
> > > > >> [ERROR] To see the full stack trace of the errors, re-run Maven
> > > > >> with the -e switch.
> > > > >> [ERROR] Re-run Maven using the -X switch to enable full debug
> > logging.
> > > > >> [ERROR]
> > > > >> [ERROR] For more information about the errors and possible
> > > > >> solutions, please read the following articles:
> > > > >> [ERROR] [Help 1]
> > > > >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> > > > >> xcep
> > > > >> tion
> > > > >>
> > > > >>
> > > > > --
> > > > > Andrea Del Bene.
> > > > > Apache Wicket committer.
> > > >
> > > > ------------------------------------------------------------------
> > > > --- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > >
> > > ________________________
> > > This email was scanned by Bitdefender
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> >
>
> ________________________
> This email was scanned by Bitdefender
>

AW: maven archetype error

Posted by "Dr. Janko Jochimsen" <Ja...@urios-beratung.de>.
Hi,

sorry I was referring to 10.3.0-SNAPSHOT and not to 10.3.0 proper.

As I doesn’t get the password reset for JIRA I document what I see here:

1.
The maven command for 10.3.0-SNAPSHOT generated by the Website starts with

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate

while the command you send me starts with

mvn archetype:generate

(Also the command from the website for 10.2.0 starts like yours)

Running the command for 10.3.0-SNAPSHOT from the website

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=10.3.0-SNAPSHOT -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=https://repository.apache.org/content/repositories/snapshots/ -DinteractiveMode=false

generates a pom.xml with the  #[[  ]]# lines

[…]
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.mycompany</groupId>
        <artifactId>myproject</artifactId>
        <packaging>war</packaging>
        <version>1.0-SNAPSHOT</version>
        #[[
        <!-- TODO project name  -->
        <name>quickstart</name>
        <description></description>
[…]

        <repositories>
                <repository>
                        <id>Apache Nexus</id>
                        <url>https://repository.apache.org/content/repositories/snapshots/</url>
                        <releases>
                                <enabled>false</enabled>
                        </releases>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>
        </repositories>
        ]]#
</project>

The command you send me works fine.

2.
The maven command for 10.2.0 from the website fails due to the old problem:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.888 s
[INFO] Finished at: 2024-11-06T14:13:01+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:
[ERROR]     "\u001c" ...
[ERROR]     "\u001c" ...
[ERROR]     "||" ...
[ERROR]     "|" ...
[ERROR]     "(" ...
[ERROR]     ")" ...
[ERROR]     <ESCAPE_DIRECTIVE> ...
[ERROR]     "]]#" ...
[ERROR]     <WHITESPACE> ...
[ERROR]     <NEWLINE> ...
[ERROR]     <SUFFIX> ...
[ERROR]     <STRING_LITERAL> ...
[ERROR]     <INTEGER_LITERAL> ...
[ERROR]     <FLOATING_POINT_LITERAL> ...
[ERROR]     <DOT> ...
[ERROR]     "{" ...
[ERROR]     "}" ...
[ERROR]     "\\\\" ...
[ERROR]     "\\" ...
[ERROR]     <TEXT> ...
[ERROR]     <INLINE_TEXT> ...
[ERROR]     <EMPTY_INDEX> ...
[ERROR]     "{" ...
[ERROR]     "\u001c" ...
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


I think this Version should be removed as it can only lead to frustration


Thank you for the support.


Best


Janko



-----Ursprüngliche Nachricht-----
Von: Maxim Solodovnik <so...@gmail.com>
Gesendet: Mittwoch, 6. November 2024 12:15
An: users@wicket.apache.org
Betreff: Re: maven archetype error

from mobile (sorry for typos ;)


On Wed, Nov 6, 2024, 13:38 Martin Grigorov <mg...@apache.org> wrote:

> Hello,
>
> 10.3.0 has been released ?! When ? Where ?
> https://wicket.apache.org/start/wicket-10.x.html and
> https://central.sonatype.com/search?q=wicket-core say that 10.2.0 is
> the last release ;-)
>
> You could use:
>
> mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart
> -DarchetypeVersion=10.3.0-SNAPSHOT -DgroupId=com.mycompany
> -DartifactId=myproject -DarchetypeRepository=
> https://repository.apache.org/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> <https://repository.apache.org/-Dlog4j.properties=wildfly-doesnt-need-
> log4j.properties>
> -DinteractiveMode=false
>

Maybe we should change the default template So the displayed command would include the exact maven coordinates for "archetype:generate"?
This way we (most probably) will have less issues :))


> I don't see #[[ and/or ]]# in the generated ./myproject/pom.xml.
> If you still see those please file a Jira ticket with exact steps to
> reproduce!
>
> Martin
>
>
> On Tue, Nov 5, 2024 at 2:35 PM Dr. Janko Jochimsen <
> Janko.Jochimsen@urios-beratung.de> wrote:
>
> > Hallo to all,
> >
> > first let me say thank you to all the people that maintain the
> > wicket
> core
> > and the other projects. I think that wicket is really a completely
> > underestimated and undervalued programming environment.
> >
> > Therefore it is really really important that it is accessible to all
> > newcomers. Here seems to be some room for improvement:
> >
> > While the maven archetype error Shengch Hsiao raised is technically
> solved
> > it is still quite hard to reach the solution and get a working
> quickstart:
> >
> > A.
> > The quickstart form on
> > https://wicket.apache.org/start/quickstart.html
> is
> > still configured for the broken 10.2.0 as default. It really takes a
> while
> > to understand that there is also a 10.3.0 available that works. It
> > would also be helpful if this quickstart would be reachable from
> > within
> eclipse.
> >
> > B:
> > While the 10.3.0 creates a project, the pom.xml can not be imported
> > into eclipse without editing:
> > There are two placeholders in this file that break the pom.xml logic:
> > In Line 27              #[[
> > In Line 210             ]]#
> >
> > Once they are deleted you can import the project and everything runs
> > as expected.
> >
> >
> > Maybe someone could adjust these two points please.
> >
> >
> > Best
> >
> >
> > Janko
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Shengche Hsiao <sh...@gmail.com>
> > Gesendet: Mittwoch, 2. Oktober 2024 14:40
> > An: users@wicket.apache.org
> > Betreff: Re: maven archetype error
> >
> > Martin
> >
> > Thanks
> >
> > Get Outlook for iOS<https://aka.ms/o0ukef>
> > ________________________________
> > From: Martin Grigorov <mg...@apache.org>
> > Sent: Wednesday, October 2, 2024 8:15:44 PM
> > To: users@wicket.apache.org <us...@wicket.apache.org>
> > Subject: Re: maven archetype error
> >
> > Hi,
> >
> > https://issues.apache.org/jira/browse/WICKET-7124
> > https://github.com/apache/wicket/pull/981
> >
> > Martin
> >
> > On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao
> > <sh...@gmail.com>
> > wrote:
> >
> > > Hello
> > >
> > > My instructions and error messages, thanks. I am using macos 15.0,
> > > java version 17 and maven 3.9.9
> > >
> > >
> > > 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/
> > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > -DinteractiveMode=false
> > >
> > >
> > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java
> > > -version openjdk version "17.0.12" 2024-07-16 LTS OpenJDK Runtime
> > > Environment
> > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS) OpenJDK 64-Bit Server
> > > VM
> > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
> > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn
> > > -vsersion Apache Maven 3.9.9
> > > (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> > > Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> > > Java version: 22.0.2, vendor: Homebrew, runtime:
> > > /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/H
> > > ome Default locale: en_TW, platform encoding: UTF-8 OS name: "mac
> > > os x",
> > > version: "15.0", arch: "aarch64", family: "mac"
> > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > -DinteractiveMode=false
> > > [INFO] Scanning for projects...
> > > [INFO]
> > > [INFO] ------------------< org.apache.maven:standalone-pom
> > > >-------------------
> > > [INFO] Building Maven Stub Project (No POM) 1 [INFO]
> > > --------------------------------[ pom
> > > ]---------------------------------
> > > [INFO]
> > > [INFO] >>> archetype:3.3.0:generate (default-cli) >
> > > generate-sources @ standalone-pom >>> [INFO] [INFO] <<<
> > > archetype:3.3.0:generate
> > > (default-cli) < generate-sources @ standalone-pom <<< [INFO]
> > > [INFO] [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> > > [INFO] Finished at: 2024-10-01T15:06:55+08:00 [INFO]
> > > ------------------------------------------------------------------
> > > ----
> > > --
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > [ERROR]     "\u001c" ...
> > > [ERROR]     "\u001c" ...
> > > [ERROR]     "||" ...
> > > [ERROR]     "|" ...
> > > [ERROR]     "(" ...
> > > [ERROR]     ")" ...
> > > [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > [ERROR]     "]]#" ...
> > > [ERROR]     <WHITESPACE> ...
> > > [ERROR]     <NEWLINE> ...
> > > [ERROR]     <SUFFIX> ...
> > > [ERROR]     <STRING_LITERAL> ...
> > > [ERROR]     <INTEGER_LITERAL> ...
> > > [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > [ERROR]     <DOT> ...
> > > [ERROR]     "{" ...
> > > [ERROR]     "}" ...
> > > [ERROR]     "\\\\" ...
> > > [ERROR]     "\\" ...
> > > [ERROR]     <TEXT> ...
> > > [ERROR]     <INLINE_TEXT> ...
> > > [ERROR]     <EMPTY_INDEX> ...
> > > [ERROR]     "{" ...
> > > [ERROR]     "\u001c" ...
> > > [ERROR]
> > > [ERROR] -> [Help 1]
> > > [ERROR]
> > > [ERROR] To see the full stack trace of the errors, re-run Maven
> > > with the -e switch.
> > > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > > [ERROR]
> > > [ERROR] For more information about the errors and possible
> > > solutions, please read the following articles:
> > > [ERROR] [Help 1]
> > > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExce
> > > ptio
> > > n
> > >
> > >
> > >
> > > From: Andrea Del Bene <an...@gmail.com>
> > > Date: Tuesday, October 1, 2024 at 4:06 AM
> > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > Subject: Re: maven archetype error Are you using the archetype at
> > > https://wicket.apache.org/start/quickstart.html  ? I can't
> > > replicate the error.  Could you show the full command?
> > > Thank you.
> > >
> > > On 9/30/24 15:19, Shengche Hsiao wrote:
> > > > Hi
> > > >
> > > > I tried 10.2.0, and 9.x, they draw the same error
> > > >
> > > > From: Andrea Del Bene <an...@gmail.com>
> > > > Date: Monday, September 30, 2024 at 9:02 PM
> > > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > > Subject: Re: maven archetype error Hi,
> > > >
> > > > which version of Wicket are you trying to use for the quickstart?
> > > >
> > > > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> > > >
> > > >> Dear all
> > > >>
> > > >> Using new archetype caused error and cannot create new
> > > >> maven-quick-start project
> > > >>
> > > >> [INFO]
> > > >> ---------------------------------------------------------------
> > > >> ----
> > > >> -----
> > > >> [INFO] BUILD FAILURE
> > > >> [INFO]
> > > >> ---------------------------------------------------------------
> > > >> ----
> > > >> -----
> > > >> [INFO] Total time:  2.018 s
> > > >> [INFO] Finished at: 2024-09-29T10:03:11+08:00 [INFO]
> > > >> ---------------------------------------------------------------
> > > >> ----
> > > >> -----
> > > >> [ERROR] Failed to execute goal
> > > >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > >> [ERROR]     "\u001c" ...
> > > >> [ERROR]     "\u001c" ...
> > > >> [ERROR]     "||" ...
> > > >> [ERROR]     "|" ...
> > > >> [ERROR]     "(" ...
> > > >> [ERROR]     ")" ...
> > > >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > >> [ERROR]     "]]#" ...
> > > >> [ERROR]     <WHITESPACE> ...
> > > >> [ERROR]     <NEWLINE> ...
> > > >> [ERROR]     <SUFFIX> ...
> > > >> [ERROR]     <STRING_LITERAL> ...
> > > >> [ERROR]     <INTEGER_LITERAL> ...
> > > >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > >> [ERROR]     <DOT> ...
> > > >> [ERROR]     "{" ...
> > > >> [ERROR]     "}" ...
> > > >> [ERROR]     "\\\\" ...
> > > >> [ERROR]     "\\" ...
> > > >> [ERROR]     <TEXT> ...
> > > >> [ERROR]     <INLINE_TEXT> ...
> > > >> [ERROR]     <EMPTY_INDEX> ...
> > > >> [ERROR]     "{" ...
> > > >> [ERROR]     "\u001c" ...
> > > >> [ERROR]
> > > >> [ERROR] -> [Help 1]
> > > >> [ERROR]
> > > >> [ERROR] To see the full stack trace of the errors, re-run Maven
> > > >> with the -e switch.
> > > >> [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> > > >> [ERROR]
> > > >> [ERROR] For more information about the errors and possible
> > > >> solutions, please read the following articles:
> > > >> [ERROR] [Help 1]
> > > >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> > > >> xcep
> > > >> tion
> > > >>
> > > >>
> > > > --
> > > > Andrea Del Bene.
> > > > Apache Wicket committer.
> > >
> > > ------------------------------------------------------------------
> > > --- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> >
> > ________________________
> > This email was scanned by Bitdefender
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>

________________________
This email was scanned by Bitdefender

Re: maven archetype error

Posted by Maxim Solodovnik <so...@gmail.com>.
from mobile (sorry for typos ;)


On Wed, Nov 6, 2024, 13:38 Martin Grigorov <mg...@apache.org> wrote:

> Hello,
>
> 10.3.0 has been released ?! When ? Where ?
> https://wicket.apache.org/start/wicket-10.x.html and
> https://central.sonatype.com/search?q=wicket-core say that 10.2.0 is the
> last release ;-)
>
> You could use:
>
> mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart
> -DarchetypeVersion=10.3.0-SNAPSHOT -DgroupId=com.mycompany
> -DartifactId=myproject -DarchetypeRepository=
> https://repository.apache.org/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> <https://repository.apache.org/-Dlog4j.properties=wildfly-doesnt-need-log4j.properties>
> -DinteractiveMode=false
>

Maybe we should change the default template
So the displayed command would include the exact maven coordinates for
"archetype:generate"?
This way we (most probably) will have less issues :))


> I don't see #[[ and/or ]]# in the generated ./myproject/pom.xml.
> If you still see those please file a Jira ticket with exact steps to
> reproduce!
>
> Martin
>
>
> On Tue, Nov 5, 2024 at 2:35 PM Dr. Janko Jochimsen <
> Janko.Jochimsen@urios-beratung.de> wrote:
>
> > Hallo to all,
> >
> > first let me say thank you to all the people that maintain the wicket
> core
> > and the other projects. I think that wicket is really a completely
> > underestimated and undervalued programming environment.
> >
> > Therefore it is really really important that it is accessible to all
> > newcomers. Here seems to be some room for improvement:
> >
> > While the maven archetype error Shengch Hsiao raised is technically
> solved
> > it is still quite hard to reach the solution and get a working
> quickstart:
> >
> > A.
> > The quickstart form on https://wicket.apache.org/start/quickstart.html
> is
> > still configured for the broken 10.2.0 as default. It really takes a
> while
> > to understand that there is also a 10.3.0 available that works. It would
> > also be helpful if this quickstart would be reachable from within
> eclipse.
> >
> > B:
> > While the 10.3.0 creates a project, the pom.xml can not be imported into
> > eclipse without editing:
> > There are two placeholders in this file that break the pom.xml logic:
> > In Line 27              #[[
> > In Line 210             ]]#
> >
> > Once they are deleted you can import the project and everything runs as
> > expected.
> >
> >
> > Maybe someone could adjust these two points please.
> >
> >
> > Best
> >
> >
> > Janko
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Shengche Hsiao <sh...@gmail.com>
> > Gesendet: Mittwoch, 2. Oktober 2024 14:40
> > An: users@wicket.apache.org
> > Betreff: Re: maven archetype error
> >
> > Martin
> >
> > Thanks
> >
> > Get Outlook for iOS<https://aka.ms/o0ukef>
> > ________________________________
> > From: Martin Grigorov <mg...@apache.org>
> > Sent: Wednesday, October 2, 2024 8:15:44 PM
> > To: users@wicket.apache.org <us...@wicket.apache.org>
> > Subject: Re: maven archetype error
> >
> > Hi,
> >
> > https://issues.apache.org/jira/browse/WICKET-7124
> > https://github.com/apache/wicket/pull/981
> >
> > Martin
> >
> > On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao <sh...@gmail.com>
> > wrote:
> >
> > > Hello
> > >
> > > My instructions and error messages, thanks. I am using macos 15.0,
> > > java version 17 and maven 3.9.9
> > >
> > >
> > > 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/
> > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > -DinteractiveMode=false
> > >
> > >
> > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java -version
> > > openjdk version "17.0.12" 2024-07-16 LTS OpenJDK Runtime Environment
> > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS) OpenJDK 64-Bit Server VM
> > > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
> > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn -vsersion
> > > Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> > > Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> > > Java version: 22.0.2, vendor: Homebrew, runtime:
> > > /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/Home
> > > Default locale: en_TW, platform encoding: UTF-8 OS name: "mac os x",
> > > version: "15.0", arch: "aarch64", family: "mac"
> > > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> > > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > > -DinteractiveMode=false
> > > [INFO] Scanning for projects...
> > > [INFO]
> > > [INFO] ------------------< org.apache.maven:standalone-pom
> > > >-------------------
> > > [INFO] Building Maven Stub Project (No POM) 1 [INFO]
> > > --------------------------------[ pom
> > > ]---------------------------------
> > > [INFO]
> > > [INFO] >>> archetype:3.3.0:generate (default-cli) > generate-sources @
> > > standalone-pom >>> [INFO] [INFO] <<< archetype:3.3.0:generate
> > > (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO]
> > > [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> > > [INFO] Finished at: 2024-10-01T15:06:55+08:00 [INFO]
> > > ----------------------------------------------------------------------
> > > --
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > [ERROR]     "\u001c" ...
> > > [ERROR]     "\u001c" ...
> > > [ERROR]     "||" ...
> > > [ERROR]     "|" ...
> > > [ERROR]     "(" ...
> > > [ERROR]     ")" ...
> > > [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > [ERROR]     "]]#" ...
> > > [ERROR]     <WHITESPACE> ...
> > > [ERROR]     <NEWLINE> ...
> > > [ERROR]     <SUFFIX> ...
> > > [ERROR]     <STRING_LITERAL> ...
> > > [ERROR]     <INTEGER_LITERAL> ...
> > > [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > [ERROR]     <DOT> ...
> > > [ERROR]     "{" ...
> > > [ERROR]     "}" ...
> > > [ERROR]     "\\\\" ...
> > > [ERROR]     "\\" ...
> > > [ERROR]     <TEXT> ...
> > > [ERROR]     <INLINE_TEXT> ...
> > > [ERROR]     <EMPTY_INDEX> ...
> > > [ERROR]     "{" ...
> > > [ERROR]     "\u001c" ...
> > > [ERROR]
> > > [ERROR] -> [Help 1]
> > > [ERROR]
> > > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > > the -e switch.
> > > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > > [ERROR]
> > > [ERROR] For more information about the errors and possible solutions,
> > > please read the following articles:
> > > [ERROR] [Help 1]
> > > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptio
> > > n
> > >
> > >
> > >
> > > From: Andrea Del Bene <an...@gmail.com>
> > > Date: Tuesday, October 1, 2024 at 4:06 AM
> > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > Subject: Re: maven archetype error
> > > Are you using the archetype at
> > > https://wicket.apache.org/start/quickstart.html  ? I can't replicate
> > > the error.  Could you show the full command?
> > > Thank you.
> > >
> > > On 9/30/24 15:19, Shengche Hsiao wrote:
> > > > Hi
> > > >
> > > > I tried 10.2.0, and 9.x, they draw the same error
> > > >
> > > > From: Andrea Del Bene <an...@gmail.com>
> > > > Date: Monday, September 30, 2024 at 9:02 PM
> > > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > > Subject: Re: maven archetype error
> > > > Hi,
> > > >
> > > > which version of Wicket are you trying to use for the quickstart?
> > > >
> > > > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> > > >
> > > >> Dear all
> > > >>
> > > >> Using new archetype caused error and cannot create new
> > > >> maven-quick-start project
> > > >>
> > > >> [INFO]
> > > >> -------------------------------------------------------------------
> > > >> -----
> > > >> [INFO] BUILD FAILURE
> > > >> [INFO]
> > > >> -------------------------------------------------------------------
> > > >> -----
> > > >> [INFO] Total time:  2.018 s
> > > >> [INFO] Finished at: 2024-09-29T10:03:11+08:00 [INFO]
> > > >> -------------------------------------------------------------------
> > > >> -----
> > > >> [ERROR] Failed to execute goal
> > > >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > > >> [ERROR]     "\u001c" ...
> > > >> [ERROR]     "\u001c" ...
> > > >> [ERROR]     "||" ...
> > > >> [ERROR]     "|" ...
> > > >> [ERROR]     "(" ...
> > > >> [ERROR]     ")" ...
> > > >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> > > >> [ERROR]     "]]#" ...
> > > >> [ERROR]     <WHITESPACE> ...
> > > >> [ERROR]     <NEWLINE> ...
> > > >> [ERROR]     <SUFFIX> ...
> > > >> [ERROR]     <STRING_LITERAL> ...
> > > >> [ERROR]     <INTEGER_LITERAL> ...
> > > >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> > > >> [ERROR]     <DOT> ...
> > > >> [ERROR]     "{" ...
> > > >> [ERROR]     "}" ...
> > > >> [ERROR]     "\\\\" ...
> > > >> [ERROR]     "\\" ...
> > > >> [ERROR]     <TEXT> ...
> > > >> [ERROR]     <INLINE_TEXT> ...
> > > >> [ERROR]     <EMPTY_INDEX> ...
> > > >> [ERROR]     "{" ...
> > > >> [ERROR]     "\u001c" ...
> > > >> [ERROR]
> > > >> [ERROR] -> [Help 1]
> > > >> [ERROR]
> > > >> [ERROR] To see the full stack trace of the errors, re-run Maven
> > > >> with the -e switch.
> > > >> [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> > > >> [ERROR]
> > > >> [ERROR] For more information about the errors and possible
> > > >> solutions, please read the following articles:
> > > >> [ERROR] [Help 1]
> > > >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExcep
> > > >> tion
> > > >>
> > > >>
> > > > --
> > > > Andrea Del Bene.
> > > > Apache Wicket committer.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> >
> > ________________________
> > This email was scanned by Bitdefender
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>

Re: maven archetype error

Posted by Martin Grigorov <mg...@apache.org>.
Hello,

10.3.0 has been released ?! When ? Where ?
https://wicket.apache.org/start/wicket-10.x.html and
https://central.sonatype.com/search?q=wicket-core say that 10.2.0 is the
last release ;-)

You could use:

mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=10.3.0-SNAPSHOT -DgroupId=com.mycompany
-DartifactId=myproject -DarchetypeRepository=https://repository.apache.org/
-Dlog4j.properties=wildfly-doesnt-need-log4j.properties
-DinteractiveMode=false

I don't see #[[ and/or ]]# in the generated ./myproject/pom.xml.
If you still see those please file a Jira ticket with exact steps to
reproduce!

Martin


On Tue, Nov 5, 2024 at 2:35 PM Dr. Janko Jochimsen <
Janko.Jochimsen@urios-beratung.de> wrote:

> Hallo to all,
>
> first let me say thank you to all the people that maintain the wicket core
> and the other projects. I think that wicket is really a completely
> underestimated and undervalued programming environment.
>
> Therefore it is really really important that it is accessible to all
> newcomers. Here seems to be some room for improvement:
>
> While the maven archetype error Shengch Hsiao raised is technically solved
> it is still quite hard to reach the solution and get a working quickstart:
>
> A.
> The quickstart form on https://wicket.apache.org/start/quickstart.html is
> still configured for the broken 10.2.0 as default. It really takes a while
> to understand that there is also a 10.3.0 available that works. It would
> also be helpful if this quickstart would be reachable from within eclipse.
>
> B:
> While the 10.3.0 creates a project, the pom.xml can not be imported into
> eclipse without editing:
> There are two placeholders in this file that break the pom.xml logic:
> In Line 27              #[[
> In Line 210             ]]#
>
> Once they are deleted you can import the project and everything runs as
> expected.
>
>
> Maybe someone could adjust these two points please.
>
>
> Best
>
>
> Janko
>
> -----Ursprüngliche Nachricht-----
> Von: Shengche Hsiao <sh...@gmail.com>
> Gesendet: Mittwoch, 2. Oktober 2024 14:40
> An: users@wicket.apache.org
> Betreff: Re: maven archetype error
>
> Martin
>
> Thanks
>
> Get Outlook for iOS<https://aka.ms/o0ukef>
> ________________________________
> From: Martin Grigorov <mg...@apache.org>
> Sent: Wednesday, October 2, 2024 8:15:44 PM
> To: users@wicket.apache.org <us...@wicket.apache.org>
> Subject: Re: maven archetype error
>
> Hi,
>
> https://issues.apache.org/jira/browse/WICKET-7124
> https://github.com/apache/wicket/pull/981
>
> Martin
>
> On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao <sh...@gmail.com>
> wrote:
>
> > Hello
> >
> > My instructions and error messages, thanks. I am using macos 15.0,
> > java version 17 and maven 3.9.9
> >
> >
> > 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/
> > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > -DinteractiveMode=false
> >
> >
> > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java -version
> > openjdk version "17.0.12" 2024-07-16 LTS OpenJDK Runtime Environment
> > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS) OpenJDK 64-Bit Server VM
> > Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
> > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn -vsersion
> > Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> > Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> > Java version: 22.0.2, vendor: Homebrew, runtime:
> > /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/Home
> > Default locale: en_TW, platform encoding: UTF-8 OS name: "mac os x",
> > version: "15.0", arch: "aarch64", family: "mac"
> > shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> > -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> > -DinteractiveMode=false
> > [INFO] Scanning for projects...
> > [INFO]
> > [INFO] ------------------< org.apache.maven:standalone-pom
> > >-------------------
> > [INFO] Building Maven Stub Project (No POM) 1 [INFO]
> > --------------------------------[ pom
> > ]---------------------------------
> > [INFO]
> > [INFO] >>> archetype:3.3.0:generate (default-cli) > generate-sources @
> > standalone-pom >>> [INFO] [INFO] <<< archetype:3.3.0:generate
> > (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO]
> > [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> > [INFO] Finished at: 2024-10-01T15:06:55+08:00 [INFO]
> > ----------------------------------------------------------------------
> > --
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > [ERROR]     "\u001c" ...
> > [ERROR]     "\u001c" ...
> > [ERROR]     "||" ...
> > [ERROR]     "|" ...
> > [ERROR]     "(" ...
> > [ERROR]     ")" ...
> > [ERROR]     <ESCAPE_DIRECTIVE> ...
> > [ERROR]     "]]#" ...
> > [ERROR]     <WHITESPACE> ...
> > [ERROR]     <NEWLINE> ...
> > [ERROR]     <SUFFIX> ...
> > [ERROR]     <STRING_LITERAL> ...
> > [ERROR]     <INTEGER_LITERAL> ...
> > [ERROR]     <FLOATING_POINT_LITERAL> ...
> > [ERROR]     <DOT> ...
> > [ERROR]     "{" ...
> > [ERROR]     "}" ...
> > [ERROR]     "\\\\" ...
> > [ERROR]     "\\" ...
> > [ERROR]     <TEXT> ...
> > [ERROR]     <INLINE_TEXT> ...
> > [ERROR]     <EMPTY_INDEX> ...
> > [ERROR]     "{" ...
> > [ERROR]     "\u001c" ...
> > [ERROR]
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > the -e switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptio
> > n
> >
> >
> >
> > From: Andrea Del Bene <an...@gmail.com>
> > Date: Tuesday, October 1, 2024 at 4:06 AM
> > To: users@wicket.apache.org <us...@wicket.apache.org>
> > Subject: Re: maven archetype error
> > Are you using the archetype at
> > https://wicket.apache.org/start/quickstart.html  ? I can't replicate
> > the error.  Could you show the full command?
> > Thank you.
> >
> > On 9/30/24 15:19, Shengche Hsiao wrote:
> > > Hi
> > >
> > > I tried 10.2.0, and 9.x, they draw the same error
> > >
> > > From: Andrea Del Bene <an...@gmail.com>
> > > Date: Monday, September 30, 2024 at 9:02 PM
> > > To: users@wicket.apache.org <us...@wicket.apache.org>
> > > Subject: Re: maven archetype error
> > > Hi,
> > >
> > > which version of Wicket are you trying to use for the quickstart?
> > >
> > > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> > >
> > >> Dear all
> > >>
> > >> Using new archetype caused error and cannot create new
> > >> maven-quick-start project
> > >>
> > >> [INFO]
> > >> -------------------------------------------------------------------
> > >> -----
> > >> [INFO] BUILD FAILURE
> > >> [INFO]
> > >> -------------------------------------------------------------------
> > >> -----
> > >> [INFO] Total time:  2.018 s
> > >> [INFO] Finished at: 2024-09-29T10:03:11+08:00 [INFO]
> > >> -------------------------------------------------------------------
> > >> -----
> > >> [ERROR] Failed to execute goal
> > >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> > >> [ERROR]     "\u001c" ...
> > >> [ERROR]     "\u001c" ...
> > >> [ERROR]     "||" ...
> > >> [ERROR]     "|" ...
> > >> [ERROR]     "(" ...
> > >> [ERROR]     ")" ...
> > >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> > >> [ERROR]     "]]#" ...
> > >> [ERROR]     <WHITESPACE> ...
> > >> [ERROR]     <NEWLINE> ...
> > >> [ERROR]     <SUFFIX> ...
> > >> [ERROR]     <STRING_LITERAL> ...
> > >> [ERROR]     <INTEGER_LITERAL> ...
> > >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> > >> [ERROR]     <DOT> ...
> > >> [ERROR]     "{" ...
> > >> [ERROR]     "}" ...
> > >> [ERROR]     "\\\\" ...
> > >> [ERROR]     "\\" ...
> > >> [ERROR]     <TEXT> ...
> > >> [ERROR]     <INLINE_TEXT> ...
> > >> [ERROR]     <EMPTY_INDEX> ...
> > >> [ERROR]     "{" ...
> > >> [ERROR]     "\u001c" ...
> > >> [ERROR]
> > >> [ERROR] -> [Help 1]
> > >> [ERROR]
> > >> [ERROR] To see the full stack trace of the errors, re-run Maven
> > >> with the -e switch.
> > >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > >> [ERROR]
> > >> [ERROR] For more information about the errors and possible
> > >> solutions, please read the following articles:
> > >> [ERROR] [Help 1]
> > >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExcep
> > >> tion
> > >>
> > >>
> > > --
> > > Andrea Del Bene.
> > > Apache Wicket committer.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
> ________________________
> This email was scanned by Bitdefender
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

AW: maven archetype error

Posted by "Dr. Janko Jochimsen" <Ja...@urios-beratung.de>.
Hallo to all,

first let me say thank you to all the people that maintain the wicket core and the other projects. I think that wicket is really a completely underestimated and undervalued programming environment.

Therefore it is really really important that it is accessible to all newcomers. Here seems to be some room for improvement:

While the maven archetype error Shengch Hsiao raised is technically solved it is still quite hard to reach the solution and get a working quickstart:

A.
The quickstart form on https://wicket.apache.org/start/quickstart.html is still configured for the broken 10.2.0 as default. It really takes a while to understand that there is also a 10.3.0 available that works. It would also be helpful if this quickstart would be reachable from within eclipse.

B:
While the 10.3.0 creates a project, the pom.xml can not be imported into eclipse without editing:
There are two placeholders in this file that break the pom.xml logic:
In Line 27              #[[
In Line 210             ]]#

Once they are deleted you can import the project and everything runs as expected.


Maybe someone could adjust these two points please.


Best


Janko

-----Ursprüngliche Nachricht-----
Von: Shengche Hsiao <sh...@gmail.com>
Gesendet: Mittwoch, 2. Oktober 2024 14:40
An: users@wicket.apache.org
Betreff: Re: maven archetype error

Martin

Thanks

Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________
From: Martin Grigorov <mg...@apache.org>
Sent: Wednesday, October 2, 2024 8:15:44 PM
To: users@wicket.apache.org <us...@wicket.apache.org>
Subject: Re: maven archetype error

Hi,

https://issues.apache.org/jira/browse/WICKET-7124
https://github.com/apache/wicket/pull/981

Martin

On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao <sh...@gmail.com>
wrote:

> Hello
>
> My instructions and error messages, thanks. I am using macos 15.0,
> java version 17 and maven 3.9.9
>
>
> 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/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> -DinteractiveMode=false
>
>
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java -version
> openjdk version "17.0.12" 2024-07-16 LTS OpenJDK Runtime Environment
> Corretto-17.0.12.7.1 (build 17.0.12+7-LTS) OpenJDK 64-Bit Server VM
> Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed mode, sharing)
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn -vsersion
> Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> Java version: 22.0.2, vendor: Homebrew, runtime:
> /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/Home
> Default locale: en_TW, platform encoding: UTF-8 OS name: "mac os x",
> version: "15.0", arch: "aarch64", family: "mac"
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> -DinteractiveMode=false
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------< org.apache.maven:standalone-pom
> >-------------------
> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
> --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] >>> archetype:3.3.0:generate (default-cli) > generate-sources @
> standalone-pom >>> [INFO] [INFO] <<< archetype:3.3.0:generate
> (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO]
> [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> [INFO] Finished at: 2024-10-01T15:06:55+08:00 [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> [ERROR]     "\u001c" ...
> [ERROR]     "\u001c" ...
> [ERROR]     "||" ...
> [ERROR]     "|" ...
> [ERROR]     "(" ...
> [ERROR]     ")" ...
> [ERROR]     <ESCAPE_DIRECTIVE> ...
> [ERROR]     "]]#" ...
> [ERROR]     <WHITESPACE> ...
> [ERROR]     <NEWLINE> ...
> [ERROR]     <SUFFIX> ...
> [ERROR]     <STRING_LITERAL> ...
> [ERROR]     <INTEGER_LITERAL> ...
> [ERROR]     <FLOATING_POINT_LITERAL> ...
> [ERROR]     <DOT> ...
> [ERROR]     "{" ...
> [ERROR]     "}" ...
> [ERROR]     "\\\\" ...
> [ERROR]     "\\" ...
> [ERROR]     <TEXT> ...
> [ERROR]     <INLINE_TEXT> ...
> [ERROR]     <EMPTY_INDEX> ...
> [ERROR]     "{" ...
> [ERROR]     "\u001c" ...
> [ERROR]
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptio
> n
>
>
>
> From: Andrea Del Bene <an...@gmail.com>
> Date: Tuesday, October 1, 2024 at 4:06 AM
> To: users@wicket.apache.org <us...@wicket.apache.org>
> Subject: Re: maven archetype error
> Are you using the archetype at
> https://wicket.apache.org/start/quickstart.html  ? I can't replicate
> the error.  Could you show the full command?
> Thank you.
>
> On 9/30/24 15:19, Shengche Hsiao wrote:
> > Hi
> >
> > I tried 10.2.0, and 9.x, they draw the same error
> >
> > From: Andrea Del Bene <an...@gmail.com>
> > Date: Monday, September 30, 2024 at 9:02 PM
> > To: users@wicket.apache.org <us...@wicket.apache.org>
> > Subject: Re: maven archetype error
> > Hi,
> >
> > which version of Wicket are you trying to use for the quickstart?
> >
> > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> >
> >> Dear all
> >>
> >> Using new archetype caused error and cannot create new
> >> maven-quick-start project
> >>
> >> [INFO]
> >> -------------------------------------------------------------------
> >> -----
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> -------------------------------------------------------------------
> >> -----
> >> [INFO] Total time:  2.018 s
> >> [INFO] Finished at: 2024-09-29T10:03:11+08:00 [INFO]
> >> -------------------------------------------------------------------
> >> -----
> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> >> [ERROR]     "\u001c" ...
> >> [ERROR]     "\u001c" ...
> >> [ERROR]     "||" ...
> >> [ERROR]     "|" ...
> >> [ERROR]     "(" ...
> >> [ERROR]     ")" ...
> >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> >> [ERROR]     "]]#" ...
> >> [ERROR]     <WHITESPACE> ...
> >> [ERROR]     <NEWLINE> ...
> >> [ERROR]     <SUFFIX> ...
> >> [ERROR]     <STRING_LITERAL> ...
> >> [ERROR]     <INTEGER_LITERAL> ...
> >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> >> [ERROR]     <DOT> ...
> >> [ERROR]     "{" ...
> >> [ERROR]     "}" ...
> >> [ERROR]     "\\\\" ...
> >> [ERROR]     "\\" ...
> >> [ERROR]     <TEXT> ...
> >> [ERROR]     <INLINE_TEXT> ...
> >> [ERROR]     <EMPTY_INDEX> ...
> >> [ERROR]     "{" ...
> >> [ERROR]     "\u001c" ...
> >> [ERROR]
> >> [ERROR] -> [Help 1]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven
> >> with the -e switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible
> >> solutions, please read the following articles:
> >> [ERROR] [Help 1]
> >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExcep
> >> tion
> >>
> >>
> > --
> > Andrea Del Bene.
> > Apache Wicket committer.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

________________________
This email was scanned by Bitdefender

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: maven archetype error

Posted by Shengche Hsiao <sh...@gmail.com>.
Martin

Thanks

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Martin Grigorov <mg...@apache.org>
Sent: Wednesday, October 2, 2024 8:15:44 PM
To: users@wicket.apache.org <us...@wicket.apache.org>
Subject: Re: maven archetype error

Hi,

https://issues.apache.org/jira/browse/WICKET-7124
https://github.com/apache/wicket/pull/981

Martin

On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao <sh...@gmail.com>
wrote:

> Hello
>
> My instructions and error messages, thanks. I am using macos 15.0, java
> version 17 and maven 3.9.9
>
>
> 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/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> -DinteractiveMode=false
>
>
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java -version
> openjdk version "17.0.12" 2024-07-16 LTS
> OpenJDK Runtime Environment Corretto-17.0.12.7.1 (build 17.0.12+7-LTS)
> OpenJDK 64-Bit Server VM Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed
> mode, sharing)
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn -vsersion
> Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> Java version: 22.0.2, vendor: Homebrew, runtime:
> /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/Home
> Default locale: en_TW, platform encoding: UTF-8
> OS name: "mac os x", version: "15.0", arch: "aarch64", family: "mac"
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> -DinteractiveMode=false
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------< org.apache.maven:standalone-pom
> >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] >>> archetype:3.3.0:generate (default-cli) > generate-sources @
> standalone-pom >>>
> [INFO]
> [INFO] <<< archetype:3.3.0:generate (default-cli) < generate-sources @
> standalone-pom <<<
> [INFO]
> [INFO]
> [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> [INFO] Finished at: 2024-10-01T15:06:55+08:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> [ERROR]     "\u001c" ...
> [ERROR]     "\u001c" ...
> [ERROR]     "||" ...
> [ERROR]     "|" ...
> [ERROR]     "(" ...
> [ERROR]     ")" ...
> [ERROR]     <ESCAPE_DIRECTIVE> ...
> [ERROR]     "]]#" ...
> [ERROR]     <WHITESPACE> ...
> [ERROR]     <NEWLINE> ...
> [ERROR]     <SUFFIX> ...
> [ERROR]     <STRING_LITERAL> ...
> [ERROR]     <INTEGER_LITERAL> ...
> [ERROR]     <FLOATING_POINT_LITERAL> ...
> [ERROR]     <DOT> ...
> [ERROR]     "{" ...
> [ERROR]     "}" ...
> [ERROR]     "\\\\" ...
> [ERROR]     "\\" ...
> [ERROR]     <TEXT> ...
> [ERROR]     <INLINE_TEXT> ...
> [ERROR]     <EMPTY_INDEX> ...
> [ERROR]     "{" ...
> [ERROR]     "\u001c" ...
> [ERROR]
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
>
> From: Andrea Del Bene <an...@gmail.com>
> Date: Tuesday, October 1, 2024 at 4:06 AM
> To: users@wicket.apache.org <us...@wicket.apache.org>
> Subject: Re: maven archetype error
> Are you using the archetype at
> https://wicket.apache.org/start/quickstart.html  ? I can't replicate the
> error.  Could you show the full command?
> Thank you.
>
> On 9/30/24 15:19, Shengche Hsiao wrote:
> > Hi
> >
> > I tried 10.2.0, and 9.x, they draw the same error
> >
> > From: Andrea Del Bene <an...@gmail.com>
> > Date: Monday, September 30, 2024 at 9:02 PM
> > To: users@wicket.apache.org <us...@wicket.apache.org>
> > Subject: Re: maven archetype error
> > Hi,
> >
> > which version of Wicket are you trying to use for the quickstart?
> >
> > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> >
> >> Dear all
> >>
> >> Using new archetype caused error and cannot create new maven-quick-start
> >> project
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time:  2.018 s
> >> [INFO] Finished at: 2024-09-29T10:03:11+08:00
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> >> [ERROR]     "\u001c" ...
> >> [ERROR]     "\u001c" ...
> >> [ERROR]     "||" ...
> >> [ERROR]     "|" ...
> >> [ERROR]     "(" ...
> >> [ERROR]     ")" ...
> >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> >> [ERROR]     "]]#" ...
> >> [ERROR]     <WHITESPACE> ...
> >> [ERROR]     <NEWLINE> ...
> >> [ERROR]     <SUFFIX> ...
> >> [ERROR]     <STRING_LITERAL> ...
> >> [ERROR]     <INTEGER_LITERAL> ...
> >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> >> [ERROR]     <DOT> ...
> >> [ERROR]     "{" ...
> >> [ERROR]     "}" ...
> >> [ERROR]     "\\\\" ...
> >> [ERROR]     "\\" ...
> >> [ERROR]     <TEXT> ...
> >> [ERROR]     <INLINE_TEXT> ...
> >> [ERROR]     <EMPTY_INDEX> ...
> >> [ERROR]     "{" ...
> >> [ERROR]     "\u001c" ...
> >> [ERROR]
> >> [ERROR] -> [Help 1]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> >> -e switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> >> please read the following articles:
> >> [ERROR] [Help 1]
> >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> >>
> >>
> > --
> > Andrea Del Bene.
> > Apache Wicket committer.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

Re: maven archetype error

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

https://issues.apache.org/jira/browse/WICKET-7124
https://github.com/apache/wicket/pull/981

Martin

On Tue, Oct 1, 2024 at 10:07 AM Shengche Hsiao <sh...@gmail.com>
wrote:

> Hello
>
> My instructions and error messages, thanks. I am using macos 15.0, java
> version 17 and maven 3.9.9
>
>
> 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/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> -DinteractiveMode=false
>
>
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % java -version
> openjdk version "17.0.12" 2024-07-16 LTS
> OpenJDK Runtime Environment Corretto-17.0.12.7.1 (build 17.0.12+7-LTS)
> OpenJDK 64-Bit Server VM Corretto-17.0.12.7.1 (build 17.0.12+7-LTS, mixed
> mode, sharing)
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % mvn -vsersion
> Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: /opt/homebrew/Cellar/maven/3.9.9/libexec
> Java version: 22.0.2, vendor: Homebrew, runtime:
> /opt/homebrew/Cellar/openjdk/22.0.2/libexec/openjdk.jdk/Contents/Home
> Default locale: en_TW, platform encoding: UTF-8
> OS name: "mac os x", version: "15.0", arch: "aarch64", family: "mac"
> shengchehsiao@Shengches-MacBook-Pro-M1-MAX wickettest % 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/
> -Dlog4j.properties=wildfly-doesnt-need-log4j.properties
> -DinteractiveMode=false
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------< org.apache.maven:standalone-pom
> >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] >>> archetype:3.3.0:generate (default-cli) > generate-sources @
> standalone-pom >>>
> [INFO]
> [INFO] <<< archetype:3.3.0:generate (default-cli) < generate-sources @
> standalone-pom <<<
> [INFO]
> [INFO]
> [INFO] --- archetype:3.3.0: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.1.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:  0.620 s
> [INFO] Finished at: 2024-10-01T15:06:55+08:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> [ERROR]     "\u001c" ...
> [ERROR]     "\u001c" ...
> [ERROR]     "||" ...
> [ERROR]     "|" ...
> [ERROR]     "(" ...
> [ERROR]     ")" ...
> [ERROR]     <ESCAPE_DIRECTIVE> ...
> [ERROR]     "]]#" ...
> [ERROR]     <WHITESPACE> ...
> [ERROR]     <NEWLINE> ...
> [ERROR]     <SUFFIX> ...
> [ERROR]     <STRING_LITERAL> ...
> [ERROR]     <INTEGER_LITERAL> ...
> [ERROR]     <FLOATING_POINT_LITERAL> ...
> [ERROR]     <DOT> ...
> [ERROR]     "{" ...
> [ERROR]     "}" ...
> [ERROR]     "\\\\" ...
> [ERROR]     "\\" ...
> [ERROR]     <TEXT> ...
> [ERROR]     <INLINE_TEXT> ...
> [ERROR]     <EMPTY_INDEX> ...
> [ERROR]     "{" ...
> [ERROR]     "\u001c" ...
> [ERROR]
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
>
> From: Andrea Del Bene <an...@gmail.com>
> Date: Tuesday, October 1, 2024 at 4:06 AM
> To: users@wicket.apache.org <us...@wicket.apache.org>
> Subject: Re: maven archetype error
> Are you using the archetype at
> https://wicket.apache.org/start/quickstart.html  ? I can't replicate the
> error.  Could you show the full command?
> Thank you.
>
> On 9/30/24 15:19, Shengche Hsiao wrote:
> > Hi
> >
> > I tried 10.2.0, and 9.x, they draw the same error
> >
> > From: Andrea Del Bene <an...@gmail.com>
> > Date: Monday, September 30, 2024 at 9:02 PM
> > To: users@wicket.apache.org <us...@wicket.apache.org>
> > Subject: Re: maven archetype error
> > Hi,
> >
> > which version of Wicket are you trying to use for the quickstart?
> >
> > On Sun, Sep 29, 2024 at 4:06 AM 魚鴞 黃 <fr...@gmail.com> wrote:
> >
> >> Dear all
> >>
> >> Using new archetype caused error and cannot create new maven-quick-start
> >> project
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time:  2.018 s
> >> [INFO] Finished at: 2024-09-29T10:03:11+08:00
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-archetype-plugin:3.3.0: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:
> >> [ERROR]     "\u001c" ...
> >> [ERROR]     "\u001c" ...
> >> [ERROR]     "||" ...
> >> [ERROR]     "|" ...
> >> [ERROR]     "(" ...
> >> [ERROR]     ")" ...
> >> [ERROR]     <ESCAPE_DIRECTIVE> ...
> >> [ERROR]     "]]#" ...
> >> [ERROR]     <WHITESPACE> ...
> >> [ERROR]     <NEWLINE> ...
> >> [ERROR]     <SUFFIX> ...
> >> [ERROR]     <STRING_LITERAL> ...
> >> [ERROR]     <INTEGER_LITERAL> ...
> >> [ERROR]     <FLOATING_POINT_LITERAL> ...
> >> [ERROR]     <DOT> ...
> >> [ERROR]     "{" ...
> >> [ERROR]     "}" ...
> >> [ERROR]     "\\\\" ...
> >> [ERROR]     "\\" ...
> >> [ERROR]     <TEXT> ...
> >> [ERROR]     <INLINE_TEXT> ...
> >> [ERROR]     <EMPTY_INDEX> ...
> >> [ERROR]     "{" ...
> >> [ERROR]     "\u001c" ...
> >> [ERROR]
> >> [ERROR] -> [Help 1]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> >> -e switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> >> please read the following articles:
> >> [ERROR] [Help 1]
> >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> >>
> >>
> > --
> > Andrea Del Bene.
> > Apache Wicket committer.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>