maven-2

maven deploy goal failing

浪尽此生 提交于 2019-12-12 04:15:01
问题 I am using eclipse with maven2 plugin. When doing a Run-As -> build with a goal of 'deploy' I am getting this error: Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated I'm not sure I even need to do a 'deploy', I have another build that does a 'compile' goal, and from what I have learned doing a Run-As -> Run on Server (tomcat) is enough to deploy my application

Maven Application got 5 Modules and 6 POM.xml files

此生再无相见时 提交于 2019-12-12 03:19:26
问题 I am working on existing Maven Project Which has got 5 modules like <modules> <module>sideware</module> <module>xmlmodule</module> <module>business</module> <module>service</module> <module>helper</module> </modules> Each Module has got a one POM.xml file as well as and one main Pom.xml I am using Eclipse to run the POM.xml files as Maven install Please tell me do i need to run the Each POM.xml indivudally ?? Or can i run the Parent POM.xml file once ?? Thank you 回答1: I think it is sufficient

Handling multiple artifacts from single maven project

a 夏天 提交于 2019-12-12 02:32:59
问题 I have a maven project that produces many artifacts. Of course it is kind of against maven best practice (one pom one artifact), but it is Adobe Flex project that produces many *swf modules and it is really makes no sence to create a separate project for each module. For me it would be very convinient to handle all swf modules as a single zip archive eg. zip archive would be my artifact. So I am looking for the way to pack and unpack my zip artifact with maven. If you have any ideas, please

Maven dependency not in pom.xml

天涯浪子 提交于 2019-12-12 01:09:43
问题 I have a project which uses spring. It uses version 3.1.1 but, for some reason I really don't know, some spring artifacts are duplicated with two different versions. I look for the those dependencies in all pom.xml files from my project. I also use the dependecy plugin to figure out where were those dependencies included. Here you have an extract of the output of mvn dependency:tree [INFO] | | \- org.springframework:spring-web:jar:3.1.1.RELEASE:compile [INFO] | | +- aopalliance:aopalliance

error while loading maven project into eclipse

限于喜欢 提交于 2019-12-11 20:46:33
问题 I am using Maven 2.2.0 and Eclipse Juno. I am trying to import one of the existing Maven project into workspace. I got following error. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read

groovy (java): exec() do not detach from process (Intellij IDEA vs Maven+TestNG)

允我心安 提交于 2019-12-11 18:01:43
问题 I have Groovy Maven2 test project with TestNG and Surefire plugin enabled. I want to launch external process (*.cmd file which start some *.exe file) in last test method, finish my tests and left process running after tests. I tried the following codes to do it: 1 attempt def builder = new ProcessBuilder('cmd','/c <name>.cmd') builder.directory( ( new File( <path_to_working_directory> ) ) ) builder.start() 2 attempt (with and without start cmd option) Runtime.getRuntime().exec( "cmd /c start

How to override maven-core-2.0.7-uber.jar?

一个人想着一个人 提交于 2019-12-11 17:17:11
问题 My problem is that I am trying to use a specific JTidy version with maven (v8.0 or something). Everything works fine during compile time, but at runtime maven overrides the JTidy in the pom.xml with its own implementation in maven-core-2.0.7-uber.jar . See also previous question. What can be done? My application compiles fine but fails at runtime because the classloader loads the file from maven-core-2.0.7-uber.jar instead of the one given in pom.xml . Is there some way to force it at runtime

Rename static files on maven war build

谁说胖子不能爱 提交于 2019-12-11 16:44:34
问题 I am trying to figure out a way by which I could rename the static files I have in my web project, all of them at the same time. Exactly what I need is to be able of filtering all my statics filenames to add a version number or something similar just to avoid them from being cached by browsers. Something like converting custom.css into custom-1.23.css where 1.23 would be the value of a given filter. This behaviour looks really similar to what resources plugin does with the content of the

maven - use generics in a eclipse's maven project

久未见 提交于 2019-12-11 16:30:46
问题 I have a maven website project generated by archtype plugin with eclipse IDE. The problem is when i need to use generics or any thing of java 5 or 6, i changed the project compiler to 1.6 and i got a error mark on the project icon in the package explorer but everything is fine. I think it is cause by maven but I dont know how to get rid of it. Thank you 回答1: Don't forget to configure the maven-compiler-plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler

Why can I run this file packaged by Maven by specifying the path as argument but not by setting the path permanently in my path variable?

断了今生、忘了曾经 提交于 2019-12-11 16:15:46
问题 So, I was trying to run this command: java -cp ./target/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar storm.starter.ExclamationTopology To run the ExclamationTopology class in ./storm/starter/ but it didn't work. Then someone on SO suggested me to change the command to this: java -cp ./target/storm-starter-0.0.1-SNAPSHOT-jar-with-dependencies.jar:/Users/xxx/storm-0.8.2/storm-0.8.2.jar:/Users/xxx/storm-0.8.2/lib/*:/Users/xxx/storm-0.8.2/conf/s torm.yaml storm.starter