powered by Jive Software

Smack Code which IDE?

Which IDE is used to develop smack code?

I am trying to import Smack code in intelliJ but getting errors as below

Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find jxmpp-jid-tests.jar (org.jxmpp:jxmpp-jid:0.5.0-alpha6).

Searched in the following locations:

file:/Users/vaibhavr/.m2/repository/org/jxmpp/jxmpp-jid/0.5.0-alpha6/jxmpp-jid- 0.5.0-alpha6-tests.jar

at org.gradle.internal.resolve.result.DefaultBuildableArtifactResolveResult.notFou nd(DefaultBuildableArtifactResolveResult.java:38)

at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolve r.resolveArtifact(ExternalResourceResolver.java:246)

at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolve r$RemoteRepositoryAccess.resolveArtifact(ExternalResourceResolver.java:435)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LocalModuleComponentRep ository$LocalAccess.resolveArtifact(LocalModuleComponentRepository.java:88)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.BaseModuleComponentRepo sitoryAccess.resolveArtifact(BaseModuleComponentRepositoryAccess.java:54)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCached ModuleComponentRepository$CachedAccess.resolveArtifact(InMemoryCachedModuleCompo nentRepository.java:82)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComp onentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveArtifact(Err orHandlingModuleComponentRepository.java:116)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainArtifact Resolver.resolveArtifact(RepositoryChainArtifactResolver.java:63)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.ComponentResolversCh ain$ArtifactResolverChain.resolveArtifact(ComponentResolversChain.java:98)

at org.gradle.api.internal.artifacts.ivyservice.ContextualArtifactResolver$3.execu te(ContextualArtifactResolver.java:61)

at org.gradle.api.internal.artifacts.ivyservice.ContextualArtifactResolver$3.execu te(ContextualArtifactResolver.java:59)

at org.gradle.internal.Transformers$4.transform(Transformers.java:137)

at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(D efaultIvyContextManager.java:61)

at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(D efaultIvyContextManager.java:39)

at org.gradle.api.internal.artifacts.ivyservice.ContextualArtifactResolver$4.run(C ontextualArtifactResolver.java:69)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:1 92)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:1 75)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersi stentDirectoryStore.java:106)

at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(D efaultCacheFactory.java:187)

at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCach e(DefaultCacheLockingManager.java:64)

at org.gradle.api.internal.artifacts.ivyservice.ContextualArtifactResolver.execute InContext(ContextualArtifactResolver.java:67)

at org.gradle.api.internal.artifacts.ivyservice.ContextualArtifactResolver.resolve Artifact(ContextualArtifactResolver.java:59)

at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingArtifactRe solver.resolveArtifact(ErrorHandlingArtifactResolver.java:53)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArti factSet$LazyArtifactSource.create(DefaultArtifactSet.java:93)

at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArti factSet$LazyArtifactSource.create(DefaultArtifactSet.java:80)

at org.gradle.api.internal.artifacts.DefaultResolvedArtifact.getFile(DefaultResolv edArtifact.java:95)

at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$2.run( DefaultLenientConfiguration.java:122)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:1 92)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:1 75)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersi stentDirectoryStore.java:106)

at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(D efaultCacheFactory.java:187)

at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCach e(DefaultCacheLockingManager.java:64)

at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.getFil es(DefaultLenientConfiguration.java:119)

at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.getFil esStrict(DefaultLenientConfiguration.java:91)

at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.getFi les(DefaultResolvedConfiguration.java:45)

at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyConfigurati onResolver$FilesAggregatingResolvedConfiguration.getFiles(SelfResolvingDependenc yConfigurationResolver.java:87)

at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver $ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingConfigurationResolver. java:197)

… 67 more

I use Eclipse: Just run gradle eclipse in Smack’s root directory and use Eclipse’s Project importer to import the created projects. Make sure to have “including nested subprojects” (or so) checked when importing.

I met the same problem with you.

How did you deal with this problem?

I am not 100% sure, but I believe this is a temporary glitch on Maven Central. Smack’s CI also run into this just today. The jxmpp-jid tests artifact is certainly there and available.

For the record: Smack can also easily be developed in IntelliJ. Just use gradle idea to set everything up and then open the project.