Excellent! Thanks!
----- Original Message ---- From: Timothy Mcginnis <[email protected]> To: Maven Users List <[email protected]> Cc: [email protected] Sent: Thu, July 22, 2010 9:41:30 AM Subject: Re: Eclipse Maven WAS Yes. We use M2Eclipse (9.8 I know its old) and just configure the poms normally. In RSA make a few preference changes. Java EE ----- in the Classpath containers box uncheck Use Ear Libraries classpath container Java EE->Project ----------- uncheck Add project to an EAR under Dynamic Web Project set the following fields Default Source Folder: src/main/java Output Folder: /src/main/webapp/WEB-INF/classes Content Directory: /src/main/webapp Make sure your build tags are set up correctly. Here is a war build tag <build> <outputDirectory>src/main/webapp/WEB-INF/classes</ outputDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId > <artifactId>maven-war-plugin</artifactId> <version>2.1-beta-1</version> <configuration> <warName>aesaa-web</warName> <packagingExcludes>WEB-INF/lib /*.jar</packagingExcludes> <archive> <manifestFile>src/main/ webapp/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <groupId> ${project.groupId}</groupId> <artifactId> ${project.artifactId}</artifactId> <version> ${project.version}</version> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> Here is a ejb build tag <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId > <artifactId>maven-ejb-plugin</artifactId> <version>2.2</version> <configuration> <ejbVersion>3.0</ejbVersion> <archive> <manifestFile>src /main/resources/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <groupId> ${project.groupId}</groupId> <artifactId> ${project.artifactId}</artifactId> <version> ${project.version}</version> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> Here is a ear build tag <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId > <artifactId>maven-ear-plugin</artifactId> <configuration> <version>5</version> <generateApplicationXml>true</ generateApplicationXml> <displayName>B2B Auth Service</ displayName> <modules> <ejbModule> <groupId>com.aes .common.authentication-authorization</groupId> <artifactId>aesaa- ejb</artifactId> <bundleFileName> aesaa-ejb-${version}.jar</bundleFileName> </ejbModule> <webModule> <groupId>com.aes .common.authentication-authorization</groupId> <artifactId>aesaa- http-router-war</artifactId> <bundleFileName> aesaa-http-router-war-${version}.war</bundleFileName> <contextRoot> /B2BAuthService</contextRoot> </webModule> </modules> <archive> <manifestFile>src /main/application/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <groupId> ${project.groupId}</groupId> <artifactId> ${project.artifactId}</artifactId> <version> ${project.version}</version> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> And finally when importing the project make sure to open the Advanced tab on the Maven Projects wizard and select the Name template: [artifactId]-[version]. Everything should hot deploy and using run configs you should be able to build your artifacts from right inside RSA. Tim McGinnis 717 720-1962 Web Development AES/PHEAA From: "Refr Bruhl" <[email protected]> To: [email protected] Date: 07/22/2010 10:27 AM Subject: Eclipse Maven WAS Team This is probably a newbie question. We're trying to integrate maven with eclipse and websphere. The goal is to use "class reloading" in our development environment to allow for rapid developtment. Has anyone else done this and gotten it to work? If so what steps did you use? Thanks! -Rob --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] ============================================================================== 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. ============================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
