Discussion:
Template maven issue
Thomas Feldman
2009-02-26 16:09:51 UTC
Permalink
Hi,



I again have some issues with maven when I try to deploy my
templates....Some packages are missing...

In fact, this time, I'm under linux...

Here is the -X maven output... Good luck!



***@gaius:~/Templates/my-templates$ Path to dependency:

-bash: Path: command not found

***@gaius:~/Templates/my-templates$ 1)
org.jahia.templates:my-templates:war:1

-bash: syntax error near unexpected token `)'

***@gaius:~/Templates/my-templates$ 2)
org.jahia.server:jahia-taglib:jar:6

-bash: syntax error near unexpected token `)'

***@gaius:~/Templates/my-templates$

***@gaius:~/Templates/my-templates$ ----------

-bash: ----------: command not found

***@gaius:~/Templates/my-templates$ 2 required artifacts are missing.

-bash: 2: command not found

***@gaius:~/Templates/my-templates$







***@gaius:~/Templates/my-templates$ mvn -X install war:exploded
jahia:deploy~

+ Error stacktraces are turned on.

Maven version: 2.0.9

Java version: 1.6.0_12

OS name: "linux" version: "2.6.26-1-686" arch: "i386" Family: "unix"

[DEBUG] Building Maven user-level plugin registry from:
'/home/jahia/.m2/plugin-
registry.xml'

[DEBUG] Building Maven global-level plugin registry from:
'/usr/share/maven2/con
f/plugin-registry.xml'

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'war'.

[DEBUG] Loading plugin prefixes from group: org.jahia.server

[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins

[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo

[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8
for pro
ject: null:maven-war-plugin:maven-plugin:2.1-alpha-1 from the
repository.

[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org
.apache.maven.plugins:maven-plugins:pom:8 from the repository.

[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.mave
n:maven-parent:pom:5 from the repository.

[DEBUG] maven-jahia-plugin: resolved to version 6.0-CE from repository
jahiaRepo
sitory

[DEBUG] Retrieving parent-POM: org.jahia.server:jahia-root::1.0 for
project: nul
l:maven-jahia-plugin:maven-plugin:6.0-CE from the repository.

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

[ERROR] BUILD FAILURE

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

[INFO] Required goal not found: jahia:deploy~ in
org.jahia.server:maven-jahia-pl
ugin:6.0-CE

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

[DEBUG] Trace

org.apache.maven.BuildFailureException: Required goal not found:
jahia:deploy~ i
n org.jahia.server:maven-jahia-plugin:6.0-CE

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1558)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:405)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:137)

at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

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

[INFO] Total time: < 1 second

[INFO] Finished at: Thu Feb 26 17:04:34 CET 2009

[INFO] Final Memory: 2M/5M

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

***@gaius:~/Templates/my-templates$



Thomas Feldman
Chef de projet technique -Technical Project Manager
____________________________________________________________

Duke - A Razorfish Company
86-90, rue Notre Dame de Nazareth
75003 Paris - France
T : +33 (0)1 53 44 17 19

mailto:***@duke-interactive.com
<mailto:***@duke-interactive.com>
http://www.duke-interactive.com <http://www.duke-interactive.com>
____________________________________________________________

If emails save time, not printing them saves trees
Benjamin Papez
2009-02-27 06:59:45 UTC
Permalink
Hello Thomas,

I cannot see the error saying that some packages are missing. Instead I
can see the error

"Required goal not found: jahia:deploy~ in
org.jahia.server:maven-jahia-plugin:6.0-CE"

Could perhaps the swung dash after the word deploy be the problem?

Regards,
Benjamin
Post by Thomas Feldman
Hi,
I again have some issues with maven when I try to deploy my
templates….Some packages are missing…
In fact, this time, I’m under *linux*…
Here is the –X maven output… Good luck!
-bash: Path: command not found
org.jahia.templates:my-templates:war:1
-bash: syntax error near unexpected token `)'
org.jahia.server:jahia-taglib:jar:6
-bash: syntax error near unexpected token `)'
-bash: ----------: command not found
-bash: 2: command not found
jahia:deploy~
+ Error stacktraces are turned on.
Maven version: 2.0.9
Java version: 1.6.0_12
OS name: "linux" version: "2.6.26-1-686" arch: "i386" Family: "unix"
'/home/jahia/.m2/plugin- registry.xml'
'/usr/share/maven2/con f/plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'war'.
[DEBUG] Loading plugin prefixes from group: org.jahia.server
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
null:maven-war-plugin:maven-plugin:2.1-alpha-1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
project: org .apache.maven.plugins:maven-plugins:pom:8 from the
repository.
org.apache.mave n:maven-parent:pom:5 from the repository.
[DEBUG] maven-jahia-plugin: resolved to version 6.0-CE from repository
jahiaRepo sitory
[DEBUG] Retrieving parent-POM: org.jahia.server:jahia-root::1.0 for
project: nul l:maven-jahia-plugin:maven-plugin:6.0-CE from the repository.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Required goal not found: jahia:deploy~ in
org.jahia.server:maven-jahia-pl ugin:6.0-CE
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
jahia:deploy~ i n org.jahia.server:maven-jahia-plugin:6.0-CE
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:405)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Feb 26 17:04:34 CET 2009
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------
*Thomas Feldman
*Chef de projet technique -Technical Project Manager
____________________________________________________________
*Duke - A Razorfish Company*
86-90, rue Notre Dame de Nazareth
75003 Paris - France
T : +33 (0)1 53 44 17 19
http://www.duke-interactive.com
____________________________________________________________
If emails save time, not printing them saves trees
Continue reading on narkive:
Search results for 'Template maven issue' (Questions and Answers)
8
replies
how do you start a fashion blog?
started 2013-01-02 10:15:57 UTC
fashion & accessories
Loading...