Re: Programmatically get maven properties

2013-10-16 Thread sizu
It would be helpful to have a link to a single class file with a main method to run an example of this. I couldn't get this code to work. Also, a link to the dependencies necessary. How many jars does this code use and what are the links? -- View this message in context: http://maven.40175.n

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2013-10-11 Thread sizu
Example using sed: sed 's//\r\n\r\n\r\norg.ghost4j<\/groupId>\r\nghost4j<\/artifactId>\r\n0.5.0<\/version>\r\n<\/dependency>\r\n/g' pom.xml > pom2.xml Replaces the dependencies tag with the dependencies tag followed by the new dependency (inserts the new dependency first in the list. Creates a n

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2013-10-11 Thread sizu
Here is another use case. Suppose I programmatically want to make sure that my database is backwards compatible with all versions of my application. I may have a test suite that compiles the project using different jars, which represent different versions of the persistence module. I can verify

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2013-10-11 Thread sizu
This is useful for many reasons. The less steps required to use external dependencies the better. If someone must add and configure xml to add a dependency, it leads to human in the loop, which leads to errors. I am all about how quick, I can get installed. For instance, maybe I am writing an o

Re: [FATAL ERROR] SiteMojo#execute() caused a linkage error (NoClassDefFoundError: org/apache/commons/lang/ArrayUtils)

2011-08-28 Thread sizu
I got this error as well (ie [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:). I was using jdk1.7.0 (ie Java 7) and fixed this by using jdk.1.6.0_21 (ie Java 6). -- View this messag