maven3 « Development « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Development » maven3 

1. How to use Maven 3 mixins?    stackoverflow.com

I was trying to figure out how mixins are defined in Maven 3, but couldn't find anything other than buzz. It is propagated as one of the big new features

2. slf4j-log4j12 not packaged by maven with "runtime" scope    stackoverflow.com

I have a project managed by maven with slf4j-api-1.5.8 and log4j-1.2.14 dependencies. In runtime , slf4j needs slf4j-log4j12-1.5.8.jar to "bridge" output to log4j. So in pom.xml , I add this dependency :

  ...

3. Maven 3 - Worth it?    stackoverflow.com

maven 3 beta is out since a couple of weeks and just thought for getting your views on the feature list for maven 3. Coz to me only two major features ...

4. Embedding Maven 3    stackoverflow.com

Is there any sort of documentation on the topic, except of m2eclipse sources? Thanks. JBaruch.

5. Should I upgrade to Maven 3?    stackoverflow.com

Are there any compelling reasons for me to upgrade to Maven 3 immediately? Nothing stands out from the release notes. Have you upgraded to Maven 3 yet? If so, ...

6. Can anyone give a good example of using org.apache.maven.cli.MavenCli programattically?    stackoverflow.com

I'm trying to create an intelliJ plugin that needs to execute maven targets on the current project. All the talk in the intertubes recommends using the MavenEmbedder. Good luck ...

7. Not created by default settings.xml in $/user/.m2/repository path using Maven    stackoverflow.com

I tried below command its work properly

C:\Documents and Settings\users>mvn -v
Apache Maven 3.0 (r1004208; 2010-10-04 17:20:56+0530)
Java version: 1.6.0_21
Java home: C:\Program Files\Java\jdk1.6.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: ...

8. How to order executions in one phase?    stackoverflow.com

I have two <execution>s attached to the same phase deploy. First execution is tomcat:redeploy, second one is a custom one that makes a HTTP request to the production server to validate ...

9. switching to maven3    stackoverflow.com

We have several enterprise projects on maven2, do you think it would be a good idea to switch now to maven 3? I heard the migration is not hard but there are ...

10. Building DayTrader with Maven 3    stackoverflow.com

Has anyone attempted to build the Apache Geronimo DayTrader application with the latest Maven build? When I try to follow the instructions here: https://cwiki.apache.org/GMOxDOC22/daytrader-a-more-complex-application.html I am getting numerous build errors:

[ERROR] ...

11. Maven 3 custom format    stackoverflow.com

I try create custom format for maven assembly plugin. I use following instruction how create extentions for maven 3: Creating a Custom Build Extension for Maven 3.0 My pom.xml for extention:

<?xml ...

12. Maven expression resolving issue    stackoverflow.com

how do I make maven to interpret only inner expressions in files ? Concrete situation is : within archetype I'm creating, there is a resource web.xml element :

<context-param>
    <param-name>webAppRootKey</param-name>
 ...

13. Maven 3 documentation    stackoverflow.com

I can't find any good documentation for the new version of maven (Maven 3) There are few blog entries that are mostly related to Maven 3 Beta. Do you know of any official/unofficial ...

14. maven3 - maven-antrun-plugin - "failed to create task or type if"    stackoverflow.com

I'm trying to use "if" ant tasks within maven build. I found many articles that suggest using "ant-nodeps" dependency. Eventually all this tricks did not work on maven3 + ant 1.8.1 + ...

15. Where do maven goals go?    stackoverflow.com

I'm using Maven 3.0.3. I want to write a simple task to copy a war file from my target directory to the Tomcat deploy directory. Where do I put ...

16. Maven: Could not find the main class    stackoverflow.com

I am currently building a little Apache-Mina Server app. I am using Maven to build it. When i try to run the jar, I get the following error:

    Exception ...

17. Maven exclusions best practices    stackoverflow.com

I'm using Maven2. When I look at the output of mvn dependency:tree -Dverbose I see lots of:

[INFO] +- org.springframework:spring-orm:jar:3.0.5.RELEASE:compile
[INFO] |  +- (org.springframework:spring-beans:jar:3.0.5.RELEASE:compile - omitted for duplicate)
[INFO] |  +- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile ...

18. What phase do I use for my task?    stackoverflow.com

I'm using Maven 3.0.3. I want to run a task to copy environment specific properties before I package my WAR file. Below is my task.

     ...

19. Not off to a great start with maven :P    stackoverflow.com

right, I downloaded maven 3.0.3, set-up my environment variables as instructed and verified with mvn --version that everything looks ok. So far so good So, time to RTFM.. about 1minute into the ...

20. How to make maven appassembler use javaw insteat of java in generated scripts    stackoverflow.com

Is it possible to make maven appassembler plugin to generate startup scripts that use 'javaw' instead of 'java'?

21. Building hadoop using maven    stackoverflow.com

I tried to build hadoop mapreduce project with maven, but it always stuck in following error, I already perform predefined installation for yarn i.e. Protobuf installation.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-  ...

22. TestNG Test Case failing with JMockit "Invalid context for the recording of expectations"    stackoverflow.com

The following TestNG (6.3) test case generates the error "Invalid context for the recording of expectations"

@Listeners({ Initializer.class })
public final class ClassUnderTestTest {

private ClassUnderTest cut;

@SuppressWarnings("unused")
@BeforeMethod
private void initialise() {
    cut ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.