Jahia Template Forum > Cannot find parent:...

0 (0 Good)
0 (0 Bad)

Cannot find parent: org.jahia.modules:jahia-modules

by  edinhobl »  2012/04/18 18:07

Hi!

I'm developing with Jahia 6.6.0.0 and maven2. the problem is, when I'm trying to deploy my template generated by maven2 I get:

Cannot find parent: org.jahia.modules:jahia-modules

 

in detail:

Reason: Cannot find parent: org.jahia.modules:jahia-modules for project: org.jahia.modules:templates-...:war:1.0-SNAPSHOT for project org.jahia.modules:templates-...:war:1.0-SNAPSHOT

pom.xml includes:

    <parent>
        <artifactId>jahia-modules</artifactId>
        <groupId>org.jahia.modules</groupId>
        <version>6.5</version>
    </parent>
    <groupId>org.jahia.modules</groupId>

 

and my settings is the one from the jahia website modifed with the CORRECT pathes for tomcat and local maven2 repository.

  • Cannot find parent: org.jahia.modules:jahia-modules
    2012/04/18 18:07

    edinhobl <p> Hi!</p> <p> I&#39;m developing with Jahia 6.6.0.0 and maven2. the problem is, when I&#39;m trying to deploy my template generated by maven2 I get:</p> <p> Cannot find parent: org.jahia.modules:jahia-modules</p> <p> &nbsp;</p> <p> in detail:</p> <p> Reason: Cannot find parent: org.jahia.modules:jahia-modules for project: org.jahia.modules:templates-...:war:1.0-SNAPSHOT for project org.jahia.modules:templates-...:war:1.0-SNAPSHOT</p> <p> pom.xml includes:</p> <p> &nbsp;&nbsp;&nbsp; &lt;parent&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;artifactId&gt;jahia-modules&lt;/artifactId&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;groupId&gt;org.jahia.modules&lt;/groupId&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;version&gt;6.5&lt;/version&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/parent&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;groupId&gt;org.jahia.modules&lt;/groupId&gt;</p> <p> &nbsp;</p> <p> and my settings is the one from the jahia website modifed with the CORRECT pathes for tomcat and local maven2 repository.</p>

  • Number of messages  11
    Registration date Apr 18, 2012
    0 (0 Good)
    0 (0 Bad)

    solution

    by  edinhobl »  2012/04/18 18:21

    I just tried <version>6.6.0.0</version> and I got some results, now I'm trying to deploy my webdesign and call it in the browser. I'll tell u.

  • solution
    2012/04/18 18:21

    edinhobl <p> I just tried &lt;version&gt;6.6.0.0&lt;/version&gt; and I got some results, now I&#39;m trying to deploy my webdesign and call it in the browser. I&#39;ll tell u.</p>

  • Number of messages  11
    Registration date Apr 18, 2012
    0 (0 Good)
    0 (0 Bad)

    parent now found but

    by  edinhobl »  2012/04/18 18:42

    Ok, I got the dependencies for jahia. but now I can not compile. there are NO MORE errors than this:

    org.apache.maven.lifecycle.LifecycleExecutionException: Error when deploying
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Error when deploying
        at org.jahia.utils.maven.plugin.DeployMojo.doExecute(DeployMojo.java:116)
        at org.jahia.utils.maven.plugin.AbstractManagementMojo.execute(AbstractManagementMojo.java:130)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
    Caused by: java.io.FileNotFoundException: Source '/Users/user1/Desktop/testtemplate/templates-test/target/templates-test-1.0-SNAPSHOT.war' does not exist
        at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:767)
        at org.apache.commons.io.FileUtils.copyFileToDirectory(FileUtils.java:706)
        at org.apache.commons.io.FileUtils.copyFileToDirectory(FileUtils.java:670)
        at org.jahia.utils.maven.plugin.DeployMojo.deployModuleProject(DeployMojo.java:239)
        at org.jahia.utils.maven.plugin.DeployMojo.deployProject(DeployMojo.java:147)
        at org.jahia.utils.maven.plugin.DeployMojo.doExecute(DeployMojo.java:113)
        ... 20 more
     

  • parent now found but
    2012/04/18 18:42

    edinhobl <p> Ok, I got the dependencies for jahia. but now I can not compile. there are NO MORE errors than this:</p> <p> org.apache.maven.lifecycle.LifecycleExecutionException: Error when deploying<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)<br /> &nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> &nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> &nbsp;&nbsp; &nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> &nbsp;&nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:597)<br /> &nbsp;&nbsp; &nbsp;at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)<br /> &nbsp;&nbsp; &nbsp;at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)<br /> &nbsp;&nbsp; &nbsp;at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)<br /> &nbsp;&nbsp; &nbsp;at org.codehaus.classworlds.Launcher.main(Launcher.java:375)<br /> Caused by: org.apache.maven.plugin.MojoExecutionException: Error when deploying<br /> &nbsp;&nbsp; &nbsp;at org.jahia.utils.maven.plugin.DeployMojo.doExecute(DeployMojo.java:116)<br /> &nbsp;&nbsp; &nbsp;at org.jahia.utils.maven.plugin.AbstractManagementMojo.execute(AbstractManagementMojo.java:130)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)<br /> &nbsp;&nbsp; &nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)<br /> &nbsp;&nbsp; &nbsp;... 17 more<br /> Caused by: java.io.FileNotFoundException: Source &#39;/Users/user1/Desktop/testtemplate/templates-test/target/templates-test-1.0-SNAPSHOT.war&#39; does not exist<br /> &nbsp;&nbsp; &nbsp;at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:767)<br /> &nbsp;&nbsp; &nbsp;at org.apache.commons.io.FileUtils.copyFileToDirectory(FileUtils.java:706)<br /> &nbsp;&nbsp; &nbsp;at org.apache.commons.io.FileUtils.copyFileToDirectory(FileUtils.java:670)<br /> &nbsp;&nbsp; &nbsp;at org.jahia.utils.maven.plugin.DeployMojo.deployModuleProject(DeployMojo.java:239)<br /> &nbsp;&nbsp; &nbsp;at org.jahia.utils.maven.plugin.DeployMojo.deployProject(DeployMojo.java:147)<br /> &nbsp;&nbsp; &nbsp;at org.jahia.utils.maven.plugin.DeployMojo.doExecute(DeployMojo.java:113)<br /> &nbsp;&nbsp; &nbsp;... 20 more<br /> &nbsp;</p>

  • Number of messages  11
    Registration date Apr 18, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: parent now found but

    by  shyrkov »  2012/04/18 19:05

    Hello,

    could you, please, provide a bit more details?

    How you build and deploy the module (which maven commands)?

    You could also execute:

    mvn help:effective-settings > settings.out

    mvn help:active-profiles > profiles.out

    mvn help:effective-pom > pom.out

     

    and provide somehoiw the generated *.out files.

     

    Kind regards

    Sergiy

  • Re: parent now found but
    2012/04/18 19:05

    shyrkov <p> Hello,</p> <p> could you, please, provide a bit more details?</p> <p> How you build and deploy the module (which maven commands)?</p> <p> You could also execute:</p> <p> mvn help:effective-settings &gt; settings.out</p> <p> mvn help:active-profiles &gt; profiles.out</p> <p> mvn help:effective-pom &gt; pom.out</p> <p> &nbsp;</p> <p> and provide somehoiw the generated *.out files.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Apr 18, 2012
    0 (0 Good)
    0 (0 Bad)

    after hours

    by  edinhobl »  2012/04/18 21:32

    after hours I figured out:

    1. the privateKeyFile tag (or some how in settings.xml) was not valid and this tag must exist nevertheless if the file exists or not

    2. to build the template war file I had to do: mvn install and then mvn jahia:deploy... i thought only jahia:deploy is necessary (as in the docs) but thats not true

  • after hours
    2012/04/18 21:32

    edinhobl <p> after hours I figured out:</p> <p> 1. the privateKeyFile tag (or some how in settings.xml) was not valid and this tag must exist nevertheless if the file exists or not</p> <p> 2. to build the template war file I had to do: mvn install and then mvn jahia:deploy... i thought only jahia:deploy is necessary (as in the docs) but thats not true</p>

  • Number of messages  11
    Registration date Apr 18, 2012
    0 (0 Good)
    0 (0 Bad)

    thanks

    by  edinhobl »  2012/04/18 21:33

    thanks for your quick reply. did thought I would be so fast!

  • thanks
    2012/04/18 21:33

    edinhobl <p> thanks for your quick reply. did thought I would be so fast!</p>

  • Number of messages  11
    Registration date Apr 18, 2012
    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