Question about maven
Why is maven downloading dependencies from repository even if the jar exists on my local repository(one reason could be that jar doesn't have a pom), is there a way to get bypass that except with the -o option? ...
Why is maven downloading dependencies from repository even if the jar exists on my local repository(one reason could be that jar doesn't have a pom), is there a way to get bypass that except with the -o option? ...
Hi, I have this dependency situation: C (->) B -> A -> C where B->C means that module C has a dependency to B in its pom.xml. Well...i want to use a class from B in C so i have to put C->B BUT i receive a cycling error as you can see above... Do you see any workaround? I CANNOT move that class from B in C because it already use...
I'm trying to understand the build process of a codebase. The project uses both autoconf (configure scripts that generate makefiles) and Maven. I would like to be able identify all of the file dependencies in the project, so that for any output file that ends up being generated by a build, I can identify how it was actually produced. Ul...
I'm using Maven2 and Spring 3, when I run my project in Eclipse everything works fine, but when I use assembly:assembly, the resultant jar throws the following Exception: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from class path resource [beans.xml] is inva...
I've been experimenting with generating pom.xml files using ant and maven-ant-tasks. So far everything has been working splendidly, but I have a problem with the parent attribute. artifact:pom doesn't support the nested "parent" element. This was my attempt at using the parent attribute: <artifact:pom id="maven-pom-test-s...
Littered throughout my project are various property files located in packages that are not being included when the package goal is run from a Maven build. Using the 0.10.2 m2eclipse plugin and the default "package" goal. In the project: src->main->java->mypackage->MyProperties.java src->main->java->mypackage->MyProperties.properti...
Hi, When I run mvn site I get the error: java.lang.NullPointerException at org.codehaus.mojo.versions.ordering.MavenVersionComparator.innerGetSegmentCount(MavenVersionComparator.java:5 1) at org.codehaus.mojo.versions.ordering.AbstractVersionComparator.getSegmentCount(AbstractVersionComparator.java: 27) This appears t...
Hi , I tried to convert a project to a maven one... it has its .java files in other location than /src/main/java , when i run maven install, all the files (.hbm , .xml) except those .class occurs in my jar. This is build part from pom.xml : <build> <resources> <resource> <directory>${basedir}/src</directory> ...
Due to a design issue outside of my control, the MANIFEST.MF file populated by the Maven Archiver plugin (inside of Maven jar plugin) is overwritten. Can I: move the file further down into the jar (i.e. from /META-INF to /src/home or something) Populate a different file with the contents that would normally go into MANIFEST.mf (i.e. ...
I'm trying to use JSFUnit framework, but can't understand how to allocate projects/files. How many projects/sub-projects should I have and whether it is possible to have just ONE project, as it normally happens with JUnit and similar frameworks. Would be nice to see some example. I still can't understand whether I need to create a separ...
When I run "perform eclipse" in Roo I get: roo> perform eclipse [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building bugzter [INFO] task-segment: [eclipse:clean, eclipse:eclipse] [INFO] ------------------------------------------------------------------------ [...
I have a project where I am responsible for fixing some errors and another developer is responsible for other errors. The number of errors is well over a hundred, and as I'm fixing my errors, her errors are piling up. I'm at the point where I see 99 of her errors and one of mine, and I assume I will soon get to a point where it is 100 ...
I am retro-fitting a Maven project around a set of Android projects (written using Eclipse). Some of the Android projects are libraries of common code and resources. Since the Android library projects have resources, they have their own R, which I reference from within the common library code. Following the instructions in the Maven: Com...
Is there an easy way to tell Netbeans (6.9) what page to open when I "run" my Maven Enterprise project? It opens a totally wrong context path. I guess there are some options I can specify on the Project Properties | Actions page -> "Run project" action, I just can't find it anywhere as documentation seems to be nonexistent for Netbeans.....
Hi Experts, I have customized pom.xml in maven to build a war file, for which i am compiling few class files which in deed depends on some jar files. Which i have included them as dependencies. The build was successful but end result puts me in trouble now i have those class files included in my war which i don't want it. So can you ple...
Hi guys, I am trying to get working R.java generation to project in gen folder. Actually, the application builds, when using maven build, however eclipse finds error, because it can't resolve R.java file (which actually is being put in /target/generated-sources/r/R.java location after each build). What is the suggested way to solve the p...
I added some jars as dependencies in pom.xml, but it seems that some of them are useless because those jars were already downloaded using dependencies mechanism... Is there a way to see those "built-in" dependencies, so that I could add only the needed dependencies in my pom.xml? For example if I add a hibernate dependency in pom.xml o...
Where can i find the DTD or XML Schema of surefire generated XML (TEST-.xml) file? ...
I am trying to set up automated selenium testing but don't know how to run tests in multiple browsers. Based on reading stuff online I have selenium grid up and running with multiple browsers and it successfully executes my tests. I am trying to figure out how to setup my junit tests so that it runs all the browsers one after another or...
I am converting ant to maven2. I meet a problem. Please help me: In build.xml, i have <target name="clean"> <delete file="${dir.dist}/${api.jarfile}" /> <delete dir="${dir.build}/**" /> /target> <target name="prepare1" depends="clean"> <mkdir dir="${dir.build}" /> <mkdir dir="${dir.generated.code.junit}/build" /> <mkdir dir="$...