Hi,

Appreciate any suggestion to solve this problem. I am stuck because of this issue.

Thanks,
Sahoo
--- Begin Message ---
Hi,

I am having problems using maven-release-plugin and I need some help urgently. While doing a release:prepare, maven is not able to locate an extension. I am using maven 2.0.7 on JDK 1.5. Given below are the essential details of the pom.xml that's facing the issue:
   <parent>
       <groupId>org.glassfish.ejb</groupId>
       <artifactId>ejb</artifactId>
       <version>3.0-Prelude</version>
   </parent>
   <version>3.0-Prelude</version>
   <artifactId>ejb-timer-databases</artifactId>
   <packaging>distribution-fragment</packaging>
   <build>
       <extensions>
           <extension>
               <groupId>org.glassfish.build</groupId>
               <artifactId>maven-glassfish-extension</artifactId>
               <version>${project.version}</version>
           </extension>
       </extensions>
   </build>

As you can see, it uses a packaging type called distribution-fragment, which is understood by our own extension called org.glassfish.build:maven-glassfish-extension. We build the extension as part of the same reactor. For some other reason, we don't use <extensions>true</extensions> in our plugin configuration. I am able to do a normal build successfully, but when I am trying to prepare a release using maven-release-plugin, it fails with following error:


[INFO] ------------------------------------------------------------------------
       [ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
       [INFO] Failed to resolve artifact.
Missing:
       ----------
       1) org.glassfish.build:maven-glassfish-extension:jar:3.0-Prelude
Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.glassfish.build -DartifactId=maven-glassfish-extension \
                 -Dversion=3.0-Prelude -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.glassfish.build -DartifactId=maven-glassfish-extension \ -Dversion=3.0-Prelude -Dpackaging=jar -Dfile=/path/to/file \
                  -Durl=[url] -DrepositoryId=[id]
Path to dependency: 1) org.glassfish.ejb:ejb-timer-databases:distribution-fragment:3.0-Prelude 2) org.glassfish.build:maven-glassfish-extension:jar:3.0-Prelude ----------
       1 required artifact is missing.
for artifact: org.glassfish.ejb:ejb-timer-databases:distribution-fragment:3.0-Prelude

What is surprising is that it fails even when I have built the extension separately and installed it in my local repository. How can I avoid this error?

Thanks,
Sahoo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to