maven-2

Trouble getting Hibernate Core and Hibernate Annotations using Apache Ivy (but it's also Maven2 related.)

大憨熊 提交于 2019-12-30 04:02:06
问题 It's a long one! ;-) There are a lot of copy pasted text in this question which makes it look complicated. And to be honest, it's a lot of information! However to an experienced person a lot of it might be unnecessary and easy to skim over. In its essence I'm only wondering why my basic Hibernate Core + Hibernate Annotations test project doesn't work. I suspect missing dependencies, but I'm using Apache Ivy which I thought would get transitive dependencies automatically from the Maven2

How do I show the Maven POM hierarchy?

半城伤御伤魂 提交于 2019-12-30 02:36:06
问题 I'm doing some scripting and I need to get a list of all the parent poms for any given pom. The dependency plugin seems to be only interested in the dependencies that are listed in the dependency section of the pom, but there doesn't seem to be a way to show the parent poms, which are also required dependencies for Maven to work. Am I missing something basic? 回答1: There is no simple Maven command that will show you the chain of parent POMs for a pom.xml. The reason for this is that it is not

Recommendable Maven repository search engines? [closed]

北慕城南 提交于 2019-12-29 14:19:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . mavensearch.net doesn't know current versions in many cases, mvnrepository.com is a bit more up to date but doesn't show repositories from where a package can be downloaded, what I would find very useful. What Maven respository search engines do you use and like? 回答1: I suggest using the official one, http:/

Deploying assembly package with maven-release-plugin

不羁岁月 提交于 2019-12-29 14:15:33
问题 We use Hudson and the maven-release-plugin to do the release builds. Now I have a project which contains an assembly that puts together all needed components and then packages them into a .tar.gz package with the desired directory structure. Now I'm trying to get the release-plugin to deploy this package to our Maven repository during the release:perform goal, but only the standard stuff (sources, javadoc, POM) are deployed. I've already bound the assembly goal to the maven package phase, and

mvn clean install vs. deploy vs. release

白昼怎懂夜的黑 提交于 2019-12-29 10:07:14
问题 I am just learning maven, and we have recently needed to go more and more. I would like to know the difference between mvn clean install mvn release mvn deploy Please be as descriptive as possible. 回答1: The clean , install and deploy phases are valid lifecycle phases and invoking them will trigger all the phases preceding them, and the goals bound to these phases. mvn clean install This command invokes the clean phase and then the install phase sequentially: clean : removes files generated at

mvn clean install vs. deploy vs. release

亡梦爱人 提交于 2019-12-29 10:07:02
问题 I am just learning maven, and we have recently needed to go more and more. I would like to know the difference between mvn clean install mvn release mvn deploy Please be as descriptive as possible. 回答1: The clean , install and deploy phases are valid lifecycle phases and invoking them will trigger all the phases preceding them, and the goals bound to these phases. mvn clean install This command invokes the clean phase and then the install phase sequentially: clean : removes files generated at

Which maven2 artifacts are necessary to build a WS with CXF and Spring?

南楼画角 提交于 2019-12-29 08:08:09
问题 I'm trying to build a WS with Spring 3.0 and CXF. I'm following the steps of this article http://www.ibm.com/developerworks/library/ws-pojo-springcxf/ But in that article, the authors assume that you have cxf installed. I'd like to embed CXF in my .war. Thanks in advance. 回答1: Normally, just depend on cxf-rt-frontend-jaxws and cxf-rt-transport-http. Pretty much the rest of the stuff needed would be pulled in transitively from those. (might not even need cxf-rt-transport-http) That would cover

How do I prevent Maven 2 from searching remote repositories for specific local depedencies?

女生的网名这么多〃 提交于 2019-12-29 07:30:53
问题 How do I prevent Maven 2 from searching remote repositories for specific dependencies that are in the local repository only? 回答1: How do I prevent Maven 2 from searching remote repositories for specific depedencies that are in the local repository only Well, actually, Maven won't unless: they are SNAPSHOT dependencies in which case this is the expected behavior. they are missing a .pom file in which case you can provide it or generate it (see questions below). Related questions How do I stop

How can I force maven to package my project against 1.5?

回眸只為那壹抹淺笑 提交于 2019-12-29 06:50:08
问题 I am trying to compile a maven project, the source code uses Generics and other featuers of Java 1.5, thus causing my build to fail In my POM.xml I have configured the build configuration against 1.5 for the source and target properties, but this doesn't solve my issue Is my POM.xml correct, or am I missing something? Thanks <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

Failure to transfer dependency, was cached in the local repository

烈酒焚心 提交于 2019-12-29 06:48:19
问题 I am working on maven 2 project on eclipse, and I have the m2e plugin, and I am getting the following error in Eclipse: Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.thoughtworks.xstream:xstream:pom:1.3.1 from/to central (http:// repo1.maven.org/maven2):