Re: Test webapp build using turbine-archetype problem

조영호 <[email protected]> Thu, 28 Oct 2021 15:07:41 +0900
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <CAEGwqBr0GvKjYGDdwoDa8Y0Op8tkRkA_-CvkB_Aqbj3DgN6ToQ@mail.gmail.com>
--000000000000e90cc205cf6387dc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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/ta=
rget/helloQuark-1.0]

[INFO] Processing war project

[INFO] Copying webapp webResources
[/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/sr=
c/main/webapp/WEB-INF]
to
[/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/ta=
rget/helloQuark-1.0]

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

[INFO] Webapp assembled in [2271 msecs]

[INFO] Building war:
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/tar=
get/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/tar=
get/generated-sql/torque/mysql/application-schema.sql

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

[INFO] Executing file:
/Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/tar=
get/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.18710984=
56sql

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

[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=EB=85=84 10=EC=9B=94 28=EC=9D=BC (=EB=AA=A9) =EC=98=A4=ED=9B=84 12:05,=
 =EC=A1=B0=EC=98=81=ED=98=B8 <[email protected]>=EB=8B=98=EC=9D=B4 =EC=
=9E=91=EC=84=B1:

> 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/d=
ocs/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/t=
arget/generated-sql/torque/mysql/application-schema.sql
>
> [INFO] Executing file:
> /Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/t=
arget/generated-sql/torque/mysql/id-table-schema.sql
>
> [INFO] Executing file:
> /Users/youngho1203/Documents/GitHub/turbine-archetypes/quark/helloQuark/t=
arget/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/d=
ocs/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.jav=
a:213)
>
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.jav=
a:154)
>
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.jav=
a:146)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(L=
ifecycleModuleBuilder.java:117)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(L=
ifecycleModuleBuilder.java:81)
>
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreaded=
Builder.build(SingleThreadedBuilder.java:51)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleSta=
rter.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(DelegatingMethodAccessorI=
mpl.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:22=
9)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launch=
er.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.invokePos=
tArchetypeGenerationGoals(CreateProjectFromArchetypeMojo.java:254)
>
> at
> org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(C=
reateProjectFromArchetypeMojo.java:231)
>
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuil=
dPluginManager.java:134)
>
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.jav=
a: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
>
>
>

--000000000000e90cc205cf6387dc--