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 "Craig Doremus (JIRA)" <ji...@apache.org> on 2007/07/04 15:42:05 UTC
[jira] Commented: (PLUTO-389) Pluto-Ant-Task can not be built
because of missing junit dependency
[ 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.