Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
549 views
in Technique[技术] by (71.8m points)

svn - Maven release:perform failure

I am getting error when I am applying release:perform. It is unable to uploading the artifacts into nexus repository .

In my SVN 3 directory :-

Branch , trunk and tag.

When I am applying release:prepare it executes successfully and create a tag with removing the snapshot from pom.xml. And change the trunk/pom.xml to next version with snapshot.

Before prepare Trunk/pom.xml version 2.0-SNAPSHOT After prepare Trunk/pom.xml version 2.1-SNAPSHOT After prepare tags/pom.xml version 2.0

But, when I am executing release:perform it shows error. What I did wrong. I am putting my pom.xml and settings.xml (in my local) files.

pom.xml file

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">


  <modelVersion>4.0.0</modelVersion>

  <groupId>com.yyy.aaa.curo.fabric.rabbitmq.experiments</groupId>
  <artifactId>curo-fabric-component-rabbitmq-experiments</artifactId>
  <packaging>bundle</packaging>
  <version>2.0.45</version>

<distributionManagement>
  <repository>
     <id>curorelease</id>
     <name>Curo Releases</name>
     <url>http://nexusrepo.yyy.yyy.com/content/repositories/curo-releases/</url>
  </repository>
  <snapshotRepository>
     <id>curosnapshot</id>
     <name>Curo Snapshots</name>
     <url>http://nexusrepo.yyy.yyy.com/content/repositories/curo-snapshots/</url>
  </snapshotRepository>
</distributionManagement>


  <name>Curo Fabric Component for RabbitMQ</name>
  <url>http://www.myorganization.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <camel.version>2.10.4</camel.version>
  </properties>


<scm>
   <connection>scm:svn:http://aaasvn.yyy.yyy.com:1080/SVNROOT/CURO/Experiments/migration/tags/curo-fabric-component-rabbitmq-experiments-2.0.45</connection>
  <developerConnection>scm:svn:http://aaasvn.yyy.yyy.com:1080/SVNROOT/CURO/Experiments/migration/tags/curo-fabric-component-rabbitmq-experiments-2.0.45</developerConnection>
   <url>scm:svn:http://aaasvn.yyy.yyy.com:1080/SVNROOT/CURO/Experiments/migration/tags/curo-fabric-component-rabbitmq-experiments-2.0.45</url>
</scm>



 <repositories>
    <repository>
      <id>thirdparty</id>
      <name>Repository for Third Party</name>
      <url>http://nexusrepo.yyy.yyy.com/content/repositories/thirdparty/</url>
    </repository>
    <repository>
      <id>curosnapshot</id>
      <name>Repository for Curo Snapshots</name>
      <url>http://nexusrepo.yyyy.yyyyy.com/content/repositories/curo-snapshots/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
    <repository>
      <id>curorelease</id>
      <name>Repository for Curo Releases</name>
      <url>http://nexusrepo.yyyy.yyyy.com/content/repositories/curo-releases/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>release.fusesource.org</id>
      <name>FuseSource Release Repository</name>
      <url>http://repo.fusesource.com/nexus/content/repositories/releases</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </pluginRepository>
    <pluginRepository>
      <id>snapshot.fusesource.org</id>
      <name>FuseSource Snapshot Repository</name>
      <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>  
  </pluginRepositories>

  <dependencies>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
      <version>${camel.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-blueprint</artifactId>
      <version>${camel.version}</version>
    </dependency>



    <!-- testing -->
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-test-blueprint</artifactId>
      <version>${camel.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <defaultGoal>install</defaultGoal>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
       <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-release-plugin</artifactId>
    <version>2.2.1</version>
    <executions>
     <execution>
        <id>default</id>
        <goals>
                        <goal>perform</goal>
                </goals> 
        <configuration>
            <tagBase>http://aaasvn.rrr.rrrr.com:1080/SVNROOT/CURO/Experiments/migration/tags/</tagBase>
                <pomFileName>/Users/manojkumarbardhan/QURO_PROJECT/rabbit_trunk/pom.xml</pomFileName>   
            <encoding>UTF-8</encoding>
            <releaseProfiles>release</releaseProfiles>
        </configuration>
    </execution>
    </executions>
    </plugin>


      <!-- to generate the MANIFEST-FILE of the bundle -->
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.3.7</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>curo-fabric-component-rabbitmq</Bundle-SymbolicName>
            <Private-Package>com.xxx.xxx.xxx.xxx.xxx.*</Private-Package>
            <Import-Package>*</Import-Package>
          </instructions>
        </configuration>
      </plugin>

       <!-- to run the example using mvn camel:run -->
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-maven-plugin</artifactId>
        <version>2.10.4</version>
        <configuration>
          <useBlueprint>true</useBlueprint>
        </configuration>
      </plugin>

    </plugins>
  </build>
</project>

settings.xml in local

<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <servers>
    <server>
      <id>merlinsnap</id>
      <username>merlinsuite-snapshots</username>
      <password>xxxx123</password>
    </server>
    <server>
      <id>merlinrel</id>
      <username>merlinsuite-release</username>
      <password>sxxx123</password>
    </server>
    <server>
     <id>thirdparty</id>
     <username>thirdparty</username>
     <password>xxxxinternal1</password>
   </server>
<server>
     <id>snapshots</id>
     <username>admin</username>
     <password>admin123</password>
</server>
   <server>
       <id>curorelease</id>
       <username>curodeploy</username>
       <password>cur0d3pl0y</password>
    <filePermissions>664</filePermissions>
    <directoryPermissions>775</directoryPermissions>
    <configuration>
                        <sshExecutable>plink</sshExecutable>
                        <scpExecutable>pscp</scpExecutable>
                </configuration>
   </server>
   <server>
       <id>curosnapshot</id>
       <username>curodeploy</username>
       <password>cur0d3pl0y</password>
    <filePermissions>664</filePermissions>
    <directoryPermissions>775</directoryPermissions>
    <configuration>
                        <sshExecutable>plink</sshExecutable>
                        <scpExecutable>pscp</scpExecutable>
                </configuration>
   </server>
  </servers>
  <profiles>
    <profile>
      <id>Repository Proxy</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>ist.nexus.maven.central</id>
          <name>Maven Central</name>
          <url>http://aaamaven.yyy.yyy.com:8081/nexus/content/groups/public/
          </url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <repository>
          <id>ist.nexus.jboss.public</id>
          <name>JBoss Public</name>
          <url>http://aaamaven.yyy.yyy.com:8081/nexus/content/repositories/jboss-public/
          </url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <repository>
          <id>repository.jboss.org-public</id>
          <name>JBoss repository</name>
          <url>https://repository.jboss.org/nexus/content/groups/public
          </url>
        </reposito

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...