Jahia DX > errors in module's...

0 (0 Good)
0 (0 Bad)

errors in module's pom.xml generated by maven

by  smichea »  2012/01/23 21:32

 

When creating a module called "eligibility" with "mvn archetype:generate -DarchetypeCatalog=http://maven.jahia.org/maven2" and importing it in eclipe indigo, the generated pom.xml :

 ...

  <modelVersion>4.0.0</modelVersion>

46    <parent>

47        <artifactId>jahia-modules</artifactId>

48        <groupId>org.jahia.modules</groupId>

49        <version>6.5.1.1</version>

50    </parent>

51    <groupId>org.jahia.modules</groupId>


 ...
 
triggers the following errors and warning :
  • Plugin execution not covered by lifecycle configuration: org.jahia.server:maven-jahia-plugin:2.53:native2ascii (execution: native2ascii, phase: generate-resources) pom.xml /eligibility line 46 Maven Project Build Lifecycle Mapping Problem
  • GroupId is duplicate of parent groupId pom.xml /eligibility line 51 Maven pom Loading Problem
  • maven-enforcer-plugin (goal "enforce") is ignored by m2e. pom.xml /eligibility line 46 Maven Project Build Lifecycle Mapping Problem
  • Overriding managed version 2.1-beta-1 for maven-war-plugin pom.xml /eligibility line 76 Maven pom Loading Problem
Any suggestion is welcome
  • errors in module's pom.xml generated by maven
    2012/01/23 21:32

    smichea <p> &nbsp;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #349394"> <span style="color: #000000">When creating a module called &quot;eligibility&quot; with &quot;</span>mvn archetype:generate -DarchetypeCatalog=http://maven.jahia.org/maven2&quot; and importing it in eclipe indigo, the generated pom.xml :</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #349394"> <span style="color: #000000">&nbsp;...</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #349394"> <span style="color: #000000">&nbsp;&nbsp;</span><span style="color: #009595">&lt;</span>modelVersion<span style="color: #009595">&gt;</span><span style="color: #000000">4.0.0</span><span style="color: #009595">&lt;/</span>modelVersion<span style="color: #009595">&gt;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #349394"> <span style="color: #000000">46 &nbsp; &nbsp;</span><span style="text-decoration: underline ; color: #009595">&lt;</span><span style="text-decoration: underline">parent</span><span style="text-decoration: underline ; color: #009595">&gt;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> 47 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009595">&lt;</span><span style="color: #349394">artifactId</span><span style="color: #009595">&gt;</span><span style="text-decoration: underline">jahia</span>-modules<span style="color: #009595">&lt;/</span><span style="color: #349394">artifactId</span><span style="color: #009595">&gt;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> 48 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009595">&lt;</span><span style="color: #349394">groupId</span><span style="color: #009595">&gt;</span>org.jahia.modules<span style="color: #009595">&lt;/</span><span style="color: #349394">groupId</span><span style="color: #009595">&gt;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> 49 &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009595">&lt;</span><span style="color: #349394">version</span><span style="color: #009595">&gt;</span>6.5.1.1<span style="color: #009595">&lt;/</span><span style="color: #349394">version</span><span style="color: #009595">&gt;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #349394"> <span style="color: #000000">50 &nbsp; &nbsp;</span><span style="color: #009595">&lt;/</span>parent<span style="color: #009595">&gt;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> 51 &nbsp; &nbsp;<span style="text-decoration: underline ; color: #009595">&lt;</span><span style="text-decoration: underline ; color: #349394">groupId</span><span style="text-decoration: underline ; color: #009595">&gt;</span><span style="text-decoration: underline">org.jahia.modules</span><span style="text-decoration: underline ; color: #009595">&lt;/</span><span style="text-decoration: underline ; color: #349394">groupId</span><span style="text-decoration: underline ; color: #009595">&gt;</span></p> <br /> <div> &nbsp;...</div> <div> &nbsp;</div> <div> triggers the following errors and warning :</div> <ul> <li> Plugin execution not covered by lifecycle configuration: org.jahia.server:maven-jahia-plugin:2.53:native2ascii (execution: native2ascii, phase: generate-resources)<span class="Apple-tab-span" style="white-space:pre"> </span>pom.xml<span class="Apple-tab-span" style="white-space:pre"> </span>/eligibility<span class="Apple-tab-span" style="white-space:pre"> </span>line 46<span class="Apple-tab-span" style="white-space:pre"> </span>Maven Project Build Lifecycle Mapping Problem</li> <li> GroupId is duplicate of parent groupId<span class="Apple-tab-span" style="white-space:pre"> </span>pom.xml<span class="Apple-tab-span" style="white-space:pre"> </span>/eligibility<span class="Apple-tab-span" style="white-space:pre"> </span>line 51<span class="Apple-tab-span" style="white-space:pre"> </span>Maven pom Loading Problem</li> <li> maven-enforcer-plugin (goal &quot;enforce&quot;) is ignored by m2e.<span class="Apple-tab-span" style="white-space:pre"> </span>pom.xml<span class="Apple-tab-span" style="white-space:pre"> </span>/eligibility<span class="Apple-tab-span" style="white-space:pre"> </span>line 46<span class="Apple-tab-span" style="white-space:pre"> </span>Maven Project Build Lifecycle Mapping Problem</li> <li> Overriding managed version 2.1-beta-1 for maven-war-plugin<span class="Apple-tab-span" style="white-space:pre"> </span>pom.xml<span class="Apple-tab-span" style="white-space:pre"> </span>/eligibility<span class="Apple-tab-span" style="white-space:pre"> </span>line 76<span class="Apple-tab-span" style="white-space:pre"> </span>Maven pom Loading Problem</li> </ul> <div> <div> Any suggestion is welcome</div> </div>

  • Number of messages  1
    Registration date Jan 23, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: errors in module's pom.xml generated by maven

    by  shyrkov »  2012/01/24 09:02

    Hello Sebastien,

    the two warnings ("Maven Project Build Lifecycle Mapping Problem") are comming from the m2e plugin (Maven plugin for Eclipse). The plugin expects some special mappings present in the pom.xml for executions, not covered by it. For details, see: http://wiki.eclipse.org/M2E_plugin_execution_not_covered

    We added those mappings to the parent pom.xml file already (the changes will be avilable in the forthcomming Jahia 6.6).

    The duplicate groupId is just a warning about the fact that the defined groupId in the pom.xml is the same as the parent one and can be omitted. We do include it when generating pom.xml for convenience to be able to change the groupId easily.

    The last warning about maven-war-plugin version is also addressed recently (changes are part of Jahia 6.6 release).

     

    Please, not that the pom.xml and other resources, generated with the artifact are skeletons for quick start with the module develipment. You can/should adjust them to your module needs after generation.

     

    Kind regards

    Sergiy

    Sergiy Shyrkov (shyrkov)

    Number of messages  407
    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