maven-2

Maven dependency from SVN repository

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 02:36:36
问题 Using maven 2, is there any way to list a dependency to another maven project which is on a different SVN server but is not on a maven repository? Ideally, it should be possible to compile and run the main project without having to manually checkout and build the dependency. 回答1: Using maven 2, is there any way to list a dependency to another maven project which is on a different SVN server but is not on a maven repository? Maven dependencies are always resolved through the local repository

Deploy Maven site using FTP Ant task

房东的猫 提交于 2019-12-11 02:23:27
问题 I am trying to deploy a Maven site to an FTP server. I am using the following code in my pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>ftp</id> <phase>post-site</phase> <configuration> <tasks> <ftp action="del" server="nexus" remotedir="/pub/${project.groupId}/${project.artifactId}" userid="anonymous" password="my.name@gmail.com" skipFailedTransfers="true" ignoreNoncriticalErrors="true"> <fileset>

Maven + Surefire/Failsafe - forkMode=“perthread” is not working … a workaround?

你。 提交于 2019-12-11 01:55:29
问题 We are developing an application based in an Embedded Infinispan Data-grid cluster. In the targeted environment of our application, each member of the data-grid will run in a independent JVM and using jgroup the cluster will be formed (this is done by Infinispan actually). For do some automated testing over this data-grid we were working with maven-surefire-plugin (or maven-failsafe-plugin ) with this configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven

Using Maven to run a remote command

不想你离开。 提交于 2019-12-11 01:34:40
问题 What is the best way to have Maven execute a command on a remote server? Before I use a wagon to move my newly created jar to our development environment, I want to shut down a service that depends on it. The best I can come up with so far is to use the exec-maven-plugin to execute the remote command via ssh. Is there are better/more preferred way to do this? 回答1: AFAIK, Maven doesn't provide any particular support to execute ssh commands. So either use the Maven exec plugin or the Maven

How to proceed with ear build in maven2?

不想你离开。 提交于 2019-12-11 01:27:56
问题 I very new to maven2. Till yesterday i was successful in building war from maven2. My next target is to build ear file for a war file including few of jar files as well. Can you please help with that. I would be greatly thankful. Regards Gnash-85 回答1: The official documentation of the Maven EAR plugin and in particular the section about EAR Modules, the examples and the Usage page should be the reference. But you might find Because I always forget how to use maven-ear-plugin an easier

Is there any easy way to run jetty 8 from gradle (like with jettyRun)?

余生颓废 提交于 2019-12-11 00:04:43
问题 Unlucky I need jetty 8 to work properly with spray/akka (it's scala project). With older version used by jettyRun I'm getting error like: java.lang.NoClassDefFoundError: org/eclipse/jetty/continuation/ContinuationListener Is it possible to create some simple task to do the job which jettyRun is doing but with jetty 8? In worst case I can use embedded version of jetty with war which I'm building, but I would be happy to see some simpler solution if there is any... 回答1: Pitor, why didn't you

maven-cobertura-plugion does not show the sources [closed]

纵然是瞬间 提交于 2019-12-10 23:39:11
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 8 years ago . When I generate a Cobertura report by running "mvn cobertura:cobertura" (or "mvn site") then a report is generated which shows the test coverage for my

How to resolve Maven exec plugin: classpath too long error?

风流意气都作罢 提交于 2019-12-10 23:09:36
问题 I have a large Java project with a large number of jar file dependencies. When I try to run the project (using exec) from Eclipse or Netbeans, Maven throws an exception which turns out to be a too large number of entries on the classpath (only 2/3 of the needed entries are included). Does anyone know a workaround for this? (Except from building an executable jar and running it from terminal.) Is it possbile to "extend" the "classpath-buffer"-size? 回答1: This is a Maven exec plugin bug, it is

Possible for IDE's to resolve Scala classes in Java using Maven?

偶尔善良 提交于 2019-12-10 22:09:42
问题 I have a project with mixed Java and Scala sources, following the instructions on this page, which works when running Maven from the command line. However, people using IDEs like IDEA and Netbeans have problems resolving Scala classes in Java code (but not the other way around, thanks to the nice plugins available). Is there a way to resolve them? Note: I can build from the command line just fine; the Scala classes are compiled before the Java classes. I just want the IDE to recognize this as

Using eclipse and maven 2, how to get dependancy for sqljdbc4?

我的未来我决定 提交于 2019-12-10 21:58:00
问题 I am using eclipse with the maven 2 plugin. I want to add the dependency for sqljdbc4, how can I do that? Can't seem to find it via the 'add dependency' option in eclipse? 回答1: If sqljdbc4 is the Microsoft SQL Server JDBC Driver, then you will very likely not find it in any "public" repository because of licensing issues. So you'll have to download it, unpack it and install it manually with either mvn install:install-file (or mvn deploy:deploy-file if you have a repository manager). Another