Running sample ejb3 example with cactus 1.8.1

Radhika Nagalamadaka <[email protected]> Thu, 17 Sep 2009 14:21:52 -0400
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
I am a newbie to cactus. I am exploring to use cactus for EJB/Servlet testi=
ng.

To prepare sample projects with maven I am running into following issues. L=
ooks like there is no 2.3 maven resource plugin at the location maven is lo=
oking for. How do I modify if I can path where to look for certain plugin? =
Pom.xml did not have any mention of maven-resources-plugin. Can anyone help=
 me?

C:\cactus-1.8.1-bin\samples\ejb3>C:\apache-maven-2.2.1\bin\mvn.bat -e insta=
ll
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] --------------------------------------------------------------------=
----
[INFO] Building Cactus Ejb3 Samples - Parent Project
[INFO]    task-segment: [install]
[INFO] --------------------------------------------------------------------=
----
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-r=
esources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-=
plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Er
ror transferring file: Connection refused: connect
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-r=
esources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-=
plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Er
ror transferring file: Connection refused: connect
[INFO] --------------------------------------------------------------------=
----
[ERROR] BUILD ERROR
[INFO] --------------------------------------------------------------------=
----
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-resources-plugin

Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in =
repository: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-resources-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-resources-plugin


[INFO] --------------------------------------------------------------------=
----
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build pro=
ject for plugin 'org.apache.maven.plugins:maven-resources-plugin': POM 'org
.apache.maven.plugins:maven-resources-plugin' not found in repository: Unab=
le to download the artifact from any repository

  org.apache.maven.plugins:maven-resources-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-resources-plugin
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin=
(DefaultLifecycleExecutor.java:1557)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescr=
iptor(DefaultLifecycleExecutor.java:1851)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycl=
eForPackaging(DefaultLifecycleExecutor.java:1311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLif=
ecycleMappings(DefaultLifecycleExecutor.java:1275)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(=
DefaultLifecycleExecutor.java:534)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalA=
ndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskS=
egments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(Defa=
ultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.j=
ava:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor=
Impl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod=
AccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:3=
15)
        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.InvalidPluginException: Unable to build =
project for plugin 'org.apache.maven.plugins:maven-resources-plugin': POM '
org.apache.maven.plugins:maven-resources-plugin' not found in repository: U=
nable to download the artifact from any repository

[INFO] --------------------------------------------------------------------=
----
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Sep 17 14:14:43 EDT 2009
[INFO] Final Memory: 1M/4M
[INFO] --------------------------------------------------------------------=
----
C:\cactus-1.8.1-bin\samples\ejb3>

Thanks!
---------------------------------------------------------------------------=
---------------------
Radhika Nagalamadaka
Development Tester