Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven 2: eclipse-plugin to generate EAR's dependent projects to .project file
    primarykey
    data
    text
    <p>I'm trying to generate eclipse-project files using Maven2 eclipse-plugin for RAD7.5. All is going well except for the dependencies in the EAR's .project file.</p> <p>When I run mvn eclipse:eclipse on a clean maven project, I come up with an EAR such as this:</p> <pre><code>&lt;projectDescription&gt; &lt;name&gt;MyEAR&lt;/name&gt; &lt;comment&gt;The .project file of MyEAR&lt;/comment&gt; &lt;projects/&gt; &lt;buildSpec&gt; &lt;buildCommand&gt; &lt;name&gt;org.eclipse.wst.common.project.facet.core.builder&lt;/name&gt; &lt;/buildCommand&gt; &lt;buildCommand&gt; &lt;name&gt;org.eclipse.wst.validation.validationbuilder&lt;/name&gt; &lt;/buildCommand&gt; &lt;buildCommand&gt; &lt;name&gt;org.eclipse.jdt.core.javabuilder&lt;/name&gt; &lt;/buildCommand&gt; &lt;buildCommand&gt; &lt;name&gt;com.ibm.etools.validation.validationbuilder&lt;/name&gt; &lt;/buildCommand&gt; &lt;buildCommand&gt; &lt;name&gt;com.ibm.sse.model.structuredbuilder&lt;/name&gt; &lt;/buildCommand&gt; &lt;/buildSpec&gt; &lt;natures&gt; &lt;nature&gt;org.eclipse.jdt.core.javanature&lt;/nature&gt; &lt;nature&gt;org.eclipse.wst.common.project.facet.core.nature&lt;/nature&gt; &lt;nature&gt;org.eclipse.wst.common.modulecore.ModuleCoreNature&lt;/nature&gt; &lt;nature&gt;org.eclipse.jem.workbench.JavaEMFNature&lt;/nature&gt; &lt;/natures&gt; &lt;/projectDescription&gt; </code></pre> <p>BUT I want to be coming out with something like this:</p> <pre><code>&lt;projectDescription&gt; &lt;name&gt;MyEAR&lt;/name&gt; &lt;comment&gt;The .project file of MyEAR&lt;/comment&gt; &lt;projects&gt; &lt;project&gt;MyProjectConnector&lt;/project&gt; &lt;project&gt;MYProjectEJB&lt;/project&gt; &lt;project&gt;MyProjectDependents&lt;/project&gt; &lt;project&gt;MyProjectLOG&lt;/project&gt; &lt;/projects&gt; ... &lt;/projectDescription&gt; </code></pre> <p>RAD7.5 don't understand the project structure unless the dependent projects are listed in the &lt; projects >. <strong>But how do I do that with the eclipse-plugin? Where in the pom do I list the dependent projects, so they appear in the .project-file as &lt; projects >?</strong> </p> <p>Edit>> Here's the maven-eclipse-plugin config of my pom-file</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt; &lt;version&gt;2.6&lt;/version&gt; &lt;configuration&gt; &lt;downloadSources&gt;true&lt;/downloadSources&gt; &lt;downloadJavadocs&gt;false&lt;/downloadJavadocs&gt; &lt;wtpversion&gt;1.5&lt;/wtpversion&gt; &lt;packaging&gt;ear&lt;/packaging&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;finalName&gt;${project.artifactId}-${project.version}-r${buildNumber}&lt;/finalName&gt; &lt;/build&gt; </code></pre> <p>&lt; <p>EDIT2: I must add that the projects builds ok, i.e. mvn clean install works fine, so basically the problem is with the eclipse plugin configuration.</p> <p>EDIT3: The maven-project is built in the following fashion:</p> <pre><code>MyEAR-reactor-build |-- pom.xml |-- MyEAR | |-- pom.xml |-- MYProjectEJB | |-- pom.xml `-- . . . </code></pre> <p>ALL HELP GREATLY APPRECIATED!!! (thanks for reading this far :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload