You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sunrays9 <su...@gmail.com> on 2008/02/21 06:48:29 UTC

Getting compile time error

Hi All,

1) I did the following steps for myproject.
 - mvn archetype:create -DgroupId=com.iip.datasync -DartifactId=dpc 
exeucted in the   
    D:\Maven_Examples\Example3 dir
 - mvn package  command executed at Example3\dpc folder
it is succesfull

2) Now I placed my java files into 
D:\Maven_Examples\Example3\dpc\src\main\java\com\iip\datasync folder.

3)After that again i executed "mvn package" command at Example3\dpc folder.
But it has thrown the following error.
       InformationManagerImpl.java:[164,31] cannot find symbol
       symbol  : class InvalidArgumentException

because of InvalidArgumentException class is available in abi.jar
To avoid this error i should provide this jar file at the compile time for
the maven.

so now my question is, How should i provide this jar to maven for compiling.
Please respond me.

Thanks,
Pawan
-- 
View this message in context: http://www.nabble.com/Getting-compile-time-error-tp15605218s177p15605218.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Getting compile time error

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Feb 20, 2008 at 10:48 PM, sunrays9 <su...@gmail.com> wrote:

>  because of InvalidArgumentException class is available in abi.jar
>  To avoid this error i should provide this jar file at the compile time for
>  the maven.
>
>  so now my question is, How should i provide this jar to maven for compiling.
>  Please respond me.

You'll need to put the jar into a repository, and then declare a
dependency on it.

Here's more than you wanted to know about dependencies...
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

If that jar is available in the central repository you're all set.  If
not, you can install it into your local repository, which you can read
about here:  http://maven.apache.org/plugins/maven-install-plugin/usage.html

(If you're working with a team, the next step would be to set up a
shared remote repository.)

-- 
Wendy

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