maven-2

Looking for Webstart Maven Plugin sample application [closed]

别说谁变了你拦得住时间么 提交于 2019-12-17 18:22:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for source code for a complete application that uses the Webstart Maven Plugin. Any ideas? 回答1: I tried the webstart plugin in a prrof of concept involving an embedded tomcat server. The plugin is bound to the package phase and takes a longtime to execute, I would recommend to invoke it manually

Maven: property substitution not done for /project/version tag of pom?

三世轮回 提交于 2019-12-17 18:18:26
问题 http://maven.apache.org/pom.html#Properties says property "values are accessible anywhere within a POM". Should this read "are accessible in most places within a POM"? I can specify the version of a dependency no problem like so: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> But what about the version of the project itself like so: <project xmlns="http://maven.apache.org/POM/4.0.0" ...> <modelVersion

How to tell M2Eclipse to install jar file as a maven dependency

久未见 提交于 2019-12-17 18:15:12
问题 I want to add jpoller.jar as a maven dependency, so I edited my pom.xml file to include it: <dependency> <groupId>org.sadun</groupId> <artifactId>jpoller</artifactId> <version>1.5.2</version> </dependency> Now, as expected, when I compile from the command line I get an error because jpoller isn't in any of the repositories I have listed in my pom, nor could I find one for it. Although I could create a repository for it, I'd rather not at this point. Thus, I get the following error: [INFO]

Maven failing to resolve recursive dependencies with multiple repositories

拥有回忆 提交于 2019-12-17 18:07:52
问题 I'm new to maven so there must be something I don't understand. But, I've added multiple repositories to resolve multiple dependencies in my POM file. For some reason its failing while pulling a recursive dependency. I'm dependent on spring and spring depends upon jms, and it can't find jms. I'm not sure who tells maven where to find jms is it me or is it inside the POM for spring? Anyway I've tried adding another repository that contains jms, but it still says it can't find it. Here is my

How to add WAR inside EAR with Maven

别来无恙 提交于 2019-12-17 17:39:09
问题 I have EAR with an application and I need to extend this app with my own code that is packaged as a WAR. Is there a maven plugin that can help me with putting the WAR inside the EAR? The manual procedure is to put WAR inside EAR and add module to application.xml. I would like to automate that. EDIT: small clarification - the WAR project is using maven but for EAR I have only the binary file nothing more. 回答1: I'd create a new module that has <packaging>ear</packaging> . In the dependencies

Intellij Community can't use http proxy for Maven

蓝咒 提交于 2019-12-17 17:37:14
问题 I have Intellij IDEA Community installed on a Linux box that needs to use an authenticated proxy to get to the Internet. I have a system-wide proxy on the box that works, and I have the proxy configured in ~/.m2/settings.xml. Maven correctly uses the proxy when I run try it from the command-line. I have the same proxy configured within Intellij and it gives me the plugins listing correctly. But when I try to sync with the Maven repository withing Intellij I keep getting this: [WARNING] Unable

Maven variable for reactor root

旧时模样 提交于 2019-12-17 17:36:51
问题 In a multi-module maven project, is there a variable that points to the root project folder? ${project.basedir} points to the current project's directory, ${project.parent.basedir} points to the parent project's directory, but is there a variable that always points to the root directory (the one from which the maven command was executed), no matter from which project inside the reactor? I realized that the problem I wanted to solve is pretty much unsolvable. I wanted a variable that pointed

Can I add maven repositories in the command line?

为君一笑 提交于 2019-12-17 17:35:03
问题 I'm aware I can add maven repositories for fetching dependencies in ~/.m2/settings.xml. But is it possible to add a repository using command line, something like: mvn install -Dmaven.repository=http://example.com/maven2 The reason I want to do this is because I'm using a continuous integration tool where I have full control over the command line options it uses to call maven, but managing the settings.xml for the user that runs the integration tool is a bit of a hassle. 回答1: You can do this

Can Maven collect all the dependent JARs for a project to help with application deployment?

非 Y 不嫁゛ 提交于 2019-12-17 17:26:00
问题 I'm just starting to use Maven, (evaluating it, really) and I need to be able to quickly generate a JAR file for my application and a directory with all the dependencies (for example, lib) so that I can deploy those two to be run in a stand-alone manner. Generating the JAR file with the proper manifest is easy, but I do not know how to get Maven to copy the dependencies for the current project into a lib directory that I can deploy. Since this is for a stand-alone Java applications, I am not

Building a scala app with maven (that has java source mixed in)

白昼怎懂夜的黑 提交于 2019-12-17 17:24:59
问题 I have an application where I would like to have mixed Java and Scala source (actually its migrating a java app to scala - but a bit at a time). I can make this work in IDEs just fine, very nice. But I am not sure how to do this with maven - scalac can compile java and scala intertwined, but how to I set up maven for the module? Also, does my scala source have to be a different folder to the java? 回答1: Using the maven scala plugin, a config like the one below will work for a project that