You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Antonio Jacob Costa <ja...@gmail.com> on 2009/10/21 10:09:26 UTC

Error Using Java default package

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
--

Re: Netbeans SOA Project

Posted by Quintin Beukes <qu...@skywalk.co.za>.
I made a switch from Netbeans Ant projects to Maven projects.

I achieved almost everything by finding a plugin that does what I want
(like deployment) and sometimes changing the way I do it a tiny bit.
And the more complex custom build tasks can be achieved by using the
existing ant-run plugin for maven (which runs ant tasks), or if it's
really complex, something ant can't do then you can write your own
plugin.

Quintin Beukes



On Wed, Oct 21, 2009 at 11:47 AM, Entner Harald <En...@afb.de> wrote:
> Hello,
>
> has anyone tried to migrate from Netbeans (which uses ant as build
> script) to Maven. I face some serious problems doing so, with Bpel- and
> Composite Application Modules.
>
> I see two solutions (both are not perfect):
>
> - servicemix from apache, which seems not to be applicable with existing
> project structures. (Additionally we are using OpenESB)
> - write my own plugin, that invokes the ant tasks defined in the
> build-impl.xml, created by netbeans (currently i'm going that way, but
> i'm wondering if there is not a better solution)
>
> All other things are already running (contract first webservices, jaxb
> code generation, ..)
>
> thx
>
> Harald
>
> ---------------------------------------------------------------------
> 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


Netbeans SOA Project

Posted by Entner Harald <En...@afb.de>.
Hello, 

has anyone tried to migrate from Netbeans (which uses ant as build
script) to Maven. I face some serious problems doing so, with Bpel- and
Composite Application Modules.

I see two solutions (both are not perfect):

- servicemix from apache, which seems not to be applicable with existing
project structures. (Additionally we are using OpenESB)
- write my own plugin, that invokes the ant tasks defined in the
build-impl.xml, created by netbeans (currently i'm going that way, but
i'm wondering if there is not a better solution)

All other things are already running (contract first webservices, jaxb
code generation, ..)

thx 

Harald 

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


Re: Error Using Java default package

Posted by Antonio Jacob Costa <ja...@gmail.com>.
Finished.

Just created a profile in Maven's *$home/.m2/settings.xml* file with my
property and used in the *pom.xml* and it was it.

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 11:08, Antonio Jacob Costa <ja...@gmail.com>wrote:

> 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 <ja...@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
>> --
>>
>>
>

Re: Error Using Java default package

Posted by Antonio Jacob Costa <ja...@gmail.com>.
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 <ja...@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
> --
>
>