Hi ,

Thanks everybody for your suggestions.

I was able to compile the same using ant-run-plugin and invoking javac task
from within maven.Maybe i was not setting <sourceDirectory> element properly
in maven.Now i am able to compile using maven-compiler-plugin also.

But is there a way i can chain life cycle phase.For example i am using
<phase>generate-sources</phase> for ant-run-plugin with run goal and
<phase>compile</phase> with goal as compile for maven-compiler-plugin .

Regards
Raju



franz see wrote:
> 
> Good day to you, Raju,
> 
> I agree with Dawn. It is most likely a simple compilation error on your
> java files ( and you probably used -X or --debug which would explain why
> that stacktrace was shown. note: your code did not throw the exception,
> maven did ). Check the output logs on your console again, you will see the
> compilation error.
> 
> Furthermore, AFAIK, using a non-existing parameter under the plugin's
> configuration tag will not produce any error. But it will not warn you of
> such as well. 
> 
> Anyway, just check the output log in your console again and you would most
> probably see there the compilation error on your java files.
> 
> Cheers,
> Franz
> 
> 
> raju wrote:
>> 
>> Hi Wendy,
>> 
>> I just wanted to compile some java files in a source folder and move
>> compiled files to some destination directory.I have put this under build
>> section of pom file only.I gave <sourcedirectory>just after <build>
>> element.It says compiling n number of files then throws this compilation
>> error.
>> 
>> Regards
>> Raju
>> 
>> 
>> 
>> Wendy Smoak-3 wrote:
>>> 
>>> On 1/11/07, raju <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Hi,
>>>> I am trying to compile files in a folder and move them to a directory.
>>>> It
>>>> gives the following error:
>>>> Diagnosis: Compilation failure
>>>> FATAL ERROR: Error executing Maven for a project
>>>> org.apache.maven.BuildFailureException: Compilation failure
>>>>         at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
>>>> Read a lot of similar messages but am not clear what exactly causes
>>>> this.
>>>> <plugin>
>>>>        <artifactId>maven-compiler-plugin</artifactId>
>>>>
>>>>        <executions>
>>>>          <execution>
>>>>
>>>>            <phase>compile</phase>
>>>>            <goals>
>>>>              <goal>compile</goal>
>>>>            </goals>
>>>>            <configuration>
>>>>              <sourceDirectory>wrappers</sourceDirectory>
>>> 
>>> I don't see 'sourceDirectory' as a configuration element for the compile
>>> goal:
>>> http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
>>> 
>>> It's actually a child element of <build>:
>>> http://maven.apache.org/ref/2.0.4/maven-model/maven.html
>>> 
>>> In general, each module can have only one sourceDirectory and one
>>> testSourceDirectory.
>>> 
>>> What are you trying to do?
>>> 
>>> -- 
>>> Wendy
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-Compiler-plugin-tf2958588s177.html#a8292760
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