maven-3

Getting Error in POM.xml on KEPLER Eclipse

寵の児 提交于 2020-01-16 23:50:10
问题 I have created maven based web application so after created application i am getting two errors in pom.xml which are 1.Multiple annotations found at this line: - Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven

Getting Error in POM.xml on KEPLER Eclipse

对着背影说爱祢 提交于 2020-01-16 23:49:42
问题 I have created maven based web application so after created application i am getting two errors in pom.xml which are 1.Multiple annotations found at this line: - Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven

Mule: Maven excluding certain mule jars while creating mule runnable jar

时间秒杀一切 提交于 2020-01-16 20:06:32
问题 Need to create a runnable jar of a mule service using maven-assembly plugin. Its creating a zip file but excluding certain mule jars. When trying to run it from console getting classnotfound exception for mule-core jar. How can i include these jars as well as create a jar rather than zip. Message on console while packaging using maven clean package command from anypoint studio maven plugin is [INFO] Using exclusions definition for Mule ESB Server version 3.6.0 [INFO] Using as WTP server :

Mule: Maven excluding certain mule jars while creating mule runnable jar

孤街醉人 提交于 2020-01-16 20:05:14
问题 Need to create a runnable jar of a mule service using maven-assembly plugin. Its creating a zip file but excluding certain mule jars. When trying to run it from console getting classnotfound exception for mule-core jar. How can i include these jars as well as create a jar rather than zip. Message on console while packaging using maven clean package command from anypoint studio maven plugin is [INFO] Using exclusions definition for Mule ESB Server version 3.6.0 [INFO] Using as WTP server :

exec-maven-plugin plugin error

旧城冷巷雨未停 提交于 2020-01-16 07:58:09
问题 I use the exec-maven-plugin as follow <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <version>1.6.0</version> <executions> <execution> <id>npm install</id> <goals> <goal>exec</goal> </goals> <phase>generate-sources</phase> <configuration> <executable>${npm.executable}</executable> <arguments> <argument>install</argument> </arguments> <workingDirectory>${basedir}/target/angular5/tourism</workingDirectory> <target> <echo message="Npm install" /> <

Dynamically create the version number within the Ambari's metainfo.xml file using maven build processes

限于喜欢 提交于 2020-01-16 04:00:18
问题 I don’t want to hardcode my service version into metainfo.xml, Can I do it? <service> <name>DUMMY_APP</name> <displayName>My Dummy APP</displayName> <comment>This is a distributed app.</comment> <version>0.1</version> --------------This I don't want to hardcode, Can I doit? <components> ... </components> </service> I am using maven as my build tool. 回答1: This can be done by using maven's resource filtering. Three steps are required: Define a maven property that will hold the version number

possible bug in Maven + plexus + eclipse compiler on case sensitive packages?

我是研究僧i 提交于 2020-01-16 03:26:09
问题 I encounter a very strange problem with Maven and Eclipse compiler. While in Eclipse+m2eclipse, I have no problem compiling a small project (archetype quick start) with the following single class. package test.test; import com.Ostermiller.util.CSVParser; public class TestCaseSensitive { CSVParser csvParser; } Ostermiller utils is added to pom.xml. Eclipse Kepler compiles the project. Next, mvn compile works out-of-the-box. Now the issue, I switch to compiler 3.1 and asks for Eclipse compiler

maven-shade-plugin : make a jar whereas we are in war Project?

◇◆丶佛笑我妖孽 提交于 2020-01-15 12:24:05
问题 Question is in the title. I sucess to first to do a jar (project packaging jar)....then i move it before id do mvn clean to keep it elsewhere. Or i'm a in a war project so i have to rename project packaging to war then i have to do a mvn clean install I got my war. I then import the first jar to use from my war. Is there a clearer way do that with maven shade plugin to generate both war and jar. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>

maven-shade-plugin : make a jar whereas we are in war Project?

▼魔方 西西 提交于 2020-01-15 12:22:08
问题 Question is in the title. I sucess to first to do a jar (project packaging jar)....then i move it before id do mvn clean to keep it elsewhere. Or i'm a in a war project so i have to rename project packaging to war then i have to do a mvn clean install I got my war. I then import the first jar to use from my war. Is there a clearer way do that with maven shade plugin to generate both war and jar. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>

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