Skip to main content
Second iteration. Expanded. Fixed edit blunder.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web-app application framework I want to use, and I can quickly generate starter projects from that file. 

However, sometimes I want to link to a third-party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the third-party library by hand and install it, and add the dependency to my pom.xml file, I would just like to tell Maven: "In addition to my defined dependencies, include any JAR files that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point Apache Maven_Maven to a /lib directory and easily create a pom.xml with all the enclosed JAR files mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a third-party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the third-party library by hand and install it, and add the dependency to my pom.xml file, I would just like to tell Maven: "In addition to my defined dependencies, include any JAR files that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point Apache Maven_ to a /lib directory and easily create a pom.xml with all the enclosed JAR files mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web application framework I want to use, and I can quickly generate starter projects from that file. 

However, sometimes I want to link to a third-party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the third-party library by hand and install it, and add the dependency to my pom.xml file, I would just like to tell Maven: "In addition to my defined dependencies, include any JAR files that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point Maven to a /lib directory and easily create a pom.xml with all the enclosed JAR files mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Active reading [<https://en.wikipedia.org/wiki/JAR_%28file_format%29> <https://en.wiktionary.org/wiki/third-party#Adjective> <https://en.wikipedia.org/wiki/Apache_Maven>]. Expanded.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Can I add jarsJAR files to Maven 2 build classpath without installing them?

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xmlpom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd partythird-party library that doesn't already have a pom.xmlpom.xml file defined, so rather than create the pom.xml file for the 3rd party libthird-party library by hand and install it, and add the dependency to my pom.xmlpom.xml file, I would just like to tell Maven: "In addition to my defined dependencies, include any jarsJAR files that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point mavenApache Maven_ to a /lib directory and easily create a pom.xml with all the enclosed jarsJAR files mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Can I add jars to Maven 2 build classpath without installing them?

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: "In addition to my defined dependencies, include any jars that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Can I add JAR files to Maven 2 build classpath without installing them?

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a third-party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the third-party library by hand and install it, and add the dependency to my pom.xml file, I would just like to tell Maven: "In addition to my defined dependencies, include any JAR files that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point Apache Maven_ to a /lib directory and easily create a pom.xml with all the enclosed JAR files mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Formatting
Source Link
Lii
  • 12.2k
  • 9
  • 69
  • 92

Can I add jars to mavenMaven 2 build classpath without installing them?

Maven2Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: "In addition to my defined dependencies, include any jars that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Can I add jars to maven 2 build classpath without installing them?

Maven2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: "In addition to my defined dependencies, include any jars that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

Can I add jars to Maven 2 build classpath without installing them?

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: "In addition to my defined dependencies, include any jars that are in /lib too."

It seems like this ought to be simple, but if it is, I am missing something.

Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.

typos corrected & file name / path formatting
Source Link
Loading
Question Protected by CommunityBot
retagged
Link
Rich Seller
  • 84.3k
  • 23
  • 176
  • 179
Loading
Source Link
purple
purple
Loading