java.lang.IllegalStateException: Repository: M2Repository(id=stage-1000) is not compatible with target repository: DefaultNpmHostedRepository(id=npm)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

checkState() is Static convenience methods that help a method or constructor check whether it was invoked correctly (whether its preconditions have been met). This occurs when the precondition does not met.

,

Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .

Solutions on the web

via Sonatype JIRA by Peter Lynch, 1 year ago
Repository: M2Repository(id=stage-1000) is not compatible with target repository: DefaultNpmHostedRepository(id=npm)
via Google Groups by David Kimdon, 10 months ago
via GitHub by ilovelll
, 1 year ago
buildToolsVersion is not specified.
via Google Groups by Vahid Rahimi, 1 year ago
java.lang.IllegalStateException: Repository: M2Repository(id=stage-1000) is not compatible with target repository: DefaultNpmHostedRepository(id=npm)
at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask$ReleaseItem.(RepositoryReleaseTask.java:136)
at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask$ReleaseItem.(RepositoryReleaseTask.java:125)
at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask.createItem(RepositoryReleaseTask.java:203)
at com.sonatype.nexus.staging.internal.task.RepositoryReleaseTask.createItem(RepositoryReleaseTask.java:1)
at com.sonatype.nexus.staging.internal.task.OperationTaskSupport$1.doApply(OperationTaskSupport.java:125)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 weeks ago
6 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.