Re: using assembly to repackage a war
jerome lacoste wrote: On 10/22/05, Brett Porter [EMAIL PROTECTED] wrote: If they are never used independantly I'd say merge, otherwise I'd say fix the war plugin, merge the 2 web.xml's, and add that as the resulting one. OK. My idea is that there shouldn't be any merging of xml files to do. The war would just automatically use the WEB-INF as found locally. For that I think the plexus WarAchiver needs to be passed the 'update' argument, and I need to find out how this can be done. See http://jira.codehaus.org/browse/MNG-1274. Cheers, Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] switching to thing thread from my previous email titled maven2: repackage/merge war's. my use case is this: Suppose I have a maven project with packaging set to war and with war dependency's. Then I want the install/package goal to do the following. - unpack war dependency's (not required but...) - compile the current project with a classpath containing WEB-INF/classes and WEB-INF/lib from all specified war dependency's. - assemble a new war containing files from current project and war dependency's. Possibly merging web.xml or simply failing if more then one web.xml, or any other file, is found. I also want to be able to do maven run-my-init-db-java-class but this could be done in a separate maven project depending on the resulting war. This use case can also be applyed if I want to be able to install my war into a remote repo without including properties with config data such as passwords. / Mikael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven2: javax.sql.jdbc-stdext
Hi all, releace of maven 2.0 reached me yesterday as music to my ears. So I started to write pom.xml to all my maven projects when I ran in to something that I did'nt understand. My old project.xml has a lot of dependencys.. spring, pluto, activation, wsrp4j, common-dbcp, xalan and more. It compiled fine. To be able to migrate to m2 I had to copy some of the files from my ~/.maven/repository to ~/.m2/repository and then I tryed to compile using m2. [...] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: javax.sql ArtifactId: jdbc-stdext Version: 2.0 Reason: Unable to download the artifact from any repository javax.sql:jdbc-stdext:2.0:jar from the specified remote repositories: central (http://repo1.maven.org/maven2) [...] jdbc-stdext-2.0 is'nt defined as a dependency in my pom. I tryed to add it and copy the jar from my ~/.maven/repo to ~/.m2/ but with no luck! Who do I make it compile with m2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven2: javax.sql.jdbc-stdext
*hgf*, renaming javax.sql to javax/sql solved it! =] thanks Stephen Duncan wrote: Maven 2 has transitive dependencies. That means that one of your dependencies has jdbc-stdext defined as a dependency (or potentially more levels of indirect dependency). Also, a change from Maven 1 to Maven 2 that may be affecting you is that the groupId javax.sql now corresponds to a folder structure in the repostiory of repository/javax/sql. So your jar in the repository would be in repository/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar Or you can use these instructions: http://maven.apache.org/maven2/general.html#importing-jars -Stephen On 10/21/05, Mikael Wikström [EMAIL PROTECTED] wrote: Hi all, releace of maven 2.0 reached me yesterday as music to my ears. So I started to write pom.xml to all my maven projects when I ran in to something that I did'nt understand. My old project.xml has a lot of dependencys.. spring, pluto, activation, wsrp4j, common-dbcp, xalan and more. It compiled fine. To be able to migrate to m2 I had to copy some of the files from my ~/.maven/repository to ~/.m2/repository and then I tryed to compile using m2. [...] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: javax.sql ArtifactId: jdbc-stdext Version: 2.0 Reason: Unable to download the artifact from any repository javax.sql:jdbc-stdext:2.0:jar from the specified remote repositories: central (http://repo1.maven.org/maven2) [...] jdbc-stdext-2.0 is'nt defined as a dependency in my pom. I tryed to add it and copy the jar from my ~/.maven/repo to ~/.m2/ but with no luck! Who do I make it compile with m2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.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]
maven2: repackage/merge war's
I have a bundle of war files, one main and a number of sub-projects all containing jar's/properties/html/xsl and more, that I want to merge/repack into a single war (or simply deploy into a container as a single webapp). Has anyone solved this problem before? I'm trying to solve it with the assembly plugin but it's not a very simple nor clean solution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]