You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "daivish shah (JIRA)" <ji...@codehaus.org> on 2011/08/10 21:05:42 UTC

[jira] Created: (MANTRUN-167) Maven Plugin Doesn't allow me to SETUP JDK 1.4.2 Version

Maven Plugin Doesn't allow me to SETUP JDK 1.4.2 Version
--------------------------------------------------------

                 Key: MANTRUN-167
                 URL: https://jira.codehaus.org/browse/MANTRUN-167
             Project: Maven 2.x Antrun Plugin
          Issue Type: Bug
    Affects Versions: 1.6
         Environment: Windows
            Reporter: daivish shah


Hi,

I am using MAVEN 2.2.1 version and trying to compile my classes from ANT script. 

I want to compile my classes with JDK 1.4.2 version. How can i do it ?

Following one is my entry which i am using EVEN i am setting up rt.jar and tools.jar with JDK 1.4.2 in my build.xml file still my Eclipse is referring JDK 1.5 version only.


			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.6</version>
				<executions>
					<execution>
						<id>install</id>
						<phase>install</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
 							<source>${java-version}</source>
							<target>${java-version}</target>
							<tasks>
								<ant antfile="WPSEjb_build.xml" />
							</tasks>
						</configuration>
					</execution>
				</executions>
				<dependencies>
                                   <dependency>
                                         <groupId>sun.jdk</groupId>
                                         <artifactId>tools</artifactId>
                                         <version>1.4.2</version>
                                         <scope>system</scope>
                                         <systemPath>${java.home}/lib/tools.jar</systemPath>
                                    </dependency>
				</dependencies>
			</plugin>
		</plugins>


Please advice me which property is available in maven-antrun-plugin so i can set that and my compiler use JDK 1.4.2 version ?

I am really stuck here. I am looking for your reply.

Thanks,
daivish..

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MANTRUN-167) Maven Plugin Doesn't allow me to SETUP JDK 1.4.2 Version

Posted by "daivish shah (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MANTRUN-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276313#comment-276313 ] 

daivish shah commented on MANTRUN-167:
--------------------------------------

Is anybody have idea on this ? 

I am struggling to setup maven-antrun-plugin compiler as JDK 1.4.2 version. Please let me know if anybody has idea on this.

Thanks,
daivish.

> Maven Plugin Doesn't allow me to SETUP JDK 1.4.2 Version
> --------------------------------------------------------
>
>                 Key: MANTRUN-167
>                 URL: https://jira.codehaus.org/browse/MANTRUN-167
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.6
>         Environment: Windows
>            Reporter: daivish shah
>
> Hi,
> I am using MAVEN 2.2.1 version and trying to compile my classes from ANT script. 
> I want to compile my classes with JDK 1.4.2 version. How can i do it ?
> Following one is my entry which i am using EVEN i am setting up rt.jar and tools.jar with JDK 1.4.2 in my build.xml file still my Eclipse is referring JDK 1.5 version only.
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-antrun-plugin</artifactId>
> 				<version>1.6</version>
> 				<executions>
> 					<execution>
> 						<id>install</id>
> 						<phase>install</phase>
> 						<goals>
> 							<goal>run</goal>
> 						</goals>
> 						<configuration>
>  							<source>${java-version}</source>
> 							<target>${java-version}</target>
> 							<tasks>
> 								<ant antfile="WPSEjb_build.xml" />
> 							</tasks>
> 						</configuration>
> 					</execution>
> 				</executions>
> 				<dependencies>
>                                    <dependency>
>                                          <groupId>sun.jdk</groupId>
>                                          <artifactId>tools</artifactId>
>                                          <version>1.4.2</version>
>                                          <scope>system</scope>
>                                          <systemPath>${java.home}/lib/tools.jar</systemPath>
>                                     </dependency>
> 				</dependencies>
> 			</plugin>
> 		</plugins>
> Please advice me which property is available in maven-antrun-plugin so i can set that and my compiler use JDK 1.4.2 version ?
> I am really stuck here. I am looking for your reply.
> Thanks,
> daivish..

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MANTRUN-167) Maven Plugin Doesn't allow me to SETUP JDK 1.4.2 Version

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MANTRUN-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies closed MANTRUN-167.
------------------------------------

       Resolution: Not A Bug
    Fix Version/s: 1.6
         Assignee: Benson Margulies

This isn't a bug, it's a support requuest, and belongs on the user mailing list.

> Maven Plugin Doesn't allow me to SETUP JDK 1.4.2 Version
> --------------------------------------------------------
>
>                 Key: MANTRUN-167
>                 URL: https://jira.codehaus.org/browse/MANTRUN-167
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.6
>         Environment: Windows
>            Reporter: daivish shah
>            Assignee: Benson Margulies
>             Fix For: 1.6
>
>
> Hi,
> I am using MAVEN 2.2.1 version and trying to compile my classes from ANT script. 
> I want to compile my classes with JDK 1.4.2 version. How can i do it ?
> Following one is my entry which i am using EVEN i am setting up rt.jar and tools.jar with JDK 1.4.2 in my build.xml file still my Eclipse is referring JDK 1.5 version only.
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-antrun-plugin</artifactId>
> 				<version>1.6</version>
> 				<executions>
> 					<execution>
> 						<id>install</id>
> 						<phase>install</phase>
> 						<goals>
> 							<goal>run</goal>
> 						</goals>
> 						<configuration>
>  							<source>${java-version}</source>
> 							<target>${java-version}</target>
> 							<tasks>
> 								<ant antfile="WPSEjb_build.xml" />
> 							</tasks>
> 						</configuration>
> 					</execution>
> 				</executions>
> 				<dependencies>
>                                    <dependency>
>                                          <groupId>sun.jdk</groupId>
>                                          <artifactId>tools</artifactId>
>                                          <version>1.4.2</version>
>                                          <scope>system</scope>
>                                          <systemPath>${java.home}/lib/tools.jar</systemPath>
>                                     </dependency>
> 				</dependencies>
> 			</plugin>
> 		</plugins>
> Please advice me which property is available in maven-antrun-plugin so i can set that and my compiler use JDK 1.4.2 version ?
> I am really stuck here. I am looking for your reply.
> Thanks,
> daivish..

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira