You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Christian Raschka (JIRA)" <ji...@apache.org> on 2007/07/03 23:05:04 UTC
[jira] Created: (PLUTO-389) Pluto-Ant-Task can not be built because
of missing junit dependency
Pluto-Ant-Task can not be built because of missing junit dependency
-------------------------------------------------------------------
Key: PLUTO-389
URL: https://issues.apache.org/jira/browse/PLUTO-389
Project: Pluto
Issue Type: Bug
Affects Versions: 1.1.3, 1.2.0
Reporter: Christian Raschka
Priority: Trivial
Fix For: 1.2.0
Pluto-Ant-Task can not be built because of missing junit dependency:
(it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
pluto-1.1.3/pluto-ant-tasks $ mvn install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Pluto Ant Tasks
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [pluto:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing surefire
tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
... 18 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
... 25 more
Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
ssert
at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
... 33 more
[INFO] ------------------------------------------------------------------------
INFO] Total time: 3 seconds
[INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PLUTO-389) Pluto-Ant-Task can not be built because
of missing junit dependency
Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliot Metsger updated PLUTO-389:
---------------------------------
Fix Version/s: 1.1.4
I haven't tried to verify the bug, but it should be fixed for 1.1.4 if it exists.
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Priority: Trivial
> Fix For: 1.2.0, 1.1.4
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PLUTO-389) Pluto-Ant-Task can not be built
because of missing junit dependency
Posted by "Christian Raschka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511073 ]
Christian Raschka commented on PLUTO-389:
-----------------------------------------
That's it. I had maven-surefire-plugin 2.1.3 installed. After an update it builds fine.
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Assignee: Elliot Metsger
> Priority: Trivial
> Fix For: 1.2.0, 1.1.4
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (PLUTO-389) Pluto-Ant-Task can not be built because
of missing junit dependency
Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliot Metsger closed PLUTO-389.
--------------------------------
Resolution: Won't Fix
Nice, not a bug! Thanks Christian -
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Assignee: Elliot Metsger
> Priority: Trivial
> Fix For: 1.2.0, 1.1.4
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PLUTO-389) Pluto-Ant-Task can not be built
because of missing junit dependency
Posted by "Christian Raschka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510196 ]
Christian Raschka commented on PLUTO-389:
-----------------------------------------
Strange. I've tried it with maven 2.0.4, 2.0.6 and 2.0.7 with no difference.
If i delete all junit things in the maven repository, maven downloads junit-3.7 and junit-3.8.1. Don't know why:
pluto-ant-tasks $ mvn install
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Pluto Ant Tasks
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
Downloading: http://repo1.maven.org/maven2/junit/junit/3.7/junit-3.7.pom
745b downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.7/junit-3.7.jar
114K downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
998b downloaded
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
118K downloaded
[INFO] [surefire:test]
[INFO] Setting reports dir: /home/chrisra/pluto/pluto-168-trunk/pluto-ant-tasks/
target/surefire-reports
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing surefire
tried to access method junit.framework.TestCase.<init>()V from class org.apache.
maven.surefire.battery.assertion.BatteryAssert
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Wed Jul 04 15:51:24 CEST 2007
[INFO] Final Memory: 10M/19M
[INFO] ------------------------------------------------------------------------
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Priority: Trivial
> Fix For: 1.2.0
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (PLUTO-389) Pluto-Ant-Task can not be built
because of missing junit dependency
Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliot Metsger reassigned PLUTO-389:
------------------------------------
Assignee: Elliot Metsger
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Assignee: Elliot Metsger
> Priority: Trivial
> Fix For: 1.2.0, 1.1.4
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PLUTO-389) Pluto-Ant-Task can not be built because
of missing junit dependency
Posted by "Christian Raschka (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Raschka updated PLUTO-389:
------------------------------------
Attachment: pluto-trunk.ant.junit.patch
added junit dependency
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Priority: Trivial
> Fix For: 1.2.0
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PLUTO-389) Pluto-Ant-Task can not be built
because of missing junit dependency
Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511004 ]
Elliot Metsger commented on PLUTO-389:
--------------------------------------
Christian,
I can't reproduce this either with trunk or the 1.1.x branch. I've tried reproducing this bug with a clean (totally empty) maven repository.
I'm guessing that this may be a bug in the Surefire plugin. Can you tell me which version you are running? I'm running version 2.3. You can update to the latest version by passing the '-U' argument to 'mvn'.
esm:~/src/pluto/pluto-ant-tasks$ mvn help:describe -Dplugin=surefire
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Pluto Ant Tasks
[INFO] task-segment: [help:describe] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [help:describe]
[INFO] Plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.3'
-----------------------------------------------
Group Id: org.apache.maven.plugins
Artifact Id: maven-surefire-plugin
Version: 2.3
Goal Prefix: surefire
Description:
Surefire is a test framework project.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sun Jul 08 18:11:06 EDT 2007
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Assignee: Elliot Metsger
> Priority: Trivial
> Fix For: 1.2.0, 1.1.4
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PLUTO-389) Pluto-Ant-Task can not be built
because of missing junit dependency
Posted by "Craig Doremus (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PLUTO-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510180 ]
Craig Doremus commented on PLUTO-389:
-------------------------------------
I do not have problems building the ant task. I'm using Maven 2.0.6. What version are you using? The ant task module does not have any unit tests, so a JUnit dependency is not necessary.
> Pluto-Ant-Task can not be built because of missing junit dependency
> -------------------------------------------------------------------
>
> Key: PLUTO-389
> URL: https://issues.apache.org/jira/browse/PLUTO-389
> Project: Pluto
> Issue Type: Bug
> Affects Versions: 1.2.0, 1.1.3
> Reporter: Christian Raschka
> Priority: Trivial
> Fix For: 1.2.0
>
> Attachments: pluto-trunk.ant.junit.patch
>
>
> Pluto-Ant-Task can not be built because of missing junit dependency:
> (it seems, that pluto-ant-task is using junit-3.7, because it was downloaded)
> pluto-1.1.3/pluto-ant-tasks $ mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Pluto Ant Tasks
> [INFO] task-segment: [install]
> [INFO] ----------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/castor/castor/1.0/castor-1.0.pom
> [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [pluto:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/chrisra/pluto/pluto-1.1.3/pluto-ant-tasks/target/surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error executing surefire
> tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryAssert
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing surefire
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing surefire
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:376)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> ... 16 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:313)
> at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371)
> ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.maven.surefire.SurefireUtils.instantiateBattery(SurefireUtils.java:54)
> at org.apache.maven.surefire.Surefire.instantiateBatteries(Surefire.java:262)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:93)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> ... 25 more
> Caused by: java.lang.IllegalAccessError: tried to access method junit.framework.TestCase.<init>()V from class org.apache.maven.surefire.battery.assertion.BatteryA
> ssert
> at org.apache.maven.surefire.battery.assertion.BatteryAssert.<init>(BatteryAssert.java:22)
> at org.apache.maven.surefire.battery.AbstractBattery.<init>(AbstractBattery.java:31)
> at org.apache.maven.surefire.battery.DirectoryBattery.<init>(DirectoryBattery.java:39)
> ... 33 more
> [INFO] ------------------------------------------------------------------------
> INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Jul 03 22:30:53 CEST 2007
> [INFO] Final Memory: 8M/15M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.