Jahia Template Forum > Custom maven dependencies...

0 (0 Good)
0 (0 Bad)

Custom maven dependencies not deployed to jahia server

by  sakuraba »  2011/06/07 20:10

I tried adding a dependency to a recaptcha-library to the pom file of my template project:

lt;dependency

  (sakuraba)

Number of messages  12
Registration date
0 (0 Good)
0 (0 Bad)

Re: Custom maven dependencies not deployed to jahia server

by  shuber »  2011/06/07 20:10

Hello,

Did you try by generating the war file instead of using the exploded version ? I think the plugin only supports deploying from a war file it retrieves from the local repository.

Regards,
Serge Huber.

Serge Huber (shuber)

Number of messages  271
Registration date
0 (0 Good)
0 (0 Bad)

Re: Custom maven dependencies not deployed to jahia server

by  sakuraba »  2011/06/07 20:10

I ran

mvn install war:war jahia:deploy

and got the same results. I dont understand why he does not update things:

[INFO] [jahia:deploy {execution: default-cli}]
[INFO] Jahia project structure version is 0
[INFO] Updated template war resources for tomcat v6 in directory .../jahia_v6_CommunityEdition_r25203/webapps/ROOT/jsp/jahia/templates/dana-templates
[INFO] Copied 0 files.
[INFO] Updated template descriptor.

--------------------

Additionally, even with the exploded command, a war file is copied to my local maven repository that includes the custom library inside the war file.

  (sakuraba)

Number of messages  12
Registration date
0 (0 Good)
0 (0 Bad)

Re: Custom maven dependencies not deployed to jahia server

by  sakuraba »  2011/06/07 20:10

I ended up copying the damn thing into my jahia app server by hand. More manual work on our productions servers despite the actual availability of dependency management by maven, YAAYY !! :roll:

  (sakuraba)

Number of messages  12
Registration date
0 (0 Good)
0 (0 Bad)

Re: Custom maven dependencies not deployed to jahia server

by  shuber »  2011/06/07 20:10

Could it be a problem with the version of the Maven plugin you have ? Sometimes purging from the local repository or forcing the version in your project could help. The latest version is : http://maven.jahia.org/maven2/org/jahia ... n-2.25.jar

Regards,
Serge Huber.

Serge Huber (shuber)

Number of messages  271
Registration date
0 (0 Good)
0 (0 Bad)

Re: Custom maven dependencies not deployed to jahia server

by  sakuraba »  2011/06/07 20:10

2.25 is in my local repository, so I guess it is used.


Thank you for help so far.

  (sakuraba)

Number of messages  12
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page