Hi,
Thanks for that suggestion. I did try that but it did not help for two
reasons.
1/ generated-sources is automatically picked up by the compiler with or
without the build:helper plugin
2/It is the location of the compiled classes that I need to be changed to
target/classes. Rightnow, the compiled classes go to the same source folder
(generated-sources) and hence do not get bundled in the final artifact.

Any other suggestions?

Thanks!

Pankaj


Jeff MAURY wrote:
> 
> You can use maven-build-helper-plugin to add generated-sources to the list
> of source directories. See
> http://mojo.codehaus.org/build-helper-maven-plugin
> 
> Jeff
> 
> On Jan 3, 2008 2:49 AM, Pankaj Tandon <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi,
>> I'm using weblogic-maven-plugin to generate client stubs (using the
>> clientgen goal). The client stubs are correctly generated in the
>> generated-sources folder as specified in the plugin.
>>
>> Also, as expected, the generated-sources folder is detected by the
>> complier
>> and along with the java files under  src/main/java, the generated source
>> under generated-source is also compiled.
>> However, the source under generated-source is compiled right in the
>> generated-sources folder instead of target/classes.
>> As a result, the classes under generated-sources do not make it into the
>> final artifact (jar).
>>
>> How can I make the classes under generated-sources compile under
>> target/classes?
>>
>> Thanks
>>
>> Pankaj
>>
>> --
>> View this message in context:
>> http://www.nabble.com/generated-sources-class-files-not-in-final-artifact-tp14590265s177p14590265.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
> 
> Miossec (2006)
> 
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/generated-sources-class-files-not-in-final-artifact-tp14590265s177p14596588.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to