maven-2

Trigger a maven install command from another maven install command

妖精的绣舞 提交于 2020-01-03 08:43:46
问题 Is there a way to trigger a maven install command from another maven install command? In other words, I would like to be able to execute a maven install command on a maven project (in eclipse) and I want that this will automatically cause an install command on another maven project. Is that possible? 回答1: The Maven way to "trigger" another build is to define a multi-module build. A parent pom project can specify modules, that will all be built using the standard lifecycle. So running mvn

Maven ignores settings.xml file

被刻印的时光 ゝ 提交于 2020-01-03 08:08:11
问题 I have added proxy configuration in settigns.xml file, but it is not used by Maven, i confirmed this by making the settings.xml file invalid. I ran the maven install command to update settings and global-settings to point to the correct file, still no luck. I am using maven3.0.4. 回答1: Try running Maven with the -X option. It should print as part of the debug output which settings file is being used. Since you already tried it with an invalid file, I bet that something is wrong with the

Create a ZIP archive with Maven

纵然是瞬间 提交于 2020-01-03 07:28:09
问题 I followed the answer for how to create a ZIP archive in Maven here: https://stackoverflow.com/a/2514677/1395165 and have a couple of follow-up questions: ZIP contents to exclude directory: As in the example I have: <fileSet> <directory>${project.basedir}/src/export</directory> <useDefaultExcludes>true</useDefaultExcludes> </fileSet> In the ZIP I get src export Dir1 Dir2 but I only want to have Dir1 Dir2 in the ZIP. Is that possible? Output file name The output file name is created with a

where to get hibernate jars from?

半世苍凉 提交于 2020-01-03 05:46:31
问题 i dont know how many of you noticed http://repository.jboss.org/maven2 is down. where are you getting your jars from now? for example if you want hibernate 3.5.6-Final, where do you get it from? thanks in advance 回答1: From Hibernate's download page, the JBoss Maven Repository is at https://repository.jboss.org/nexus/content/groups/public/ Your question is tagged with Maven-2, but if you're not using Maven to manage dependencies, you should be downloading the Hibernate Bundle from SourceForge.

Eclipse (STS), Maven and maven-minify-plugin, can they work together?

 ̄綄美尐妖づ 提交于 2020-01-02 12:14:08
问题 I am working on a project where I am in charge of html, css and javascript. I found this maven-minify-plugin that seemed to just what I wanted. Everything is good when I deploy using maven on the server, but when I am using Eclipse (STS, www.springsource.com/products/sts) to run the project on localhost no css nor js file is generated by the plugin. Does anyone have experience with this Maven plugin, so they can tell me if it should be possible or not run on localhost? Does anyone have

Maven release:prepare overwrites SCM properties with resolved values

回眸只為那壹抹淺笑 提交于 2020-01-02 05:59:36
问题 I suppose this is kinda obvious, but I still judge it as a shortcoming... I have 23 Mavenized projects. I'm now adding the <scm> bit because I've started using the release plugin. Here was my thought process: I'll add the <scm> section only in my company base POM, and parameterise the URLs with properties, e.g. <scm> <connection>${scmBaseConnection}/${scm.module}/${scm.edition}</connection> <developerConnection>${scmBaseConnection}/${scm.module}/${scm.edition}</developerConnection> <url>$

Maven - Nexus: find dependent projects

≡放荡痞女 提交于 2020-01-02 04:34:13
问题 Is there a way in nexus to find all the projects that depend on a particular dependency? We have a list of projects in our nexus repository. We'd need to find all the projects that use a particular dependency. 回答1: The Artifact Usage Nexus Plugin is an open source plugin for Nexus that can do that. A list of further available plugins and integrations is available in the free Nexus book. Be sure to use the correct version of Nexus with the plugin or fork the project and update it to your

Getting a build logfile by maven

浪尽此生 提交于 2020-01-02 01:53:50
问题 is it possible to get a logfile of the maven-build process with not using a pipe-operator? I mean the output that normally comes in console window like that: [INFO] ------------------------------------------------------------------------ [INFO] Building base_project 01.00.000 [INFO] ------------------------------------------------------------------------ [WARNING] While downloading sun-javamail:mail:1.3.1 This artifact has been relocated to javax.mail:mail:1.3.1. http://maven.apache.org

Maven jetty plugin - delay when starting in background mode

白昼怎懂夜的黑 提交于 2020-01-01 14:51:32
问题 I start a jetty server on linux using nohup mvn jetty:run & to run it in background and to stay when I quit from the console. Usually (mvn jetty:run) it starts in seconds, but in this case it takes about minute to start. What can be the cause of such a delay? Stack trace Full thread dump Java HotSpot(TM) 64-Bit Server VM (11.0-b16 mixed mode): "Attach Listener" daemon prio=10 tid=0x000000004bba8c00 nid=0x560a waiting on condition [0x0000000000000000..0x0000000000000000] java.lang.Thread.State

Maven2 sharing dependencies across parent and children (without redeclaring dependencies in children)

橙三吉。 提交于 2020-01-01 12:16:34
问题 With maven1 I was using the extend tag to tell my children project to use their parent configuration. All dependencies declared in the parent were available in extending (children) projects. Now with maven2 I'm using the inheritance/composition feature and I have to redeclare my dependencies (minus the version number) in every child project. (see how-to-share-common-properties-among-several-maven-projects) Is there a way to tell maven that I want to share some of my dependencies among all my