Re: How can I deploy multiple wars using the tomcat plugin in maven?
As an example, here's my deploy pom.xml: 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 waitlist-parent edu.berkeley.ist.waitlist 1.2 ../waitlist-parent/pom.xml waitlist-deploy jar WMF waitlist deploy org.codehaus.cargo cargo-maven2-plugin ${version.cargo} tomcat6x remote runtime ${tomcat.manager.username} ${tomcat.manager.password} ${tomcat.hostname} ${tomcat.port} remote edu.berkeley.ist.waitlist waitlist-war war waitlist http://${tomcat.hostname}:${tomcat.port}/waitlist/ edu.berkeley.ist.waitlist waitlist-war ${project.version} war 1.0 localhost 8080 wss-test1-tomcat false Rusty Wright wrote: nagl, to expand on what David is saying; for the two projects that create war files, when you build those war files your final step for each one should be an install (e.g., "mvn -Pwhatever clean verify install") and the install phase will copy the war files into your local maven repository (e.g., ~/.m2 on unix). For maven, install means copy the war, jar, whatever, into your local repository. Then, in the tomcat deploy project, when you deploy, since you've specified the war files as dependencies, it will first pull the war files from your local maven repository, then deploy them to tomcat. I use cargo, but I don't know how you could use it to deploy two different war files at the same time. (I'm not saying you can't, just that I don't know if it's possible.) David C. Hicks wrote: Oh, no, you misunderstood my intention. You don't build a war file using the two other wars as a dependency. The only reason you make them dependencies is to make them available to the plugin for deployment. Your third project doesn't really have its own artifact, other than the *.pom file. nagl wrote: by declaring the two war files as dependencies in the third project, after i build the third project as a war and deploy it, I am not able to access the first two web apps. what i want to knw is a way to sort of merge the two wars. now maven cargo plugin as something called uber war which does the job of merging. but it is quite complicated and there is very little documentation on it. dchicks wrote: The first question is relatively straightforward. Since your wars are created in different projects, just set up a third project that has the artifact WAR files from the other two as dependencies. If your war files are generated in different modules of the same project, you would accomplish the same thing using a third module that depends on the other two. Think of it like you would an assembly, in that case. Looking at the Tomcat plugin, I don't see any configuration for deploying multiple wars at the same time. Your third project could have multiple modules - one for each deployment. Hopefully, someone has a better answer than that. That seems a bit like overkill. Dave nagl wrote: So I have two wars which I deploy in tow maven projects using tomcat plugin. I want to do this in one step and be able to deploy more than one wars in a single maven project. how can i do this. any suggestions if tomcat plugin doesnt work, is there anyother way this can be done? - 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 ---
Re: How can I deploy multiple wars using the tomcat plugin in maven?
nagl, to expand on what David is saying; for the two projects that create war files, when you build those war files your final step for each one should be an install (e.g., "mvn -Pwhatever clean verify install") and the install phase will copy the war files into your local maven repository (e.g., ~/.m2 on unix). For maven, install means copy the war, jar, whatever, into your local repository. Then, in the tomcat deploy project, when you deploy, since you've specified the war files as dependencies, it will first pull the war files from your local maven repository, then deploy them to tomcat. I use cargo, but I don't know how you could use it to deploy two different war files at the same time. (I'm not saying you can't, just that I don't know if it's possible.) David C. Hicks wrote: Oh, no, you misunderstood my intention. You don't build a war file using the two other wars as a dependency. The only reason you make them dependencies is to make them available to the plugin for deployment. Your third project doesn't really have its own artifact, other than the *.pom file. nagl wrote: by declaring the two war files as dependencies in the third project, after i build the third project as a war and deploy it, I am not able to access the first two web apps. what i want to knw is a way to sort of merge the two wars. now maven cargo plugin as something called uber war which does the job of merging. but it is quite complicated and there is very little documentation on it. dchicks wrote: The first question is relatively straightforward. Since your wars are created in different projects, just set up a third project that has the artifact WAR files from the other two as dependencies. If your war files are generated in different modules of the same project, you would accomplish the same thing using a third module that depends on the other two. Think of it like you would an assembly, in that case. Looking at the Tomcat plugin, I don't see any configuration for deploying multiple wars at the same time. Your third project could have multiple modules - one for each deployment. Hopefully, someone has a better answer than that. That seems a bit like overkill. Dave nagl wrote: So I have two wars which I deploy in tow maven projects using tomcat plugin. I want to do this in one step and be able to deploy more than one wars in a single maven project. how can i do this. any suggestions if tomcat plugin doesnt work, is there anyother way this can be done? - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Silencing ArtifactResolver
Hello, Is there any way I can silence the ArtifactResolver? It often gives the "Downloading: ..." and "url = ..." printouts for every attempt at downloading an artifact. Also is there a way to silence the exception stacetraces in debug mode? Thanks, -Jerry Lin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Prevent Install of Assembly SOLVED
Jim Collings wrote: > OK, looks like the assembly building twice is an actual maven bug. > > On Fri, Jul 24, 2009 at 11:31 AM, Jim Collings wrote: >> OK, thanks! That keeps if from installing. Now if I can just keep it >> from building the assembly twice. I'll have it made. ;-/ >> >> Jim C. >> >> On Fri, Jul 24, 2009 at 11:14 AM, Mohan KR wrote: >>> set the false in the plugin config. OK, so basically, I had an execution for install and another for package. I only needed package because install calls package. This is why the assemblies were running twice. Jim C. signature.asc Description: OpenPGP digital signature
bootstrapping (cyclic dependencies with different versions)
Hi all, Maven seems to be complaining about having cycles in the graph, even if I specify different versions for resources. This is rather unfortunate; bootstrapping is a good technique (and not cyclic if one uses previous versions), and should not be restricted arbitrarily. If anyone knows a workaround, I'd appreciate it. Google search shows scm:bootstrap, but this looks unrelated. Thanks in advance, Nicholas https://ntung.com smime.p7s Description: S/MIME Cryptographic Signature
Site documentation format choosing
So a discussion has popped up here as to why use apt, xdoc or fml over just plain html. I (personally) think it's easier to just throw together APT docs REALLY fast and not worry about various components (css and such). How do I sell apt as the format to use?
EJB3-client dependency inside EJB3 project
Hi guys, I have the follow structure in my project: * EJB3 A Project * EJB3 B Project > * EJB A client Inside of EJB B Project I need to add a dependency to EJB A, using the client type but every time I tried to deploy the EJB B I get the follow error: Note: 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean. 2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar. 3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven), please check server.log to see whether the annotations were processed properly. Whether I remove the EJB A client dependency the EJB B deploys successfully. So my question is: Is that possible to accomplish what I¹m tryin¹ to do? If so, what am I doing wrong? Thanks.
Re: Help with branching?
Well, I figured out what was going on. It's Subversion's error, at least, partly. I didn't want to set up our continuous integration environment so that it "knows" what user/password to use for Subversion. Instead, I put add that user/pw to the settings.xml file and let Maven include it in the URL. Apparently, Subversion does an "exact match" on the URL when trying to do a check-in of any kind. So, because I checked the code out using: svn co svn://server.enttek.com/... But Maven only knows to use: svn copy svn://user:p...@server.enttek.com/... Subversion can't handle it and throws an error. I assume that when this happens, the release plugin loses itself and ends up checking the pom.xml changes back into the "tags" folder instead of "branches". Maybe someone else will find this information useful in the future. Dave David C. Hicks wrote: > I guess I was wrong...it *did* screw up my tagged code. Now, I have to > figure out how badly and get that all fixed, too. > > Why would the release:branch goal put changes back into the source tree? > > David C. Hicks wrote: > >> Hi gang, >> >> I need to branch from a prior release tag to fix a defect. I thought I >> had the right "process," but something is not happy. We do have the >> project enabled for the maven-release-plugin. Here are the steps I took: >> >> 1) Check code out of SVN from the previous release tag. >> 2) Using release:branch - mvn -DbranchName=Salient-0.9.22.1 >> -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false release:branch >> 3) Enter my version label when prompted "0.9.22.1-SNAPSHOT" (repeat for >> each sub-module [i couldn't get autoVersionSubmodules to play nice]) >> 4) Get an error: >> >> svn: Commit failed (details follow): >> svn: Source url >> 'svn://svn.enttek.com/allureglobal/dm/tags/salient-0.9.22' is from >> different repository >> >> Now, it's true that the SCM information in the POM gets updated such >> that it isn't the same as where the code was checked out from, but that >> shouldn't matter, should it? We're not going to modify the original >> sources - we're just creating the branch. Right? >> >> Maybe I'm going about this all wrong, but I didn't find much in the way >> of documents/blogs/stories on Google - at least, nothing that shed any >> light on this for me. >> >> Thanks, >> Dave >> >> >> - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Artifact Version Checker Plugin - where is it?
additional plugins not part of the maven project 2009/7/28 Andrew Close > On Tue, Jul 28, 2009 at 11:45 AM, Stephen > Connolly wrote: > > versions-maven-plugin though it's not designed to notify you during a > > build. > > > > It will produce reports telling you about updates available to you. > > > > It also has stand-alone mojos which will output to the console if there > are > > newer versions available, but these mojos are not designed to be bound to > > the build lifecycle. > > > > -Stephen > > That was it! Thank you Stephen. I must've seen it in an email > because it isn't listed on the plugins page: > http://maven.apache.org/plugins/index.html > > Is CodeHaus (http://mojo.codehaus.org/plugins.html) 'the' site to go > to now for plugin info? Or are these just additional plugins that > aren't part of Maven proper? > > Thanks again > > -- > Andrew Close > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Help with branching?
I guess I was wrong...it *did* screw up my tagged code. Now, I have to figure out how badly and get that all fixed, too. Why would the release:branch goal put changes back into the source tree? David C. Hicks wrote: > Hi gang, > > I need to branch from a prior release tag to fix a defect. I thought I > had the right "process," but something is not happy. We do have the > project enabled for the maven-release-plugin. Here are the steps I took: > > 1) Check code out of SVN from the previous release tag. > 2) Using release:branch - mvn -DbranchName=Salient-0.9.22.1 > -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false release:branch > 3) Enter my version label when prompted "0.9.22.1-SNAPSHOT" (repeat for > each sub-module [i couldn't get autoVersionSubmodules to play nice]) > 4) Get an error: > > svn: Commit failed (details follow): > svn: Source url > 'svn://svn.enttek.com/allureglobal/dm/tags/salient-0.9.22' is from > different repository > > Now, it's true that the SCM information in the POM gets updated such > that it isn't the same as where the code was checked out from, but that > shouldn't matter, should it? We're not going to modify the original > sources - we're just creating the branch. Right? > > Maybe I'm going about this all wrong, but I didn't find much in the way > of documents/blogs/stories on Google - at least, nothing that shed any > light on this for me. > > Thanks, > Dave > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Artifact Version Checker Plugin - where is it?
On Tue, Jul 28, 2009 at 11:45 AM, Stephen Connolly wrote: > versions-maven-plugin though it's not designed to notify you during a > build. > > It will produce reports telling you about updates available to you. > > It also has stand-alone mojos which will output to the console if there are > newer versions available, but these mojos are not designed to be bound to > the build lifecycle. > > -Stephen That was it! Thank you Stephen. I must've seen it in an email because it isn't listed on the plugins page: http://maven.apache.org/plugins/index.html Is CodeHaus (http://mojo.codehaus.org/plugins.html) 'the' site to go to now for plugin info? Or are these just additional plugins that aren't part of Maven proper? Thanks again -- Andrew Close - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Help with branching?
Hi gang, I need to branch from a prior release tag to fix a defect. I thought I had the right "process," but something is not happy. We do have the project enabled for the maven-release-plugin. Here are the steps I took: 1) Check code out of SVN from the previous release tag. 2) Using release:branch - mvn -DbranchName=Salient-0.9.22.1 -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false release:branch 3) Enter my version label when prompted "0.9.22.1-SNAPSHOT" (repeat for each sub-module [i couldn't get autoVersionSubmodules to play nice]) 4) Get an error: svn: Commit failed (details follow): svn: Source url 'svn://svn.enttek.com/allureglobal/dm/tags/salient-0.9.22' is from different repository Now, it's true that the SCM information in the POM gets updated such that it isn't the same as where the code was checked out from, but that shouldn't matter, should it? We're not going to modify the original sources - we're just creating the branch. Right? Maybe I'm going about this all wrong, but I didn't find much in the way of documents/blogs/stories on Google - at least, nothing that shed any light on this for me. Thanks, Dave - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Artifact Version Checker Plugin - where is it?
versions-maven-plugin though it's not designed to notify you during a build. It will produce reports telling you about updates available to you. It also has stand-alone mojos which will output to the console if there are newer versions available, but these mojos are not designed to be bound to the build lifecycle. -Stephen 2009/7/28 Andrew Close > I know I've seen this mentioned either somewhere in the plugins listed > on the maven site or on the mailing list, but can't seem to find it > now that I need it. :) > I'm looking for 'something' that will notify me during a build that a > more recent version of an artifact/dependency is available in the > repository for use. > > Thanks for any help. > > -- > Andrew Close > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Artifact Version Checker Plugin - where is it?
I know I've seen this mentioned either somewhere in the plugins listed on the maven site or on the mailing list, but can't seem to find it now that I need it. :) I'm looking for 'something' that will notify me during a build that a more recent version of an artifact/dependency is available in the repository for use. Thanks for any help. -- Andrew Close - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Plugin Issue
You cannot extend Mojos. Also that Mojo has been replaced towards 1.0-beta-1 as it made invalid assumptions about version numbering There are now much nicer reports... see: dependency-updates-report plugin-updates-report and (the one I am currently writing) property-updates-report Are you sure you need to write your own? 1.0-beta-1 should be being voted on for released in the next 5-10 days... and my plan is assuming a successfuly soak at beta for about 1 month, to release 1.0 in early september... at which point it's ramp up to doxia 1.1, jre 1.5 and maven 2.2.x -Stephen 2009/7/28 Jagannadh > > Hi, > > We are trying to extend maven-version-plugin as a standalone java > application to get latest available versions. If we run the plugin from > command-line, it works fine but our custom application fails. The following > is what we are trying to do: > > class OurMojo() extends DisplayDependencyUpdatesMojo { > OurMojo(String module) { >super(); >Model model = new Model(); >model.addModule(module); >MavenProject project = new MavenProject(model); >super.setProject(project); > } > ... > // set groupId, artifactId, version, type, classifier, scope > ... > public void execute() throws ... { > VersionRange versionRange = VersionRange.createFromVersionSpec( > version ); > > super.artifactFactory = new DefaultArtifactFactory(); > Artifact artifact = artifactFactory.createDependencyArtifact( groupId, > artifactId, versionRange, type, classifier, scope ); > > ArtifactVersion artifactVersion = findLatestVersion( artifact, > versionRange, null, false ); > System.out.println(artifactVersion); > } > } > > The above code fails at artifactFactory.createDependencyArtifact() with a > NullPointerException. On debug, we reach the following line in > DefaultArtifactFactory: > ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( type > ); > However, artifactHandlerManager is never set (or injected) in > DefaultArtifactFactory. > > Any ideas how to get it working? > > We are running the following configuration: > Maven 2.1.0 > maven-version-plugin 1.0-alpha-3 > -- > View this message in context: > http://www.nabble.com/Maven-Plugin-Issue-tp24698071p24698071.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: Archetype: escaping velocity properties.
Thanks Jesse, Worked like a charm. /James > -Original Message- > From: jie...@gmail.com [mailto:jie...@gmail.com] > Sent: 28 July 2009 13:24 > To: Maven Users List > Subject: Re: Archetype: escaping velocity properties. > > Hi James, > > I place the following at the top of all my velocity-processed > resources: > > #set( $symbol_pound = '#' ) > #set( $symbol_dollar = '$' ) > #set( $symbol_escape = '\' ) > > And then simply use those whenever I'd want to use the real > symbol, which is special to velocity. This works for me in > resources, remote-resources, and archetypes. > > -jesse > > On Tue, Jul 28, 2009 at 6:33 AM, Nord, James wrote: > > > > I'm creating an archetype but I need to escape some values so that > > velocity doesn't complain about them or even try and substitute them > > > > -- > There are 10 types of people in this world, those that can > read binary and those that can not. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ** - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Plugin Issue
Hi, We are trying to extend maven-version-plugin as a standalone java application to get latest available versions. If we run the plugin from command-line, it works fine but our custom application fails. The following is what we are trying to do: class OurMojo() extends DisplayDependencyUpdatesMojo { OurMojo(String module) { super(); Model model = new Model(); model.addModule(module); MavenProject project = new MavenProject(model); super.setProject(project); } ... // set groupId, artifactId, version, type, classifier, scope ... public void execute() throws ... { VersionRange versionRange = VersionRange.createFromVersionSpec( version ); super.artifactFactory = new DefaultArtifactFactory(); Artifact artifact = artifactFactory.createDependencyArtifact( groupId, artifactId, versionRange, type, classifier, scope ); ArtifactVersion artifactVersion = findLatestVersion( artifact, versionRange, null, false ); System.out.println(artifactVersion); } } The above code fails at artifactFactory.createDependencyArtifact() with a NullPointerException. On debug, we reach the following line in DefaultArtifactFactory: ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( type ); However, artifactHandlerManager is never set (or injected) in DefaultArtifactFactory. Any ideas how to get it working? We are running the following configuration: Maven 2.1.0 maven-version-plugin 1.0-alpha-3 -- View this message in context: http://www.nabble.com/Maven-Plugin-Issue-tp24698073p24698073.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 Plugin Issue
Hi, We are trying to extend maven-version-plugin as a standalone java application to get latest available versions. If we run the plugin from command-line, it works fine but our custom application fails. The following is what we are trying to do: class OurMojo() extends DisplayDependencyUpdatesMojo { OurMojo(String module) { super(); Model model = new Model(); model.addModule(module); MavenProject project = new MavenProject(model); super.setProject(project); } ... // set groupId, artifactId, version, type, classifier, scope ... public void execute() throws ... { VersionRange versionRange = VersionRange.createFromVersionSpec( version ); super.artifactFactory = new DefaultArtifactFactory(); Artifact artifact = artifactFactory.createDependencyArtifact( groupId, artifactId, versionRange, type, classifier, scope ); ArtifactVersion artifactVersion = findLatestVersion( artifact, versionRange, null, false ); System.out.println(artifactVersion); } } The above code fails at artifactFactory.createDependencyArtifact() with a NullPointerException. On debug, we reach the following line in DefaultArtifactFactory: ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( type ); However, artifactHandlerManager is never set (or injected) in DefaultArtifactFactory. Any ideas how to get it working? We are running the following configuration: Maven 2.1.0 maven-version-plugin 1.0-alpha-3 -- View this message in context: http://www.nabble.com/Maven-Plugin-Issue-tp24698072p24698072.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 Plugin Issue
Hi, We are trying to extend maven-version-plugin as a standalone java application to get latest available versions. If we run the plugin from command-line, it works fine but our custom application fails. The following is what we are trying to do: class OurMojo() extends DisplayDependencyUpdatesMojo { OurMojo(String module) { super(); Model model = new Model(); model.addModule(module); MavenProject project = new MavenProject(model); super.setProject(project); } ... // set groupId, artifactId, version, type, classifier, scope ... public void execute() throws ... { VersionRange versionRange = VersionRange.createFromVersionSpec( version ); super.artifactFactory = new DefaultArtifactFactory(); Artifact artifact = artifactFactory.createDependencyArtifact( groupId, artifactId, versionRange, type, classifier, scope ); ArtifactVersion artifactVersion = findLatestVersion( artifact, versionRange, null, false ); System.out.println(artifactVersion); } } The above code fails at artifactFactory.createDependencyArtifact() with a NullPointerException. On debug, we reach the following line in DefaultArtifactFactory: ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( type ); However, artifactHandlerManager is never set (or injected) in DefaultArtifactFactory. Any ideas how to get it working? We are running the following configuration: Maven 2.1.0 maven-version-plugin 1.0-alpha-3 -- View this message in context: http://www.nabble.com/Maven-Plugin-Issue-tp24698071p24698071.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-Working offline.
solved by configuring your CNTLM settings in settings.xml http://docs.codehaus.org/display/MAVENUSER/Configuring+Maven+behind+an+NTLM+proxy Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Tue, 28 Jul 2009 04:37:16 -0700 > From: siv...@hcl.in > To: users@maven.apache.org > Subject: Re: MAVEN-Working offline. > > > >>I think we are use NTLM authentication. > >>Also in the host-do i need to give my machine's host name?or > machine's+company's extension like "xxx.yyy.zzz.in" > >>We are behind a proxy which is blocking me to download. > -- > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24697571.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 > _ Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009&cat=sports
Re: Archetype: escaping velocity properties.
Hi James, I place the following at the top of all my velocity-processed resources: #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) And then simply use those whenever I'd want to use the real symbol, which is special to velocity. This works for me in resources, remote-resources, and archetypes. -jesse On Tue, Jul 28, 2009 at 6:33 AM, Nord, James wrote: > > I'm creating an archetype but I need to escape some values so that > velocity doesn't complain about them or even try and substitute them > -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MAVEN-Working offline.
2009/7/28 siva manoharan : > >>>I think we are use NTLM authentication. Oh then: http://docs.codehaus.org/display/MAVENUSER/Configuring+Maven+behind+an+NTLM+proxy HTH Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MAVEN-Working offline.
Host is not your machine, it is machine where proxy server runs. And really, why not ask your sysops? [?] 2009/7/28 siva manoharan > > >>I think we are use NTLM authentication. > >>Also in the host-do i need to give my machine's host name?or > machine's+company's extension like "xxx.yyy.zzz.in" > >>We are behind a proxy which is blocking me to download. > -- > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24697571.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-Working offline.
I think your sysops can help you with the right settings for your proxy. Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Jul 28, 2009 at 1:37 PM, siva manoharan wrote: > >>>I think we are use NTLM authentication. >>>Also in the host-do i need to give my machine's host name?or > machine's+company's extension like "xxx.yyy.zzz.in" >>>We are behind a proxy which is blocking me to download. > -- > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24697571.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 > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MAVEN-Working offline.
>>I think we are use NTLM authentication. >>Also in the host-do i need to give my machine's host name?or machine's+company's extension like "xxx.yyy.zzz.in" >>We are behind a proxy which is blocking me to download. -- View this message in context: http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24697571.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-Working offline.
You think this gonna help you much? [?] Give us what kind of setting are you trying to set up and we gonna find what is wrong. Anyway: centaur true http centaur 8000 We have transparent authentication. 2009/7/28 siva manoharan > > >>I changed the settings,but am not sure whether it is rite. > >>I have some doubts in that settings. > >>could you send me an example proxy settings in settings .xml. > >>so that i can make sure that i tried it rite > >>I dont want the one which is given in the documentation,something else > with practical values in the fields of username,host,port etc.. > -- > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24697165.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-Working offline.
>>I changed the settings,but am not sure whether it is rite. >>I have some doubts in that settings. >>could you send me an example proxy settings in settings .xml. >>so that i can make sure that i tried it rite >>I dont want the one which is given in the documentation,something else with practical values in the fields of username,host,port etc.. -- View this message in context: http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24697165.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
Archetype: escaping velocity properties.
Hi all, I'm creating an archetype but I need to escape some values so that velocity doesn't complain about them or even try and substitute them However I tried \${value} as recommended in [1] but this gets put in the final pom as "\${value}" and not "${value}" How do you escape these values so you can end up with ${value} in the final pom that is generated from an archetype? The only thing I could find was MRESOURCES-29 [2] but this seems to be specifically for the resources plugin and not relevant to the Archetype plugin. /James [1] http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html# escapingvalidvtlreferences [2] http://jira.codehaus.org/browse/MRESOURCES-29 ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 **
Re: MAVEN-Working offline.
What kind of authentication your proxy server is using? What settings you added? Be sure you already read this http://maven.apache.org/guides/mini/guide-proxies.html. BTW you really gonna die eventually by downloading all dependencies for your project manually. [?] 2009/7/28 siva manoharan > > >>Yes we have our company proxy. > > >>Am not clear on how to change the settings.xml. proxy configuration. > > >>I tried configuring it,but it displayed authentication failed. > -- > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24696543.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-Working offline.
>>Yes we have our company proxy. >>Am not clear on how to change the settings.xml. proxy configuration. >>I tried configuring it,but it displayed authentication failed. -- View this message in context: http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24696543.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-Working offline.
How do you access to internet? Via proxy server maybe? [?] 2009/7/28 siva manoharan > > > Hi Nick , > > >>First of all thanks for replying.. > >>Do i have to download anything.If so from where(site?),and where to put > that in my machine. > >>Am asking this because ,my company policy is not allowing me to connect > the repository when i run a command > -- > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24696391.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-Working offline.
Hi Nick , >>First of all thanks for replying.. >>Do i have to download anything.If so from where(site?),and where to put that in my machine. >>Am asking this because ,my company policy is not allowing me to connect the repository when i run a command -- View this message in context: http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24696391.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-Working offline.
Hello, Also you could download all dependencies by dependency plugin and then go offline. Read more there http://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html [?] And then run maven with -o or --offline parameter. 2009/7/28 Nick Stolwijk > With the -o option you can tell maven to work offline. It is required > that all the plugins and dependencies are already in your local > repository. > > Hth, > > Nick Stolwijk > ~Java Developer~ > > IPROFS BV. > Claus Sluterweg 125 > 2012 WS Haarlem > http://www.iprofs.nl > > > > On Tue, Jul 28, 2009 at 11:39 AM, siva manoharan wrote: > > > > Hi, > > > >>>I ve installed MAVEN,while trying to run a simple command,it says" > > org.apache.maven.plugins" could not be retrieved from the > > repository...Repository central wil be blacklisted. > > > >>>I cant download every time it builds. > >>>What the steps to work offlline. > > > > -- > > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24695882.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 > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: MAVEN-Working offline.
With the -o option you can tell maven to work offline. It is required that all the plugins and dependencies are already in your local repository. Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Jul 28, 2009 at 11:39 AM, siva manoharan wrote: > > Hi, > >>>I ve installed MAVEN,while trying to run a simple command,it says" > org.apache.maven.plugins" could not be retrieved from the > repository...Repository central wil be blacklisted. > >>>I cant download every time it builds. >>>What the steps to work offlline. > > -- > View this message in context: > http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24695882.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 > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
MAVEN-Working offline.
Hi, >>I ve installed MAVEN,while trying to run a simple command,it says" org.apache.maven.plugins" could not be retrieved from the repository...Repository central wil be blacklisted. >>I cant download every time it builds. >>What the steps to work offlline. -- View this message in context: http://www.nabble.com/MAVEN-Working-offline.-tp24695882p24695882.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: Primary and secondary dependencies
_ant:ant:jar:1.6.5:provided_ would not be packaged in your ear. it's scope is provided, which mean Maven will assume it will be provided by the environment, like web container. On Mon, Jul 27, 2009 at 11:19 PM, monkeyden wrote: > > Thanks for the reply Jonathan. Here (below) is an example. Ant 1.6.5 is a > transitive dependency of my ejb jar module. As you can see, it's set to > "provided" all the way through, yet it ends up in my ear. Based on my > (quite possibly wrong) understanding of dependency scope, it shouldn't be. > Thanks. > > > > +- com.mycompany.myapp.ws:ids-seam-ws-ejb:ejb:1.0:provided > [INFO] | +- quartz:quartz:jar:1.5.2:provided > [INFO] | +- org.jboss.portal.portlet:portlet-portlet:jar:2.0.4:provided > [INFO] | | +- javax.portlet:portlet-api:jar:2.0:provided > [INFO] | | +- org.jboss.portal.common:common-portal:jar:1.2.2:provided > [INFO] | | +- org.jboss.portal.web:web-web:jar:1.2.2:provided > [INFO] | | | +- org.jboss.portal.common:common-common:jar:1.2.2:provided > [INFO] | | | | +- javax.activation:activation:jar:1.1:provided > [INFO] | | | | +- jboss:jboss-j2ee:jar:4.2.0.GA:provided > [INFO] | | | | +- ant:ant:jar:1.6.5:provided > > > > > > Jonathan Woods wrote: > > > > I find the phrase "they are not transitive" a bit confusing here. > Anyway, > > the way it should work is shown in the table at > > > http://maven.apache.org/guides/introduction/introduction-to-dependency-mecha > > nism.html#Dependency_Scope, which shows that the scope of dependencies > > contributed by your 'provided' dependency should never be greater than > > 'provided'. In other words, you shouldn't be getting the transitive deps > > either... but I have no explanation as to why you might be! Are you sure > > some other dependency which is tighter than 'provided' isn't bringing > them > > in? > > > > Try running mvn dependency:tree on your project and seeing what it > > tells > > you. > > > > Jon > > > >> -Original Message- > >> From: monkeyden [mailto:monk...@monkeyden.com] > >> Sent: 24 July 2009 17:50 > >> To: users@maven.apache.org > >> Subject: Re: Primary and secondary dependencies > >> > >> > >> Based on this definition, which comes from the maven docs, I > >> should NOT get the "primary" dependency in my build, but what > >> about the transitive dependencies? Do you suggest I should > >> not be seeing this behavior when the primary dependency is > >> provided? thanks again. > >> > >> provided > >> provided dependencies are used when you expect the JDK or a > >> container to provide them. For example, if you were > >> developing a web application, you would need the Servlet API > >> available on the compile classpath to compile a servlet, but > >> you wouldn't want to include the Servlet API in the packaged > >> WAR; the Servlet API JAR is supplied by your application > >> server or servlet container. provided dependencies are > >> available on the compilation classpath (not runtime). They > >> are not transitive, nor are they packaged. > >> > >> > >> > >> > >> Juven Xu wrote: > >> > > >> > they are _transitive_ dependencies :) but you name them _secondary_ > >> > dependencies :) > >> > > >> > you would want to read this document: > >> > > >> http://www.sonatype.com/books/maven-book/reference/pom-relationships-s > >> > ect-project-dependencies.html > >> > > >> > On Sat, Jul 25, 2009 at 12:41 AM, monkeyden > >> wrote: > >> > > >> >> > >> >> I have the scope of some 3rd party dependencies set to "provided", > >> >> but keep getting all the secondary dependencies in my > >> build. I have > >> >> 3 versions of ant, when I don't even need 1. > >> >> > >> >> How best to prevent secondary dependencies from being > >> added to the build? > >> >> > >> >> Do the secondary dependencies inherit scope from the primary > >> >> dependency or do they sneak in? I'd prefer not to > >> explicitly do any > >> >> of this for secondaries. > >> >> > >> >> thanks > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/Primary-and-secondary-dependencies-tp24647841p2 > >> >> 4647841.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 > >> >> > >> >> > >> > > >> > > >> > -- > >> > - juven > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Primary-and-secondary-dependencies-tp246 > > 47841p24647985.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 > >> > > > > > > -