Hello Devs,
I am new to Rampart. I am working on my Google Summer of Code [1] project
with Apache Geronimo and typing to configure the ws-security for axis2
module in Geronimo. For this I need the required ws-security jar files and
in my understanding axis2 uses the rampart for this. So I am trying to pull
all the required jar files in the axis2 plugin of Apache Geronimo. For this
I am adding the following dependency in the axis2 pom.xml.
<dependency>
<groupId>org.apache.rampart</groupId>
<artifactId>rampart-project</artifactId>
<version>1.4</version>
</dependency>
So first question is, is this the only one dependency I need to add to get
all the required jar files?
Second, after adding the above dependency and then while building the axis2
mnodule of Apache Geronimo I am getting the following error ("artifact is
missing."):
so can you please help me in fixing this problem? and plz also guide me if I
am missing anything to get all the security jar files in the axis2.
[INFO]
------------------------------------------------------------------------
[INFO] Building Geronimo Plugins, AXIS2 :: AXIS2
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [genesis:validate-configuration {execution: default}]
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in
repository apache-snapshots (
http://people.apache.org/repo/m2-snapshot-repository)
Downloading:
http://ws.zones.apache.org/repository2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in
repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2)
Downloading:
http://repo1.maven.org/maven2//org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in
repository maven2 (http://repo1.maven.org/maven2/)
Downloading:
http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in
repository central (http://repo1.maven.org/maven2)
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/opensaml/opensaml/1.1/opensaml-1.1.pom
[INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in repository
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)
Downloading:
http://ws.zones.apache.org/repository2/opensaml/opensaml/1.1/opensaml-1.1.pom
[INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in repository
apache-ws-snapshots2 (http://ws.zones.apache.org/repository2)
Downloading:
http://repo1.maven.org/maven2//opensaml/opensaml/1.1/opensaml-1.1.pom
[INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in repository
maven2 (http://repo1.maven.org/maven2/)
Downloading:
http://repo1.maven.org/maven2/opensaml/opensaml/1.1/opensaml-1.1.pom
[INFO] Unable to find resource 'opensaml:opensaml:pom:1.1' in repository
central (http://repo1.maven.org/maven2)
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
[INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in
repository apache-snapshots (
http://people.apache.org/repo/m2-snapshot-repository)
Downloading:
http://ws.zones.apache.org/repository2/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
[INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in
repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2)
Downloading:
http://repo1.maven.org/maven2//bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
[INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in
repository maven2 (http://repo1.maven.org/maven2/)
Downloading:
http://repo1.maven.org/maven2/bouncycastle/bcprov-jdk13/132/bcprov-jdk13-132.pom
[INFO] Unable to find resource 'bouncycastle:bcprov-jdk13:pom:132' in
repository central (http://repo1.maven.org/maven2)
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.1' in
repository apache-snapshots (
http://people.apache.org/repo/m2-snapshot-repository)
Downloading:
http://ws.zones.apache.org/repository2/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.1' in
repository apache-ws-snapshots2 (http://ws.zones.apache.org/repository2)
Downloading:
http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.1' in
repository central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/apache/rampart/rampart-project/1.4/rampart-project-1.4.jar
[INFO] Unable to find resource 'org.apache.rampart:rampart-project:jar:1.4'
in repository central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.rampart:rampart-project:jar:1.4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.rampart
-DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.rampart
-DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT
2) org.apache.rampart:rampart-project:jar:1.4
----------
1 required artifact is missing.
for artifact:
org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT
from the specified remote repositories:
apache.snapshots (http://repository.apache.org/snapshots),
codehaus.snapshots (http://snapshots.repository.codehaus.org),
central (http://repo1.maven.org/maven2),
apache.org (http://people.apache.org/repo/m2-snapshot-repository)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) org.apache.rampart:rampart-project:jar:1.4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.rampart
-DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.rampart
-DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT
2) org.apache.rampart:rampart-project:jar:1.4
----------
1 required artifact is missing.
for artifact:
org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT
from the specified remote repositories:
apache.snapshots (http://repository.apache.org/snapshots),
codehaus.snapshots (http://snapshots.repository.codehaus.org),
central (http://repo1.maven.org/maven2),
apache.org (http://people.apache.org/repo/m2-snapshot-repository)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:695)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
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:597)
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.artifact.resolver.MultipleArtifactsNotFoundException:
Missing:
----------
1) org.apache.rampart:rampart-project:jar:1.4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.rampart
-DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.rampart
-DartifactId=rampart-project -Dversion=1.4 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT
2) org.apache.rampart:rampart-project:jar:1.4
----------
1 required artifact is missing.
for artifact:
org.apache.geronimo.configs:axis2:car:2.2-SNAPSHOT
from the specified remote repositories:
apache.snapshots (http://repository.apache.org/snapshots),
codehaus.snapshots (http://snapshots.repository.codehaus.org),
central (http://repo1.maven.org/maven2),
apache.org (http://people.apache.org/repo/m2-snapshot-repository)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1492)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:435)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Sun Jul 19 02:04:36 CEST 2009
[INFO] Final Memory: 61M/508M
[INFO]
------------------------------------------------------------------------
[ra...@localhost axis2]$
[ra...@localhost axis2]$
Thanks in advance for the help.
Best Regards,
Rahul
[1] http://code.google.com/soc/