Ok. Yea, I knew about how to add a dependency. I just wasn't sure it was a 'best practice' to add propietary jars to your repository. But I guess if you are working with Maven it's the only way to go.
Thanks for the tip! Bob Mike Horwitz wrote: > > The best way to handle this is to run an internal repository for > proprietary > jars. You can look at Archiva: http://maven.apache.org/archiva/ as one > possible solution. > > Adding a jar to your local maven repository is simple: just add a > dependency > in your pom.xml, run maven and it will complain the dependency is missing. > At the same time it will give you the command you need to run to place the > jar file in your repository. > > Mike. > > On 18/02/2008, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> I have successfully added a JAR to my app. This JAR contains another app >> of >> mine and I need access to some code contained within. >> >> I physically added it to my WEB-INF/lib dir, did a Refresh in Eclipse and >> added it in the Properties : Java Build Properties. Everything compiles >> but >> when I execute run-war or run I get errors, it can't find any of the >> classes >> in my newly-added JAR. If I do a Clean on the project (not with Maven, >> with >> Eclipse - Project : Clean) it works ... for a while. But every 2-3 >> executions of run-war I have to do another Clean. >> >> This is annoying and time consuming. I don't think I should have to add >> my >> JAR to the Mavan repository, it's not 'public' code. Is there any way to >> make the Maven scripts aware of my JAR? >> >> Thanks, >> Bob >> -- >> View this message in context: >> http://www.nabble.com/How-to-make-Maven-see-a-new-JAR-that%27s-not-in-Maven-repository--tp15546914s2369p15546914.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/How-to-make-Maven-see-a-new-JAR-that%27s-not-in-Maven-repository--tp15546914s2369p15560367.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
