Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-17 Thread Jürgen Weber
you could add the whole tomcat.zip to nexus, unpack it before compile and install-file to local repository. I had a similar problem, I needed to have the jars of an resource adapter rar on the classpath: > I was thinking of adapting maven-warpath-plugin, but in the end I built an > uber jar in

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread Greg Chabala
I appreciate that you're trying to use Maven to build software, but you've framed your question unfairly. What is the simplest way to specify a directory (and all jars underneath > this directory) to be in the maven classpath when it compiles .java classes > and builds a .jar? > Maven builds

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread /dev /local/ca
Thank you for the suggestion Bernd, Do you have an example you can share? There are hundreds of jar files in the $TOMCAT_HOME//WEB-INF/lib directory. I need something with no more than 5..10 lines of XML that would include this directory so that it would pick up all jars and add to the class

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread Bernd Eckenfels
Hello, It is really not a good idea to fight maven. If you need something in the classpath for compile, specify it as dependency in the Pom. Otherwise your build cannot be repeated and the project is hard to set up. All tomcat libraries needed to compile should be in the maven repository. If

Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread /dev /local/ca
What is the simplest way to specify a directory (and all jars underneath this directory) to be in the maven classpath when it compiles .java classes and builds a .jar? The directory is not in my git repo or any directory under my IDE project files. I have a requirement to create a pom.xml that