maven-plugin

Manually update Maven m2 with “org.apache.maven.plugins” and “org.codehaus.mojo”

雨燕双飞 提交于 2020-01-17 01:25:11
问题 I have a problem, I need to use Maven version 3.3.3 in offline mode. I set the conf file settings.xml to work offline and use the command mvn --offline ecc... But when i type the command: mvn archetype:generate I see the following error: [...] No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\xxx\.m2\repository), central (https://repo.maven.apache.org/maven2)] ->

maven-jetty-plugin question

家住魔仙堡 提交于 2020-01-17 01:21:41
问题 I need to start jetty before module tests. Example: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>jetty-test</groupId> <artifactId>jetty-test</artifactId> <version>1.0</version> <packaging>war</packaging> <build> <extensions> <extension> <groupId>org

Android library not resolve dependencies after publish

不想你离开。 提交于 2020-01-16 18:52:27
问题 I have created android library which use android-async dependency. This library project showing everything is fine. But when i publish this library into local nexus and then try to use it in some other project then in a class where this async library is using show error like this: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/loopj/android/http/SyncHttpClient; at com.myproject.installer.InstallerService.onHandleIntent(InstallerService.java:46) Here is a gradle file of library:

Cannot access parsedVersion value in pom properties

邮差的信 提交于 2020-01-16 01:17:26
问题 i am using the maven plugin: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>parse-version</id> <goals> <goal>parse-version</goal> </goals> </execution> </executions> </plugin> to parse the project version. It works fine: [INFO] --- build-helper-maven-plugin:3.0.0:parse-version (parse-version) [INFO] [INFO] --- maven-antrun-plugin:1.1:run (default) [INFO] Executing tasks [echo] Major: 2

Help with Selenium Maven Cargo

夙愿已清 提交于 2020-01-15 11:53:14
问题 I am trying to use cargo to deploy and start my container (which works fine), and then use selenium to execute some UI tests. Whenever I try to run (mvn clean integration-test), I get to the point where it says Launching Selenium Server Waiting for Selenium Server... [INFO]Redirecting output to [INFO]User extensions But then my integration tests never get executed by surefire. Any help is much appreciated. It seems like the Selenium Server never gets started. One quick note, I am using JUnit

Help with Selenium Maven Cargo

谁说我不能喝 提交于 2020-01-15 11:53:11
问题 I am trying to use cargo to deploy and start my container (which works fine), and then use selenium to execute some UI tests. Whenever I try to run (mvn clean integration-test), I get to the point where it says Launching Selenium Server Waiting for Selenium Server... [INFO]Redirecting output to [INFO]User extensions But then my integration tests never get executed by surefire. Any help is much appreciated. It seems like the Selenium Server never gets started. One quick note, I am using JUnit

Override the dependency version used at runtime from command-line

末鹿安然 提交于 2020-01-15 09:36:47
问题 General : I need execute maven plugin from command line with overridden dependency version (plugin dependency). Plugin will not be defined in project pom. Concrete : I need to execute maven-checkstyle-plugin as step in teamcity build; this plugin will not be defined project pom. I use following command-line: mvn org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check -Dencoding=UTF-8 But I need to execute plugin with latest checkstyle as showed here. POM xml: <plugin> <groupId>org.apache

When Spring Boot application running by Intelij Idea views can`t be resolved

為{幸葍}努か 提交于 2020-01-15 03:21:28
问题 I have encountered a strange situation, the decision which I cant find. I`m runnig simple demo application using Spring Boot 1.3.0 and Intelij Idea 14.1.3 The problem is that Spring MVC cant resolve the view: javax.servlet.ServletException: Could not resolve view with name 'home' in servlet with name 'dispatcherServlet' Oddity is that when I run application by Maven Spring Boot-plugin mvn clean spring-boot:run everythig works fine. Both views ("home.jsp" - returning from Controller and "start

Rename files inside a jar using some maven plugin

被刻印的时光 ゝ 提交于 2020-01-14 19:51:31
问题 I have a jar build by maven-shade-plugin. It contains META-INF/services with several files. These files have wrong names (because of the bug https://issues.apache.org/jira/browse/MSHADE-182). I'd like to rename these files. What is the easiest way of doing this with maven? 回答1: Dirty hack, but it works for me <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>unpack</id> <phase>package</phase>

How to use Aether (eclipse) in Maven Plugins using API 3.1.1?

好久不见. 提交于 2020-01-13 19:05:32
问题 I am developing a new Maven plugin using API v3.1.1 because I need to upgrade to Maven 3.1.1, and need the Aether way of dealing with artifact repositories, among other things retrieving the complete list of artifact versions. I am using Eclipse Aether (0.9.0.M4), NOT Sonatype Aether. I have already read through http://wiki.eclipse.org/Aether and tried the demos http://git.eclipse.org/c/aether/aether-demo.git/tree/, but I have not been able to understand why the following within a subclass of