cannot mvn mobicents:eclipse in the call control example.

152 views
Skip to first unread message

maxsap

unread,
Sep 8, 2010, 7:38:34 PM9/8/10
to mobicents-public
Hello, I am trying to import the call control example into eclipse.I
have checked out the code from the svn and then cd into that directory
and did mvn mobicents:eclipse
I have pasted the result from my console:

[maxsap@localhost 2.1.2.FINAL]$ mvn mobicents:eclipse
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Mobicents Examples :: call-controller2-example-parent
[INFO] Mobicents Examples :: call-controller2-profile
[INFO] Mobicents Examples :: call-controller2-sbbs
[INFO] Mobicents Examples :: call-controller2-DU
[INFO] Reloading plugin container for: org.mobicents.tools:maven-
eclipse-plugin:1.0.0.BETA2. The plugin artifact has changed.
[INFO]
------------------------------------------------------------------------
[INFO] Building Mobicents Examples :: call-controller2-example-parent
[INFO] task-segment: [mobicents:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] [mobicents:eclipse {execution: default-cli}]
[INFO] Project file written --> '/home/maxsap/Documents/progrs/
Mobicents2.1.2/examples-source/sip-wakeup/examples/call-
controller2/2.1.2.FINAL/.project'
[INFO] found project org.mobicents.examples:call-controller2-sbbs:jar:
2.1.2.FINAL
[INFO] found project org.mobicents.examples:call-controller2-
profile:jar:2.1.2.FINAL
[INFO] found project org.mobicents.examples:call-controller2-DU:pom:
2.1.2.FINAL
[INFO] found project org.mobicents.examples:mobicents-slee-example-
call-contorller2-docs:pom:2.1.2.FINAL
[INFO] found project org.mobicents.examples:mobicents-slee-example-
call-contorller2-docs-sources:jar:2.1.2.FINAL
[INFO] found project org.mobicents.examples:mobicents-slee-example-
call-contorller2-docs-sources-mobicents:jar:2.1.2.FINAL
[INFO] found project org.mobicents.examples:mobicents-slee-example-
call-contorller2-docs-sources-jbcp:jar:2.1.2.FINAL
[INFO] found project org.mobicents.examples:mobicents-slee-example-
call-contorller2-docs-jdocbook-jbcp:jdocbook:2.1.2.FINAL
[INFO] found project org.mobicents.examples:mobicents-slee-example-
call-contorller2-docs-jdocbook-mobicents:jdocbook:2.1.2.FINAL
Downloading:
https://repository.jboss.org/nexus/content/groups/public/org/mobicents/resources/mgcp-ratype/2.0.0.GA/mgcp-ratype-2.0.0.GA.jar
[WARNING] Unable to get resource 'org.mobicents.resources:mgcp-
ratype:jar:2.0.0.GA' from repository jboss-public-repository-group
(https://repository.jboss.org/nexus/content/groups/public): Error
transferring file: sun.security.validator.ValidatorException: PKIX
path validation failed: java.security.cert.CertPathValidatorException:
timestamp check failed
Downloading: http://repo1.maven.org/maven2/org/mobicents/resources/mgcp-ratype/2.0.0.GA/mgcp-ratype-2.0.0.GA.jar
[INFO] Unable to find resource 'org.mobicents.resources:mgcp-
ratype:jar:2.0.0.GA' in repository central (http://repo1.maven.org/
maven2)
org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.mobicents.resources -
DartifactId=mgcp-ratype -Dversion=2.0.0.GA -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.mobicents.resources -
DartifactId=mgcp-ratype -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/
path/to/file -Durl=[url] -DrepositoryId=[id]


org.mobicents.resources:mgcp-ratype:jar:2.0.0.GA

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
jboss-public-repository-group (https://repository.jboss.org/nexus/
content/groups/public)


at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
228)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
90)
at
org.mobicents.maven.plugin.eclipse.ClasspathWriter.write(ClasspathWriter.java:
126)
at org.mobicents.maven.plugin.EclipseMojo.execute(EclipseMojo.java:
198)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:
569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:
387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:
348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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.java:
60)
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.wagon.ResourceDoesNotExistException:
Unable to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:
404)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
216)
... 22 more
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error creating eclipse configuration

Embedded error: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.mobicents.resources -
DartifactId=mgcp-ratype -Dversion=2.0.0.GA -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.mobicents.resources -
DartifactId=mgcp-ratype -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/
path/to/file -Durl=[url] -DrepositoryId=[id]


org.mobicents.resources:mgcp-ratype:jar:2.0.0.GA

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
jboss-public-repository-group (https://repository.jboss.org/nexus/
content/groups/public)


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sun Jan 02 13:52:57 EET 2005
[INFO] Final Memory: 10M/25M
[INFO]
------------------------------------------------------------------------

when I do (as suggested) mvn deploy:deploy-file -
DgroupId=org.mobicents.resources -DartifactId=mgcp-ratype -
Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -
DrepositoryId=[id]

changing the path I get this result:
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Mobicents Examples :: call-controller2-example-parent
[INFO] Mobicents Examples :: call-controller2-profile
[INFO] Mobicents Examples :: call-controller2-sbbs
[INFO] Mobicents Examples :: call-controller2-DU
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] org.apache.maven.plugins: checking for updates from jboss-
public-repository-group
[WARNING] repository metadata for: 'org.apache.maven.plugins' could
not be retrieved from repository: jboss-public-repository-group due to
an error: Error transferring file:
sun.security.validator.ValidatorException: PKIX path validation
failed: java.security.cert.CertPathValidatorException: timestamp check
failed
[INFO] Repository 'jboss-public-repository-group' will be blacklisted
[INFO] Reloading plugin container for: org.mobicents.tools:maven-
eclipse-plugin:1.0.0.BETA2. The plugin artifact has changed.
[INFO]
------------------------------------------------------------------------
[INFO] Building Mobicents Examples :: call-controller2-example-parent
[INFO] task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [deploy:deploy-file {execution: default-cli}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] No transfer protocol found.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sun Jan 02 14:00:44 EET 2005
[INFO] Final Memory: 11M/26M
[INFO]
------------------------------------------------------------------------


I get build failures independently of what example I am trying to
build. Any ideas what is causing this?
thanks in advanced maxsap

Alexandre Mendonça

unread,
Sep 8, 2010, 8:53:05 PM9/8/10
to mobicent...@googlegroups.com
Hi Max,

Is the date/time on your machine correct? It doesn't seem to be, as there's a timestamp error (sun.security.validator.ValidatorException: PKIXpath validation failed: java.security.cert.CertPathValidatorException:timestamp check failed).

The file exists at the repository and the server certificate seems to be valid, so it should be something on your side.

Regards,

--
Alexandre Mendonça // JBoss R&D
http://ammendonca.blogspot.com/

maxsap

unread,
Sep 9, 2010, 6:06:19 AM9/9/10
to mobicents-public
thanks a lot thats the problem, it was cause by a forced reboot
Reply all
Reply to author
Forward
0 new messages