maven-2

Create project from maven archetype via Apache Ivy

馋奶兔 提交于 2020-01-06 04:57:09
问题 If you want to create project with a Maven archetype you type mvn archetype:generate -DarchetypeGroupId=... -DarchetypeArtifactId=... \ -DarchetypeVersion=... -DgroupId=... -DartifactId=... \ -Dversion=... How this line would change if you are using Ivy? 回答1: ivy is not a drop in replacement for maven, it's a dependency manager for ant. If you want to use archetypes ivy won't be of any help 回答2: Since Ant + Ivy is all about configuration and flexibility, since this combo doesn't rely on

Which scopes are present during maven site lifecycle

谁说我不能喝 提交于 2020-01-06 04:42:08
问题 Which maven scopes are available during report generation for a maven site? Are any available. I'm trying to share a FindBugs filter file between several modules without having it end up in any of the application jars. I was thinking of putting in a commons project, which will package it in a separate jar with a classifier of "build-tools" with any other such files we might have. Any projects that need it will import the project with the classifier. 回答1: With the checkstyle plugin, the trick

What are the Maven 2 Coordinates for OpenDS SDK?

荒凉一梦 提交于 2020-01-05 11:52:29
问题 I have been playing around with the OpenDS SDK (not the full OpenDS Server/Platform) to implement a simple LDAP listener to front a service my application provides. I have not been able to find the Maven 2 coordinates for such SDK. This is the SDK site https://www.opends.org/wiki/page/LDAPSDK I would like to know if the dependency is available in any public Maven repository. Thanks, 回答1: After contacting a person related to OpenDS, I learned that it is not likely that the OpenDS artifacts

Adding JBoss repository to m2eclipse, no latest Hibernate version

和自甴很熟 提交于 2020-01-05 08:26:23
问题 I'm trying to add JBoss repository to m2eclipse, mainly for Hibernate. It seems to work, but it can't find the latest version of Hibernate (3.5.1), only 3.5.0beta. I looked at some other packages, and they all seem a couple of months behind. What could be causing this? I'm running latest m2eclipse, and i guess latest Eclipse (it just says 20100218-1602, eclipse people think it's funny to not include version in the about dialog), on ubuntu 9.10. This is my settings.xml <settings> <profiles>

How to resolve java.lang.NoSuchMethodError [duplicate]

不问归期 提交于 2020-01-05 06:39:18
问题 This question already has answers here : How do I fix a NoSuchMethodError? (28 answers) Closed last year . I have a project that I can run correctly from within Eclipse, but running the standalone jar gives me the java.lang.NoSuchMethodError for a class at runtime. I unpacked the jar file and can see the class file in one library file in jar and I do see the method defined in the class. The exception is not about class not found, but just can't find the method in the class. Could not find any

help for use maven artifacts

吃可爱长大的小学妹 提交于 2020-01-05 05:09:33
问题 I'm learning Maven and I'd need a little help to get started. I use the m2eclipse plugin (Maven) and I would like to generate a project like Struts 2, Hibernate 3, MySQL. For now I just create a simple project with the archetype: maven-archetype-webapp What are the dependencies I need to add? 回答1: For now I just create a simple project with the archetype: maven-archetype-webapp My suggestion would be to use the struts2-archetype-blank archetype instead to bootstrap your Struts 2 application.

Different Checkstyle Rules For Main And Test In Maven

夙愿已清 提交于 2020-01-04 13:44:00
问题 I am trying to setup a maven project such that I will be able to run checkstyle using two distinct rule sets: one for main, and one for test. What I would like to do is something along the lines of: <reporting> <plugins> <!-- One configuration for main --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <configLocation>checkstyle</configLocation> </configuration> </plugin> <!-- But a different set of rules for test -->

How to retrieve information from antrun back to maven?

拜拜、爱过 提交于 2020-01-04 11:46:20
问题 How can I get information from maven-antrun-plugin back to Maven script? For example: [...] <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>test</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <exec ... resultproperty="foo"> </target> </configuration> </execution> </executions> </build> [...] I'm interested to use this foo property later in Maven. How to it get out of antrun ? 回答1: I am not sure if this solution

How to retrieve information from antrun back to maven?

最后都变了- 提交于 2020-01-04 11:46:06
问题 How can I get information from maven-antrun-plugin back to Maven script? For example: [...] <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>test</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <exec ... resultproperty="foo"> </target> </configuration> </execution> </executions> </build> [...] I'm interested to use this foo property later in Maven. How to it get out of antrun ? 回答1: I am not sure if this solution

java.lang.ClassFormatError: Illegal class name “groovy/jmx/builder/package-info” in class file groovy/jmx/builder/package-info

五迷三道 提交于 2020-01-04 09:28:31
问题 after adding the groovy-all dependency in my pom file: <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>1.7.5</version> </dependency> i am getting the following exception, when running the application: WARNING: Unable to load class [groovy.jmx.builder.package-info] to check against the @HandlesTypes annotation of one or more ServletContentInitializers. java.lang.ClassFormatError: Illegal class name "groovy/jmx/builder/package-info" in class file