Create a Maven project in Eclipse complains “Could not resolve archetype” [duplicate]

I fixed this problem by following the solution to this other StackOverflow question I had the same problem. I fixed it by adding the maven archetype catalog to eclipse. Steps are provided below: (Please note the https protocol) Open Window > Preferences Open Maven > Archetypes Click ‘Add Remote Catalog’ and add the following: Catalog … Read more

Maven and adding JARs to system scope

I don’t know the real reason but Maven pushes developers to install all libraries (custom too) into some maven repositories, so scope:system is not well liked, A simple workaround is to use maven-install-plugin follow the usage: write your dependency in this way <dependency> <groupId>com.mylib</groupId> <artifactId>mylib-core</artifactId> <version>0.0.1</version> </dependency> then, add maven-install-plugin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> <executions> … Read more

leiningen – how to add dependencies for local jars?

Just use :resource-paths in your project.clj file. I use it, e.g. to connect to Siebel servers. Just created a resources directory in my project directory and copied the jar files in there. But of course you could use a more generic directory: (defproject test-project “0.1.0-SNAPSHOT” :description “Blah blah blah” … :resource-paths [“resources/Siebel.jar” “resources/SiebelJI_enu.jar”]) Then from … Read more

The method getDispatcherType() is undefined for the type HttpServletRequest

You’re not supposed to provide Servlet API along with the web application archive if the target runtime already provides the API out the box. Tomcat as being a JSP/Servletcontainer already provides JSP, Servlet and EL APIs out the box. When you provide them along with your webapp anyway, then you may run into classloading conflicts … Read more