Re: how to hanlde .run binary as a maven artifact
Chad, instead of run I think you use - run -Wes On Thu, Feb 9, 2012 at 3:38 PM, wrote: > > >> 2) How do I go about getting my .run binary installed into nexus by maven, >> i.e. by the deploy phase? Note, I've already figured out how to get my build >> to put the .run file into the target directory, so I really just need to >> figure out >> how to get maven to deploy it, right? Thanks! >> >> Use the build helper plugin with the attach-artifact goal and bind it to the >> appropriate life cycle phase after it is generated .. then mvn deploy will >> push >> it to your repo. > > So, my packaging would remain "pom", and I would be attaching it a .run file > as an additional artifact . . . that make's sense. > > How then would my dependency look in the poms that depend upon the .run > artifact? Like the following? > > > com.mygroup > myproj > run > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Searchkng a repository
http://www.jarvana.com -Wes On Wed, Aug 11, 2010 at 4:41 PM, Refr Bruhl wrote: > > Team > > I would like to find if a particular package has been uploaded to the primary > maven repository. How do I search and see if it has? > > > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: eXist native XML database
Adam, I work on the struts project here at apache, but I am getting pretty good with maven ;) I'd like to help you guys port to maven... I don't use exist, but came across it recently and was very interested. If you don't mind, I'll start perusing the source and send you questions off-list. Is there a developers mailing list for eXist? -Wes On Fri, May 28, 2010 at 4:59 AM, Adam Retter wrote: > > Hi there I am one of the eXist developers. > > We certainly are interested in what our users want, but as yet we have > only had 2 or 3 express an interest in using Maven it is unfortunately > not a top priority for us at the present time. > > I myself am a big fan of Maven, and would love to do a port of eXist > from Ant (we are heavily invested), over to Maven. Unfortunately I just > don't have enough hours in the day at present to undertake this. > > If there is an experienced Maven developer out there that might be > interested in contributing such changes then I would certainly encourage > that. > > For the time being the solution is really to place eXist and its > dependencies into your own artifact repository (either local or server > e.g. Artifactory et al.) > > Thanks Adam. > > > -Original Message- > From: Wayne Fay [mailto:wayne...@gmail.com] > Sent: 09 May 2010 19:00 > To: Maven Users List > Subject: Re: eXist native XML database > >> I'm working on maven project and I need to use embedded eXist > database. >> Unfortunatelly, there is only 5 years old version in repo1.maven.org. > > You need to get the eXist people to do the uploads for newer versions > of their files. If enough eXist users and developers care about Maven, > they will do it. > >> how could I tell maven developers to add required packages to the >> repository? > > You don't. If you can't get the eXist folks to get it done, you will > need to (less ideally) manually install them into your own local repo > cache on each machine that will build your project or (more ideally) > install something like Nexus, Archiva, Artifactory and install them > there so your coworkers can use the artifacts too. > > Wayne > > - > 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 > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to unit testing (sub)module that uses DI?
There are two ways I usually solve this problem. The choice between the two (for me) is usually a matter of how deep I want the testing to go. In many cases, I use spring injection from my unit tests by combining JUnit's @RunWith annotation and some Spring Annotations. Here is an example - @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {"classpath*:applicationContext-test.xml"}) public class StockInfoManagerTest { @Autowired @Qualifier("stockInfoDao") private GenericDao stockInfoDao; This is mostly self-explanatory... However, I will mention that I usually don't point to the same applicationContext.xml file that I would use for production. In this case, I configure spring to instantiate and talk to an hsqldb database. Then I can push stuff in and then pull it back out to ensure that database operations complete successfully. In many other cases, I prefer a "mocking" approach. Here is an example - �...@test public void executeTest() throws Exception { // setup the mock object final StockInfoManager stockInfoManager = context.mock(StockInfoManager.class); // create expectations for mock object's execution context.checking(new Expectations() {{ oneOf(stockInfoManager).getAll(); will(returnValue(new ArrayList())); }}); What mocking does is create a proxy that records requested operations and behaves the way you describe it. The advantage of mocking is that you don't have to worry about fully populating dependencies, etc. If I feel like the implementations that get wired in at production have already been properly tested, then I will use mocking to test. In my case, typically, I will fully test services by wiring them with Spring and having them hit a test database (usually embedded like hsqldb or derby). Then, once I am confident that the services do what they advertise, I will unit test the user interface actions (Struts 2 actions, in my case), but injecting mocked services and work on making sure that the actions operate the way I intend (by setting the mock's expectations then interacting with the action the way I expect the framework to call them). Of course, this is really somewhat outside of the scope of a maven-users list... If you want to get into the theory of good unit testing, I think there are a few good books out there. Otherwise, just get familiar with at least these two techniques and try to consistently apply a set of practices that best tests your code (as opposed to attempting to test each and every element of your application's setup). -Wes On Mon, May 3, 2010 at 9:15 AM, Dan King wrote: > Hi all, > > I have a webapp (sub)module that uses Spring's dependency injection; how > can/should I load the application context so I may run the unit tests for > this module? > > Once all the modules are complete, I will add them to the webapp as > "dependencies" and load the application context via the web container and > Spring's "ContextLoaderListener." > > -Dan > > > > > > > ----- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release plugin and updating a release with some fixes
If you're not using release:perform and you aren't pushing a "blessed" jar anywhere (i.e. nexus), then you could just mvn release:rollback (it might not be rollback, but there is some command that rolls things back). Then, make your fixes and do release:prepare again. I will add that the whole thing sounds a bit hackish and you should get an MRM. Then, if you find bugs, you can make a branch based on the 1.5 tag, fix your bugs, then merge the changes back to trunk. You can also release from the branch and name it 1.5.1 (or similar). -Wes On Wed, Apr 28, 2010 at 10:23 AM, napple fabble wrote: > > I use release plugin to update my pom.xml and create tags in subversion. > > I just created a new release with it. While development was ongoing, my > pom.xmls had version 1.5-SNAPSHOT. Release plugin created tag "1.5" and > updated my trunk to 1.6-SNAPSHOT. So everything is as I want. > > The only thing I need to do is "mvn release:prepare". This creates the > correct tag and updates trunk as I want it to. I haven't had any need for > release:perform. > > QUESTION: What do I do when I find some last bugs while installing the > release and want to fix them. I would ideally like to have both 1.5 tag and > the trunk (1.6-SNAPSHOT) updated with the fixes. Can I do this somehow > conveniently with release plugin, or do I have to do it manually (if so, > what's the best approach? just fix trunk and copy the changed to the tag?). > -- > View this message in context: > http://maven-users.828.n2.nabble.com/Release-plugin-and-updating-a-release-with-some-fixes-tp4974743p4974743.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 > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help figuring out the Maven dependency
I like to use www.jarvana.com I would assume the Sonatype one is similar (haven't used it), but I figured I'd point out the alternative :) -Wes On Tue, Jan 5, 2010 at 2:36 PM, laredotornado wrote: > > Thanks paulv! That sonatype link is gold. > > As a follow-up, what is a web site that would tell me what dependencies a > certain dependency required? I'm using an older version of Maven (1.1) to > do builds so I have to handle the dependencies myself. > > Thanks, - Dave > > > paulv wrote: >> >> Use the classname search: >> http://repository.sonatype.org/index.html#welcome >> >>> -Original Message- >>> From: laredotornado [mailto:laredotorn...@gmail.com] >>> Sent: Monday, January 04, 2010 4:47 PM >>> To: users@maven.apache.org >>> Subject: Help figuring out the Maven dependency >>> >>> >>> Hi, >>> >>> I'm trying to figure out the appropriate Maven dependency so >>> that I can include this class >>> >>> org.openejb.client.LocalInitialContextFactory >>> >>> in my project's classpath. Does anyone know what the >>> dependency is or a more reliable way of tracking down what >>> JAR file a class is included in? >>> >>> Thanks, - Dave >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Help-figuring-out-the-Maven-dependency-t >>> p27020637p27020637.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 >>> >>> >> >> >> -Message Disclaimer- >> >> This e-mail message is intended only for the use of the individual or >> entity to which it is addressed, and may contain information that is >> privileged, confidential and exempt from disclosure under applicable law. >> If you are not the intended recipient, any dissemination, distribution or >> copying of this communication is strictly prohibited. If you have >> received this communication in error, please notify us immediately by >> reply email to conn...@principal.com and delete or destroy all copies of >> the original message and attachments thereto. Email sent to or from the >> Principal Financial Group or any of its member companies may be retained >> as required by law or regulation. >> >> Nothing in this message is intended to constitute an Electronic signature >> for purposes of the Uniform Electronic Transactions Act (UETA) or the >> Electronic Signatures in Global and National Commerce Act ("E-Sign") >> unless a specific statement to the contrary is included in this message. >> >> While this communication may be used to promote or market a transaction >> or an idea that is discussed in the publication, it is intended to provide >> general information about the subject matter covered and is provided with >> the understanding that The Principal is not rendering legal, accounting, >> or tax advice. It is not a marketed opinion and may not be used to avoid >> penalties under the Internal Revenue Code. You should consult with >> appropriate counsel or other advisors on all matters pertaining to legal, >> tax, or accounting obligations and requirements. >> >> >> --------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/Help-figuring-out-the-Maven-dependency-tp27020637p27026697.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 > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: question re: CI builds and maven.
I use CI to make sure that unit tests all still pass in other artifacts. For instance, I make changes in artifactA and somewhere down a dependency chain, artifactB is affected... I may not realize that my change breaks artifactB, I may not even know that artifactB exists, but if the CI build shows test failures, someone knows where to start looking (the changes the initiated the build?). The CI does push to our nexus repo, but to me the fact that it can do that is irrelevant. -Wes On Thu, Sep 10, 2009 at 4:20 PM, James Russo wrote: > Hello, > > This is likely more of a software engineering related maven question. With > the concept of snapshots and versioned artifacts where would a continuous > build system come into place? How do others use it? I guess you really have > two options, the CI system can produce snapshots or it can produce version'd > releases. I would imagine that you would want to have the CI server publish > these artifacts back to your local internal repository.. > > So, how do others use continuous integration servers like hudson in their > maven environment? > > thanks! > -jr > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: JAVA_HOME is not defined correctly!
Does maven require a JDK and you are running a JRE? I'm running a basic "stock" install of Ubuntu Jaunty and haven't had any problems running maven. -Wes On Tue, Sep 8, 2009 at 11:59 AM, Babak Shafian wrote: > > Thanks for the quick response! > >>did you try to run java -version ??> > > Yes I tried and I get : > > java version "1.6.0_14" > Java(TM) SE Runtime Environment (build 1.6.0_14-b08) > Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode) > > >> it seems, that JAVA_HOME is set correctly, at least maven complains that it >> cannot run /user/lib/jvm/java-6-sun/bin/java, while it has the directory >> info apparently from JAVA_HOME. What happens if you want to execute >> /user/lib/jvm/java-6-sun/bin/java from the shell directly? >> > > After executing that(if I understood you correctly) I get actually nothing > special: > > r...@ubuntu-jaunty-amd64-webtv:/usr/lib/jvm/java-6-sun/bin# java > > Usage: java [-options] class [args...] > (to execute a class) > or java [-options] -jar jarfile [args...] > (to execute a jar file) > > > >> >> > -Original Message- >> > From: Babak Shafian [mailto:babak...@hotmail.com] >> > Sent: Tuesday, September 08, 2009 5:17 PM >> > To: users@maven.apache.org >> > Subject: JAVA_HOME is not defined correctly! >> > >> > >> > Hi Volks, >> > >> > just installed Maven with Ubuntu. After typing mvn --version I get the >> > following message: >> > >> > Error: JAVA_HOME is not defined correctly. >> > We cannot execute /user/lib/jvm/java-6-sun/bin/java >> > >> > And I'm pretty sure that the JAVA_HOME is correctly set in etc/bash.bashrc: >> > >> > export JAVA_HOME=/user/lib/jvm/java-6-sun >> > export PATH=$PATH:/user/lib/jvm/java-6-sun/bin >> > >> > Do you have any idea what could be the problem?? >> > BTW. I've searched through google and archives! >> > >> > Thanks in advance >> > Babak >> > >> > >> > >> > _ >> > With Windows Live, you can organize, edit, and share your photos. >> > http://www.microsoft.com/middleeast/windows/windowslive/products/photo- >> > gallery-edit.aspx >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > _ > More than messages–check out the rest of the Windows Live™. > http://www.microsoft.com/windows/windowslive/ -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Tomcat Maven Plugin doesn't seem to take webapps/META-INF/context.xml into account
Did you try moving META-INF/context.xml to src/main/resources? -Wes On Thu, Aug 20, 2009 at 4:10 AM, nodje wrote: > > I'm trying to make use of context.xml with the Tomcat Maven Plugin. > > Whether I use tomcat:run or tomcat:deploy, it invariably deploys to a > context based on the pom's artifactId an not to the context path specified > in the webapps/META-INF/context.xml. > > Has anyone met the issue? > > -- > View this message in context: > http://www.nabble.com/Tomcat-Maven-Plugin-doesn%27t-seem-to-take-webapps-META-INF-context.xml-into-account-tp25057794p25057794.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 > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Our Love & Hate Relationship with Apache Maven
stsbcorporatemarkets.com/> >> >> >> >> >> >> >> >> >> >> >> >> This e-mail is private and confidential and may contain privileged >> >> material. If you have received this e-mail in error, please notify the >> >> sender and delete it immediately. You must not copy, distribute, disclose >> >> or use any of the information in it or any attachments. >> >> >> >> Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V >> >> 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 >> >> 1500. >> >> >> >> Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 >> >> George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. >> >> Telephone: 0131 225 4555. >> >> >> >> Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester >> >> GL4 3RL. Registered in England and Wales, number 2299428. Telephone: >> >> 01452 372372. >> >> >> >> Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc. >> >> Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham & Gloucester >> >> plc are authorised and regulated by the Financial Services Authority. >> >> >> >> Lloyds Banking Group plc. Registered Office: Henry Duncan House, 120 >> >> George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. >> >> Telephone: 0131 225 4555. >> >> >> >> Lloyds Banking Group plc is a signatory to the Banking Codes. >> >> >> >> Telephone calls may be monitored or recorded. >> >> >> >> >> >> __ >> >> This email has been scanned by the MessageLabs Email Security System. >> >> For more information please visit http://www.messagelabs.com/email >> >> __ >> > >> > _ >> > Windows Live: Keep your friends up to date with what you do online. >> > http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009 >> >> >> >> -- >> Wes Wannemacher >> >> Head Engineer, WanTii, Inc. >> Need Training? Struts, Spring, Maven, Tomcat... >> Ask me for a quote! >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > _ > With Windows Live, you can organize, edit, and share your photos. > http://www.windowslive.com/Desktop/PhotoGallery -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Our Love & Hate Relationship with Apache Maven
There's a link to an MP3 download. -Wes On Tue, Aug 18, 2009 at 1:39 PM, Martin Gainty wrote: > > Peter > > maybe a problem with my browser settings.. but no content posted to > referenced URL > > cheers > Martin > __ > 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. > > > > >> Subject: Our Love & Hate Relationship with Apache Maven >> Date: Tue, 18 Aug 2009 17:26:19 +0100 >> From: peter.pilg...@lloydsbanking.com >> To: users@maven.apache.org >> >> Our Love & Hate Relationship with Apache Maven >> >> http://audioboo.fm/boos/55096-our-love-hate-relationship-with-apache-mav >> en >> >> >> >> And yes this is only my opinion and we still love it! >> >> -- >> >> Peter Pilgrim | E-Channel Services Technical Lead, Products & Markets >> >> Lloyds TSB Bank plc, Corporate Markets, 10 Gresham Street, London, EC2V >> 7AE, UK >> >> ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 >> >> * peter.pilg...@lloydstsb.co.uk >> >> * www.lloydstsbcorporatemarkets.com >> <http://www.lloydstsbcorporatemarkets.com/> >> >> >> >> >> >> This e-mail is private and confidential and may contain privileged material. >> If you have received this e-mail in error, please notify the sender and >> delete it immediately. You must not copy, distribute, disclose or use any of >> the information in it or any attachments. >> >> Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. >> Registered in England and Wales, number 2065. Telephone: 020 7626 1500. >> >> Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George >> Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: >> 0131 225 4555. >> >> Cheltenham & Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 >> 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 >> 372372. >> >> Cheltenham & Gloucester Savings is a division of Lloyds TSB Bank plc. >> Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham & Gloucester plc >> are authorised and regulated by the Financial Services Authority. >> >> Lloyds Banking Group plc. Registered Office: Henry Duncan House, 120 George >> Street, Edinburgh EH2 4LH. Registered in Scotland, number 95000. Telephone: >> 0131 225 4555. >> >> Lloyds Banking Group plc is a signatory to the Banking Codes. >> >> Telephone calls may be monitored or recorded. >> >> >> __________ >> This email has been scanned by the MessageLabs Email Security System. >> For more information please visit http://www.messagelabs.com/email >> __ > > _ > Windows Live: Keep your friends up to date with what you do online. > http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009 -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: jaxws-maven-plugin issues
I think it means that you have to add the jax-ws runtime as a dependency in your project. -Wes On Fri, Aug 7, 2009 at 3:48 PM, monkeyden wrote: > > Thanks for the reply Wes. I'm not completely in business, but I think I've > progressed thanks to you. At least it's trying to execute wsgen. I now get > this error, which I've seen elsewherealso without a solution. > > Embedded error: javax/jws/WebService > [INFO] > > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > wsgen > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute > wsgen > at > org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:102) > at > org.codehaus.mojo.jaxws.MainWsGenMojo.execute(MainWsGenMojo.java:14) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > ... 16 more > Caused by: java.lang.NoClassDefFoundError: javax/jws/WebService > at > com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass(WsgenOptions.java:215) > at > com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions.java:197) > at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:118) > at com.sun.tools.ws.WsGen.doMain(WsGen.java:69) > at > org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:97) > ... 19 more > > > > Wes Wannemacher wrote: >> >> Try attaching it to a phase that happens after compile, maybe >> process-classes - >> >> >> org.codehaus.mojo >> jaxws-maven-plugin >> 1.7 >> >> >> >> wsgen >> >> process-classes >> >> com.symcare.intouch.test.HelloWorld >> true >> true >> >> >> >> >> >> >> >> On Fri, Aug 7, 2009 at 2:02 PM, monkeyden wrote: >>> >>> So now I'm getting this error, which I think is fixable. >>> >>> [INFO] [jaxws:wsgen {execution: default}] >>> Class not found: "com.mycompany.intouch.test.HelloWorld" >>> >>> How do I go about running the compiler in a phase prior to the >>> jaxws-plugin >>> running, so the class is available for WS wiring? >>> >>> >>> monkeyden wrote: >>>> >>>> Does anyone have working example of the jaxws-maven-plugin? I have seen >>>> many posts on the web and all seem to have problems with it. They all >>>> seem >>>> to relate to a version problem with the jaxws-api dependency and the >>>> repository in which it is found. The central repo apparently has an >>>> incorrect version. It seems we have to cobble this thing together to >&
Re: jaxws-maven-plugin issues
Try attaching it to a phase that happens after compile, maybe process-classes - org.codehaus.mojo jaxws-maven-plugin 1.7 wsgen process-classes com.symcare.intouch.test.HelloWorld true true On Fri, Aug 7, 2009 at 2:02 PM, monkeyden wrote: > > So now I'm getting this error, which I think is fixable. > > [INFO] [jaxws:wsgen {execution: default}] > Class not found: "com.mycompany.intouch.test.HelloWorld" > > How do I go about running the compiler in a phase prior to the jaxws-plugin > running, so the class is available for WS wiring? > > > monkeyden wrote: >> >> Does anyone have working example of the jaxws-maven-plugin? I have seen >> many posts on the web and all seem to have problems with it. They all seem >> to relate to a version problem with the jaxws-api dependency and the >> repository in which it is found. The central repo apparently has an >> incorrect version. It seems we have to cobble this thing together to get >> it to work. >> >> I think just the plugin declaration and the repositories used should be >> enough. Here is what I have so far >> >> >> >> >> >> java.net - Dev >> https://maven-repository.dev.java.net/repository >> legacy >> >> >> >> java.net - Maven2 >> http://download.java.net/maven/2 >> legacy >> >> >> >> >> >> org.codehaus.mojo >> jaxws-maven-plugin >> 1.7 >> >> >> >> wsgen >> >> >> com.symcare.intouch.test.HelloWorld >> true >> true >> >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/jaxws-maven-plugin-issues-tp24869071p24869452.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 > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven eclipse plugin and wtp
On Tue, Aug 4, 2009 at 9:56 AM, Martin Gainty wrote: > > m2 is the better solution if you need to debug > curious as to what term CI means? > CI = continuous integration... Things like Hudson, Bamboo, Continuum. -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven eclipse plugin and wtp
On Tue, Aug 4, 2009 at 9:27 AM, massive.boisson wrote: > > Hi, I have a maven project (that is web project by its nature) and I want to > run it in eclipse as WTP project. > > I found command (on > http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html): > mvn -Dwtpversion=R7 eclipse:eclipse > Where wtpversion can be R7, 1.0, 1.5, 2.0 or none (default). > > > As current wtp version is 3.1, can I use > mvn -Dwtpversion=3.1 eclipse:eclipse > > > Or is there a new or prefered way to do this? > > When you specify the WTP version, you are telling the plugin which type of configuration to generate. Eclipse has the ability to "import" from older versions, so even though WTP version 2.0 is from '08, it shouldn't hurt to use 2.0, then let eclipse import it. At the same time, when using the eclipse plugin, you should ask yourself which you want to depend on more, eclipse or maven? Eclipse and maven both handle many similar tasks, but if you use the eclipse functionality, you are locked into eclipse... There are many eclipse tools that are helpful, but for building and testing, I prefer to leave it to maven. That being the case, what does WTP give you that is most important? IMO, it's the ability to run your web-app right from the IDE... You can install a tomcat runtime right in WTP and tell eclipse to run your web-app in it. If this is the feature you are looking for, then I would say that you could do one better and use the maven-tomcat-plugin to get the same functionality. Instead of using the maven-eclipse-plugin to generate eclipse configuration files, try using the m2eclipse eclipse plugin to have eclipse become more "maven-aware". Then, you can create an eclipse run configuration that launches 'mvn tomcat:run'. You will have the ability to debug your web-app using the eclipse debugger. In addition, you will also have the nifty pom editory that comes with m2eclipse. This will leave you with a project that is more portable across IDEs, in case someone on your team later decides to use something other than eclipse. In addition, your build/test process can be run in a CI environment like hudson. -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-shade-1.2?
2009/7/15 Martin Gainty : > > someone from struts put in a hard version tag of 1.2 for building xwork 2.1.2 > (instead of the more recent shade-plugin-1.2.1) > Make sure you file a JIRA with xwork. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-shade-1.2?
http://maven.apache.org/plugins/maven-shade-plugin/source-repository.html -Wes 2009/7/15 Martin Gainty : > > desperately trying to locate maven-shade 1.2 > i see maven-shade 1.0? > i also maven-shade 1.2.2-SNAPSHOT? > > i'll take the source and build here if someone knows maven-shade-plugin > source location > thanks > Martin Gainty > __ > Jogi és Bizalmassági kinyilatkoztatás/Verzicht und > Vertraulichkeitanmerkung/Note de déni et de confidentialité > Ez az > üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy > jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának > készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és > semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek > könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet > ezen üzenet tartalma miatt. > > 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. > > > > _____ > Windows Live™ SkyDrive™: Get 25 GB of free online storage. > http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Preventing Inclussion of Multiple Versions
On Wednesday 08 July 2009 13:52:59 daniel.green wrote: > daniel.green wrote: > > Apparently struts2-core is bringing in org.freemarker:freemarker > > And, uh, struts2-annotations (1.0.2) is bringing in > freemarker:freemarker...!? You think they'd remain consistent > I'm jumping in late (sorry), so I didn't see the original pom file. Why are you bringing in such an old struts2-annotations? I'm pretty sure I did some work on that recently and it has a later version. If you find some inconsistencies, let me know and I'll fix them up, I'm gearing up to roll another release in the near future, which includes (among other things) updates to dependencies that we haven't touched in a while (commons- logging and things like that). -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: artifacts not downloading
On Wed, Jun 24, 2009 at 2:21 AM, Barrie Treloar wrote: > > Run > mvn help:effective-pom > epom.txt > > This will show you the complete defined in the inheritance > chain. > > You can also check your settings.xml to see whether you are pointing > to something wierd. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > Thanks, I'll run run that and see what I find. It's not a critical problem for me right now, and I have been meaning to run analyze dependencies, etc. to clean up some of our poms. As far as the settings.xml, I only brought it up because this was a new laptop I had just bought. I was so excited about getting new hardware that I downloaded/installed ubuntu, java, maven and IDEA. The first thing I did was try to run a build and ended up with the same problem I had previously. When I look at the HTML, it points to another location, but at the "new" location, I get a 404. Assuming that it is a mirror (that isn't really fully mirroring), it would make sense that running again later, the build worked (which it did). I'll check the effective poms because I'm sure that if it were one of the commonly used mirrors, I wouldn't be the only one having the problem. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher
Re: artifacts not downloading
It is a large multi-module build (the struts2 build, in fact) and a quick glance/grep through poms didn't yield any obvious entries pointing to download.java.net, but I will dig further tomorrow. I noticed the same thing at my office recently and I did get around it by using nexus. I just wasn't sure if it was my build or if others had noticed that artifacts weren't where maven was looking. -Wes On Wed, Jun 24, 2009 at 12:41 AM, Barrie Treloar wrote: > On Wed, Jun 24, 2009 at 1:54 PM, Wes Wannemacher wrote: >> Hello, >> >> Lately I have noticed that while building, maven is downloading its >> dependencies, but once in a while, an artifact will come over >> incorrectly (I suspect a bad mirror somewhere). For instance, if I >> look at the contents of >> ~/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar I see - >> >> cat /home/wesw/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar >> >> >> 301 Moved Permanently >> >> Moved Permanently >> The document has moved > href="http://download.java.net/maven/2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar";>here. >> >> Apache Server at maven2-repository.dev.java.net Port 443 >> >> >> It is helpful that they tell me where to find it, but how can I make >> maven understand that? > > Do you have multiple s defined in your pom? > > I can download > http://repo1.maven.org/maven2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar > fine. > > However if I go to http://download.java.net/maven/2/cglib/cglib/ you > can see there is only one version 2.2_beta1/ (and no cglib-full at > all) > > I suspect that you have included another repository that is claiming > to have that artifact - when in fact it doesn't. > It is very bad for a repository to delete or move an artifact. > > You may be able to get around this by fixing your declarations. > You may be able to get around this by using a repository manager like > archiva or nexus. > > Good luck. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
artifacts not downloading
Hello, Lately I have noticed that while building, maven is downloading its dependencies, but once in a while, an artifact will come over incorrectly (I suspect a bad mirror somewhere). For instance, if I look at the contents of ~/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar I see - cat /home/wesw/.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar 301 Moved Permanently Moved Permanently The document has moved http://download.java.net/maven/2/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar";>here. Apache Server at maven2-repository.dev.java.net Port 443 It is helpful that they tell me where to find it, but how can I make maven understand that? -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Creating RPM package under Windows XP
Cygwin is a bit of a PITA, IMO. AFAIK, you have to download the setup.exe and run it. It should list what you can install. You'll have to look thoroughly through the packages and find rpm-build. I think Cygwin itself is just a DLL that implements the necessary system calls to make the ports work. So, I don't think you have to worry as much about the Cygwin version as you have to worry about the packages that are installed in it. -Wes On Mon, Jun 22, 2009 at 9:38 AM, Danny Schimke wrote: > I have installed Cygwin, but I don't know which version. How can I check > this? My cygwin installation has no rpm tools at least I have not seen > Are they part of the latest version of Cygwin and have I to reinstall or > can > I add packages to my current cygwin installation? > > Thank you very much for helping me so quickly. > > -Danny > > 2009/6/22 Todd Thiessen > > > Yes that would work too. We have a team here that has done exactly that > > to get the rpmbuild command available on Windows. > > > > --- > > Todd Thiessen > > > > > > > -Original Message- > > > From: Wes Wannemacher [mailto:w...@wantii.com] > > > Sent: Monday, June 22, 2009 9:23 AM > > > To: Maven Users List > > > Subject: Re: Creating RPM package under Windows XP > > > > > > Did you try installing cygwin ? > > > > > > http://www.cygwin.com/packages/ > > > > > > It looks like they have rpm tools (including rpm-build > > > package, which may yield the rpmbuild script). > > > > > > -Wes > > > > > > On Mon, Jun 22, 2009 at 9:12 AM, Danny Schimke > > > wrote: > > > > > > > Hi! > > > > > > > > I have to create a RPM package within the package- phase. > > > There is a > > > > plugin from codehaus, the "rpm-maven-plugin". I tried it and had to > > > > find out, that this is not working under Windows, because > > > "rpmbuild" > > > > was not found. Is there a way to create a RPM- Package > > > under Windows? > > > > Are there other Plugins, which allow this, instead using > > > this one from > > > > Codehaus? > > > > > > > > Thank you very much! > > > > -Danny Schimke > > > > > > > > > > > > > > > > -- > > > Wes Wannemacher > > > Author - Struts 2 In Practice > > > Includes coverage of Struts 2.1, Spring, JPA, JQuery, > > > Sitemesh and more http://www.manning.com/wannemacher > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher
Re: Creating RPM package under Windows XP
Did you try installing cygwin ? http://www.cygwin.com/packages/ It looks like they have rpm tools (including rpm-build package, which may yield the rpmbuild script). -Wes On Mon, Jun 22, 2009 at 9:12 AM, Danny Schimke wrote: > Hi! > > I have to create a RPM package within the package- phase. There is a plugin > from codehaus, the "rpm-maven-plugin". I tried it and had to find out, that > this is not working under Windows, because "rpmbuild" was not found. Is > there a way to create a RPM- Package under Windows? Are there other > Plugins, > which allow this, instead using this one from Codehaus? > > Thank you very much! > -Danny Schimke > -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher
Re: Need to convince my manager to switch to maven
Answers inline. On Thu, Jun 4, 2009 at 3:50 PM, scabbage wrote: > > - What if the central repo goes down? We'll end up with broken builds and > the QEs will go crazy at us! There are a few things about this that bug me. Maven only downloads from central once for released artifacts. So, the build server and most likely all of the developers will have copies of all required jars in their ~/.m2/repository directory. So if central is down, and you aren't dependent on any SNAPSHOTs, as long as the build doesn't include a new dependency, then you probably won't even notice. Furthermore, I've been using maven for a couple of years now and I don't remember even so much as a planned outage of central. IIUC, central is mirrored all over the world, one server being down probably just means it gets taken out of rotation and no one notices. The "what if" style arguments are a PITA... What if the cold war starts back up and our colo facility gets nuked?!! Will the builds fail? Of course they will, but I prefer to worry about making my day-to-day easier than worrying about all of the things that *could* make it harder. > - Ok, so we can have proxies, but then we have to maintain them. Lots of > work. See my answer to question 1. Rather than a proxy, get nexus. I run a repository manager for myself and my team in my office, as well as one at home. It's not that much work at all. > - Not checked into CVS??? That's not good. Not comfortable without having a > complete set of artifacts in a SAFE place. Not comfortable! Who says things aren't checked into CVS? As I mentioned before, you will end up with all of the jars you need distributed on machines all over your network. In fact, that is one of the things I have had to deal with before. Since ~/.m2 translates to c:\Documents and Settings\Username on modern windows machines, a few developers ended up with roaming profiles exceeding a few gigabytes. Anyhow, I can't force you to be comfortable with something, but if you must, then just have the build server check-in it's ~/.m2 directory on a regular basis. > - Your pom.xml only shows those dependencies your project is directed > dependent upon. Fine. But what about all other dependencies that your > dependencies depend upon? Know who they, get them and put in CVS!! You can check-in the ~/.m2 if it's a requirement. I think many people will agree that it's a waste of time, but YMMV. > > Not sure if any of you have encountered these challenges. Please give me > some suggestions. -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Simple question on packaging a Java Application
On Thu, Jun 4, 2009 at 9:13 AM, Horton, Anne B wrote: > Say you have a Java application (j2Se) and it has some dependent > modules. Easy - right??? > > > > How do I get the Java application packaged as a jar when in my > clause in the Java application pom.xml is "pom"? > create another module that packages everything into the jar via the assembly plugin. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:perform problem with ssh/scp
On Tue, Apr 28, 2009 at 2:26 PM, Wes Wannemacher wrote: > That worked! Thanks! > > -Wes > No problem... Upon looking into this a little bit further, it seems like the problem is the new hashed known_hosts file. The latest release of ubuntu turns the hashing of known_hosts on, where by default OpenSSH would normally have it turned off. So, your known_hosts entry would normally look like this - people.apache.org ssh-dss B3... In the new hashed format it looks like this - |1|wiKjIB5... = ssh-dss B3... The goal on the SSH side of things appears to be that if someone has compromised your account, the known_hosts file is a decent place to start looking for further hosts to joyride along. Having the option to hash the hostname makes it more difficult for a joyrider to continue on to more hosts. This seems like a good thing to have, so Jsch (which Wagon uses for ssh/scp) should support it as well. I can try to follow up with them. In your case, Wes, you probably recently installed the new version of Ubuntu from scratch. So, you had an empty known_hosts file. The stock install of Ubuntu (Jaunty) turns the configuration parameter on to hash the known_hosts file and even though everything worked on the command line, Jsch couldn't read the file since the entries were hashed. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:perform problem with ssh/scp
That worked! Thanks! -Wes On Tue, Apr 28, 2009 at 2:24 PM, Wes Wannemacher wrote: > Wes, > > I think what you should do is try to run deploy:deploy manually, that > should leave the prompt open for you to type in yes... As for why Jsch > is not picking up the existing known_hosts entry, that's a mystery. > > -W > -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: release:perform problem with ssh/scp
Wes, I think what you should do is try to run deploy:deploy manually, that should leave the prompt open for you to type in yes... As for why Jsch is not picking up the existing known_hosts entry, that's a mystery. -W On Tue, Apr 28, 2009 at 12:29 PM, Wes Wannemacher wrote: > I am having a lot of trouble trying to perform a release. I have my > public/private keys setup and if I try to log into the target host on > the command line, I don't have any problems. However, when I try to do > a release:perform for the project I am trying to release, I am hung up > because maven says it can't establish the authenticity of host... Here > is output from a session - > > http://pastebin.com/d498a0da8 > > That shows me trying to do the mvn release:perform and it hangs up at > line 30... So, I Ctrl-C and try to ssh into the host and you can see > it logs in without prompts or problems. > > Here is the output of me sshing into that same host with a little > extra debug output - > > http://pastebin.com/m3dcf44d9 > > Around line 24, the debug output shows that the host is recognized and > is indeed in the known_hosts file. So what could I be doing wrong? My > settings.xml file matches the instructions here - > > http://struts.apache.org/2.x/docs/creating-and-signing-a-struts-21x-distribution.html#CreatingandSigningaStruts2.1.xDistribution-UpdateMavensettingsforourservers > > Of course, I have swapped out the $USERNAME, etc. placeholders with > real values. > > The project I am trying to deploy is here - > > http://svn.apache.org/viewvc/struts/maven/trunk/pom/ > > It's just a pom project that acts as the parent for the rest of our artifacts. > > Any help would be great, I can't figure out what the heck I'm doing wrong. > > -Wes > > -- > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > http://www.manning.com/wannemacher > -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
release:perform problem with ssh/scp
I am having a lot of trouble trying to perform a release. I have my public/private keys setup and if I try to log into the target host on the command line, I don't have any problems. However, when I try to do a release:perform for the project I am trying to release, I am hung up because maven says it can't establish the authenticity of host... Here is output from a session - http://pastebin.com/d498a0da8 That shows me trying to do the mvn release:perform and it hangs up at line 30... So, I Ctrl-C and try to ssh into the host and you can see it logs in without prompts or problems. Here is the output of me sshing into that same host with a little extra debug output - http://pastebin.com/m3dcf44d9 Around line 24, the debug output shows that the host is recognized and is indeed in the known_hosts file. So what could I be doing wrong? My settings.xml file matches the instructions here - http://struts.apache.org/2.x/docs/creating-and-signing-a-struts-21x-distribution.html#CreatingandSigningaStruts2.1.xDistribution-UpdateMavensettingsforourservers Of course, I have swapped out the $USERNAME, etc. placeholders with real values. The project I am trying to deploy is here - http://svn.apache.org/viewvc/struts/maven/trunk/pom/ It's just a pom project that acts as the parent for the rest of our artifacts. Any help would be great, I can't figure out what the heck I'm doing wrong. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: wtf
They're arriving it is just that GMail doesn't show them to you until someone replies. It takes a little getting used to, but you'll appreciate it, eventually. -Wes On Thu, Apr 23, 2009 at 9:37 AM, Alexandr Khlystov wrote: > Why I can't publish email to this group?? I've sent 2, and none is arrived. > > -- > > Best regards, > Alexandr Khlystov > -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New repository for Maven snapshots
On Saturday 21 February 2009 21:15:14 jie...@gmail.com wrote: > On Sat, Feb 21, 2009 at 8:52 PM, Wes Wannemacher wrote: > > Brian, right now, the struts project pushes its snapshots over to > > people.a.o when the apache hudson builds them (as often as daily, but > > usually not quite that often). > > Apache project itself uses Hudson over Continuum? LOL. We have both... I knew hudson, but not Continuum, so that's what we're using for now. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New repository for Maven snapshots
On Saturday 21 February 2009 20:10:49 Brian E. Fox wrote: > The Maven project has recently moved to a new repository within the > Apache infrastructure. The repository that was previously at: > http://people.apache.org/repo/m2-snapshot-repository is deprecated. All > new snapshots are being deployed to > http://repository.apache.org/snapshots . Note that this is a logical > grouping with a proxy of the old repository so the new url can safely > supersede the old one for other apache projects as well. > Brian, right now, the struts project pushes its snapshots over to people.a.o when the apache hudson builds them (as often as daily, but usually not quite that often). Is this a new host? If you want to send me the details off-list, I'll need to reconfigure our hudson builds to push to the new host. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can't get maven to compile with java 1.5
On Saturday 21 February 2009 16:58:55 John Wooten wrote: > I have JAVA_HOME set to the java 1.5.1 and when I type echo $JAVA_HOME it > shows this. > I've put in a settings file settings.xml to set the jdk to 1.5 also. > > It compiles and says it can't do generics using 1.3, to do a > /Users/woo/Development/workspaces/Qworkspace/Foundation/src/com/areteq/comm >on/HashMapHandler.java:[11,26] generics are not supported in -source 1.3 > (try -source 1.5 to enable generics) >public abstract HashMap getHashMapData(); > > Where do I put this -source 1.5. I've tried settings.xml, profiles, etc. > > It would help if the error somehow mention where and how to set this. Add this to the build section of your pom.xml -> blah maven-compiler-plugin 1.5 1.5 -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: hibernate-entitymanager
Which dependency is causing a problem? I recently had trouble with concurrent:concurrent, but I think JTA is a problem as well. Neither one of the problems can be fixed by this team as JTA is a licensing issue and the concurrent:concurrent dependency is a Hibernate issue (bug). -Wes On Wed, Oct 29, 2008 at 9:26 AM, Mansour <[EMAIL PROTECTED]> wrote: > I am trying to add hibernate-entitymanager dependency using maven. I am > getting an error about missing artifact. I have seen posts about resolving > this by manaully installing the dependency. There should be a better way to > get this done. If I install the artifact manualy then other developers will > have to do the same. Is there a cleaner way ? > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: including jars in a jar
Have you looked at jarjar ? http://code.google.com/p/jarjar/ Most of the docs show ANT usage, but I think you can use it in maven... http://www.mvnrepository.com/artifact/com.tonicsystems/jarjar Of course, I'd love to give you an example, but can't since I haven't used it. Perhaps someone with experience using it can chime in? -Wes On Mon, 2008-08-18 at 19:35 -0700, sairndain wrote: > (Please pardon for my weakness on Maven2 terminology) > > What I want to do is create a java application jar that also includes other > "jar" files that are required in its application's classpath > > > When I use the following plugin combination in my project pom... > i.e., > - > - > - > > org.apache.maven.plugins > maven-compiler-plugin > > 1.5 > 1.5 > > > > > org.apache.maven.plugins > maven-jar-plugin > > > true > > true > > > > > - > - > - > > ...the result contains classes, etc... But, not any of the supporting jars I > need to run this application from the command line: > > test\META-INF > test\test > test\testws.wsdl > test\testws.xsd > test\META-INF\INDEX.LIST > test\META-INF\MANIFEST.MF > test\META-INF\maven > test\META-INF\maven\test.web.service > test\META-INF\maven\test.web.service\testwsClient > test\META-INF\maven\test.web.service\testwsClient\pom.properties > test\META-INF\maven\test.web.service\testwsClient\pom.xml > test\test\web > test\test\web\service > test\test\web\service\client > test\test\web\service\testws > test\test\web\service\client\TestwsClient.class > test\test\web\service\testws\ObjectFactory.class > test\test\web\service\testws\package-info.class > test\test\web\service\testws\RequestType.class > test\test\web\service\testws\ResponseType.class > test\test\web\service\testws\Testws.class > test\test\web\service\testws\TestwsOp.class > test\test\web\service\testws\TestwsOpResponse.class > test\test\web\service\testws\TestwsType.class > test\test\web\service\testws\Testws_Service.class > > > Ideally I'd like to have the dependent jars that are listed in the > application's manifest "classpath" included inside of the application's > jar...i.e. here is the manifest.mf --- note the jars in the classpath: > > Manifest-Version: 1.0 > Archiver-Version: Plexus Archiver > Created-By: Apache Maven > Built-By: dusty > Build-Jdk: 1.5.0_14 > Class-Path: jaxws-rt-2.1.jar jaxws-api-2.1.jar jaxb-api-2.1.jar stax-a > pi-1.0.jar activation-1.1.jar saaj-api-1.3.jar jsr250-api-1.0.jar jsr > 181-api-1.0-MR1.jar jaxb-impl-2.1.2.jar saaj-impl-1.3.jar streambuffe > r-0.4.jar sjsxp-1.0.jar stax-ex-1.0.jar > > > If the application jar contains the "dependency" jars, then, I can run the > application from the command line... something like this: > java -classpath ".;testwsClient.jar" test.web.service.client.TestwsClient > > Any help appreciated!!! > > P.S. > > I've looked at some of the documentation on the "build-helper-maven-plugin". > > > I'm not certain whether this is the plugin I want to use. But, even if it > is, it is still not clear -- from the "pieces" of examples I've found -- > where the plugin should be positioned in the pomi.e., before the > maven-jar-plugin(?)...after(?)... And it is not clear whether I would have > to explicitly list the dependent jars (listed in my manifest.mf classpath), > or whether the plugin can do this autmatically. > > Are there any full sized "hello world" style poms that illustrate how to put > dependency jars inside of an application jar? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]