maven-2

Where can I find the Maven installation directory in Eclipse 3.4

爷,独闯天下 提交于 2019-12-05 11:39:17
问题 I have installed m2eclipse plugin from http://m2eclipse.codehaus.org/. Now I want to use that as a standalone build tool but I am unable to find the installation directory. Can anyone help me in this? 回答1: I have both the plugin (with its embedded maven instance) and a full maven download. Both should end up using the same repository in something like C:\Documents and Settings\user\.m2 . There are a few cases where you need a full maven download anyways. For example, trying to build a groovy

what's wrong with my profiles.xml?

跟風遠走 提交于 2019-12-05 11:36:31
This is a portion of my profiles.xml for mvn : <profilesXml> <profiles> <profile> <id>production</id> <build> <plugins> .. </plugins> </build> </profile> </profiles> </profilesXml> This is what mvn says: Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'build' (position: START_TAG seen ...</id>\n <build>... @32:20) What's wrong here? The error message is giving you the correct feedback here, you cannot specify a <build/> section in an external profile , you are only allowed to specify <properties> , <pluginRepositories> , and <repositories> . From the

Maven doesn't generate the “persistence.xml” file

痴心易碎 提交于 2019-12-05 11:13:59
I read this article on the maven project web page that lists the different directory layouts (like: src/main/resources which is for Application/Library resources). The problem is that when I run the following command ( found here ): mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false the src/main/resources/META-INF directory isn't created. It's important for me because I'd like to reach the "persistence.xml" that is found in that directory. Should I add an option in the mvn command? How can I

com.sun:tools:jar:1.4.2 missing when running “perform eclipse” in roo

为君一笑 提交于 2019-12-05 11:10:46
When I run "perform eclipse" in Roo I get: roo> perform eclipse [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building bugzter [INFO] task-segment: [eclipse:clean, eclipse:eclipse] [INFO] ------------------------------------------------------------------------ [INFO] [eclipse:clean {execution: default-cli}] [INFO] Deleting file: .project [INFO] Deleting file: .classpath [INFO] Deleting file: .wtpmodules [INFO] Deleting file: .component [INFO] Deleting file: org.eclipse.wst.common.component [INFO] Deleting file: org

Maven compilation failes (but compilation under Eclipse is successful)

帅比萌擦擦* 提交于 2019-12-05 10:47:45
问题 While building my web project from Eclipse , everything is fine: no errors, no warnings . However while building project with Maven it failes . Below is the output form mvn compile : c:\Users\jwa\Desktop\tets\traffic_web>mvn compile -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building traffic_web [INFO] task-segment: [compile] [INFO] ------------------------------------------------

Maven build problems with spring-data-jpa and querydsl

时光总嘲笑我的痴心妄想 提交于 2019-12-05 10:27:26
I've got an Eclipse Maven project for spring-data-jpa and QueryDsl. I seem to have a problem with the maven-apt-plugin where if I do a mvn clean followed by a mvn install, it tries to "process" files that reference the QueryDsl generated files, but these generated files have not yet been built so I get multiple "cannot find symbol" errors. If then have to do another mvn install, everything is ok as the generated files now exist. Does this maven-apt-plugin need to process every file in my project, or can I give it a specified directory ? Note: Im using JDK6, Eclipse Indigo, M2E 1.0.100 My POM

hibernate3-maven-plugin dependencies for newer version of hibernate

Deadly 提交于 2019-12-05 10:15:53
I would like to use hibernate-3.5-1.Final along with this plugin, what should be my dependencies here. It seems to be picking up a older set of jars and failing right now. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.2</version> </plugin> EDIT1: [INFO] class org.hibernate.cfg.ExtendedMappings has interface org.hibernate .cfg.Mappings as super class [INFO] -------------------------------------------------------------------- ---- [INFO] Trace java.lang.IncompatibleClassChangeError: class org.hibernate.cfg.ExtendedMap pings has

start/stop tomcat using maven

浪子不回头ぞ 提交于 2019-12-05 10:14:15
How can i start/stop remote tomcat using maven. I am using cargo plugin which helps me in deploying the application , but doesn't provides the functionality to start/stop the remote tomcat. You can try to use the maven tomcat plugin or if it does not give you everything you need, you can always use an ant task here is a reference on the task Indeed, You can NOT start and stop Tomcat running remotely using Cargo, only deploy and undeploy your web application. Actually, to my knowledge, there is currently nothing allowing to do this out of the box. As explained here , the only way to make server

Maven2: Cargo plugin hot deployment & Jonas support

荒凉一梦 提交于 2019-12-05 09:56:49
I am trying to get the Cargo plugin works on my maven project in order to benefit from war hot-deployment targetting the Jonas server. The official documentation is not that clear on what is supported and what is not (for example you can find this: http://cargo.codehaus.org/Hot+Deployment but also this http://cargo.codehaus.org/JOnAS+4.x ). Anyway I have the following coniguration in for my war's POM: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0</version> <configuration> <container> <containerId>jonas4x</containerId> <home>C:\JOnAS-4

Why is my Maven so slow on Ubuntu?

余生长醉 提交于 2019-12-05 09:34:11
I have Maven on Ubuntu server. It seems to try lots and lots of places to download from but the download times out, but the timeout takes ages, so my whole build takes more than a hour. Downloading: http://scala-tools.org/repo-releases/org/apache/maven/maven-repository-metadata/2.0.3/maven-repository-metadata-2.0.3.pom [INFO] Unable to find resource 'org.apache.maven:maven-repository-metadata:pom:2.0.3' in repository scala-tools.org (http://scala-tools.org/repo-releases) Downloading: http://download.java.net/maven/2/org/apache/maven/maven-repository-metadata/2.0.3/maven-repository-metadata-2.0