2016-07-16 7 views
0

私はとNexusを持っており、というリポジトリを持っています。どのように私のバージョンをsnapshot-x.xという名前のフォルダにグループ化できますか?Nexus group by SNAPSHOT

レポジトリにはsnapshotタイプがあります。ユーザーの展開にはすべての特権があります。 mvn versions:set -DnewVersion=$VERSIONmvn clean deploy -B -Pbuild -Dbuild.version=$VERSION

私のsettings.xml仕事だけレポを解放するよう;-(

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 
           http://maven.apache.org/xsd/settings-1.0.0.xsd"> 

    <servers> 
    <server> 
    </server> 
    </servers> 

    <profiles> 
    <profile> 
     <id>build</id> 
     <repositories> 
     <repository> 
      <id>nexus-repo</id> 
      <name>Nexus repo</name> 
      <url>http://<MY-HOST>:8081:8081/nexus/content/groups/public</url> 
      <releases> 
      <enabled>true</enabled> 
      </releases> 
      <snapshots> 
      <enabled>true</enabled> 
      </snapshots> 
     </repository> 
     </repositories> 
    <pluginRepositories> 
     <pluginRepository> 
     <id>nexus-repo</id> 
     <name>Nexus repo </name> 
     <url>http://<MY-HOST>:8081/nexus/content/groups/public</url> 
     <releases> 
      <enabled>true</enabled> 
     </releases> 
     <snapshots> 
      <enabled>true</enabled> 
     </snapshots> 
     </pluginRepository> 
    </pluginRepositories> 
     <properties> 
     <altDeploymentRepository> 
      -DaltDeploymentRepository=builds::default::http://deployment:<MY_PASS>@<MY-HOST>:8081/content/repositories/builds 
     </altDeploymentRepository> 
     </properties> 
    </profile> 

    </profiles> 

</settings> 

<activeProfiles> 
    <activeProfile>build</activeProfile> 
</activeProfiles> 
+0

私はリポジトリの内部形式を変更することはできません。さらに、バージョンが独立していなければならないので、バージョンによって異なるジャーをグループ化することは奇妙に思えます(1つは変更され、他は同じままである可​​能性があります)。アイデアを説明することができますか(リポジトリを再構築する理由) –

答えて

0

私はあなたが求めているかわからないんだけど?リポジトリがで構成固定フォーマットを持っている私はMavenを実行しますgroupId:たartifactId:バージョンがあり

enter image description here

は、COM/soebes /例/ J2EEはgroupIdをある参照してください?com.soebes.examples.j2eeeと比べたartifactId:appとバージョン1.1.2-SNAPSHOTと1つのSNAPSHOTの基礎となるバージョン

+0

私は以下の階層を持っています: 'com-> soebes-> examples-> [app、service、ui and other] - > version' しかし、私は望みます: 'com-> soebes-> examples-> SNAPSHOTSx.x-> [app、service、ui、other] - > versions'です。 – kvendingoldo