Thanks for your reply,

No its not dependency problem

coz to test it what i did is i created ant build.xml with 
commons-loggin.jar in the classpath and compiled it it worked fine, no 
error,
here is what is there in my build.xml

    <javac srcdir="${src.dir}" destdir="${build.dest}" source="1.4"
           debug="on" optimize="off">
        <classpath refid="compile.classpath"/>
    </javac>

then i created pom for this and added commons-logging.jar as dependency 
then compiled it

                        <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
                                  <debug>true</debug>
                                  <showDeprecation>false</showDeprecation>
                                  <compilerVersion>1.4</compilerVersion>
                                </configuration>
                                <inherited>true</inherited>
                </plugin>
                        ;;;;;;;;;;;;;
                        <dependencies>
                        <dependency>
                                <groupId>commons-logging</groupId>
                                <artifactId>commons-logging</artifactId>
                                <type>jar</type>
                                <scope>provided</scope>
                                <version>1.0.3</version>
                        </dependency>
                        </dependencies>
                        ;;;;;;;;;;;;;;;;;;;;
 
and it fails with the message

[INFO] Compilation failure

C:\views\.../...\Abc.java:[3,0] package org.apache.commons does not exist

and the 3rd line on my Abc.java imports all commons components as, 

import org.apache.commons.*




Thanks,





"Nick Veys" <[EMAIL PROTECTED]>
08/07/2006 06:18 PM
Please respond to "Maven Users List"
 
        To:     "Maven Users List" <users@maven.apache.org>
        cc: 
        Subject:        Re: problem with compiler plugin


Sounds like you don't have the dependency specified...   What does
your pom.xml look like, what does your ant script do?  There's not
much info in your message! :)

On 8/7/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi All
>
> i'm having this weired error,
>
> in my ABC.java dev team has something  like
>
>         import org.apache.commons.*
>
> then when i use ant build file with commons-logging.xml it compiles
> perfectly, but when i use maven to buidl this at compiler phase it 
throws
> error as
>
>         package org.apache.commons does not exist
>
> why maven compiler plugin fails, here is there something i'm doing 
wrong,
>
> Please advise
>
> Thanks
>
>
> -----------------------------------------
> This transmission may contain information that is privileged,
> confidential, legally privileged, and/or exempt from disclosure
> under applicable law.  If you are not the intended recipient, you
> are hereby notified that any disclosure, copying, distribution, or
> use of the information contained herein (including any reliance
> thereon) is STRICTLY PROHIBITED.  Although this transmission and
> any attachments are believed to be free of any virus or other
> defect that might affect any computer system into which it is
> received and opened, it is the responsibility of the recipient to
> ensure that it is virus free and no responsibility is accepted by
> JPMorgan Chase & Co., its subsidiaries and affiliates, as
> applicable, for any loss or damage arising in any way from its use.
> If you received this transmission in error, please immediately
> contact the sender and destroy the material in its entirety,
> whether in electronic or hard copy format. Thank you.
>
>

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


Reply via email to