In <jarModule> add <bundleFileName>${project.artifactId}-${project.version}.jar</bundleFileName>
and make sure your project in Eclipse is named using the [artifactId]-[version] Name Template. Tim McGinnis 717 720-1962 Web Development AES/PHEAA From: nishant....@hsbcib.com To: "Maven Users List" <users@maven.apache.org> Cc: users@maven.apache.org Date: 08/26/2010 10:21 AM Subject: Re: Ear plugin issue It seems the attachments are not allowed. I have included the ear pom below.. ****************************************************************************************************************************************************************************************************************************************************************************************** <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>ProjectX</artifactId> <groupId>root</groupId> <version>1.0</version> </parent> <groupId>root.ProjectX</groupId> <artifactId>EarAssembler</artifactId> <version>1.0</version> <name>EarAssembler</name> <packaging>ear</packaging> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.4.2</version> <configuration> <modules> <jarModule> <groupId>root.ProjectX</groupId> <artifactId>ClientModules</artifactId> </jarModule> </modules> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>root.ProjectX</groupId> <artifactId>ClientModules</artifactId> <version>1.0</version> </dependency> </dependencies> </project> ****************************************************************************************************************************************************************************************************************************************************************************************** Thanks Nishant RAJ/HBEU/h...@hsbc Aug 26 2010 15:17 Mail Size: 8020 Please respond to "Maven Users List" <users@maven.apache.org> To users@maven.apache.org cc Subject Ear plugin issue Entity HSBC Bank plc - HBEU Hi All, I am trying to get the ear plugin working. Followed all the guidelines but could not get it working as its not able to "find" the module that I want to package within the ear It looks for the module in my nexus repository but does not find it. I have also got the "Resolve workspace project dependencies" enables in eclipse. Pom is attached. Please advice as I have been struggling with the same for few hrs now. Thanks Nishant ************************************************************ HSBC Bank plc Registered Office: 8 Canada Square, London E14 5HQ Registered in England - Number 14259 Authorised and regulated by the Financial Services Authority ************************************************************ ----------------------------------------- SAVE PAPER - THINK BEFORE YOU PRINT! This transmission has been issued by a member of the HSBC Group "HSBC" for the information of the addressee only and should not be reproduced and/or distributed to any other person. Each page attached hereto must be read in conjunction with any disclaimer which forms part of it. Unless otherwise stated, this transmission is neither an offer nor the solicitation of an offer to sell or purchase any investment. Its contents are based on information obtained from sources believed to be reliable but HSBC makes no representation and accepts no responsibility or liability as to its completeness or accuracy. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org ************************************************************ HSBC Bank plc Registered Office: 8 Canada Square, London E14 5HQ Registered in England - Number 14259 Authorised and regulated by the Financial Services Authority ************************************************************ ----------------------------------------- SAVE PAPER - THINK BEFORE YOU PRINT! This transmission has been issued by a member of the HSBC Group "HSBC" for the information of the addressee only and should not be reproduced and/or distributed to any other person. Each page attached hereto must be read in conjunction with any disclaimer which forms part of it. Unless otherwise stated, this transmission is neither an offer nor the solicitation of an offer to sell or purchase any investment. Its contents are based on information obtained from sources believed to be reliable but HSBC makes no representation and accepts no responsibility or liability as to its completeness or accuracy. ============================================================================== This message contains privileged and confidential information intended for the above addressees only. If you receive this message in error please delete or destroy this message and/or attachments. The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging in the unauthorized use of this message. ==============================================================================