maven-3

Can maven treat WEB-INF\lib the way eclipse (and m2e) does?

↘锁芯ラ 提交于 2019-12-11 18:56:54
问题 I have a servlet/jsp web project which runs fine on eclipse and is exported as war fine (once I clean it that is). I mavenized the project deleting all of the dependencies from the WEB-INF\lib folder except a homebrew jar (the output of another project in the workspace). When I run the package maven goal I get messages for missing classes from this jar: [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- #..... NOTICE THIS COMES FROM A CUSTOM JAR

where does the maven version get overridden?

久未见 提交于 2019-12-11 18:25:06
问题 I am building a spring boot starter, following the recommended convention with core / autoconfigure / starter module separation. When I look at the maven dependency-tree, this is what I have : [INFO] com.myDomain.myProject:myProject-starter:jar:1.0.8-SNAPSHOT [INFO] +- com.myDomain.myProject:myProject-autoconfigure:jar:1.0.8-SNAPSHOT:compile [INFO] | \- com.myDomain.myProject:myProject-core:jar:1.0.8-SNAPSHOT:compile [INFO] | +- io.github.openfeign:feign-gson:jar:9.5.1:compile [INFO] | | +-

How to resolve maven EnforcedBytecodeVersion failure?

老子叫甜甜 提交于 2019-12-11 17:54:41
问题 When trying to run maven enforcer getting a failure due to some classes conforming to 1.9 where as the entire project is confine dto 1.8. Following is the stack trace of the log. That specific dependency is being pulled by a different jar which can't be excluded as it has compile time dependency. [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0 [INFO] Restricted to JDK 1.8 yet javax.json.bind:javax.json.bind-api:jar:1.0:compile contains module-info.class

how to customize maven to generate the .classpath that i want?

一个人想着一个人 提交于 2019-12-11 16:21:41
问题 using the following command mvn eclipse:eclipse i can get a .classpath with the line such as: <classpathentry kind="src" path="src/main/java" including="**/*.java"/> but this is not the configuration i want, i want it to be <classpathentry kind="src" path="src/main/java" including="**/*.*"/> that means it should be including=" / . "** and not including=" / . *jave " why i should do in order to customize maven to generate the .classpath that i want? 来源: https://stackoverflow.com/questions

How to define a new kind of scope in Maven?

点点圈 提交于 2019-12-11 16:15:57
问题 In order tell the Flexmojo Maven plugin that your project should use a particular theme, it is necessary to add a scope "theme" dependency to your project like this: <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark</artifactId> <version>4.1.0.16076</version> <type>swc</type> <scope>theme</scope> </dependency> This works fine, but produces the following scary looking warning: [WARNING] Some problems were encountered while building the effective model for com.mycorp

Unable to download reportyng plugin with maven

吃可爱长大的小学妹 提交于 2019-12-11 15:56:42
问题 I am using reporting with maven to generate xslt reports but getting following error while executing command: "mvn clean test site org.reportyng:reporty-ng:1.2:reportyng" Error: [ERROR] Error resolving version for plugin 'org.reportyng-ng:1.2' from the repositories [local (C:\Documents and Settings\RajkumarJain\.m2\repository), reporty-ng (https://github.com/cosminaru/reporty-ng/raw/master/dist/maven), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository

Springboot multimodule project

冷暖自知 提交于 2019-12-11 15:26:37
问题 I'm trying to get a clean springboot maven multimodule project. I'm using springboot 2.0.1.RELEASE What I want to achieve is similar to this: SpringBootMultipleMavenModules The problem I have is that I want to be able to inject my dependencies in any modules. For example in this class: DBSeeder.java looks as follow: private HotelRepository hotelRepository; public DbSeeder(HotelRepository hotelRepository){ this.hotelRepository = hotelRepository; } .. I would like to use instead: @Autowired

How do I make running a JUnit test in eclipse behave the same as running the Maven test on the command line?

﹥>﹥吖頭↗ 提交于 2019-12-11 15:11:38
问题 I'm using Eclipse Oxygen for Java developers on Mac OS. I have imported my Maven projects into the IDE. Normally, at the command line, when I run a test, I'll run something like mvn test -Dtest=UserServiceTest In addition to running the "test" goal, this will also execute some custom code I have in the "process-resources" and "test-compile" goals. However, when I run my test in the Eclipse IDE (by right clicking on the class name in the package explorer, selecting "Run" and then selecting

Automate version in .install4j file based on POM version

喜夏-厌秋 提交于 2019-12-11 14:49:37
问题 I am using Maven to automate build process of Install4j. For every release product, POM version is updated. I want when pom version is updated Install4j version should be updated (under General Setting-> ApplicationInfo->Version). How can i automate version in install4j file. So that version should always remain latest for my product installer. 回答1: You can set the release parameter for the install4j compile target to set the version from the maven plugin. See http://sonatype.github.io

maven Error resolving version for plugin maven-eclipse-plugin in Jenkins

五迷三道 提交于 2019-12-11 13:56:51
问题 I recently encoutered one error when i built my job on jenkins, the same build was success in few week, but yesterday the build fails with the following error : [ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven- eclipse-plugin' from the repositories [local (/cip/home/jenkins-V1/.m2/repository-Project), central (http://mrm.fr.company.com/Project-virtual), snapshots (http://mrm.fr.company.com/Project-virtual)]: Plugin not found in any plugin repository -> [Help 1]