Hi,

On 8/18/06, Tommy <[EMAIL PROTECTED]> wrote:

Hello,

I have a seperate project that builds an EAR.

....
<packaging>ear</packaging>
.....
<dependencies>
        <dependency>
      <groupId>mygrpoup</groupId>
      <artifactId>myartifact</artifactId>
      <version>1.0</version>
    </dependency>

.....
</dependencies>


The POM for the myartifact dependency has dependencies for the java-source
of its dependencies.
<dependency>
      <groupId>mygroup</groupId>
      <artifactId>artifact2</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>mygroup</groupId>
      <artifactId>artifact2</artifactId>
      <version>1.0</version>
      <type>java-source</type>
    </dependency>

When I run the 'package' or 'ear:ear' goals I get this error:
[INFO] Failed to initialize ear modules
Embedded error: Unknown artifact type[java-source]

Any ideas on how to get this to work without taking the java-source
dependencies out?
Am I adding the source dependencies correctly?

Mmm, that's interesting. Actually, the EAR plugin should ignore the
dependency. Could you please fill a JIRA issue on the MEAR project [1]

You can resolve your problem by setting an optional scope to the
java-sources dependency so that it's not taken into account/

Thanks,
Stéphane

[1] http://jira.codehaus.org/browse/MEAR


Thanks in advance!
--
View this message in context: 
http://www.nabble.com/Getting-EAR-pluggin-to-work-with-%3Ctype%3Ejava-source%3C-type%3E-tf2129242.html#a5876346
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
.::You're welcome ::.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to