maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baptiste MATHUS ...@batmat.net>
Subject Re: Source directory for the maven-apt-plugin plugin
Date Fri, 26 Apr 2013 08:14:56 GMT
OK, I think I misread your first message.
So, it seems you're trying to run the plugin from the parent to access
sources from a child module.

If so, then you should know it's a bad idea. Modules should generally be
independent in their execution.
If that plugin is needed in your core module, then configure it just in
that plugin.

Here, the first error is related to the fact the plugin is trying to
execute for the parent pom, but there's logically no sources. So the
execution stops there.
Then I think the second one is the core module execution inheriting the
parent configuration, but for this module ${basedir} is already containing
core, so there's core twice.

Cheers


2013/4/26 Stephane-3 <mittiprovence@yahoo.se>

> Hello,
>
> Yes, but then my source directory is not found, because it sits in the
> core/ child module as I explained in my original post.
>
> Kind Regards,
>
> Stephane
>
>
>
> ________________________________
>  De : Baptiste MATHUS [via Maven] <ml-node+s40175n5754382h3@n5.nabble.com>
> À : Stephane-3 <mittiprovence@yahoo.se>
> Envoyé le : Vendredi 26 avril 2013 8h48
> Objet : Re: Source directory for the maven-apt-plugin plugin
>
>
>
> Le 25 avr. 2013 16:26, "Stephane-3" <[hidden email]> a écrit :
> [Snip]
> > I'm then trying to specify a source directory, with the following:
> >
> >
>
> <sourceDirectory>${basedir}/core/src/main/java/com/thalasoft/learnintouch/core/jpa/domain</sourceDirectory>
>
> Why do you define sourceDirectory? Its default value is already
> ${basedir}/src/main/java
>
> -- Baptiste
>
>
> ________________________________
>
> If you reply to this email, your message will be added to the discussion
> below:
> http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338p5754382.html
> To unsubscribe from Source directory for the maven-apt-plugin plugin,
> click here.
> NAML
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Source-directory-for-the-maven-apt-plugin-plugin-tp5754338p5754383.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor ! nbsp;!
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message