maven-2

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? ...

how to solve a maven cycling problem?

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...

Determine all of the file dependencies in a build process that uses makefiles and ant scripts

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...

Spring Build Problem - Can't Find Beans Schema

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...

How can I manipulate the parent attribute using artifact:pom?

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...

Missing package property files in war build

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...

Error generating maven documentation

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...

Is it necessary to have .java files in /src/main/java when compiling with maven ?

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> ...

Need to have the manifest generated data moved deeper inside of the jar

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. ...

Where can I find JSFUnit real-life example?

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...

com.sun:tools:jar:1.4.2 missing when running "perform eclipse" in roo

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] ------------------------------------------------------------------------ [...

Is it possible to get maven to accept maxerrs for its compiler plugin?

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 ...

Android Maven build, with dependencies on library R fails

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...

What page to open when running Maven-based EAR from Netbeans

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.....

How to avoid the dependencies of jar files to be included in the war build.

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...

Maven with Android - R.java file generation (Eclipse)

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...

How can i detect maven 2 jar dependencies ?

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-<testname>.xml) file?

Where can i find the DTD or XML Schema of surefire generated XML (TEST-.xml) file? ...

Running tests on multiple browsers with selenium grid and junit

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...

Converting Ant to Maven: problem with target attribute "depends" on Ant

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="$...