You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tommy <tl...@yahoo.com> on 2006/08/18 21:42:52 UTC

Getting EAR pluggin to work with java-source

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?

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting EAR pluggin to work with java-source

Posted by Stephane Nicoll <st...@gmail.com>.
Hi,

On 8/18/06, Tommy <tl...@yahoo.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org