You need to tell it which main class to use. between the tag's value of artifactId and the tag's value of version add a mince like this (ojdbc-7). Add xyz as a dependency to the plugin using the system scope (not too difficult, but you'd be better off with 1 as once you start using the system scope, you'll incorrectly think it's the solution to all your problems and then it will bite you in the ass somewhere else) 2008/12/8 Jaikiran <[hidden email]> To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Is Elastigirl's body shape her natural shape, or did she choose it?  | Version: 2.5, © 2002-2012 Stack Overflow for Teams is a private, secure spot for you and When I run it using : java -jar dict.jar. \USERFolder\Laptop_Login.m2\repository\ojdbc\ojdbc\7 Thanks for contributing an answer to Stack Overflow! maven-classpath-plugin-1.3-jar-with-dependencies.jar maven-classpath-plugin-1.3-javadoc.jar maven-classpath-plugin-1.3-sources.jar maven-classpath-plugin-1.3.jar maven-classpath-plugin-1.3.pom. How to add local jar files to a Maven project? Attempt to resolve the expression as a reference to the ArtifactHandler of the current Artifact, again using reflection (eg. Make The Jar Executable . Why were there only 531 electoral votes in the US Presidential Election 2016? and i create manually the path ojdbc\ojdbc\7\ and in the path 7 i put my File Jar. "i think it's the better way to do. What would result from not adding fat to pastry dough. Dealing with “Xerces hell” in Java/Maven? If you wish to define a custom layout for dependency archives within your archive's manifest classpath, try using the element with a value of 'custom', along with the element, like this: This classpath layout is a little more involved than the previous examples. dependency Why is the battery turned off for checking the voltage on the A320? Jar File Not Accepting my Classpath As specified in the manifest.mf . By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. The manifest classpath produced using the above configuration would look like this: Occasionally, you may want to include a Maven repository-style directory structure in your archive. Ranch Hand Posts: 31. posted 10 years ago. Why is it easier to carry a person while spinning than not spinning? Hi I'm new to maven and I'm wondering if there is a way to add tools.jar to the classpath without placing it in the repository. The manifest produced using the above configuration would look like this: If you want to create an executable jar file, you need to configure Maven Archiver accordingly. Previous; Next; Related Tutorials. Here is a sample pom.xml configured to add the classpath and use the class fully.qualified.MainClass as the main class: Options: 1. Famous grandmaster games of "torturous" winning or flaunting out of arrogance? site design / logo © 2020 Stack Exchange Inc; user contributions licensed under cc by-sa. How do I read / convert an InputStream into a String in Java? How to make applyFilters function return false via functions.php. Maven Archiver can add the classpath of your project to the manifest. Can I add jars to maven 2 build classpath without installing them? But both of these solutions are actually flawed. 3- Creating a different local Maven repository. I have a Jar File dict.jar. How to limit population growth in a utopia? Attempt to resolve the expression as a key in the special-case Properties instance, which contains the following mappings. groupId ojdbc groupId Or can I put those jars in some other folder to avoid twisting maven configuration? Add xyz to your repo (seriously, this is the easiest) 2. ", well, I wouldn't say so, mvn install:install-file would do exactly the same, but not manually, less error-prone, more standard, but still less portable build. artifactId ojdbc artifactId The Apache Software Foundation To force the use of '-SNAPSHOT' version naming, simply disable the configuration element, like this: To force the use of '-SNAPSHOT' version naming, simply replace '$artifact.version' with '$artifact.baseVersion' in the custom layout example above, so it looks like this: The full example configuration would look like this: Last Published: 2012-02-01