maven-2

Setup Maven for IntelliJ 13

心不动则不痛 提交于 2019-12-24 20:14:16
问题 Maven was installed and was working just fine before with my previous versions of IntelliJ Idea. I just installed the trial version on IntelliJ 13 and my existing maven project stopped working! The error was: No valid Maven installation found. 回答1: The easiest solution was to set the Maven Home Directory manually in your to your executable mvm location [/usr/local/maven] in my case. Other solutions I came across needs a reboot. Alternative solution here: M2_HOME not being picked by IntelliJ

Is Release repository policy in Nexus ensures a jar will never change?

ⅰ亾dé卋堺 提交于 2019-12-24 14:38:30
问题 I'm in the process of deploying Nexus OSS as internal company repository. One of the main requirements is that once a jar has been downloaded by Nexus (for example, when using is as a proxy of Maven Central) it will never change. I know that Maven Central has that policy, but I'm using other repositories which are not under my control, and I have to validate that requirement on my side. Does a Release repository policy ensures that once a jar is downloaded into that respository, it will never

Not getting values from properties files in context.xml file

这一生的挚爱 提交于 2019-12-24 12:08:11
问题 I am unable to retrieve value from .properties file into my context.xml pom.xml ( didn't mention dependencies ) <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com</groupId> <artifactId>myproj</artifactId> <version>0.1.1</version> <packaging>war</packaging> <name>myproj</name> <url>http://maven

Spring 3 , Spring Web Flow 2 dependencies problem

∥☆過路亽.° 提交于 2019-12-24 11:40:12
问题 i am trying to use spring 3 with spring web flow 2 the problem is that i am using spring 3, and spring web flow 2 depends on spring 2 libraries so it tries to download them, so is the solution that in every web flow library i will exclude all spring 3 libraries or what ? please advise here's my pom file: <properties> <spring.version>3.0.0.RELEASE</spring.version> <spring-security.version>3.0.2.RELEASE</spring-security.version> <tiles.version>2.1.3</tiles.version> </properties> <!-- a

Unable to load class [com.sun.jmx.mbeanserver.RepositorySupport] to check against the @HandlesTypes

橙三吉。 提交于 2019-12-24 11:20:26
问题 after migrating to tomcat 7.0.22 and installing t7mp ( tomcat 7 plugin from google code ) i am running on maven 2 btw when trying to run mvn t7:run , i got the following exception: WARNING: Unable to load class [com.sun.jmx.mbeanserver.MBeanInstantiatorImpl] to check against the @HandlesTypes annotation of one or more ServletContentInitializers. java.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader

How to reference a jar (containing only stubs) created with rmic:package maven goal from a POM?

人盡茶涼 提交于 2019-12-24 11:13:09
问题 I have a RMI app and the Stubs are generated with maven (rmic:rmic). Then I use the rmic:package goal and get a nice little jar with only the stubs. Now the bis question is: How can I reference this jar from the poms of other projects? I cant give it an ArtifactId (or do I?!) and when I use the classifier, it downloads all dependecies of the original Project and NOT the jar with the stubs. Please give me a hint, how I can actually use this jar in a nice behaving maven way :-) thanks in

Jenkins build failed on OSX

僤鯓⒐⒋嵵緔 提交于 2019-12-24 10:47:57
问题 I am trying to build my project using Jenkins to deploy the artifacts to the nexus. I have a Jenkins setup on my macOSX. below is the error, I am getting: Parsing POMs [maventest] $ /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8 -cp /Users/Shared/Jenkins/Home/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.3.jar:/usr/share/maven/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/share

How to run build twice so that I can get two artifacts using different dependencies?

天涯浪子 提交于 2019-12-24 10:38:25
问题 I've got a Maven project and we want to build two separate jars, one containing 32-bit libraries and one containing 64-bit libraries. Our current build will produce either 32 or 64-bit artifacts depending on the operating system on which the build is run. An overview of how we're currently set up: <properties> <env.arch>${sun.arch.data.model}</env.arch> </properties> <build> <pluginManagement> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId

Need to run “maven package” to update unit tests

一曲冷凌霜 提交于 2019-12-24 10:24:04
问题 I recently "enabled dependency management" in maven2 for a web project which I had a simple test class running in. Before I added the maven2 management, whenever I updated the test - the change would appear instantaneous. However, now I have to run "mvn clean package" before the slightest change can be picked up. I can see "Maven Builder: AUTO_BUILD" run whenever I save a class but the update just isn't picked up until I run the mvn goal. I also can't seem to configure a "Maven Builder" when

Why doesn't commenting a dependency in the pom.xml (with m2eclipse) delete the jar in the tomcat server deploy directory?

泄露秘密 提交于 2019-12-24 09:18:10
问题 I started using Maven 2.2.1 and downloaded the latest m2eclipse plugin version 0.12.0. I am using Eclipse 3.5.1 and Tomcat 6.0.26. I checked out the mvc-ajax project (in eclipse: File>New>Project>SVN>Project from SVN) and when I ran the server, I came upon the following exception: org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "file:/tomcatDeployDirectory/mvc-ajax/WEB-INF/lib/jstl-1.2.jar" which required deleting the jsp-api2.1.jar (as I found out from