Re: Integration of an applet jar in a war with Eclipse (Maven integration + WTP plugins)
Hello, No idea of solution ? It seems that with maven 1 it was possible de add properties to a dependency of the war to indicate the final location in the war, but it's no more possible. 2010/4/17 Jean-Claude Vogel > Hello, > > I would like to put an applet Jar built with maven in my war. So in my war > pom, I've used the goal copy from maven-dependency-plugin like that : > > 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/maven-v4_0_0.xsd";> > 4.0.0 > > jkt.centralisateur > centralisateur > 1.0-SNAPSHOT > > > centralisateur-war > centralisateur-war > war > > centralisateur-war > > > >jkt.centralisateur >centralisateur-applet > > >jkt.centralisateur >centralisateur-common > > >jkt.centralisateur >centralisateur-pojo > > > >jkt.centralisateur >centralisateur-interlocutor > > > >jkt.centralisateur >centralisateur-storage > > >jkt.centralisateur >centralisateur-presentation > > > >javax.servlet >jstl > > >org.springframework >spring-webmvc > > >commons-lang >commons-lang > > > > ${centralisateur-war-name} > > > org.apache.maven.plugins > maven-dependency-plugin > 2.1 > > > copy > compile > > copy > > > > > jkt.centralisateur > > centralisateur-applet > true > > centralisateur-applet.jar > > > > ${project.build.directory}/${centralisateur-war-name}/applets > > > > > > org.apache.maven.plugins > maven-war-plugin > 2.1-beta-1 > > ${centralisateur-war-name} > > > > > > The maven build works fine and I get the file centralisateur-applet.jar in > my war at the location {war-file}/applets/centralisateur-applet.jar like I > want. But I would like also to launch the webapp in Eclipse with the Maven > integration and WTP plugin. When I launch it in Eclipse the is no > centralisateur-applet.jar file deployed. Do somebody knows the solution to > be compliant with the Eclipse Tomcat launch and also the with the Maven > build ? > > Thank for any help, > JC >
Integration of an applet jar in a war with Eclipse (Maven integration + WTP plugins)
Hello, I would like to put an applet Jar built with maven in my war. So in my war pom, I've used the goal copy from maven-dependency-plugin like that : 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/maven-v4_0_0.xsd";> 4.0.0 jkt.centralisateur centralisateur 1.0-SNAPSHOT centralisateur-war centralisateur-war war centralisateur-war jkt.centralisateur centralisateur-applet jkt.centralisateur centralisateur-common jkt.centralisateur centralisateur-pojo jkt.centralisateur centralisateur-interlocutor jkt.centralisateur centralisateur-storage jkt.centralisateur centralisateur-presentation javax.servlet jstl org.springframework spring-webmvc commons-lang commons-lang ${centralisateur-war-name} org.apache.maven.plugins maven-dependency-plugin 2.1 copy compile copy jkt.centralisateur centralisateur-applet true centralisateur-applet.jar ${project.build.directory}/${centralisateur-war-name}/applets org.apache.maven.plugins maven-war-plugin 2.1-beta-1 ${centralisateur-war-name} The maven build works fine and I get the file centralisateur-applet.jar in my war at the location {war-file}/applets/centralisateur-applet.jar like I want. But I would like also to launch the webapp in Eclipse with the Maven integration and WTP plugin. When I launch it in Eclipse the is no centralisateur-applet.jar file deployed. Do somebody knows the solution to be compliant with the Eclipse Tomcat launch and also the with the Maven build ? Thank for any help, JC
maven-ear-plugin or maven-ejb-plugin and persistence.xml
Hi, We are using maven2, JBoss 5 and Hibernate with the file persistence.xml according to the specifications. In the file persistence.xml we have to list the jar files like it: ./activity-bo-1.0.0-SNAPSHOT.jar ./core-bo-1.0.0-SNAPSHOT.jar These jar files appear in persistence.xml with their version (1.0.0-SNAPSHOT in this case). Is it a way to automatically generate the list of the jar files to avoid having to manually edit the file persistence.xml each time there is a new version of the jar files (e.g. using the maven-ejb-plugin)? Thank you for your help J.-Claude -- View this message in context: http://www.nabble.com/maven-ear-plugin-or-maven-ejb-plugin-and-persistence.xml-tp23160597p23160597.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ejb and bundle (OSGi)
When the package is set to ejb two artifacts are generated . an EJB jar (e.g. core-bo-1.0.0-SNAPSHOT.jar) . a client jar (e.g. core-bo-1.0.0-SNAPSHOT-client.jar) according to http://maven.apache.org/plugins/maven-ejb-plugin/index.html maven-ejb-plugin When I call mvn clean install -Posgi-bundle both jar files, the EJB jar and the client jar, contain a manifest with bundle information. Is it possible to have the bundle information only be incorporated to the client jar (e.g. core-bo-1.0.0-SNAPSHOT-client.jar) and not to the EJB jar (e.g. core-bo-1.0.0-SNAPSHOT.jar) when I call mvn clean install -Posgi-bundle ? Thank you for your answers. Sahoo wrote: > > You can explicitly call the goals of maven-bundle-plugin to do necessary > OSGi bundling if you don't want to change the packaging type. See > "Adding OSGi metadata to existing projects without changing the > packaging type" section at > http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html > > Thanks, > Sahoo > -- View this message in context: http://www.nabble.com/%3Cpackaging%3Eejb%3C-packaging%3E-and-%3Cpackaging%3Ebundle%3C-packaging%3E-%28OSGi%29-tp23038273p23133534.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ejb and bundle (OSGi)
Thank you for your help. I just had to modify your solution to fit for an EJB: org.apache.maven.plugins maven-ejb-plugin 3.0 true ${project.build.outputDirectory}/META-INF/MANIFEST.MF ... ejb and it worked! Sahoo wrote: > > You can explicitly call the goals of maven-bundle-plugin to do necessary > OSGi bundling if you don't want to change the packaging type. See > "Adding OSGi metadata to existing projects without changing the > packaging type" section at > http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html > -- View this message in context: http://www.nabble.com/%3Cpackaging%3Eejb%3C-packaging%3E-and-%3Cpackaging%3Ebundle%3C-packaging%3E-%28OSGi%29-tp23038273p23042255.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
ejb and bundle (OSGi)
Hi, We have a maven module containing EJBs. Therefore the packaging must be ejb. This allows us to create an ear file containing these EJBs as ejbModule (see http://maven.apache.org/plugins/maven-ear-plugin/ maven-ear-plugin ). But these EJBs are also used by an Eclipse Client and we want to package them as an OSGi bundle. Therefore the packaging must be bundle (see http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html maven-bundle-plugin ). How can I achieve to package the EJBs so that they can be used as EJBs and OSGi bundles? Thank you for your help J.-Claude -- View this message in context: http://www.nabble.com/%3Cpackaging%3Eejb%3C-packaging%3E-and-%3Cpackaging%3Ebundle%3C-packaging%3E-%28OSGi%29-tp23038273p23038273.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
AW: AW: Integration testing best practices
Hi, Maybe this link will help you: http://www.coderanch.com/t/132916/General-Computing/Best-Developer-Tools-Combination (take a look at the messages posted on the 3rd march 2009 and on the 4th march 2009) Best Regards Jean-Claude -Ursprüngliche Nachricht- Von: Adam Hardy [mailto:adam.ma...@cyberspaceroad.com] Gesendet: Donnerstag, 9. April 2009 11:41 An: Maven Users List Betreff: Re: AW: Integration testing best practices I use (3) as well. I haven't got many integration tests - I just do it to make sure it works. But I'd be interested to find out what kind of metrics and reports people use when doing intensive integration testing. Rouvinez, Jean-Claude on 09/04/09 07:42, wrote: > Hi, > > We use the solution 3 suggested under > http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing?focusedCommentId=114787113#comment-114787113 > and it works for us. > This article is not so old (Jan 09). > > Best Regards > Jean-Claude > > -Ursprüngliche Nachricht- > Von: Jason Voegele [mailto:ja...@jvoegele.com] > Gesendet: Mittwoch, 8. April 2009 19:23 > An: users@maven.apache.org > Betreff: Integration testing best practices > > I'm interested in knowing the current thinking on best practices for > integration testing in Maven projects. I did find a few articles on the Web > that discuss this issue, but they all are a bit old now. The most relevant > article appears to be this one: > > http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing > > "Maven: The Definitive Guide" is curiously silent on this issue. > > Can anyone point me to some up-to-date discussion of integration testing best > practices for Maven? Failing that, would you care to share your thoughts on > this mailing list? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
AW: Integration testing best practices
Hi, We use the solution 3 suggested under http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing?focusedCommentId=114787113#comment-114787113 and it works for us. This article is not so old (Jan 09). Best Regards Jean-Claude -Ursprüngliche Nachricht- Von: Jason Voegele [mailto:ja...@jvoegele.com] Gesendet: Mittwoch, 8. April 2009 19:23 An: users@maven.apache.org Betreff: Integration testing best practices I'm interested in knowing the current thinking on best practices for integration testing in Maven projects. I did find a few articles on the Web that discuss this issue, but they all are a bit old now. The most relevant article appears to be this one: http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing "Maven: The Definitive Guide" is curiously silent on this issue. Can anyone point me to some up-to-date discussion of integration testing best practices for Maven? Failing that, would you care to share your thoughts on this mailing list? Thanks. -- Jason Voegele The Gordian Maxim: If a string has one end, it has another. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-ear-plugin: jarModule or ejbModule
Hi, I want to build an EAR file with modules. All EJB modules have been defined as jar (jar or 2). Change the packaging of all EJB modules to ejb (ejb) and then include those EJB modules in the EAR file using What are the advantages or disadvantages of each solution? Thank you for your Help! -- View this message in context: http://www.nabble.com/maven-ear-plugin%3A-jarModule-or-ejbModule-tp22871170p22871170.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Wagon Plugin - Documentation
Hi Baptiste, I want to deploy an EAR file to a remote JBoss server. I tried it with the cargo plugin but it didn't work (see http://www.nabble.com/cargo%3Adeploy-and-Jboss-5%3A-problem-deploying-an-EAR-remotely-to21141731.html Deploy using cargo ) I tried it with the jboss-maven-plugin but it didn't work (see http://www.nabble.com/jboss%3Adeploy-and-Jboss-5%3A-problem-deploying-an-EAR-remotely-tt21147286.html#a21147286 Deploy using the jboss-maven-plugin ) Therefore I want to try the wagon plugin. This link http://mojo.codehaus.org/wagon-maven-plugin/ http://mojo.codehaus.org/wagon-maven-plugin/ seems to contain the necessary information (many thanks to Dan Tran). Best Regards. Jean-Claude Baptiste MATHUS wrote: > > Maven wagons are low-level API imo. You might want to use a higher one. > What do you want to do? Transfer some file after packaging or something > like > this? Is this close to deployment? Artifact staging? Remote resource > retrieval?... > > Cheers. > > 2008/12/24 Rouvinez, Jean-Claude > >> Hi, >> >> I want to use the Maven Wagon Plugin (http://maven.apache.org/wagon/) to >> transfer files to a remote host but didn't find any useful documentation >> with examples or usage. >> Does anyone know any useful links to this plugin? >> >> Thank You for Your Help. >> >> Best Regards >> Jean-Claude >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > > -- > Baptiste MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! > > -- View this message in context: http://n2.nabble.com/Maven-Wagon-Plugin---Documentation-tp1729539p2073575.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Wagon Plugin - Documentation
Hi, I want to use the Maven Wagon Plugin (http://maven.apache.org/wagon/) to transfer files to a remote host but didn't find any useful documentation with examples or usage. Does anyone know any useful links to this plugin? Thank You for Your Help. Best Regards Jean-Claude - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven and JBoss
Hi, I want to do the following: - Start a Jboss 5 App Server located on a remote server. - Stop a Jboss 5 App Server located on a remote server. - Deploy artifacts on a Jboss 5 App Server on a remote server. - Deploy artifacts on a locally installed Jboss 5 App Server. I had a look at: - http://cargo.codehaus.org/Home - http://mojo.codehaus.org/jboss-maven-plugin/ Cargo: I didn't find out how to start/stop a remote server. It only starts a local instance of Jboss. Jboss Maven Plugin: I didn't find out how to start/stop a remote Jboss 5 App Server I didn't find out how to start/stop a locally installed Jboss 5 App Server The documentation concerning Cargo and the Jboss Maven Plugin is not very helpful... Does anybody have the same problems? How did you solve them? Does anybody know helpful links? Any help is very appreciated Best Regards J.-Claude - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
AW: Is Maven / JUnit 4.x broken (annotations)
Hi, I tested it this way: Configuration: Maven version: 2.0.9 Java version: 1.5.0_09 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" 1). I renamed my test class from ServiceTest to ServiceXxx I run mvn clean install ==> The file was ignored 2). I renamed my test class from ServiceXxx to ServiceTest All test methods in the file have the form: @Test public void noNameGetPersonByNameNoPerson() throws Exception I run mvn clean install ==> All tests were executed ==> The test file must be named according to http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes ==> The test methods don't have to follow any convention. Only the annotation @Test is necessary. Best Regards. Jean-Claude -Ursprüngliche Nachricht- Von: Anders Hammar [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 10. Dezember 2008 14:06 An: users@maven.apache.org Betreff: Re: Is Maven / JUnit 4.x broken (annotations) Or "*Test.java", or "*TestCase.java". That's the names surefire is configured for by default. (http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes) I would suggest trying it in Eclipse first. If it works there, then there is some configuration issue for Maven. /Anders Josh Suereth wrote: > > I believe the name of the class still matters. Try calling it > "Test*.java" > > On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa <[EMAIL PROTECTED]> wrote: > >> >> I have JUnit 4.5 as a dependency in my maven pom >> and I have imported annotations into my test case but >> it is not recognizing the @Test and @Ignore annotations. >> >> I still have to preface the method name with "test" >> and the @Ignore tests get executed. >> >> Is something broken? What do I need to do to get this >> to work like expected and to take advantage of JUnit 4.x >> which has over a year of release now. >> >> >> thanks >> >> Lisa >> -- >> View this message in context: >> http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20929389.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20934997.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Nexus "Publish Indexes"
Hi, An issue has been opened concerning the update of the index on the fly: https://issues.sonatype.org/browse/NEXUS-997 Best Regards Jean-Claude -Ursprüngliche Nachricht- Von: Brian E. Fox [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 4. Dezember 2008 16:41 An: Maven Users List Betreff: RE: Nexus "Publish Indexes" >BTW. Is it possible to do this without using the scheduler? Wouldn't it >make sense to have a "create index" option when you right click on a >group so the user can do it manually? The group index is created automatically when there's a group made and any reindex on the group will also update it, but it will also reindex all the repos in the group. This is why we separated the publish step from a full reindex. Since the index is created automatically, there's no need for a create index option. >The other thing I would like to ask about is this comment: >"The internal indexes are always updated in realtime..." >Do you mean the Nexus hosted drepository indexes? If so, I have not >observed this behaviour. For instance, if I deploy an artifact to my >Nexus repository, it does not automatically update the index. I have >always had to re-index it manually. Thats actually why I started to >look at the scheduler to see if I could at least semi-automate it. I mean the indexes that Nexus uses internally. If you deploy something and then go to the Nexus UI and search for it, it should be there immediately with no further action. If you're pulling the index into m2e, then the publish needs to occur for the previously mentioned reasons. If you see that it is not indexed immediately and visible from the UI, check that the user you are logged in to the UI has permissions to the repo where it exists (the search results are filtered based on permissions). If you still have problems, then lets discuss more debugging on the Nexus User list. --Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue MRELEASE-128
Hi, Does anybody know when this problem will be corrected? Issue MRELEASE-128 http://jira.codehaus.org/browse/MRELEASE-128 Does anybody know a good workaround? I haven't found any useable one until now. Thank you for your help. Best Regards Jean-Claude - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]