Hi again,
Did it using a new executable in the maven-compiler-plugin. Now just have to
find out how to make the path to this executable independent of the home as
we are different people contributing to this project.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.3</source>
<target>1.3</target>
<fork>true</fork>
<compilerVersion>1.3</compilerVersion>
<executable>D:\Apps\Java\jdk131_08\bin\javac.exe</executable>
</configuration>
</plugin>
Best regards,
--
António Jacob Costa
IBM Certified Deployment Professional - Maximo V6 EAM
MAXIMO Consultant and Software Engineer
LinkedIn: http://www.linkedin.com/in/antoniojacobcosta
--
On Wed, Oct 21, 2009 at 10:09, Antonio Jacob Costa <jacob.costa@gmail.com>wrote:
> Hi everyone,
>
> I'm having trouble using the Java default package. In my Java class I'm
> including a library from a 3rd party application that includes classes in
> the default package. I have to import one of them and when I compile it with
> Maven I get the following error.
>
> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>>
>> D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,21] '.'
>> expected
>>
>> D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,22] ';'
>> expected
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.BuildFailureException: Compilation failure
>>
>
> I'm solving this problem compiling this class using Eclipse but it would be
> much better if I could just do everything with Maven. Does anyone know how
> to solve this problem?
>
> I'm using Maven 2.2.1 but it also failed with version 2.2.0 and 2.1.0.
>
> Thanks in advance.
>
> Best regards,
> --
> António Jacob Costa
> IBM Certified Deployment Professional - Maximo V6 EAM
>
> MAXIMO Consultant and Software Engineer
> LinkedIn: http://www.linkedin.com/in/antoniojacobcosta
> --
>
>
|