You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Dave Lund (Created) (JIRA)" <ji...@apache.org> on 2012/02/02 10:45:53 UTC

[jira] [Created] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

tomcat7:run wont accept additionalClasspathDir arguments
--------------------------------------------------------

                 Key: MTOMCAT-118
                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
             Project: Apache Tomcat Maven Plugin
          Issue Type: Bug
          Components: tomcat7
    Affects Versions: 2.0-beta-1, 2.0
            Reporter: Dave Lund
            Assignee: Olivier Lamy


Using the below configuration, the following error is given:

[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File

Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html

<plugin>
	<groupId>org.apache.tomcat.maven</groupId>
	<artifactId>tomcat7-maven-plugin</artifactId>
	<version>2.0-SNAPSHOT</version>
	<configuration>
		<!-- http port -->
		<port>9090</port>
		<path>/</path>
		<useTestClasspath>false</useTestClasspath>
		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
		<additionalClasspathDirs>
			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
		</additionalClasspathDirs>
	</configuration>
	<dependencies>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>${mysql.mysql-connector-java}</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>0.9.15</version>
		</dependency>
	</dependencies>
</plugin>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Dave Lund (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198657#comment-13198657 ] 

Dave Lund commented on MTOMCAT-118:
-----------------------------------

apologizes mvn --version output attached to environment field
                
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
> Java version: 1.6.0_24
> Java home: C:\dev\java\java\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Olivier Lamy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198652#comment-13198652 ] 

Olivier Lamy commented on MTOMCAT-118:
--------------------------------------

which maven version are you using ?
                
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Updated] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Dave Lund (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Lund updated MTOMCAT-118:
------------------------------

    Environment: 
Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
Java version: 1.6.0_24
Java home: C:\dev\java\java\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
    
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
> Java version: 1.6.0_24
> Java home: C:\dev\java\java\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Olivier Lamy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198682#comment-13198682 ] 

Olivier Lamy commented on MTOMCAT-118:
--------------------------------------

argh I see this can work only with 3.0.3+
I will fix that but until you must use 3.0.3/3.0.4
                
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
> Java version: 1.6.0_24
> Java home: C:\dev\java\java\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>             Fix For: 2.0
>
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199897#comment-13199897 ] 

Hudson commented on MTOMCAT-118:
--------------------------------

Integrated in TomcatMavenPlugin-mvn3.x #112 (See [https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/112/])
    [MTOMCAT-118] tomcat7:run wont accept additionalClasspathDir arguments
before 3.0.3 maven doesn't support mojo fields Collections other than String

olamy : http://svn.apache.org/viewvc/?view=rev&rev=1240234
Files : 
* /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/RunMojo.java
* /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/RunMojo.java

                
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
> Java version: 1.6.0_24
> Java home: C:\dev\java\java\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>             Fix For: 2.0
>
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Closed] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Olivier Lamy (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MTOMCAT-118.
--------------------------------

    Resolution: Fixed
    
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
> Java version: 1.6.0_24
> Java home: C:\dev\java\java\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>             Fix For: 2.0
>
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Commented] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Dave Lund (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198702#comment-13198702 ] 

Dave Lund commented on MTOMCAT-118:
-----------------------------------

Thanks for the work around - I've no problem with upgrading maven anyway
                
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
> Java version: 1.6.0_24
> Java home: C:\dev\java\java\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>             Fix For: 2.0
>
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[jira] [Updated] (MTOMCAT-118) tomcat7:run wont accept additionalClasspathDir arguments

Posted by "Olivier Lamy (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MTOMCAT-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MTOMCAT-118:
---------------------------------

    Fix Version/s: 2.0
    
> tomcat7:run wont accept additionalClasspathDir arguments
> --------------------------------------------------------
>
>                 Key: MTOMCAT-118
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-118
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0-beta-1, 2.0
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 12:50:56+0100)
> Java version: 1.6.0_24
> Java home: C:\dev\java\java\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
>            Reporter: Dave Lund
>            Assignee: Olivier Lamy
>             Fix For: 2.0
>
>
> Using the below configuration, the following error is given:
> [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run (default-cli) on project XXX: A type incompatibility occured while executing org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:run: java.lang.String cannot be cast to java.io.File
> Example taken from docs site http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html
> <plugin>
> 	<groupId>org.apache.tomcat.maven</groupId>
> 	<artifactId>tomcat7-maven-plugin</artifactId>
> 	<version>2.0-SNAPSHOT</version>
> 	<configuration>
> 		<!-- http port -->
> 		<port>9090</port>
> 		<path>/</path>
> 		<useTestClasspath>false</useTestClasspath>
> 		<contextFile>src/sandbox/tomcat/sandbox-context.xml</contextFile>
> 		<additionalClasspathDirs>
> 			<additionalClasspathDir>src/test/resources</additionalClasspathDir>
> 		</additionalClasspathDirs>
> 	</configuration>
> 	<dependencies>
> 		<dependency>
> 			<groupId>mysql</groupId>
> 			<artifactId>mysql-connector-java</artifactId>
> 			<version>${mysql.mysql-connector-java}</version>
> 		</dependency>
> 		<dependency>
> 			<groupId>ch.qos.logback</groupId>
> 			<artifactId>logback-classic</artifactId>
> 			<version>0.9.15</version>
> 		</dependency>
> 	</dependencies>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org