rohitashokchaudhari / smscgateway

Automatically exported from code.google.com/p/smscgateway
0 stars 0 forks source link

Unresolveable build extension: Plugin org.mobicents.tools:maven-eclipse-plugin:1.0.1.FINAL or one of its dependencies could not be resolved #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create Clone:git clone https://code.google.com/p/smscgateway/
2.Compile using mvn clean compile or mvn clean install
3.Generate compilation error.

What is the expected output? 
Project is compiled successfully

What do you see instead?
[ERROR]     Unresolveable build extension: Plugin 
org.mobicents.tools:maven-eclipse-plugin:1.0.1.FINAL or one of its dependencies 
could not be resolved: Failure to find
 org.mobicents.tools:maven-eclipse-plugin:jar:1.0.1.FINAL in http://192.168.200.35:8080/artifactory/plugins-release was cached in the local repository, resolution will
not be reattempted until the update interval of central has elapsed or updates 
are forced -> [Help 3]
org.apache.maven.plugin.PluginResolutionException: Plugin 
org.mobicents.tools:maven-eclipse-plugin:1.0.1.FINAL or one of its dependencies 
could not be resolved: Failure
 to find org.mobicents.tools:maven-eclipse-plugin:jar:1.0.1.FINAL in http://192.168.200.35:8080/artifactory/plugins-release was cached in the local repository, resoluti
on will not be reattempted until the update interval of central has elapsed or 
updates are forced
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:215)
        at org.apache.maven.project.DefaultProjectBuildingHelper.resolveExtensionArtifacts(DefaultProjectBuildingHelper.java:377)
        at org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:237)
        at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:106)
        at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire(ModelBuildingEventCatapult.java:43)
        at org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:1053)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:388)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:371)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:560)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:352)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

What version of the product are you using? On what operating system?
OS: Windows 7
Java: Java 1.7
maven : 3.0.5

Kindly request you all to provide some inforamtion.

Original issue reported on code.google.com by sanjay...@gmail.com on 27 Feb 2015 at 11:50

GoogleCodeExporter commented 9 years ago
Hi All,

That was my fault as I have not added proxy entry in my Maven. I have added 
below entry in settings.xml:

   <proxies> 
      <proxy> 
         <active>true</active> 
         <protocol>http</protocol> 
         <host>XXXXX</host> 
         <port>XX</port>       
         <username>XXXXX</username> 
         <password>XXXXX</password>    
      </proxy> 
   </proxies> 

Original comment by sanjay...@gmail.com on 2 Mar 2015 at 6:59

GoogleCodeExporter commented 9 years ago
I am facing another issue now. Please find below stack trace:

Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure 
to find org.mobicents.tools:maven-eclipse-plugin:jar:1.0.1.FINAL in 
http://repo.maven.apa
che.org/maven2 was cached in the local repository, resolution will not be 
reattempted until the update interval of central has elapsed or updates are 
forced
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
        at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:207)
        ... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to 
find org.mobicents.tools:maven-eclipse-plugin:jar:1.0.1.FINAL in 
http://repo.maven.apache.
org/maven2 was cached in the local repository, resolution will not be 
reattempted until the update interval of central has elapsed or updates are 
forced
        at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
        at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
        ... 27 more
[ERROR]

Please help me to sort this.

Original comment by sanjay...@gmail.com on 2 Mar 2015 at 7:01

GoogleCodeExporter commented 9 years ago
Hi All,

Come how I managed to fix about error but I am facing some other similar error 
as below. Request you to provide me some direction to take this further:

Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could 
not find artifact org.mobicents.smsc:core:pom:1.0.0.ALPHA-SNAPSHOT
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
        at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
        ... 26 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not 
find artifact org.mobicents.smsc:core:pom:1.0.0.ALPHA-SNAPSHOT
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
        ... 30 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Original comment by sanjay...@gmail.com on 2 Mar 2015 at 10:34

GoogleCodeExporter commented 9 years ago
Hi All, 

I am not able get rid of the above error. Kindly request you to help me.

Also I have noticed some details about downloading , installing and 
configuration of TelScale SMSC as per below link:
http://docs.telestax.com/smsc-downloading-installing-and-configuring/

I am not sure if I can use Mobicent SMSC implementation or TelScale SMSC 
integration. Please help me to decide this as I am working on the POC which I 
need to present within couple of weeks.

Thanks in advance.

Regards,
Sanjay

Original comment by sanjay...@gmail.com on 3 Mar 2015 at 7:10

GoogleCodeExporter commented 9 years ago
Hello Guys,

I have fixed above mentioned issue. Changes cloudhopper entry in all the 
pom.xml with below:
<groupId>cloudhopper</groupId> to <groupId>com.cloudhopper</groupId>

Also I changed cloudhopper version:
ch.smpp.version=4.1.2 to ch.smpp.version=5.0.0.

Regards,
Sanjay

Original comment by sanjay...@gmail.com on 4 Mar 2015 at 9:14

GoogleCodeExporter commented 9 years ago
But I am facing another issue now. When checked found that path 
"E:\Project\smscgateway\core\slee\smpp-server-ra\library\target\classes\jars\cla
sses" does not exist.
Not sure why it is trying to copy file in classes folder which is already in 
classes folder i.e. "\target\classes\jars\classes"

Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying 
artifact from E:\Project\smscgateway\core\smpp\target\classes to 
E:\Project\smscgateway\core\slee\smpp-server-ra\library\target\classes\jars\clas
ses
        at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:194)
        at org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:186)
        at org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:85)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

Please let me know if any one has any clue. \
Thank you very much in advance.

Regards,
Sanjay

Original comment by sanjay...@gmail.com on 4 Mar 2015 at 9:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi There,

Fixed below issue by creating classes folder inside jar folder i.e. - 
"...\target\classes\jars\classes". But need to run target without clean as if.

Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying 
artifact from E:\Project\smscgateway\core\smpp\target\classes to 
E:\Project\smscgateway\core\slee\smpp-server-ra\library\target\classes\jars\clas
ses

Regards,
Sanjay

Original comment by sanjay...@gmail.com on 4 Mar 2015 at 12:32

GoogleCodeExporter commented 9 years ago
Hi There,

After fixing above issue by creating classes folder I am facing below issue. 
After some analysis I found that there is not artifact id declared in project 
"<artifactId>events</artifactId>". After analysis update ratype project pom.xml 
(..core\slee\smpp-server-ra\ratype) by modifying events entry from 
<artifactId>events</artifactId> to 
<artifactId>smpp-server-ra-events</artifactId>. This fix below issue.

Downloading: 
https://oss.sonatype.org/content/groups/public/org/mobicents/smsc/events/1.0.0.A
LPHA-SNAPSHOT/events-1.0.0.ALPHA-SNAPSHOT.jar
[INFO] Unable to find resource 
'org.mobicents.smsc:events:jar:1.0.0.ALPHA-SNAPSHOT' in repository 
mobicents-public-repository-group (https://oss.sonatype.org/content/gr
oups/public)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.mobicents.smsc:events:jar:1.0.0.ALPHA-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.mobicents.smsc -DartifactId=events -Dversion=1.0.0.ALPHA-SNAPSHOT -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.smsc -DartifactId=events -Dversion=1.0.0.ALPHA-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposito
ryId=[id]

  Path to dependency:
        1) org.mobicents.smsc:smpp-server-ra-ratype:jar:1.0.0.ALPHA-SNAPSHOT
        2) org.mobicents.smsc:events:jar:1.0.0.ALPHA-SNAPSHOT

----------
1 required artifact is missing.

Original comment by sanjay...@gmail.com on 4 Mar 2015 at 12:40

GoogleCodeExporter commented 9 years ago
Fixed below exception by creating classes folder:

org.apache.maven.lifecycle.LifecycleExecutionException: Error copying artifact 
from E:\Project\smscgateway\core\slee\smpp-server-ra\events\target\classes to 
E:\Project\smscgateway\core\slee\smpp-server-ra\du\target\classes\jars\classes
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        [INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error copying artifact 
from E:\Project\smscgateway\core\slee\services\alertsbb\target\classes to 
E:\Project\smscgateway\core\slee\services\du\target\classes\jars\classes
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

Original comment by sanjay...@gmail.com on 4 Mar 2015 at 12:40

GoogleCodeExporter commented 9 years ago
After following all above steps finally I am able to compile code successfully 
with below message:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Mobicents SMSC Parent ................................. SUCCESS [0.159s]
[INFO] Core .................................................. SUCCESS [0.000s]
[INFO] Core : SMPP Server .................................... SUCCESS [8.079s]
[INFO] Core : Operations and Management : CLI ................ SUCCESS [0.060s]
[INFO] Core : SLEE ........................................... SUCCESS [0.000s]
[INFO] Core : SLEE : SMPP Server RA Parent ................... SUCCESS [0.000s]
[INFO] Core : SLEE : SMPP Server RA Library .................. SUCCESS [1.254s]
[INFO] Core : SLEE : SMPP Server RA Events ................... SUCCESS [0.030s]
[INFO] Core : SLEE : SMPP Server RA Type ..................... SUCCESS [0.040s]
[INFO] Core : SLEE : SMPP Server RA .......................... SUCCESS [0.080s]
[INFO] Core : SLEE : SMPP Server RA DU ....................... SUCCESS [0.983s]
[INFO] Core : SLEE : Services Parent ......................... SUCCESS [0.000s]
[INFO] Core : SLEE : Services Events ......................... SUCCESS [0.010s]
[INFO] Core : SLEE : Services Alert SBB ...................... SUCCESS [8.086s]
[INFO] Core : SLEE : Services Tx SMPP Server SBB ............. SUCCESS [0.020s]
[INFO] Core : SLEE : Services Rx SMPP Server SBB ............. SUCCESS [0.030s]
[INFO] Core : SLEE : Services Mt SBB ......................... SUCCESS [0.081s]
[INFO] Core : SLEE : Services Mo SBB ......................... SUCCESS [0.111s]
[INFO] Core : SLEE : Service DU .............................. SUCCESS [0.131s]
[INFO] Core : Bootstrap ...................................... SUCCESS [37.778s]
[INFO] Test .................................................. SUCCESS [0.000s]
[INFO] Test : MapModule ...................................... SUCCESS [0.270s]
[INFO] Test : Operations and Management ...................... SUCCESS [0.040s]
[INFO] Test : Bootstrap ...................................... SUCCESS [10.911s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 10 seconds
[INFO] Finished at: Wed Mar 04 17:39:29 IST 2015
[INFO] Final Memory: 56M/513M
[INFO] ------------------------------------------------------------------------

Original comment by sanjay...@gmail.com on 4 Mar 2015 at 12:42