maven-3

getting error missing a runtime dependency: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItem

拜拜、爱过 提交于 2019-12-17 21:09:39
问题 I am trying to setup Maven, JSF and Primefaces project. But when i run the project i get the following error com.sun.faces.config.ConfigurationException: Source Document: jar:file:/D:/Personal%20Work/eclipse%2032%20Bit/workspace/Java%20EE /Spring/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps /ch18_SpringWebFlowAndJSF/WEB-INF/lib/primefaces-3.5.jar!/META-INF/faces-config.xml Cause: Class 'org.primefaces.component.fileupload.FileUploadRenderer' is missing a runtime dependency:

Jetty Maven Plugin is ignoring custom webdefault.xml

人走茶凉 提交于 2019-12-17 18:52:23
问题 I'm trying to get around the common issue of Jetty locking static files on Windows with the technique of setting useFileMappedBuffer to false in webdefault.xml. Unfortunately, every time Jetty is not picking up my customized webdefault.xml. I'm using Apache Maven 3.0.2. I've tried using the maven-jetty-plugin (v6.1.26) and jetty-maven-plugin (v8.0.0.M2) but with no difference. I've tried running clean and rebuilding as well before running Jetty. I've verified each time that my webdefault.xml

Maven Groovy and Java + Lombok

和自甴很熟 提交于 2019-12-17 18:37:02
问题 I am trying to add groovy to an existing Java Maven project that leverages Lombok. Unfortunately when I enable the groovy-maven-eclipse compiler with the pom fragment below, my lombok annotated java files fail to compile. As far as I can tell, Lombok is not participating in the compilation of java files at all. <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId> <verbose>true</verbose> <

Renaming Maven dependency in WAR's WEB-INF/lib folder

狂风中的少年 提交于 2019-12-17 18:28:40
问题 I need to have a JAR dependency in the Maven generated WAR's WEB-INF/lib folder as x-1.0.final.jar instead of x-1.0.jar , which is the name it has in the repository. What would be the best way to achieve this? In my POM I have: <dependency> <groupId>foo</groupId> <artifactId>x</artifactId> <version>1.0</version> </dependency> I want this to appear in the WEB-INF/lib folder as x-1.0.final.jar . It's and external dependency on Maven Central I don't have control over. Also I don't want to force

Maven build issue - Connection to repository refused

天大地大妈咪最大 提交于 2019-12-17 18:19:46
问题 I wish to import, change, rebuild, test and push/check-in my changes to the code available in this Github repository Currently, I do not wish to use any IDE or plug-ins for this purpose. I installed Maven on my Windows machine and as proceeded as per the installation instructions as shown below : C:\Documents and Settings\298790\My Documents\Downloads\seismichadoop-master>mvn -X package Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21: 28+0530) Maven home: D:

Launching a windows batch script using Maven exec plugin blocks the build even though the script uses “start”

大憨熊 提交于 2019-12-17 18:17:25
问题 I am trying to perform integration tasting of the deployment of my application on the top of a custom container. Since my container is custom, I cannot use Maven Cargo plugin to setup the container. My container: Has to be started though a proper bat file, which is in the path of the machine where the tests are run. Can be manually closed since I have a single maven module containing all my integration tests, even if one day I would like to know how to shut the process down after my tests are

How To: Eclipse Maven install build jar with dependencies

倖福魔咒の 提交于 2019-12-17 17:32:34
问题 I am using Eclipse Maven (m2e) inside Eclipse and I am running my project like this: My pom.xml looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>ro.project</groupId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>ro.project</name> <properties> <org.springframework

Is effective-pom a merge between super pom and application POM

感情迁移 提交于 2019-12-17 16:14:34
问题 I have tried to generate effective pom on sample application using mvn help:effective-pom command. http://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-pom.html at this article it says effective pom is a merge between super pom and application pom. But, When I look at my effective-pom, it contains elements which are not included in the either super pom or effective pom. Is there other factor deciding what goes into effective pom. Given below is the super pom and application

Build multiple artifacts with different classifiers at once

徘徊边缘 提交于 2019-12-17 16:10:46
问题 W want my maven project to produce three artifacts with different classifiers at once. I know that I can produce it with modules etc. This is actually a resources project that I want to produce configuration for DEV, STAGE and PROD environment. What I want to have is to run mvn:install once and have my.group:resources:1.0:dev , my.group:resources:1.0:stage and my.group:resources:1.0:prod in my repo. 回答1: This can be done without profiles if you specify multiple plugin executions and resource

maven 3: Accessing version of “root” corporate POM

感情迁移 提交于 2019-12-17 12:41:11
问题 Using Maven 3.0.4. I am tasked with providing a corporate parent POM for our organization. My team will provide support for questions or issues developers have when using this POM. Often they will attach a build log to a support ticket. So, I want my corporate POM to echo the version of the corporate parent to the console with any build. I'm using the antrun plugin for this. <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id