You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by de...@wipro.com on 2005/05/24 12:24:33 UTC

Problem with installing ejb jar file to Maven Local or central repository

Hi,

           



Scenario:

            The project.xml file contains the following:



<project>

            <id>newsletter</id>

            <groupId>newsletter</groupId>

            <name>newsletter</name>

            <currentVersion>1.0</currentVersion>

</project>



The maven.xml calls the ejb:ejb goal to create an ejb jar
newsletter-1.0.jar.



I had renamed the jar file as newsletter-ejb-1.0.jar in the target
directory and used the following to install the "newsletter-ejb-1.0.jar"
file to the Maven local repository:

            <artifact:install


artifact="${basedir}/target/${pom.artifactId}-ejb-${pom.currentVersion}.
jar"                          

                        type="jar"

                        project="${pom}"

            />



Problem:

            The ejb jar was installed as newsletter-1.0.jar and not
"newsletter-ejb-1.0.jar"

            The same problem occurred when I used artifact:deploy to
deploy the ejb jar file to the Maven central repository.

             I could rename the jar file explicitly in the Maven local
repository which is
"${user.home}/.maven/repository/${pom.artifactId}/jars.

 But I cannot rename the ejb jar file in the Central repository.

Please provide me some solution for renaming the artifact and moving it
correctly to the Maven Local and Central repository.



Regards,

Deepa







Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.