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
  • Custom maven dependencies not deployed to jahia server
    2011/06/07 20:10

    sakuraba I tried adding a dependency to a recaptcha-library to the pom file of my template project:<br/><br/>lt;dependency

  • Number of messages  12
    Registration date Jun 7, 2011
    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.
  • Re: Custom maven dependencies not deployed to jahia server
    2011/06/07 20:10

    sakuraba I ran <br/><br/>mvn install war:war jahia:deploy<br/><br/>and got the same results. I dont understand why he does not update things:<br/><br/>[INFO] [jahia:deploy {execution: default-cli}]<br/>[INFO] Jahia project structure version is 0<br/>[INFO] Updated template war resources for tomcat v6 in directory .../jahia_v6_CommunityEdition_r25203/webapps/ROOT/jsp/jahia/templates/dana-templates<br/>[INFO] Copied 0 files.<br/>[INFO] Updated template descriptor.<br/><br/>--------------------<br/><br/>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.

  • Number of messages  12
    Registration date Jun 7, 2011
    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:
  • Re: Custom maven dependencies not deployed to jahia server
    2011/06/07 20:10

    sakuraba 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 !! <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->

  • Number of messages  12
    Registration date Jun 7, 2011
    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.
  • Re: Custom maven dependencies not deployed to jahia server
    2011/06/07 20:10

    sakuraba 2.25 is in my local repository, so I guess it is used.<br/><br/><br/>Thank you for help so far.

  • Number of messages  12
    Registration date Jun 7, 2011
    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