Re: exec-maven-plugin want to pass maven.dependency.classpath as a variable in my EXEC Goal
Hi, I think only way for me to USE apache-maven-2.0.11 version. Which supports Java 1.4.2 Version. As my issue is my project is using RT.JAR and TOOLS.JAR which compiler can't change it unless and untill i project MAVEN with JDK 1.4.2 version and this version supports JDK 1.4.2 so i have to choose this no other option left. Thanks, daivish. On Thu, Aug 18, 2011 at 3:40 PM, Daivish Shah wrote: > Yes i tried using maven-antrun-plugin but i am not able to setup JDK 1.4.2 > version in it. I am trying to specify all possible way to apply JDK version > 1.4.2 but it's still taking tools.jar or JDK version, Which maven.bat file > is using (jdk 1.5) > > I was using following code in MAVEN-ANTRUN-PLUGIN as below code. > > > org.apache.maven.plugins > maven-antrun-plugin > 1.6 > > > > install > install > > run > > > ${java-version} > ${java-version} > > ${java-version} > > ${java.1.4.2.home}/bin/javac > > > refid="maven.plugin.classpath" /> > refid="maven.dependency.classpath" /> > > > > > > > > sun.jdk > tools > 1.4.2 > system > > ${java.1.4.2.home}/lib/tools.jar > > > com.sun > rt > ${java-version} > system > > ${java.1.4.2.home}/jre/lib/rt.jar > > > > > > > That's why i choose exec GOAL where my SYSTEM JAVA_HOME is 1.4.2 and it's > able to execute it if i have all dependencies which i needed. > > > Please help me out. > > Thanks, > daivish. > > > On Thu, Aug 18, 2011 at 3:29 PM, Robert Scholte wrote: > >> >> Looks to me you're trying to use the wrong plugin. This one seems to fit >> more:http://maven.apache.org/plugins/maven-antrun-plugin/ -Robert > >> Date: Thu, 18 Aug 2011 15:21:49 -0700 >> > Subject: exec-maven-plugin want to pass maven.dependency.classpath as a >> variable in my EXEC Goal >> > From: daivish.s...@gmail.com >> > To: users@maven.apache.org >> > >> > Hi, >> > >> > >> > I want to define property or want to use maven.plugin.classpath and >> > maven.dependency.classpath in my build.xml. >> > >> > How can i do it ? >> > >> > Sample code is as below... >> > >> > is not working and not able to read the values >> from >> > my build.xml so please explain me how can i do it ? >> > >> > >> > >> > org.codehaus.mojo >> > exec-maven-plugin >> > 1.2 >> > >> > >> > install >> > install >> > >> > exec >> > >> > >> > >> > >> > > > refid="maven.plugin.classpath" /> >> > > > refid="maven.dependency.classpath" /> >> > antscript.bat >> > >> > >> > >> > >> > Thanks, >> > >> > daivish. >> >> > >
Re: exec-maven-plugin want to pass maven.dependency.classpath as a variable in my EXEC Goal
Yes i tried using maven-antrun-plugin but i am not able to setup JDK 1.4.2 version in it. I am trying to specify all possible way to apply JDK version 1.4.2 but it's still taking tools.jar or JDK version, Which maven.bat file is using (jdk 1.5) I was using following code in MAVEN-ANTRUN-PLUGIN as below code. org.apache.maven.plugins maven-antrun-plugin 1.6 install install run ${java-version} ${java-version} ${java-version} ${java.1.4.2.home}/bin/javac sun.jdk tools 1.4.2 system ${java.1.4.2.home}/lib/tools.jar com.sun rt ${java-version} system ${java.1.4.2.home}/jre/lib/rt.jar That's why i choose exec GOAL where my SYSTEM JAVA_HOME is 1.4.2 and it's able to execute it if i have all dependencies which i needed. Please help me out. Thanks, daivish. On Thu, Aug 18, 2011 at 3:29 PM, Robert Scholte wrote: > > Looks to me you're trying to use the wrong plugin. This one seems to fit > more:http://maven.apache.org/plugins/maven-antrun-plugin/ -Robert > Date: > Thu, 18 Aug 2011 15:21:49 -0700 > > Subject: exec-maven-plugin want to pass maven.dependency.classpath as a > variable in my EXEC Goal > > From: daivish.s...@gmail.com > > To: users@maven.apache.org > > > > Hi, > > > > > > I want to define property or want to use maven.plugin.classpath and > > maven.dependency.classpath in my build.xml. > > > > How can i do it ? > > > > Sample code is as below... > > > > is not working and not able to read the values > from > > my build.xml so please explain me how can i do it ? > > > > > > > > org.codehaus.mojo > > exec-maven-plugin > > 1.2 > > > > > > install > > install > > > > exec > > > > > > > > > > > refid="maven.plugin.classpath" /> > > > refid="maven.dependency.classpath" /> > > antscript.bat > > > > > > > > > > Thanks, > > > > daivish. > >
RE: exec-maven-plugin want to pass maven.dependency.classpath as a variable in my EXEC Goal
Looks to me you're trying to use the wrong plugin. This one seems to fit more:http://maven.apache.org/plugins/maven-antrun-plugin/ -Robert > Date: Thu, 18 Aug 2011 15:21:49 -0700 > Subject: exec-maven-plugin want to pass maven.dependency.classpath as a > variable in my EXEC Goal > From: daivish.s...@gmail.com > To: users@maven.apache.org > > Hi, > > > I want to define property or want to use maven.plugin.classpath and > maven.dependency.classpath in my build.xml. > > How can i do it ? > > Sample code is as below... > > is not working and not able to read the values from > my build.xml so please explain me how can i do it ? > > > > org.codehaus.mojo > exec-maven-plugin > 1.2 > > > install > install > > exec > > > > > refid="maven.plugin.classpath" /> > refid="maven.dependency.classpath" /> > antscript.bat > > > > > Thanks, > > daivish.