maven-plugin

Unable to connect to the Eclipse Luna Market

◇◆丶佛笑我妖孽 提交于 2019-11-30 08:07:28
问题 I cant connect my Eclipse Luna distribution to the market for install Maven 2 pluggin. This my configuration : Eclipse : - Eclipse Luna M5 Release, I configured a proxy My computer : - Windows XP 32bits this is the error message : !SESSION 2014-03-03 14:55:53.568 ----------------------------------------------- eclipse.buildId=4.4.0.I20140123-1600 java.version=1.6.0_29 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR Framework arguments: -product

Downloading complete maven remote repository to Local repository?

戏子无情 提交于 2019-11-30 07:09:45
问题 Is there any to get the entire remote repository, say from http://repo1.maven.org/maven2/ , to my local repository (to %USERPROFILE% )? 回答1: From http://maven.apache.org/community.html: Being a Good Maven Citizen The concept of a public repository built into the core architecture of Maven makes it necessarily community-centric. There are a few simple things that Maven users may do to help keep that community thriving. Be a Kind Public Repository User The best thing that a user can do is to

How to add a file to a war with Maven

与世无争的帅哥 提交于 2019-11-30 07:02:55
I have developed a maven plugin that downloads the release notes from JIRA. It's bound by default to the 'generate-sources' phase and creates a 'release.txt' file in the build folder (${project.build.directory}). My question: how can I add this file in the 'WEB-INF' folder of the war file built by Maven ? I know I can use the 'maven-war-plugin' to include additional external resources from the 'src' folder, but I don't want my 'release.txt' file generated there (=not commitable to svn). Thanks for your help. I wish you a nice day! Maxence simonlord I think this can be done using this feature

Resolve maven plugin issue: ' Unable to load mojo'

帅比萌擦擦* 提交于 2019-11-30 06:30:33
I have configured all the dependencies in my pom.xml through maven. When i give the command mvn install I get the following error: [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test': Unable to load the mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin'. A required class is missing: org/apache/maven/surefire/util/NestedCheckedException org.apache.maven.surefire.util.NestedCheckedException How can I resolve this problem? You appear to be experiencing

Getting JRebel to work with 'mvn tomcat:run'

纵饮孤独 提交于 2019-11-30 05:02:11
I was wondering if someone could point me in the direction of getting JRebel to work when I execute 'mvn tomcat:run' from the command line. I can get JRebel to work in my IDE (IntelliJ IDEA), but it feels a little clunky to be running inside of the IDE. When I run tests, I don't like having another process running right next to it - call it a habit. More than that though, I've been having some server lock ups with JRebel as I try it out... and I don't want IDE to hang as a result. I've been teminating the process manually, and control is given back to IDEA... but it would be better to not have

SoapUI Maven plugin- executing multiple projects

我只是一个虾纸丫 提交于 2019-11-30 04:49:48
问题 I am working on converting an Ant execution of the SoapUI TestRunner to use the maven plugin and I cannot get a good answer on how to execute multiple projects using this plugin. I found a forum post from 2010 on the Smartbear forum and there are a few approaches listed but none seem very workable (writing some script to invoke maven with different parameters or adding an execution for every project). Are there any best practices for working around this? Or has anyone seen an inventive

Maven: How to use jetty:run in a multi-module Maven project, without needing to install

故事扮演 提交于 2019-11-30 04:39:43
I'm new to Maven. I have a multi-module maven 2 project that has the following structure (somewhat simplified): Project (POM packaging) | +-- Module1 (JAR) | | | +-- src | | | +-- main | | | +-- java | +-- resources | +-- Module2 (JAR) | | | ... | +-- Web Module (WAR) | ... I've configured the Web Module to include the Maven Jetty plugin . This works great for building the production artifacts. For development, I discovered that I need to call mvn install on any module that I change, followed by stoping jetty and calling jetty:run again. It would be much more productive if there was a way for

Excluding “provided” dependencies from Maven assembly

若如初见. 提交于 2019-11-30 01:41:43
I am trying to use the Maven assembly plugin to build a jar-with-dependencies, except those that have provided scope. I have copied the jar-with-dependencies into an assembly.xml file and configured its use in my pom. Here it is for reference: <?xml version="1.0" encoding="UTF-8"?> <assembly> <id>injectable-jar</id> <formats> <format>jar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <dependencySets> <dependencySet> <unpack>true</unpack> <scope>runtime</scope> </dependencySet> </dependencySets> <fileSets> <fileSet> <directory>${project.build.outputDirectory}</directory>

Basic maven plugin project not working, Mojo plugin descriptors not generating

浪子不回头ぞ 提交于 2019-11-29 23:27:45
I am following the tutorial for creating a maven plugin and cannot run mvn install without getting errors. The info complains that i don't have the required mojo descriptors when the annotations should be generating them for me. I am running maven 3.0.5 and using intellij as my ide. here is my Main class: @Mojo(name = "modify-connector") public class ComplianceMojo extends AbstractMojo { @Parameter private String artifactId; @Parameter private String version; @Override public void execute() throws MojoExecutionException, MojoFailureException { File jar = new File(getPluginContext().get(

How can I download Maven artifacts within a plugin?

拈花ヽ惹草 提交于 2019-11-29 23:07:21
I have a Maven plugin that takes a groupId, artifactId, and version in its confiugration. I want to be able to download that artifact from the remote repositories and copy the file into the project. I can't figure out how to download the artifact though. I understand that I can resolve dependencies using the dependency plugin, but I need it to happen inside my plugin. How can I do this? Rich Seller Your plugin needs to create an Artifact using the ArtifactFactory and the groupId, artifactId and version of the artifact to be bootstrapped, then pass that artifact to an ArtifactResolver to handle