You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yaman Ustuntas (JIRA)" <ji...@codehaus.org> on 2010/07/08 17:44:32 UTC
[jira] Created: (MNG-4719) maven surefire
additionalClasspathElements single test
maven surefire additionalClasspathElements single test
------------------------------------------------------
Key: MNG-4719
URL: http://jira.codehaus.org/browse/MNG-4719
Project: Maven 2 & 3
Issue Type: Bug
Components: General
Affects Versions: 2.2.1
Environment: MAC
Reporter: Yaman Ustuntas
hi,
I have one main and one test config file which is shared by several maven projects. While testing, I am specifying the classpath to the directory where the test config file is.
This works fine if the whole project is tested/build but it doesn't work while running single tests. The config file is not found in the classpath.
here is the config:
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<additionalClasspathElements>
<element>${project.parent.basedir}/conf/test</element>
</additionalClasspathElements>
</configuration>
</plugin>
any ideas why surefire ignores the property for running single tests?
thank you
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Moved: (SUREFIRE-627) maven surefire
additionalClasspathElements single test
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann moved MNG-4719 to SUREFIRE-627:
-------------------------------------------------
Component/s: (was: General)
Affects Version/s: (was: 2.2.1)
Key: SUREFIRE-627 (was: MNG-4719)
Project: Maven Surefire (was: Maven 2 & 3)
> maven surefire additionalClasspathElements single test
> ------------------------------------------------------
>
> Key: SUREFIRE-627
> URL: http://jira.codehaus.org/browse/SUREFIRE-627
> Project: Maven Surefire
> Issue Type: Bug
> Environment: MAC
> Reporter: Yaman Ustuntas
>
> hi,
> I have one main and one test config file which is shared by several maven projects. While testing, I am specifying the classpath to the directory where the test config file is.
> This works fine if the whole project is tested/build but it doesn't work while running single tests. The config file is not found in the classpath.
> here is the config:
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <additionalClasspathElements>
> <element>${project.parent.basedir}/conf/test</element>
> </additionalClasspathElements>
> </configuration>
> </plugin>
> any ideas why surefire ignores the property for running single tests?
> thank you
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (SUREFIRE-627) maven surefire
additionalClasspathElements single test
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-627.
---------------------------------------
Resolution: Not A Bug
Assignee: Kristian Rosenvold
Since this is not a bug of surefire itself, I am closing this issue as not a bug; at least not for surefire.
This is a known problem that normally can be fixed by ensuring that the <relativePath> element of the <parent> element of child modules point to the correct path of the parent modules, usually <relativePath>../pom.xml</relativePath>. Additionally this behavior has been significantly improved in Maven 3, as it was a known bug/weakness in 2.2.1.
> maven surefire additionalClasspathElements single test
> ------------------------------------------------------
>
> Key: SUREFIRE-627
> URL: http://jira.codehaus.org/browse/SUREFIRE-627
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Environment: MAC
> Reporter: Yaman Ustuntas
> Assignee: Kristian Rosenvold
>
> hi,
> I have one main and one test config file which is shared by several maven projects. While testing, I am specifying the classpath to the directory where the test config file is.
> This works fine if the whole project is tested/build but it doesn't work while running single tests. The config file is not found in the classpath.
> here is the config:
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <additionalClasspathElements>
> <element>${project.parent.basedir}/conf/test</element>
> </additionalClasspathElements>
> </configuration>
> </plugin>
> any ideas why surefire ignores the property for running single tests?
> thank you
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-627) maven surefire
additionalClasspathElements single test
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-627:
----------------------------------------
Component/s: Maven Surefire Plugin
> maven surefire additionalClasspathElements single test
> ------------------------------------------------------
>
> Key: SUREFIRE-627
> URL: http://jira.codehaus.org/browse/SUREFIRE-627
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Environment: MAC
> Reporter: Yaman Ustuntas
>
> hi,
> I have one main and one test config file which is shared by several maven projects. While testing, I am specifying the classpath to the directory where the test config file is.
> This works fine if the whole project is tested/build but it doesn't work while running single tests. The config file is not found in the classpath.
> here is the config:
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <additionalClasspathElements>
> <element>${project.parent.basedir}/conf/test</element>
> </additionalClasspathElements>
> </configuration>
> </plugin>
> any ideas why surefire ignores the property for running single tests?
> thank you
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira