maven-2

hudson/maven publishing snapshots

余生长醉 提交于 2019-12-10 10:31:12
问题 I would like to be able to publish snapshots to the repository using maven (or have hudson publish snapshots after each build using maven). I've been reading up on the SCM section of the POM, and I have a couple of questions. Sorry if I'm off base here - this part is new to me. I don't want to put my username and password in SCM section the POM (under developer connection). Is there any other way for hudson (or anyone else using the maven task) to gain authorization to publish using maven

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

巧了我就是萌 提交于 2019-12-10 10:23:38
问题 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 last year . 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

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

限于喜欢 提交于 2019-12-10 10:15:30
问题 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

Maven Plugin to automatically generate setters/getters?

假如想象 提交于 2019-12-10 10:11:01
问题 Is there a Maven Plugin that will automatically generate setters and getters with the corresponding JavaDocs? I am aware that Eclipse/Netbeans will do this when you tell it to; however, it would be nice for the source to simply contain the skeleton and have Maven or another tool generate the repetitive stuff. I would want to modify the source code so that a source jar can be compiled and used when debugging. Thanks, Walter 回答1: This isn't necessarily something that you want maven to do for

Maven2 Multiproject Cobertura Reporting Problems During mvn site Build

橙三吉。 提交于 2019-12-10 09:42:07
问题 We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the unit tests. We are using mvn 2.0.8. I have tried running mvn clean site , mvn clean site:stage and mvn clean package site . I know the tests are running, they show up in the surefire reports (both the txt/xml and site

Unbelievable: Cannot cast from class X to its super class

给你一囗甜甜゛ 提交于 2019-12-10 09:32:04
问题 I'm encountering a very weird problem with Spring (3.0.1.RELEASE), TestNG (5.11) and Maven Surefire (2.5). I have a test class that extends a Spring helper class for testNG so that test context can be loaded from an xml file (that contains some bean definitions). My project was imported into eclipse using m2eclipse (using Import Maven Project) The class run fine in Eclipse TestNG runner. However, it throws this exception with Maven Surefire Caused by: java.lang.ClassCastException: com.sun.org

In the Eclipe PMD plugin, can I reference the standard ruleset files?

雨燕双飞 提交于 2019-12-10 08:19:40
问题 I would like my eclipse PMD plugin configuration to access the same standard ruleset files as the maven-pmd-plugin. You can configure the maven pmd plugin to use a custom set of rule sets like this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>2.5</version> <configuration> <rulesets> <!-- Two rule sets that come bundled with PMD --> <ruleset>/rulesets/braces.xml</ruleset> <ruleset>/rulesets/naming.xml</ruleset> <!-- Custom local file

How do I make javadoc inheritance work for external APIs? (with Maven2)

半城伤御伤魂 提交于 2019-12-10 03:41:45
问题 When a class overrides a concrete method or implements and abstract method, the Javadoc is automatically inherited unless explicitly overwritten. Or, at least the tool tries to do this. It seems it does not work for linked external APIs. For instance, when I in my code implement java.util.Map , or something else from the JRE, the javadocs are not inherited/copied from the JRE javadocs/apidocs. In my specific case, I am trying to configure this in the Maven2 Javadoc plugin, but it is the same

How can I use different JARs for compiling and testing in maven?

此生再无相见时 提交于 2019-12-10 03:36:37
问题 I compile my programm against javaee-api. But for Junit testing I must use a specific implementation like glassfish's javaee.jar to avoid errors like java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/Persistence (see also 1). So avoid using methods, that are only available in glassfish implementation, I want to compile my artifact with the general api, but run junit with the implementation jar. But both provide equal

Make Eclipse use src/test/resources instead of src/main/resources

心不动则不痛 提交于 2019-12-10 03:19:32
问题 I'm writing a little Maven application in Eclipse. I store some property files and my application context in the directory src/main/resources. I now want to make Eclipse use properties in the directory src/test/resources. So when I run and debug the program in Eclipse, these test properties should be used. Do you know how I could make that happen? 回答1: Whether you use the Maven Eclipse Plugin or m2eclipse, src/test/resources precedes src/main/resources on the classpath (more precisely, their