My project doesn't reference the groovy-all-1.8.3.jar, and the jar is not in the maven dependency tree and .classpath file.
When the project is imported to Eclipse, it notices that the groovy-all-1.8.3.jar is referenced.
How can the jar be referenced?
In the Maven Project put the following dependency in pom.xml
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>1.8.3</version>
</dependency>
And run mvn clean install , It solves your problem.
Related
i have added a dependency in my pom.xml like:
<dependency>
<groupId>com.excample</groupId>
<artifactId>someJar</artifactId>
<version>${version}</version>
</dependency>
inside that jar, in META-INF\maven\com.excample\someJar\ dir, there is another pom.xml.
when i run mvn clean install all its dependencies not getting downloaded or added to classpath.
Is there any reason for that?
Thanks in advance.
I am currently having an issue with IntelliJ.
I have several dependencies in my pom. However, when I generate an artifact, I can add the maven libraries but instead of maven extracting the jar contents, Maven instead pops the entire jar into the artifact jar. This results in my program failing to load. How can I get IntelliJ to not do this and instead extract the jar contents into the build?
I configured the artifact manually through intelliJ
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
<scope>compile</scope>
</dependency>
Thank you.
I am trying to build my maven project in IntelliJ.
I added the dependency in the pom file as shown.
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>sqljdbc4</artifactId>
<version>4.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/sqljdbc4-2.0.jar</systemPath>
</dependency>
I also have the sqljdbc4-2.0.jar in the /lib folder.
I am able to successfully clean the project and package it. However, when i run the jar on my linux machine it gives me following exception:
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
Please help. Struggling with this for quite some time. Thanks.
Eclipse displays errors in a Maven project. How can I fix it?
It seems that project works as it should.
Maven dependencies:
<dependency>
<groupId>com.jgeppert.struts2.jquery</groupId>
<artifactId>struts2-jquery-plugin</artifactId>
<version>3.7.1</version>
</dependency>
<dependency>
<groupId>com.jgeppert.struts2.jquery</groupId>
<artifactId>struts2-jquery-grid-plugin</artifactId>
<version>3.7.1</version>
</dependency>
The jars downloaded from these artifacts should be on the classpath of the project Build Path. Subfolders aren't on the classpath, so eclipse can't find TLDs there. Configure the build path by adding project or external jars to the build classpath. You can see How to generate eclipse configuration from maven project.
Try /struts2-jquery-tags instead of /struts-jquery-tags. Missed the '2' in struts.
I would like to add the following dependency to a maven (I'm not using the m2e plugin).
<dependency>
<groupId>uk.com.robust-it</groupId>
<artifactId>cloning</artifactId>
<version>1.9.0</version>
</dependency>
The problem is that the jar simply is not added to the .classpath file in eclipse when I execute mvn eclipse:clean eclipse:eclipse. It works fine for this dependency.
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.5</version>
</dependency>
Maven does donwload cloning the dependency. The correct .jar file is in ~/.m2/repositories. I also tried mvn eclipse:configure-workspace before executing mvn eclipse:clean eclipse:eclipse. Didn't help either. Running mvn clean compile test integration-test works fine, even if I add imports to classes in cloning.
Any help is greatly appreciated!
Try a
mvn help:effective-pom
to see if the scope is provided