maven-2

How to update version on dependent sibling module with Versions Maven Plugin

家住魔仙堡 提交于 2019-12-06 03:46:10
I have an issue with updating the dependency version of dependent sibling projects. My simplified project setup is the following. root |--parent |--tool-core |--tool |--functional-tests The parent project holds all the global properties and dependency management. The functional tests depend on the tool and the tool depends on the tool-core. The root pom.xml only aggregates (specifies whether the functional tests are included) and the parent project is the parent for all of the projects. I don't know if this is trivial, but the parent is not included in the aggregation though, as it already is

Are these two settings same in maven?

删除回忆录丶 提交于 2019-12-06 03:38:35
问题 I want to limit maven to use only private/not public maven repository, do these two settings have the same effect ? 1.Setting mirror in settings.xml <mirrors> <mirror> <id>my-internal-site</id> <mirrorOf>*</mirrorOf> <name>our maven repository</name> <url>http://myserver/repository</url> </mirror> </mirrors> 2.Setting repository in pom.xml <repositories> <repository> <id>my-internal-site</id> <name>our maven repository</name> <url>http://myserver/repo</url> </repository> </repositories> Again

Maven webapp with Eclipse and WTP plugin deploy files in stranges ways in Tomcat

佐手、 提交于 2019-12-06 03:34:45
I use Eclipse J2EE 3.5 with Maven and tomcat. To deploy my maven webapp with WTP I added a Dynamic Web Module facet and changed the "org.eclipse.wst.common.component" file of the project because the webapp is not in a WebContent directory, here is the content of the file: <?xml version="1.0" encoding="UTF-8"?> <project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="toto"> <wb-resource deploy-path="/" source-path="/src/main/webapp"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="

open source tool to generate Javadocs through Maven2 with automatic UML diagrams like ydoc [closed]

穿精又带淫゛_ 提交于 2019-12-06 03:30:21
I want to generate javadocs through maven's site generation plugin and I want to have automatic UML diagrams created and embedded in the javadoc. The statsvn project uses yDoc to generate their UML documentation but I think they're using Maven1. yDoc is a commercial shareware product, so I'm unsure how the open source statsvn project integrates with it (or if there is a free version to use for javadoc generation). Example svnstat yDoc javadoc: ChurnPageMaker.java svnstat includes ydoc as a plugin to their Maven1 report generation: project.xml <reports> <report>maven-ydoc-plugin</report> ... <

Starting apache server before integration testing not working

余生颓废 提交于 2019-12-06 03:11:16
问题 I have a web application named as GroupWebApplication. Using pom.xml file I'm just creating the war of my application and deploying to tomcat server. This is basically a maven project. I have added plugins for tomcat7 apache server. Now what I want that I want to start the tomcat server then run the integration tests and after the completion of the integration tests I want to stop the server. Basically I'm using the testng.xml file of TestNg framework.testng.xml files contains all the classes

How to copy dependencies to gae war/WEB-INF/lib

北城以北 提交于 2019-12-06 03:08:42
问题 I'm coming from Ant perspective, so pardon me. I realise there are quite a few questions here already on how to maven dependencies, but none of them seem to tell how to do what need to do. Question 1 : Currently, in conjunction with using maven-war-plugin, when I run mvn war:war, it creates a war folder in target folder. However, I wish copy all the dependencies' jars to war/WEB-INF/lib set up by google eclipse plugin (with gae enabled, gwt disabled), without overwriting the jars that google

NoClassDefFoundError : ConfigurationPropertySources

[亡魂溺海] 提交于 2019-12-06 03:06:07
Since yesterday we have a problem on our spring boot project after clean install without change nothing of configuration of the maven files, libs or something else. We did try to update version of pom's of SpringFrameWork and Spring boot to 1.5.4.Release. The error that is show is: Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/source/ConfigurationPropertySources at org.springframework.cloud.client.HostInfoEnvironmentPostProcessor.getFirstNonLoopbackHostInfo(HostInfoEnvironmentPostProcessor.java:46) at org.springframework.cloud.client

Looking for spring-hibernate3-2.0.8 sources

試著忘記壹切 提交于 2019-12-06 02:08:12
I'm looking for the sources jar of spring-hibernate3-2.0.8 Jarvana only has the details to the jar with the compiled classes http://jarvana.com/jarvana/archive-details/org/springframework/spring-hibernate3/2.0.8/spring-hibernate3-2.0.8.jar Any idea where I could find it? I also tried mvn dependency:sources, but it couldn't find the sources in the specified, most used, repositories either. It looks like they didn't publish sources for this artifact at this time and my suggestion would be to get the sources of the old monolithic spring-2.0.8-sources.jar (I don't think getting sources from the

Multi Module Maven2 Project with WTP

谁都会走 提交于 2019-12-06 01:52:22
问题 I'm having a hard time to make my Maven2 multi module project, with a deep project structure, appear as a single ear (with its dependencies - which includes 1 war, 2 ejbs and 1 jar) to be deployed in my JBOSS 5 server inside my Eclipse Ganymede (tab Servers). I've been trying to use Maven Eclipse Plugin to turn my projects into a WTP project without success. Therefore they appear to be deployed in the server they appear as separated projets. My project has 1 war, 2 ejbs and 1 jar that must be

How to use custom annotation processor with Maven 2?

一世执手 提交于 2019-12-06 01:46:08
问题 In our enterprise application we are seeking a dynamic way to collect data from our Java classes. We created a custom annotation interface ( @interface ) with a name property. We would like to collect the value of this property from all annotated classes. I managed to create an AnnotationProcessorFactory and an AnnotationProcessor for the custom annotation. Since we are using Maven 2, I added the following to the plugins in the pom.xml of the main project. <plugin> <groupId>org.codehaus.mojo<