You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Hoffer <dh...@gmail.com> on 2009/08/06 22:36:08 UTC

Maven Source Plugin config to include generated-sources?

How can I configure the Maven Source Plugin to include source files in the
/target/generated-sources folder?  I would assume it would do this by
default but I don't even see a way to configure this.  It always ignores
additional source here.  Can somebody help me?

-Dave

RE: Maven Source Plugin config to include generated-sources?

Posted by Martin Gainty <mg...@hotmail.com>.
i thought C:\ had to be escaped such as C:\\
C:/ seems to be the better option

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 6 Aug 2009 17:57:36 -0400
> Subject: Re: Maven Source Plugin config to include generated-sources?
> From: bimargulies@gmail.com
> To: users@maven.apache.org
> 
> <includes>
>   <include>path1</include>
>  <include>path2</include>
> </includes>
> 
> On Thu, Aug 6, 2009 at 5:14 PM, David Hoffer<dh...@gmail.com> wrote:
> > Here is the error.
> >
> > Cause: Cannot assign configuration entry 'includes' to 'class
> > [Ljava.lang.String
> > ;' from
> > 'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_svn\CDF\
> > trunk\cdf-webtas/target/generated-sources/**/*.java', which is of type class
> > jav
> > a.lang.String
> >
> > -Dave
> >
> > On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer <dh...@gmail.com> wrote:
> >
> >> Perhaps I don't understand the format of this, I tried the following and
> >> get an error:
> >>
> >> <configuration>
> >>
> >> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
> >> </configuration>
> >>
> >> -Dave
> >>
> >>
> >> On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com> wrote:
> >>
> >>> Wont help you *includes *goal?
> >>>
> >>>
> >>> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
> >>>
> >>> 2009/8/7 David Hoffer <dh...@gmail.com>
> >>>
> >>> > How can I configure the Maven Source Plugin to include source files in
> >>> the
> >>> > /target/generated-sources folder?  I would assume it would do this by
> >>> > default but I don't even see a way to configure this.  It always ignores
> >>> > additional source here.  Can somebody help me?
> >>> >
> >>> > -Dave
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Regards,
> >>> Alexander
> >>>
> >>
> >>
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM

RE: Maven Source Plugin config to include generated-sources?

Posted by Jonathan Woods <jo...@scintillance.com>.
Maybe it doesn't work because the sources plugin is bound to some phase
earlier than generate-sources - I haven't checked.

Jon 

> -----Original Message-----
> From: David Hoffer [mailto:dhoffer6@gmail.com] 
> Sent: 07 August 2009 06:07
> To: Maven Users List
> Subject: Re: Maven Source Plugin config to include generated-sources?
> 
> That does sound good.  I found a workaround by adding the 
> generated-sources folder as a resource, then the source 
> plugin picked these up.  But feels like a hack.  I never like 
> to use non standard approaches because you never know when 
> they will come back to bite you. :)
> 
> IMHO, it seems the sources plugin should be handling these 
> configuration tasks.
> 
> <resources>
>             <resource>
>                 
> <directory>${basedir}/target/generated-sources</directory>
>                 <filtering>true</filtering>
>             </resource>
> </resources>
> 
> I'll checkout the plugin you mentioned.
> 
> -Dave
> 
> 
> 
> On Thu, Aug 6, 2009 at 10:55 PM, Markku Saarela 
> <ma...@iki.fi>wrote:
> 
> > Hi,
> >
> > Try build-helper plugin for adding this 
> target/geratated-sources directory.
> >
> > 
> http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.htm
> > l
> >
> > rgds,
> >
> > Markku
> >
> >
> > David Hoffer wrote:
> >
> >> As far as I can tell this won't work, I think this just includes 
> >> excludes files that are already in the right/included folders.
> >>
> >> I need a way to add the files in 
> ${basedir}/target/generated-sources 
> >> to jar of sources that it creates.
> >>
> >> Does anyone know how to do this?
> >>
> >> -Dave
> >>
> >>
> >> On Thu, Aug 6, 2009 at 7:05 PM, David Hoffer 
> <dh...@gmail.com> wrote:
> >>
> >>
> >>
> >>> Any idea what the format of path1 & path2 are?
> >>>
> >>> I have tried:
> >>>
> >>> <includes>
> >>>                        
> >>> <include>${basedir}/src/main/java/**</include>
> >>>
> >>> <include>${basedir}/target/generated-sources/**</include>
> >>>                    </includes>
> >>>
> >>> And
> >>>
> >>> <includes>
> >>>                        <include>${basedir}/src/main/java</include>
> >>>
> >>> <include>${basedir}/target/generated-sources</include>
> >>> </includes>
> >>>
> >>> Always says no files have been included so it errors out.
> >>>
> >>> -Dave
> >>>
> >>>
> >>> On Thu, Aug 6, 2009 at 3:57 PM, Benson Margulies 
> >>> <bimargulies@gmail.com
> >>> >wrote:
> >>>
> >>>
> >>>
> >>>> <includes>
> >>>>  <include>path1</include>
> >>>>  <include>path2</include>
> >>>> </includes>
> >>>>
> >>>> On Thu, Aug 6, 2009 at 5:14 PM, David 
> Hoffer<dh...@gmail.com> wrote:
> >>>>
> >>>>
> >>>>> Here is the error.
> >>>>>
> >>>>> Cause: Cannot assign configuration entry 'includes' to 'class 
> >>>>> [Ljava.lang.String ;' from
> >>>>>
> >>>>> 
> 'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_sv
> >>>>> n\CDF\ 
> trunk\cdf-webtas/target/generated-sources/**/*.java', which 
> >>>>> is of type
> >>>>>
> >>>>>
> >>>> class
> >>>>
> >>>>
> >>>>> jav
> >>>>> a.lang.String
> >>>>>
> >>>>> -Dave
> >>>>>
> >>>>> On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer 
> <dh...@gmail.com>
> >>>>>
> >>>>>
> >>>> wrote:
> >>>>
> >>>>
> >>>>> Perhaps I don't understand the format of this, I tried the 
> >>>>> following
> >>>>>>
> >>>>>>
> >>>>> and
> >>>>
> >>>>
> >>>>> get an error:
> >>>>>>
> >>>>>> <configuration>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>> 
> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/gene
> >>>> rated-sources/**/*.java</includes>
> >>>>
> >>>>
> >>>>> </configuration>
> >>>>>>
> >>>>>> -Dave
> >>>>>>
> >>>>>>
> >>>>>> On Thu, Aug 6, 2009 at 2:45 PM, Alexander 
> <th...@gmail.com>
> >>>>>>
> >>>>>>
> >>>>> wrote:
> >>>>
> >>>>
> >>>>> Wont help you *includes *goal?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>> 
> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.
> >>>> html#includes
> >>>>
> >>>>
> >>>>> 2009/8/7 David Hoffer <dh...@gmail.com>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> How can I configure the Maven Source Plugin to 
> include source 
> >>>>>>>> files
> >>>>>>>>
> >>>>>>>>
> >>>>>>> in
> >>>>
> >>>>
> >>>>> the
> >>>>>>>
> >>>>>>>
> >>>>>>>> /target/generated-sources folder?  I would assume it 
> would do 
> >>>>>>>> this
> >>>>>>>>
> >>>>>>>>
> >>>>>>> by
> >>>>
> >>>>
> >>>>> default but I don't even see a way to configure this.  It always
> >>>>>>>>
> >>>>>>>>
> >>>>>>> ignores
> >>>>
> >>>>
> >>>>> additional source here.  Can somebody help me?
> >>>>>>>>
> >>>>>>>> -Dave
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Regards,
> >>>>>>> Alexander
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>> 
> ------------------------------------------------------------------
> >>>>> ---
> >>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>> For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>
> >>
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 


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


Re: Maven Source Plugin config to include generated-sources?

Posted by David Hoffer <dh...@gmail.com>.
That does sound good.  I found a workaround by adding the generated-sources
folder as a resource, then the source plugin picked these up.  But feels
like a hack.  I never like to use non standard approaches because you never
know when they will come back to bite you. :)

IMHO, it seems the sources plugin should be handling these configuration
tasks.

<resources>
            <resource>
                <directory>${basedir}/target/generated-sources</directory>
                <filtering>true</filtering>
            </resource>
</resources>

I'll checkout the plugin you mentioned.

-Dave



On Thu, Aug 6, 2009 at 10:55 PM, Markku Saarela <ma...@iki.fi>wrote:

> Hi,
>
> Try build-helper plugin for adding this target/geratated-sources directory.
>
> http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html
>
> rgds,
>
> Markku
>
>
> David Hoffer wrote:
>
>> As far as I can tell this won't work, I think this just includes excludes
>> files that are already in the right/included folders.
>>
>> I need a way to add the files in ${basedir}/target/generated-sources to
>> jar
>> of sources that it creates.
>>
>> Does anyone know how to do this?
>>
>> -Dave
>>
>>
>> On Thu, Aug 6, 2009 at 7:05 PM, David Hoffer <dh...@gmail.com> wrote:
>>
>>
>>
>>> Any idea what the format of path1 & path2 are?
>>>
>>> I have tried:
>>>
>>> <includes>
>>>                        <include>${basedir}/src/main/java/**</include>
>>>
>>> <include>${basedir}/target/generated-sources/**</include>
>>>                    </includes>
>>>
>>> And
>>>
>>> <includes>
>>>                        <include>${basedir}/src/main/java</include>
>>>
>>> <include>${basedir}/target/generated-sources</include>
>>> </includes>
>>>
>>> Always says no files have been included so it errors out.
>>>
>>> -Dave
>>>
>>>
>>> On Thu, Aug 6, 2009 at 3:57 PM, Benson Margulies <bimargulies@gmail.com
>>> >wrote:
>>>
>>>
>>>
>>>> <includes>
>>>>  <include>path1</include>
>>>>  <include>path2</include>
>>>> </includes>
>>>>
>>>> On Thu, Aug 6, 2009 at 5:14 PM, David Hoffer<dh...@gmail.com> wrote:
>>>>
>>>>
>>>>> Here is the error.
>>>>>
>>>>> Cause: Cannot assign configuration entry 'includes' to 'class
>>>>> [Ljava.lang.String
>>>>> ;' from
>>>>>
>>>>> 'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_svn\CDF\
>>>>> trunk\cdf-webtas/target/generated-sources/**/*.java', which is of type
>>>>>
>>>>>
>>>> class
>>>>
>>>>
>>>>> jav
>>>>> a.lang.String
>>>>>
>>>>> -Dave
>>>>>
>>>>> On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer <dh...@gmail.com>
>>>>>
>>>>>
>>>> wrote:
>>>>
>>>>
>>>>> Perhaps I don't understand the format of this, I tried the following
>>>>>>
>>>>>>
>>>>> and
>>>>
>>>>
>>>>> get an error:
>>>>>>
>>>>>> <configuration>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
>>>>
>>>>
>>>>> </configuration>
>>>>>>
>>>>>> -Dave
>>>>>>
>>>>>>
>>>>>> On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com>
>>>>>>
>>>>>>
>>>>> wrote:
>>>>
>>>>
>>>>> Wont help you *includes *goal?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
>>>>
>>>>
>>>>> 2009/8/7 David Hoffer <dh...@gmail.com>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> How can I configure the Maven Source Plugin to include source files
>>>>>>>>
>>>>>>>>
>>>>>>> in
>>>>
>>>>
>>>>> the
>>>>>>>
>>>>>>>
>>>>>>>> /target/generated-sources folder?  I would assume it would do this
>>>>>>>>
>>>>>>>>
>>>>>>> by
>>>>
>>>>
>>>>> default but I don't even see a way to configure this.  It always
>>>>>>>>
>>>>>>>>
>>>>>>> ignores
>>>>
>>>>
>>>>> additional source here.  Can somebody help me?
>>>>>>>>
>>>>>>>> -Dave
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>> Alexander
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven Source Plugin config to include generated-sources?

Posted by Markku Saarela <ma...@iki.fi>.
Hi,

Try build-helper plugin for adding this target/geratated-sources directory.

http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html

rgds,

Markku

David Hoffer wrote:
> As far as I can tell this won't work, I think this just includes excludes
> files that are already in the right/included folders.
>
> I need a way to add the files in ${basedir}/target/generated-sources to jar
> of sources that it creates.
>
> Does anyone know how to do this?
>
> -Dave
>
>
> On Thu, Aug 6, 2009 at 7:05 PM, David Hoffer <dh...@gmail.com> wrote:
>
>   
>> Any idea what the format of path1 & path2 are?
>>
>> I have tried:
>>
>> <includes>
>>                         <include>${basedir}/src/main/java/**</include>
>>
>> <include>${basedir}/target/generated-sources/**</include>
>>                     </includes>
>>
>> And
>>
>> <includes>
>>                         <include>${basedir}/src/main/java</include>
>>
>> <include>${basedir}/target/generated-sources</include>
>> </includes>
>>
>> Always says no files have been included so it errors out.
>>
>> -Dave
>>
>>
>> On Thu, Aug 6, 2009 at 3:57 PM, Benson Margulies <bi...@gmail.com>wrote:
>>
>>     
>>> <includes>
>>>  <include>path1</include>
>>>  <include>path2</include>
>>> </includes>
>>>
>>> On Thu, Aug 6, 2009 at 5:14 PM, David Hoffer<dh...@gmail.com> wrote:
>>>       
>>>> Here is the error.
>>>>
>>>> Cause: Cannot assign configuration entry 'includes' to 'class
>>>> [Ljava.lang.String
>>>> ;' from
>>>> 'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_svn\CDF\
>>>> trunk\cdf-webtas/target/generated-sources/**/*.java', which is of type
>>>>         
>>> class
>>>       
>>>> jav
>>>> a.lang.String
>>>>
>>>> -Dave
>>>>
>>>> On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer <dh...@gmail.com>
>>>>         
>>> wrote:
>>>       
>>>>> Perhaps I don't understand the format of this, I tried the following
>>>>>           
>>> and
>>>       
>>>>> get an error:
>>>>>
>>>>> <configuration>
>>>>>
>>>>>
>>>>>           
>>> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
>>>       
>>>>> </configuration>
>>>>>
>>>>> -Dave
>>>>>
>>>>>
>>>>> On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com>
>>>>>           
>>> wrote:
>>>       
>>>>>> Wont help you *includes *goal?
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
>>>       
>>>>>> 2009/8/7 David Hoffer <dh...@gmail.com>
>>>>>>
>>>>>>             
>>>>>>> How can I configure the Maven Source Plugin to include source files
>>>>>>>               
>>> in
>>>       
>>>>>> the
>>>>>>             
>>>>>>> /target/generated-sources folder?  I would assume it would do this
>>>>>>>               
>>> by
>>>       
>>>>>>> default but I don't even see a way to configure this.  It always
>>>>>>>               
>>> ignores
>>>       
>>>>>>> additional source here.  Can somebody help me?
>>>>>>>
>>>>>>> -Dave
>>>>>>>
>>>>>>>               
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> Alexander
>>>>>>
>>>>>>             
>>>>>           
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>       
>
>   


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


Re: Maven Source Plugin config to include generated-sources?

Posted by David Hoffer <dh...@gmail.com>.
As far as I can tell this won't work, I think this just includes excludes
files that are already in the right/included folders.

I need a way to add the files in ${basedir}/target/generated-sources to jar
of sources that it creates.

Does anyone know how to do this?

-Dave


On Thu, Aug 6, 2009 at 7:05 PM, David Hoffer <dh...@gmail.com> wrote:

> Any idea what the format of path1 & path2 are?
>
> I have tried:
>
> <includes>
>                         <include>${basedir}/src/main/java/**</include>
>
> <include>${basedir}/target/generated-sources/**</include>
>                     </includes>
>
> And
>
> <includes>
>                         <include>${basedir}/src/main/java</include>
>
> <include>${basedir}/target/generated-sources</include>
> </includes>
>
> Always says no files have been included so it errors out.
>
> -Dave
>
>
> On Thu, Aug 6, 2009 at 3:57 PM, Benson Margulies <bi...@gmail.com>wrote:
>
>> <includes>
>>  <include>path1</include>
>>  <include>path2</include>
>> </includes>
>>
>> On Thu, Aug 6, 2009 at 5:14 PM, David Hoffer<dh...@gmail.com> wrote:
>> > Here is the error.
>> >
>> > Cause: Cannot assign configuration entry 'includes' to 'class
>> > [Ljava.lang.String
>> > ;' from
>> > 'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_svn\CDF\
>> > trunk\cdf-webtas/target/generated-sources/**/*.java', which is of type
>> class
>> > jav
>> > a.lang.String
>> >
>> > -Dave
>> >
>> > On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer <dh...@gmail.com>
>> wrote:
>> >
>> >> Perhaps I don't understand the format of this, I tried the following
>> and
>> >> get an error:
>> >>
>> >> <configuration>
>> >>
>> >>
>> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
>> >> </configuration>
>> >>
>> >> -Dave
>> >>
>> >>
>> >> On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com>
>> wrote:
>> >>
>> >>> Wont help you *includes *goal?
>> >>>
>> >>>
>> >>>
>> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
>> >>>
>> >>> 2009/8/7 David Hoffer <dh...@gmail.com>
>> >>>
>> >>> > How can I configure the Maven Source Plugin to include source files
>> in
>> >>> the
>> >>> > /target/generated-sources folder?  I would assume it would do this
>> by
>> >>> > default but I don't even see a way to configure this.  It always
>> ignores
>> >>> > additional source here.  Can somebody help me?
>> >>> >
>> >>> > -Dave
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Regards,
>> >>> Alexander
>> >>>
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

Re: Maven Source Plugin config to include generated-sources?

Posted by David Hoffer <dh...@gmail.com>.
Any idea what the format of path1 & path2 are?

I have tried:

<includes>
                        <include>${basedir}/src/main/java/**</include>

<include>${basedir}/target/generated-sources/**</include>
                    </includes>

And

<includes>
                        <include>${basedir}/src/main/java</include>

<include>${basedir}/target/generated-sources</include>
</includes>

Always says no files have been included so it errors out.

-Dave

On Thu, Aug 6, 2009 at 3:57 PM, Benson Margulies <bi...@gmail.com>wrote:

> <includes>
>  <include>path1</include>
>  <include>path2</include>
> </includes>
>
> On Thu, Aug 6, 2009 at 5:14 PM, David Hoffer<dh...@gmail.com> wrote:
> > Here is the error.
> >
> > Cause: Cannot assign configuration entry 'includes' to 'class
> > [Ljava.lang.String
> > ;' from
> > 'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_svn\CDF\
> > trunk\cdf-webtas/target/generated-sources/**/*.java', which is of type
> class
> > jav
> > a.lang.String
> >
> > -Dave
> >
> > On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer <dh...@gmail.com> wrote:
> >
> >> Perhaps I don't understand the format of this, I tried the following and
> >> get an error:
> >>
> >> <configuration>
> >>
> >>
> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
> >> </configuration>
> >>
> >> -Dave
> >>
> >>
> >> On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com>
> wrote:
> >>
> >>> Wont help you *includes *goal?
> >>>
> >>>
> >>>
> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
> >>>
> >>> 2009/8/7 David Hoffer <dh...@gmail.com>
> >>>
> >>> > How can I configure the Maven Source Plugin to include source files
> in
> >>> the
> >>> > /target/generated-sources folder?  I would assume it would do this by
> >>> > default but I don't even see a way to configure this.  It always
> ignores
> >>> > additional source here.  Can somebody help me?
> >>> >
> >>> > -Dave
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Regards,
> >>> Alexander
> >>>
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven Source Plugin config to include generated-sources?

Posted by Benson Margulies <bi...@gmail.com>.
<includes>
  <include>path1</include>
 <include>path2</include>
</includes>

On Thu, Aug 6, 2009 at 5:14 PM, David Hoffer<dh...@gmail.com> wrote:
> Here is the error.
>
> Cause: Cannot assign configuration entry 'includes' to 'class
> [Ljava.lang.String
> ;' from
> 'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_svn\CDF\
> trunk\cdf-webtas/target/generated-sources/**/*.java', which is of type class
> jav
> a.lang.String
>
> -Dave
>
> On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer <dh...@gmail.com> wrote:
>
>> Perhaps I don't understand the format of this, I tried the following and
>> get an error:
>>
>> <configuration>
>>
>> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
>> </configuration>
>>
>> -Dave
>>
>>
>> On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com> wrote:
>>
>>> Wont help you *includes *goal?
>>>
>>>
>>> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
>>>
>>> 2009/8/7 David Hoffer <dh...@gmail.com>
>>>
>>> > How can I configure the Maven Source Plugin to include source files in
>>> the
>>> > /target/generated-sources folder?  I would assume it would do this by
>>> > default but I don't even see a way to configure this.  It always ignores
>>> > additional source here.  Can somebody help me?
>>> >
>>> > -Dave
>>> >
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Alexander
>>>
>>
>>
>

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


Re: Maven Source Plugin config to include generated-sources?

Posted by David Hoffer <dh...@gmail.com>.
Here is the error.

Cause: Cannot assign configuration entry 'includes' to 'class
[Ljava.lang.String
;' from
'C:\iss_svn\CDF\trunk\cdf-webtas/src/main/java/**/*.java,C:\iss_svn\CDF\
trunk\cdf-webtas/target/generated-sources/**/*.java', which is of type class
jav
a.lang.String

-Dave

On Thu, Aug 6, 2009 at 3:12 PM, David Hoffer <dh...@gmail.com> wrote:

> Perhaps I don't understand the format of this, I tried the following and
> get an error:
>
> <configuration>
>
> <includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
> </configuration>
>
> -Dave
>
>
> On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com> wrote:
>
>> Wont help you *includes *goal?
>>
>>
>> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
>>
>> 2009/8/7 David Hoffer <dh...@gmail.com>
>>
>> > How can I configure the Maven Source Plugin to include source files in
>> the
>> > /target/generated-sources folder?  I would assume it would do this by
>> > default but I don't even see a way to configure this.  It always ignores
>> > additional source here.  Can somebody help me?
>> >
>> > -Dave
>> >
>>
>>
>>
>> --
>> Regards,
>> Alexander
>>
>
>

Re: Maven Source Plugin config to include generated-sources?

Posted by David Hoffer <dh...@gmail.com>.
Perhaps I don't understand the format of this, I tried the following and get
an error:

<configuration>

<includes>${basedir}/src/main/java/**/*.java,${basedir}/target/generated-sources/**/*.java</includes>
</configuration>

-Dave

On Thu, Aug 6, 2009 at 2:45 PM, Alexander <th...@gmail.com> wrote:

> Wont help you *includes *goal?
>
>
> http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes
>
> 2009/8/7 David Hoffer <dh...@gmail.com>
>
> > How can I configure the Maven Source Plugin to include source files in
> the
> > /target/generated-sources folder?  I would assume it would do this by
> > default but I don't even see a way to configure this.  It always ignores
> > additional source here.  Can somebody help me?
> >
> > -Dave
> >
>
>
>
> --
> Regards,
> Alexander
>

Re: Maven Source Plugin config to include generated-sources?

Posted by Alexander <th...@gmail.com>.
Wont help you *includes *goal?

http://maven.apache.org/plugins/maven-source-plugin/aggregate-mojo.html#includes

2009/8/7 David Hoffer <dh...@gmail.com>

> How can I configure the Maven Source Plugin to include source files in the
> /target/generated-sources folder?  I would assume it would do this by
> default but I don't even see a way to configure this.  It always ignores
> additional source here.  Can somebody help me?
>
> -Dave
>



-- 
Regards,
Alexander