Hi Youngho,

sorry, thanks for this solution, this could be applied and resolves the 
path mismatch.

That is we realigned the docs folder into src/main folder and did not yet 
have updated the srcFile path in "create-data", when you performed the 
repo checkout. 

By chance Jeffery provided the fix in the latest commit df1fc2d (date 
October 27th). 

If you git pull the archetype repo and build it again, you'll find the 
changes applied in a new archetype instance. This remedies your additional 
setup fix.

Thanks for your patience!

Best regards, Georg




Von:    조영호 <[email protected]>
An:     [email protected]
Datum:  28.10.2021 08:08
Betreff:        Re: Test webapp build using turbine-archetype problem



Hello,

Finally I built it successfully. but I have to add resource copy into the
template pom.xml like


            <resource>

                <directory>src/main/data</directory>

                <includes>

                    <include>**/*</include>

                </includes>

                <targetPath>../../docs</targetPath>

            </resource>

But I don't think it is the right way to fix a fresh build problem.


Thanks,

Youngho

[INFO] --- maven-war-plugin:3.2.2:war (default-war) @ helloQuark ---

[INFO] Packaging webapp

[INFO] Assembling webapp [helloQuark] in
[/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/helloQuark-1.0]

[INFO] Processing war project

[INFO] Copying webapp webResources
[/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/src/main/webapp/WEB-INF]
to
[/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/helloQuark-1.0]

[INFO] Copying webapp resources
[/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/src/main/webapp]

[INFO] Webapp assembled in [2271 msecs]

[INFO] Building war:
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/helloQuark-1.0.war

[INFO]

[INFO] --- sql-maven-plugin:1.5:execute (create-db) @ helloQuark ---

[INFO] Executing file:
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/generated-sql/torque/mysql/application-schema.sql

[INFO] Executing file:
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/generated-sql/torque/mysql/id-table-schema.sql

[INFO] Executing file:
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/generated-sql/torque/mysql/torque-security-schema.sql

[INFO] 27 of 27 SQL statements executed successfully

[INFO]

[INFO] --- sql-maven-plugin:1.5:execute (create-data) @ helloQuark ---

[INFO] Executing file:
/var/folders/3h/z90c84xx0qs2hq_z2bwn9llw0000gn/T/_application-data.1871098456sql

[INFO] Executing file:
/var/folders/3h/z90c84xx0qs2hq_z2bwn9llw0000gn/T/_turbine-security-data.1561835630sql

[INFO] 20 of 20 SQL statements executed successfully

[INFO]
------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 40.513 s

[INFO] Finished at: 2021-10-28T14:58:43+09:00

[INFO] Final Memory: 54M/452M

[INFO]
------------------------------------------------------------------------

[INFO]
------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 58.468 s

[INFO] Finished at: 2021-10-28T14:58:43+09:00

[INFO] Final Memory: 19M/178M

[INFO]
------------------------------------------------------------------------



2021년 10월 28일 (목) 오후 12:05, 조영호 <[email protected]>님이 작성
:

> Hello Geory, Jeffery
>
>
> Thanks for your reply.
>
>
> I go one step further successfully. But I failed to build my first app
> also.
>
>
> the error message said
>
> [ERROR] Failed to execute goal
> org.codehaus.mojo:sql-maven-plugin:1.5:execute (create-data) on project
> helloQuark:
> 
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/docs/sample-mysql-data/_application-data.sql
> not found. -> [Help 1]
>
>
> But I found the sample-mysql-data folder not docs directory but
> target/data directory
>
>
> Am I something wrong?
>
>
> Thanks,
>
>
> Youngho
>
>
> ps : Hi Jeffery, I used your build_app script. Thanks a lot.
>
>
>
> yeonghoui-MacBook-Air:quark youngho1203$ ls -al helloQuark/docs
>
> total 48
>
> drwxr-xr-x  4 youngho1203  staff    128 10 28 10:43 .
>
> drwxr-xr-x  6 youngho1203  staff    192 10 28 10:43 ..
>
> -rw-r--r--  1 youngho1203  staff  11025 10 28 10:43 DOCKER-README.md
>
> -rw-r--r--  1 youngho1203  staff   8231 10 28 10:43 README.md
>
> yeonghoui-MacBook-Air:quark youngho1203$ ls -al
> helloQuark/target/data/sample-mysql-data
>
> total 16
>
> drwxr-xr-x  4 youngho1203  staff   128 10 28 10:43 .
>
> drwxr-xr-x  3 youngho1203  staff    96 10 28 10:43 ..
>
> -rw-r--r--  1 youngho1203  staff   754 10 28 10:43 _application-data.sql
>
> -rw-r--r--  1 youngho1203  staff  1621 10 28 10:43
> _turbine-security-data.sql
>
>
>
> [INFO]
>
> [INFO] --- sql-maven-plugin:1.5:execute (create-db) @ helloQuark ---
>
> [INFO] Executing file:
> 
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/generated-sql/torque/mysql/application-schema.sql
>
> [INFO] Executing file:
> 
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/generated-sql/torque/mysql/id-table-schema.sql
>
> [INFO] Executing file:
> 
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/target/generated-sql/torque/mysql/torque-security-schema.sql
>
> [INFO] 27 of 27 SQL statements executed successfully
>
> [INFO]
>
> [INFO] --- sql-maven-plugin:1.5:execute (create-data) @ helloQuark ---
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 48.517 s
>
> [INFO] Finished at: 2021-10-28T10:44:13+09:00
>
> [INFO] Final Memory: 54M/454M
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.codehaus.mojo:sql-maven-plugin:1.5:execute (create-data) on project
> helloQuark:
> 
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/docs/sample-mysql-data/_application-data.sql
> not found. -> [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
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 01:17 min
>
> [INFO] Finished at: 2021-10-28T10:44:14+09:00
>
> [INFO] Final Memory: 19M/176M
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate
> (default-cli) on project standalone-pom: Failed to invoke goals -> [Help 
1]
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute
> goal org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate
> (default-cli) on project standalone-pom: Failed to invoke goals
>
> at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>
> at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
>
> at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
>
> at
> 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>
> at
> 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>
> at
> 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>
> at
> 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
> at
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:498)
>
> at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>
> at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>
> at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>
> at
> 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
> invoke goals
>
> at
> 
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.invokePostArchetypeGenerationGoals(CreateProjectFromArchetypeMojo.java:254)
>
> at
> 
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:231)
>
> at
> 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>
> at
> 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>
> ... 20 more
>
> [ERROR]
>
> [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
>
>
>


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to