maven-2

The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid version could be found

允我心安 提交于 2020-01-04 09:04:58
问题 I hit into deployment error for Jboss AS 7.1.1 Final deployment as mentioned at Could not connect to remote://localhost:9999. The connection timed out Jboss 7.1.1 Final. I am trying to use latest version of Jboss Maven plugin '7.4.Final' from '7.1.1.Final'. When I made change in POM configuration I am getting following error for both versions of plug-in. I have confirmed that my .m2 has both of these plug-in versions available. Is POM meta data corrupt in my case, if so how do I clean it up

Broken console in Maven project using Netbeans

我是研究僧i 提交于 2020-01-04 08:28:04
问题 I have strange problem with my Neatens+Maven installation. This is the shortest code to reproduce the problem: public class App { public static void main( String[] args ) { // Create a scanner to read from keyboard Scanner scanner = new Scanner (System.in); Scanner s= new Scanner(System.in); String param= s.next(); System.out.println(param); } } When I'm running it as Maven Project inside Netbeans console seems to be broken. It just ignores my input. It's look like "infinitive loop" in String

Maven Assembly Plugin - Include Dependencies from Sub-Modules?

早过忘川 提交于 2020-01-04 06:40:13
问题 I am trying to setup the assembly plugin for a large multi-module project. The goal right now is to just get all of my artifacts into a directory. Here is my descriptor: <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> <id>Install-Package</id> <formats> <format>dir<

EL in a JSP stopped evaluating

一笑奈何 提交于 2020-01-04 06:32:09
问题 In a JSP page(index.jsp): ${requestContext.requestURL} is the URL just shows the expression itself. It used to be evaluated to something like "http://.../somerset/" I created the Maven project with maven-archetype-webapp archetype in Eclipse. The Jetty version is jetty-6.1.14. My web.xml is simple: <web-app> <display-name>Archetype Created Web Application</display-name> <servlet> <servlet-name>SomersetServlet</servlet-name> <display-name>SomersetServlet</display-name> <description><

Is it possible to get Maven dependencies in a property at run-time?

前提是你 提交于 2020-01-04 06:15:31
问题 I'm working with a situation where we are using the LATEST and RELEASE keywords in our POM for a certain dependency (both the dependency and the project are owned by us, so we control what is LATEST and RELEASE...and we only support one version at a time). Using these keywords allows us to minimize maintenance needed after a release. There is a step in the build process that must copy DLLs from the unpacked dependency, but since we don't specify a specific version we have the version number

Reading POM's with its children

折月煮酒 提交于 2020-01-04 05:37:06
问题 Based on the post it is mentioned (By Brett Porter) that a POM can be read. What i need is to read not only a single pom. I need to read the whole tree of pom's in a multimodule build. Starting with the root pom and it should read automatically the child pom's if it's possible? I need to do this in separate Java Code not in relationship with Maven itself. 回答1: Perhaps this is cheating a small bit, but perhaps you could call mvn help:effective-pom on the parent pom through Runtime.exec (http:/

IntelliJ2-IDEA get Maven-2 to download source and documentation

微笑、不失礼 提交于 2020-01-04 03:48:06
问题 I have a spring mvc project setup using maven in IntelliJ. While I was setting the project up, IntelliJ asked me if I wanted to download the source and documentation. In order to save time at that point I did not select this option. However now I would like to download some of the source if not all. Does any one know where how to accomplish this in IntelliJ for a project that has already been setup? The question is specific to how to do this with intelliJ since I would like all the mouse over

Complex Maven2 with Flex4 Setup

五迷三道 提交于 2020-01-04 02:43:08
问题 I have been struggling to get Maven2 to cooperate with me, and was wondering if anyone out there had any ideas on how to get this working.... I am working on a Flash project, and we are considering switching from our hybrid Flex4/FlashCS4 to a pure Flex4 solution. We would like to use the Maven2 build system, so that our developers do not have to manually download, install, and configure Flex4 on their machines. I have managed to create a single-module project using Maven2 with Flex4 (I am

Exec goals before war archive package

久未见 提交于 2020-01-04 02:11:14
问题 I want to run maven-replacer-plugin just before packaging war. I have find "prepare-package" phase but it triggered before war assembled and all resources copied, but I need to make changes when all resources copied and just before archive create. Is this possible in maven? BTW, I use maven-2.2.1. Thanks. 回答1: I have found answer in maven replacer plugin WIKI. The trick is to make all things after war:exploded but then use <useCache>true</useCache> property in war plugin configuration. And

Trigger a maven install command from another maven install command

独自空忆成欢 提交于 2020-01-03 08:45:02
问题 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