maven-2

Maven Local Repository using environment variables

谁说我不能喝 提交于 2019-12-07 19:43:08
问题 How can I set up the < localRepository > tag with an environment user var. I tried this path: %myRepo%/repo but it doesn't works (myRepo=C:/maven/repo). I can't use an absolute path for portability issues but I can setup %myRepo% to the correct place on each system in which the absolute path may vary but the /repo stays the same. Can someone help me? Thanks. Using windows. Maven 2.2.1. 回答1: You can use ${env.HOME} to refer to the environment variable %HOME%, and similarly any other

How to debug Flex application under maven

∥☆過路亽.° 提交于 2019-12-07 18:59:25
问题 I develop Flex-Java applications which is running under Apache Tomcat. I use Flex Builder plug-in for Eclipse as my IDE. My application consists of several libraries and modules. I manage all of them as a small maven (flex-mojos) projects. Does anybody can share some ideas how to setup robust debuging enviroment? 回答1: I use Maven & Flexmojos from the command line and the Flash builder 4 plugin inside of Eclipse. In my project I also have a Java/BlazeDS backend I like to debug at the same time

Is it possible to explicity tell maven to download and install an artifact to the local repository?

穿精又带淫゛_ 提交于 2019-12-07 18:52:01
问题 Yes I read Utility for downloading artifacts from maven repo without mvn/poms and other related questions, but I don't want to install the file manually. Actually I want to have something like a wget for maven, which fetches an artifact (with dependencies) and puts it somewhere or installs it in the local repository. Is the maybe a plugin available which does this? 回答1: There is the dependency:get goal, as described at the dependency plugin manual. This featured was requested at this jira

How to check and access javadoc/source for Maven Artifacts

☆樱花仙子☆ 提交于 2019-12-07 18:14:33
问题 I am writing a Maven plugin which needs to check if a certain project dependency has javadocs and sources available... and if so, would like to download them and archive them on a server. I cannot find out how to check if the javadocs and source are available or how to access them if they are. Any help would be appreciated. 回答1: You can reference additional artifacts by adding the classifier tag to a dependency. The classifier is the additional part of the artifact's name in the repository, e

Looking for spring-hibernate3-2.0.8 sources

末鹿安然 提交于 2019-12-07 18:03:12
问题 I'm looking for the sources jar of spring-hibernate3-2.0.8 Jarvana only has the details to the jar with the compiled classes http://jarvana.com/jarvana/archive-details/org/springframework/spring-hibernate3/2.0.8/spring-hibernate3-2.0.8.jar Any idea where I could find it? I also tried mvn dependency:sources, but it couldn't find the sources in the specified, most used, repositories either. 回答1: It looks like they didn't publish sources for this artifact at this time and my suggestion would be

Maven 2 & Packaging ejb vs jar

蓝咒 提交于 2019-12-07 17:48:55
问题 If i'm working with ejb 3.1, what's the différence between <packaging>jar</packaging> and <packaging>ejb</packaging> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ejb-plugin</artifactId> <version>2.3</version> <configuration> <ejbVersion>3.1</ejbVersion> </configuration> </plugin> 回答1: As mentioned at http://maven.apache.org/plugins/maven-ejb-plugin/usage.html , "The plugin doesn't do any EJB specific processing during the generation of the jar except for

Unable to run Cucumber tests from maven

狂风中的少年 提交于 2019-12-07 16:31:08
问题 My Maven Project Structure is The project runs well If I try to run it through eclipse as JUnitTest (CucumberRunnerTest.java). But if I try executing it through maven then I get the below error: The pom is as below: <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.ericsson</groupId> <artifactId

Maven localRepository

微笑、不失礼 提交于 2019-12-07 16:25:25
问题 I know that this is not the idea behind Maven but: I would like to have a local maven repo (.m2) inside the progect directory with a relative path . Is there any way I can have my pom do this? Is there a better alternative? So, basically what I want is not to be dependent on any exterior repositorys. Thx for your help :) PS1 - I'm sort of a java noob (c/c++ here) and a total maven PS2 - The settings.xml file on maven installation dir/conf has a localRepository element, but I believe I can't

How to deploy remotely EAR to JBoss 5.1.0.GA using Cargo maven plugin?

喜欢而已 提交于 2019-12-07 15:34:33
问题 Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.1-SNAPSHOT</version> <configuration> <container> <containerId>jboss51x</containerId> <type>remote</type> <timeout>600000</timeout> </container> <configuration> <type>runtime</type> <properties> <cargo.remote.username>username</cargo.remote.username> <cargo.remote.password>password<

Maven webapp with Eclipse and WTP plugin deploy files in stranges ways in Tomcat

﹥>﹥吖頭↗ 提交于 2019-12-07 15:27:54
问题 I use Eclipse J2EE 3.5 with Maven and tomcat. To deploy my maven webapp with WTP I added a Dynamic Web Module facet and changed the "org.eclipse.wst.common.component" file of the project because the webapp is not in a WebContent directory, here is the content of the file: <?xml version="1.0" encoding="UTF-8"?> <project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="toto"> <wb-resource deploy-path="/" source-path="/src/main/webapp"/> <wb-resource deploy-path="/WEB