2016-10-18 2 views
0

RAD 9.1を使用していて、EARおよびWARプロジェクトを持つmavenプロジェクトがあります。 EARファイルのpom.xmlには以下のようなエラーが出ています。プロジェクトビルドエラー:解決不可能な親POM:RAD 9.1使用時にアーティファクトエラーを転送できませんでした

プロジェクトビルドエラー:解決できない親POM:アーティファクトcom.CNSBCB:MemberBillingPayment:pom:$ {release.version}を/からapache-snapshots(http://repository.apache.org/snapshots/)に転送できませんでした:インデックス72のパスに不正な文字があります: http://repository.apache.org/snapshots/com/cnsbcb/MemberBillingPayment/ $ {release.version}/MemberBillingPayment - $ {} release.version .pomと 'parent.relativePath' ポイント間違った地元のPOMで

これは私のpom.xmlがどのようにある: ます。http://maven.apache .ORG/XSD/Mavenの-4.0.0.xsd "> 4.0.0 MemberBillingPaymentEAR 耳

<parent> 
    <groupId>com.CNSBCB</groupId> 
    <artifactId>MemberBillingPayment</artifactId> 
    <version>${release.version}</version> 
    <relativePath>../pom.xml</relativePath> 
</parent> 


<build> 
<pluginManagement> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-antrun-plugin</artifactId> 
      <version>1.8</version> 
      <executions> 
       <execution> 
        <id>default-cli</id> 
        <phase>compile</phase> 
        <goals> 
         <goal>run</goal> 
        </goals> 
        <configuration> 
         <target> 
          <echo>Creating aatprop file: </echo> 
          <echo file="${basedir}\src\main\application\${aatp.v}.aatprop"> ${aatp.v} </echo> 
         </target> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin>  
     <plugin> 
      <artifactId>maven-ear-plugin</artifactId> 
      <version>2.7</version> 
      <configuration> 
       <version>1.4</version> 
       <modules> 
        <webModule> 
         <groupId>com.CNSBCB</groupId> 
         <artifactId>MemberBillingPaymentWAR</artifactId> 
         <bundleFileName>MemberBillingPaymentWAR.war</bundleFileName> 
         <contextRoot>/MemberBillingPaymentWeb</contextRoot> 
        </webModule> 
       </modules> 
       <displayName>MemberBillingPaymentEAR.ear</displayName> 
       <generateApplicationXml>true</generateApplicationXml> 
       <!--<applicationXml>MemberBillingPaymentEAR/src/main/application/META-INF/application.xml</applicationXml>--> 
      </configuration> 
     </plugin> 
    </plugins> 
</pluginManagement> 
</build> 

<dependencies> 
    <dependency> 
     <groupId>com.CNSBCB</groupId> 
     <artifactId>MemberBillingPaymentWAR</artifactId> 
     <version>${release.version}</version> 
     <type>war</type> 
    </dependency> 
</dependencies> 

<distributionManagement> 
    <repository> 
     <id>CNSBCB</id> 
     <url>http://nexus.CNSBCB.com/content/repositories/CNSBCB</url> 
    </repository> 
</distributionManagement> 

メンバー支払いペイメントEARとメンバー請求ペイメントウォーは私が所有するプロジェクトの名前です。これで私を助けてください。

答えて

1

問題はあなたのあなたのポンポンでコード

<parent> 
    <groupId>com.CNSBCB</groupId> 
    <artifactId>MemberBillingPayment</artifactId> 
    <version>${release.version}</version> 
    <relativePath>../pom.xml</relativePath> 
</parent> 

の下の部分に<version>タグであり、あなたが名前release.versionの変数/プロパティを宣言していません。したがって、親アーティファクトを解決/継承することはできません。
<version>タグに${release.version}を指定する代わりに、有効なバージョンを指定してください(例:1.1.0など)。

関連する問題