maven-2

How can the user-agent be changed in Maven?

走远了吗. 提交于 2019-12-22 09:49:58
问题 How can I change the user-agent in Maven? I need to be able to change this to get through the company firewall. I am using version 2.2.1 and I noticed an improvement in the 2.0.10 release notes: [MNG-3652] - set a user agent for Maven HTTP requests. 回答1: Brett Porter posted a blog on Configuring Maven HTTP Connections that describes how you can do this and some other funky things: <server> <id>archiva.localhost</id> <configuration> <httpHeaders> <property> <name>User-Agent</name> <value

How do I remove a Hudson Upstream Project relation?

我是研究僧i 提交于 2019-12-22 09:45:37
问题 I used to have one job, which I split into two. For some reason, the new split-off job treats the first as an Upstream Project. I'd like to remove this relation, but can't find the configuration for it on disk, or in the Hudson UI (ver. 1.312) Note: the new job, like the old one, is maven2. There is no reference/relation between the POMs at all. How can I remove the Upstream Project relation, or at least find where it is declared on disk? 回答1: I'm not sure where it's stored on disk, but you

Is there a way to make the Maven build independent of the network connection?

瘦欲@ 提交于 2019-12-22 09:41:13
问题 I'm working in a Continuous Integration environment and part of the automated build process includes the compilation of Maven managed projects. What I want to know is if there is a way to make the Maven build independent of the network connection. Currently we have the all the jar's that we need installed in the repository but the problem is that Maven tries to check for plugins updates and that makes the build fail if, eventually, the connection is down. 回答1: You can either run offline with

maven deploy to tomcat cluster (multiple) in one line

▼魔方 西西 提交于 2019-12-22 09:37:05
问题 We're trying to have maven deploy to many multiple servers that form our cluster in just one line. This solution works just fine except that we need to run it repeatedly (1 time per server installation) and our goal is to do it after our integration server (jenkins) buils a successful artifact. And having a matrix feature is not really an option at this time. Why build again the project per server if we just need to deploy it? (plus the time spend doing this) We've been experimenting using

Maven, Hudson and Dynamic Clearcase Views

北城余情 提交于 2019-12-22 09:23:42
问题 This led on from the question about asking if Apache Maven and IBM Rational ClearCase integrated well. Thought I should write up what I found out - will require various edits, but I shall eventually get round to adding it all I hope. Environment ClearCase - Version 7.0.1.2 of ClearCase. Maven - All of them, from the Maven website. Hudson - Version 1.307 downloaded straight from the Hudson website Questions Does Maven run from a VOB? I installed all the versions of Maven2 into a VOB 'stacked',

How can I get nexus to proxy springsource maven repository on s3?

十年热恋 提交于 2019-12-22 08:52:52
问题 I have nexus 1.5.0 setup to proxy springsource repositories but it's not working. The repositories are on s3 that nexus doesn't seem to understand how to deal with that. What's the right pattern? Here are the repositories I'm told I need, but I cannot access the maven paths with in them http://repository.springsource.com/maven/bundles/release http://repository.springsource.com/maven/bundles/external Do, I need to mirror these locally? 回答1: According to NEXUS-1121, your version of Nexus knows

How to make jetty-maven-plugin deploy a war that is retrieved from a repository?

天涯浪子 提交于 2019-12-22 08:38:33
问题 I'm setting up an integration test module for a good sized web project. The integration test module is separated from the web project itself, and it has it's own pom. The idea is to use the maven-soapui-plugin to send requests and verify the response. Setting up the soapui-plugin is no hassle. However, I'm having trouble with figuring out how I can tell the jetty-maven-plugin to deploy a war from a remote repository. If I have understood correctly, the jetty-maven-plugin has a property called

How to send out email notification for Maven build

早过忘川 提交于 2019-12-22 08:25:14
问题 Is there a simple way to send out email notifications in Maven for each build without outside CI tools, just like Ant? 回答1: If CI is not an option I would use a simple script wrapper: mvn install 2>&1 | tee build.log && cat build.log | mail -s 'Maven build output' user@example.com && rm -f build.log If you do decide to use a CI tool, I would strongly recommend Hudson. The installation page shows how easy it is to run. Continuous integration server sounds pompous and enterprisey, but Hudson is

Maven in multimodule web project: how to put sibling modules output to WEB-INF/classes and not into WEB-INF/lib as JARs?

余生颓废 提交于 2019-12-22 08:18:19
问题 I have a multi-module Maven project. By default when I build a web module, all sibling modules of type JAR it depends on are copied to WEB-INF/lib folder. I want output of sibling modules to be placed in WEB-INF/classes folder without packaging to JAR. More general question may be: how to keep sibling modules' configuration files out of JARs so that they can be edited after deployment easily? 回答1: You could use an overlay, although that requires that the sibling be of type war rather than jar

VisualVM breaks jetty

痞子三分冷 提交于 2019-12-22 08:17:12
问题 I'm trying to profile application that is run by "mvn jetty:run", when I connect VisualVM to it and click on Profile jetty crashes with: Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8) Profiler Agent: Established local connection with the tool # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6da5e5d4, pid=5124, tid=5704 # # JRE version: 6.0_16-b01 # Java VM: Java HotSpot(TM) Client VM (14.2-b01