Re: WAR type and transitive dependencies
On 24.8.2010 23:41, skatz wrote: Is there a way to, when building a war, have a jar and all its dependencies be part of the compile time path, but not be included in the war file itself, without having to list each one in the pom.xml? That is the way Maven should behave by default. For instance, if you define javax.mail in pom.xml: dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4.2/version scopeprovided/scope /dependency mvn dependency:tree shows also transitive depndecy javax.activation: [INFO] +- javax.mail:mail:jar:1.4.2:provided (scope not updated to compile) [INFO] | \- javax.activation:activation:jar:1.1:provided Which will be available at compile time, and not packed inside WAR. Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: package org.postgresql.util does not exist compilation problem
Hi Santiago, On 3.8.2010 22:13, Santiago Álvarez Martínez wrote: Everything went OK, until I had to import the org.postgresql.util package, to use the PGobject class, in a UserType Hibernate class. I got the following errors: Is this run-time or compile-time error? What is the exact command you issue before you get this error? -Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Scrolling blindness with maven-javadoc-plugin
It works, thanks. -Ognjen Nick Stolwijk wrote: Try the quiet option. [1] [1] http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#quiet With regards, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl 2010/4/20 Ognjen Blagojevic ogn...@etf.bg.ac.rs: Hi, Is there a way to get rid of the Loading source files for package... and Generating ... .html... messages when using maven-javadoc-plugin? -Ognjen - 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
Scrolling blindness with maven-javadoc-plugin
Hi, Is there a way to get rid of the Loading source files for package... and Generating ... .html... messages when using maven-javadoc-plugin? -Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SUN Maven(2) repo changes? JMX, JMS, Mail, JMXTOOLS
It is already in JIRA [1], but the bug is still unresolved. Apparently, Maven 2.2.0 handles HTTP 301 alright, but I didn't try it. Other versions, including 2.2.1, don't handle that well. The bug priority is minor. Maybe it should be higher since it breaks recently created local repositories. Regards, Ognjen [1] http://jira.codehaus.org/browse/MNG-4428 Johannes Schneider wrote: I had a common problem with an invalid repository entry (wicketstuff). Maven seems to fail completely when a repository returns some html files (redirected I guess) instead of the expected poms Johannes Andy Jefferson wrote: For the last few hours I've been getting issues with Maven2 downloading jars/poms for the following SUN jars jmxtools-1.2.1 jmxri-1.2.1 mail-1.4 jms-1.1 Maven2 goes off to, for example, https://maven-repository.dev.java.net/nonav/repository/com.sun.jmx/poms/jmxri-1.2.1.pom which replies with HTML as follows !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title301 Moved Permanently/title /headbody h1Moved Permanently/h1 pThe document has moved a href=http://download.java.net/maven/1/com.sun.jdmk/poms/jmxtools-1.2.1.pom;here/a./p hr addressApache Server at maven-repository.dev.java.net Port 443/address /body/html which is promptly stored in my local M2 repo as XXX.pom, and hell follows after ... The location referred to in this file doesn't exist either. Can somebody who knows the people in charge of SUN's M2 repo please advise them of this. -- Andy - 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
Re: Maven + JUnit, what's the best approach?
eyal edri wrote: I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? thanks. Start with: http://maven.apache.org/guides/getting-started/index.html http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial I you are building an infrastructure, aside from JUnit and Maven knowledge, you will (probably) need to install, in order of importance: 1. Version control system such as Subversion 2. Maven ropository, such as Apache Archiva, Artifactory or Nexus 3. Mailing list manager, such as Mailman 4. Issue tracking system, such as Trac 5. Continuos integration system, such as Apache Continuum Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Filtering webapp resources
Hi all, I'm trying to filter webapp resources (*.jspx). I guess, the intended way of doing this is using maven-war-plugin, but due to bug MWAR-164[1], my UTF-8 files get messed up. So, I'm trying to figure out how to do it manually. I try to use maven-antrun-plugin to run replaceregexp on folder target/ROOT/. But, if I specify prepare-package phase, I get an error since webapp resources are not copied yet. OTOH, if I use package phase, filtering is done after the packaging is complete leaving target/ROOT/ filtered but ROOT.war:target/ROOT/ unfiltered. Is there a way to call ant task at the right moment - after copying webapp resources but before packaging WAR file? Regards, Ognjen [1] http://jira.codehaus.org/browse/MWAR-164 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org