Publish project with maven

已回答

I have a problem while publishing a maven project on public sonatype repository.

 

A class com.thoughtwork.XStream is breaking a rule of the repository.

 

I don't know how to delete this class. 

0

How do you publish it? Please provide more details on your steps in IDE and the result you are getting, including full textual output. Screenshot would also be helpful so that we can understand ho it is related to IDE functionality. Thanks.

0

<distributionManagement>
<snapshotRepository>
<id>empty3_ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>empty3_ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

0
 
<plugin>
  <groupId>org.sonatype.plugins</groupId>
  <artifactId>nexus-staging-maven-plugin</artifactId>
  <version>1.6.7</version>
  <extensions>true</extensions>
  <configuration>
  <serverId>empty3_ossrh</serverId>
  <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  <autoReleaseAfterClose>true</autoReleaseAfterClose>
   
  </configuration>
 

</plugin>

 

I don't know where to ask the question. 

0

The problem is still not clear, sorry. Do you get any specific error? When and where do you see it?

The problem does not look like an IDE issue. I probably be better to ask the question on a related Maven forums or Stackoverflow.

0

请先登录再写评论。