maven-2

Why is my Maven so slow on Ubuntu?

一个人想着一个人 提交于 2019-12-07 06:12:10
问题 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:/

hibernate3-maven-plugin dependencies for newer version of hibernate

自作多情 提交于 2019-12-07 06:10:55
问题 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] -------------------------------------------------------------------- ----

Maven build problems with spring-data-jpa and querydsl

眉间皱痕 提交于 2019-12-07 05:51:54
问题 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

start/stop tomcat using maven

南楼画角 提交于 2019-12-07 05:30:13
问题 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. 回答1: 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 回答2: Indeed, You can NOT start and stop Tomcat running remotely using Cargo, only deploy and undeploy your web application. Actually, to my

what's wrong with my profiles.xml?

[亡魂溺海] 提交于 2019-12-07 05:06:12
问题 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? 回答1: The error message is giving you the correct feedback here, you cannot specify a <build/> section in an external

CXF: How to change package of WSDL imported XML Schema using JAXB external binding file?

落花浮王杯 提交于 2019-12-07 05:00:56
问题 I have a WSDL file which imports several XML Schemas, each of them having the same namespace (let's call it A). I'm trying to use a JAXB external binding file to change the generated package name (to let's say B) for those schemas. Here is an example: I have a POM file containing the configuration for code generation from WSDL (using the cxf-codegen-plugin). My WSDL: <definitions ...> <types> <xsd:schema elementFormDefault="qualified" targetNamespace="C"> <xsd:import namespace="A"

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

时间秒杀一切 提交于 2019-12-07 04:27:48
问题 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

M2Eclipse, META-INF/MANIFEST.MF

。_饼干妹妹 提交于 2019-12-07 03:08:27
问题 I use the M2Eclipse plugin in Eclipse. And I don't know for what reason, each time I import a Maven project in Eclipse, it always generates an empty - src/main/META-INF/MANIFEST.MF file (jar-packaged projects) - src/main/webapp/META-INF/MANIFEST.MF file (war-packaged projects) I find this a bit annoying ;-) Does someone know how to disable this behavior ? Thanks 回答1: This was fixed in m2e-wtp 0.13.0. Latest m2e-wtp version can be found at http://download.jboss.org/jbosstools/updates/m2eclipse

Add additional path to exec-maven-plugin

牧云@^-^@ 提交于 2019-12-07 02:46:49
问题 I would like to add an additional class path to the exec-maven-plugin. Besides the %classpath, I would like to add an extra path to a directory containing resources (/Users/kornp/resources). Currently, my pom looks like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <configuration> <executable>java</executable> <classpathScope>runtime</classpathScope> <arguments> <argument>%classpath:/Users/kornp/resources</argument>

How to calculate code coverage in Hudson using emma for a multi-module maven project but only run tests once

假装没事ソ 提交于 2019-12-07 02:24:28
We have several multi-module projects which I want to run emma against, but I don't want the tests to be run twice, because this results in misleading statistics on the Hudson project home page as unit tests are counted twice. For a single module project, we can ommit the install goal and just use clean emma:emma to run the tests once, is there any way we can test only using emma instrumented byte code and then build & install the project artifacts without running the tests a second time? Using -Dmaven.tests.skip=true causes emma to fail. For a full release (i.e. mvn release:perform) the tests