> I'm very new to maven and I'm trying to figure out how > to include j2ee.jar as a dependency. > > Is it possible to do a "file://" in the URL, like so: > > <dependency> > <id>j2ee</id> > > <url>file:///c:\\java\\j2sdkee1.3.1\\lib\\j2ee.jar</url> > <jar>j2ee.jar</jar> > </dependency>
You should put your j2ee.jar into your local repository, and if you have a central repository at your workplace you should add it there (if applicable). I would also rename that jar and add the version to it too...like j2ee-1.2.jar (or whatever the version is). Once you put it into your local repository, and add it to your dependency list, then it will always be used in your classpath. Alternatively you can override it's location by adding a specific path in one of your .properties files (build.properties, project.properties, ${user.home}/build.properties). The specific information on how to do this is documented on Maven's website at http://maven.apache.org/reference/user-guide.html#Overriding%20Stated%20Depe ndencies -- Steve > Something tells me I'm going about this completely the > wrong way. Do I need to set up a "j2ee" directory in > my local repository? > > Steve > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]