maven-2

Using eclipse with maven plugin, how should I setup my build so it deploys to tomcat?

こ雲淡風輕ζ 提交于 2019-12-11 16:09:47
问题 Using eclipse with maven plugin, how should I setup my build so it deploys to tomcat? I'm not sure if I have to do this in 1 or 2 steps, but I want to compile my spring mvc (3) application and deploy to my local tomcat. Right now I just mapped the RunAs -> Maven build to a 'compile' goal type. I'm very new to do this so not sure how to setup build and deploy. My pom.xml is: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Change output directory for apt-maven-plugin

孤街浪徒 提交于 2019-12-11 15:58:47
问题 I am using apt-maven-plugin to process some Beehive Netui annotations before building a war. The output of the apt processing is a _pageflow directory which contains struts config files (xml text) and the like. The problem is that it is being output in whatever directory I run maven from, not in the ${project.build.directory}/classes directory which is what I want. I tried setting the outputDirectory and the resourceTargetPath properties, but neither changed this behavior. Is there another

How to tell Maven to build an executable jar

*爱你&永不变心* 提交于 2019-12-11 13:33:30
问题 This seems like it should be simple, but I've not figured it out and haven't gotten much help from reading the docs and searching the web. In an effort to learn to use Maven (2.2.1) with a multimodule project, I've used Maven to create a simple project P with a class C (containing main) and subclass S. When I run mvn install the build runs and produces a BUILD SUCCESSFUL message. However, when I run the resulting C jar, I get an exception: "Exception in thread "main" java.lang

How to change project name in .project created from mvn eclipse:eclipse?

守給你的承諾、 提交于 2019-12-11 13:20:54
问题 Here is the content of my pom.xml <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> <url>http://maven.apache.org</url> <name>SomeProject</name> <groupId>com.test.te</groupId> <artifactId>testjar</artifactId> <version>1.1.6</version> <packaging>jar</packaging> <dependencies> .... .... </dependencies> <build>

How to debug HTTP Proxy problems with artifactory?

情到浓时终转凉″ 提交于 2019-12-11 12:35:21
问题 I have an artifactory within a corporate network. I configured a http proxy for each remote repository. It doesn't work. How could I possibly find out why it doesn't work? Are there any log settings which I could tweak? Using the same proxy within Firefox works just fine. 回答1: Artifactory 2 uses logback for logging, you can find its configuration in $ARTIFACTORY_HOME/etc/logback.xml If you can access the repository through the browser, it's likely the problem is in your Maven configuration.

Maven Chronos JMeter plugin

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 12:33:13
问题 Has any one used Chronos for JMeter + Maven plug-in. I am having tough time trying Maven JMeter plug-in and thought of giving it a try I have following pom set up for chronos but when I execute "mvn verify " I encounter following exception - # Maven cannot calculate your build plan, given the following information: Tasks: - verify Current project: Group-Id: chronos1 Artifact-Id: chronos1 Version: 0.0.1-SNAPSHOT From file: C:\SelNG\chronos\pom.xml Error message: Failed to resolve plugin for

Selenium RC testing with Maven

不问归期 提交于 2019-12-11 12:15:43
问题 I'm trying to run a series of selenium tests using maven and I get this error: Running com.myapp.web.selenium.MySeleniumTest WARN [SocketListener0-1] HttpConnection - POST /selenium-server/driver/ HTTP/1.1 java.lang.RuntimeException: Firefox refused shutdown while preparing a profile at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:27 7) at org.openqa.selenium.server.browserlaunchers

ProGuard: Problems using obfuscated JAR

巧了我就是萌 提交于 2019-12-11 11:37:50
问题 I have a JAR myapp-logic with classes, some of which are obfuscated and some non-obfuscated. I want to use myapp-logic in a web application called myapp-web . When I add the obfuscated version of myapp-logic to the dependencies of myapp-web , I get following error message (when I run mvn clean compile ): EntryPageController.java:[55,41] incompatible types found : java.lang.Object required: ru.altruix.ccp.logic.api.simfacade.SimulationFacade The code with the error looks like this: final

Maven download or fetch the wsdl from the url to project directory

久未见 提交于 2019-12-11 11:03:12
问题 We developed a web service client application using the wsdls from the url location. I don't want the webservice client to go and validate the actual wsdls everytime , so wanted to download the wsdls in to local project . is there any way can i download the wsdls using maven similar to copy resources? Thanks Vijay 回答1: You can use the wagon plugin to download the files to your project. See its usage page. 回答2: Two cases. If you own the service code, and it's something like Apache cxf, there's

Why does the Maven goal “package” include the resources in the jar, but the goal “jar:jar” doesn't?

与世无争的帅哥 提交于 2019-12-11 09:48:49
问题 when I package my project with the Maven goal "package", the resources are included as well. They are originally located in the directory "src/main/resources". Because I want to create an executable jar and add the classpath to the manifest, I'm using maven-jar-plugin. I've configured it as the following likes: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.2</version> <configuration> <archive> <manifest> <addClasspath>true<