Note that there are some explanatory texts on larger screens.

plurals
  1. POm2eclipse and/or wtp not packaging a dependency correctly?
    primarykey
    data
    text
    <p>Eclipse Indigo SR 1, wtp 3.3.0, m2eclipse 1.0.100.</p> <p>When publishing a project to WTP, I'm getting strange behavior with one of the dependencies; instead of putting the jar in the <code>WEB-INF/lib</code> folder, it's creating a folder named for the expected jar, and then putting the source tree (apparently) from that project under that folder. I can't see anything in the dependency's <code>pom.xml</code> or this project's <code>pom.xml</code> that could be causing this.</p> <p>Other dependencies are being brought over just fine, as jars.</p> <p>My test project's <code>pom.xml</code>:</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;test&lt;/groupId&gt; &lt;artifactId&gt;dwhwtptest&lt;/artifactId&gt; &lt;packaging&gt;war&lt;/packaging&gt; &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt; &lt;name&gt;dwhwtptest Maven Webapp&lt;/name&gt; &lt;url&gt;http://maven.apache.org&lt;/url&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.onebusaway&lt;/groupId&gt; &lt;artifactId&gt;onebusaway-nyc-transit-data&lt;/artifactId&gt; &lt;version&gt;2.0.3-SNAPSHOT&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;build&gt; &lt;finalName&gt;dwhwtptest&lt;/finalName&gt; &lt;/build&gt; &lt;/project&gt; </code></pre> <p>Here's what ends up being published at <code>workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps</code>:</p> <pre><code>$ find dwhwtptest/ dwhwtptest/ dwhwtptest//index.jsp dwhwtptest//META-INF dwhwtptest//META-INF/MANIFEST.MF dwhwtptest//META-INF/maven dwhwtptest//META-INF/maven/test dwhwtptest//META-INF/maven/test/dwhwtptest dwhwtptest//META-INF/maven/test/dwhwtptest/pom.properties dwhwtptest//META-INF/maven/test/dwhwtptest/pom.xml dwhwtptest//WEB-INF dwhwtptest//WEB-INF/lib dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/META-INF dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/META-INF/MANIFEST.MF dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc/transit_data dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc/transit_data/model dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc/transit_data/model/NycQueuedInferredLocationBean.java dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc/transit_data/model/NycVehicleManagementStatusBean.java dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc/transit_data/services dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc/transit_data/services/ConfigurationService.java dwhwtptest//WEB-INF/lib/onebusaway-nyc-transit-data-2.0.3-SNAPSHOT.jar/org/onebusaway/nyc/transit_data/services/VehicleTrackingManagementService.java dwhwtptest//WEB-INF/web.xml </code></pre> <p>And here's the <code>pom.xml</code> for the dependency, the <code>onebusaway-nyc-transit-data</code> module:</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;parent&gt; &lt;artifactId&gt;onebusaway-nyc&lt;/artifactId&gt; &lt;groupId&gt;org.onebusaway&lt;/groupId&gt; &lt;version&gt;2.0.3-SNAPSHOT&lt;/version&gt; &lt;/parent&gt; &lt;groupId&gt;org.onebusaway&lt;/groupId&gt; &lt;artifactId&gt;onebusaway-nyc-transit-data&lt;/artifactId&gt; &lt;packaging&gt;jar&lt;/packaging&gt; &lt;name&gt;onebusaway-nyc-transit-data&lt;/name&gt; &lt;description&gt;Common interfaces and classes for exchanging transit data between UI front-end and transit back-end data sources.&lt;/description&gt; &lt;build&gt; &lt;finalName&gt;onebusaway-nyc-transit-data&lt;/finalName&gt; &lt;/build&gt; &lt;/project&gt; </code></pre> <p>Suggestions? Anything else I can investigate to try to figure out what's going on here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    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