Re: overhead in running maven jetty:run

2011-09-12 Thread Nick Klauer
I know that is how I work with most of my web  apps.  Unless you need
something very specific to the app container that you are working with, I
wouldn't think there are much better solutions out there, glassfish/grizzly,
jboss etc.
On Aug 11, 2011 11:54 AM, Tommy Chheng tommy.chh...@gmail.com wrote:
 Is there much of an overhead of running a servlet via mvn jetty:run vs an
 embedded jetty Main class in a production environment?

 Any other concerns?

 I typically stick a war into a jetty web-apps directory but i find it
easier
 to run mvn jetty:run. Was curious if there's any negative to running it
 under maven.

 --
 @tommychheng
 http://tommy.chheng.com


Re: Fitnesse support?

2011-02-27 Thread Nick Klauer
I've always used trinidad for my maven/fitnesse integration.

http://fitnesse.info/trinidad

http://fitnesse.info/trinidad
-Nick Klauer


On Sun, Feb 20, 2011 at 23:32, Anders Hammar and...@hammar.net wrote:

 This already existing ticket for the fitnesse plugin would be of interest:
 http://jira.codehaus.org/browse/MFITNESSE-30

 It's not a proper patch, but seems to be a fix. You should move this
 discussion to the mojo list if you want to follow up.

 /Anders

 On Sun, Feb 20, 2011 at 20:47, Thomas Sundberg t...@kth.se wrote:

  Hi!
 
  I have found two different Maven plugions, but none seem to be updated
  and supporting the latest Fitnesse release.
 
  The
 
  groupIdorg.codehaus.mojo/groupId
  artifactIdfitnesse-maven-plugin/artifactId
  version1.0/version
 
  depends on
 
  groupIdorg.fitnesse/groupId
  artifactIdfitnesse/artifactId
  version20050731/version
 
  That is a release that is five years old.
 
  I'm looking for a Fitnesse plugin that is maintained and supports a
  fairly recent Fitnesse release. If I can't find, I will have to build
  something on my own, but I would like to try to find anything updated.
 
  /Thomas
 
 
  On Sun, Feb 20, 2011 at 18:10, Baptiste MATHUS m...@batmat.net wrote:
   Hi,
  
   As running http://www.google.fr/search?q=maven+fitnesse+plugin shows
 the
   FitNesse Maven Plugin first (
  http://mojo.codehaus.org/fitnesse-maven-plugin/),
   why didn't you directly try to explain precisely what you're missing in
  this
   dedicated plugin?
  
   Cheers
  
   2011/2/20 Thomas Sundberg t...@kth.se
  
   Hi!
  
   Does anybody know of any good Maven plugins that support running
   Fitnesse acceptance tests? I have done some research and as far as I
   can see, there doesn't exist any up to date solutions.
  
   Any tip is highly appreciated.
  
   /Thomas
  
   --
   Thomas Sundberg
   M. Sc. in Computer Science
  
   Mobile: +46 70 767 33 15
   Blog: http://thomassundberg.wordpress.com/
   Twitter: @thomassundberg
  
   Better software through faster feedback
  
   -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
  
  
   --
   Baptiste Batmat MATHUS - http://batmat.net
   Sauvez un arbre,
   Mangez un castor !
  
 
 
 
  --
  Thomas Sundberg
  M. Sc. in Computer Science
 
  Mobile: +46 70 767 33 15
  Blog: http://thomassundberg.wordpress.com/
  Twitter: @thomassundberg
 
  Better software through faster feedback
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 



Re: Config resources

2011-01-19 Thread Nick Klauer
I usually put my configuration where it works.  In a web application, I put
my web.xml in the src/main/webapp/WEB-INF folder.  In Spring-related apps,
my applicationConfig.xml goes in src/main/resources, and I might use Maven
Filters to pull in the right parameters to whether I run as a dev build or
production.

http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

I would recommend putting configuration information into your
src/main/resources, especially if you expect that the end .jar, .war, .ear,
will need those configuration files at runtime.  The src/main/resources get
bundled up as part of the build, so the safe bet is to create whatever
structure that you can manage your configuration files starting from there.

-Nick

2010/12/29 Pazmiño Mazón, Iván Andrés iapm270...@sri.ad

 Thanks, sure this works, just wanted to know if there is any standard
 place to put this kind of files.

 -Original Message-
 From: Kalle Korhonen kalle.o.korho...@gmail.com
 Reply-to: Maven Users List users@maven.apache.org
 To: Maven Users List users@maven.apache.org
 Subject: Re: Config resources
 Date: Wed, 29 Dec 2010 11:13:53 -0800

 src/main/config ?

 Kalle

 2010/12/29 Pazmiño Mazón, Iván Andrés iapm270...@sri.ad:
  Hello,
 
  I'm building a web project and I have some configuration and descriptor
  files located inside src/main/resources/config which are used during the
  source preparation phase. Since this location will be loaded to the
  classpath I think it should be put in a better place. What's the
  standard for this better place? Or should I exclude the somehow from the
  resulting target/classes directory?
 
  Thanks,
  IP

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 Clausula de Confidencialidad: La información contenida en el presente
 mensaje es confidencial, está dirigida
 exclusivamente a su destinatario y no puede ser vinculante. El Servicio de
 Rentas Internas no se
 responsabiliza por su uso y deja expresa constancia que en los registros de
 la Institución consta la
 información originalmente enviada. Este mensaje está protegido por la Ley
 de Propiedad Intelectual, Ley de
 Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos
 internacionales relacionados. Si
 usted no es el destinatario de este mensaje, recomendamos su eliminación
 inmediata. La distribución o copia
 del mismo, está prohibida y será sancionada de acuerdo al Código Penal y
 demás normas aplicables. La
 transmisión de información por correo electrónico, no garantiza que la
 misma sea segura o esté libre de error,
 por consiguiente, se recomienda su verificación.Toda solicitud de
 información requerida de manera oficial al
 SRI debe ser ingresada por Secretaría General y dirigida a la máxima
 autoridad de la Institución, conforme a
 la Ley y demás normas vigentes.

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Command line output when running JUnit 4 test suite

2010-06-05 Thread Nick Klauer
The Maven Surefire plugin allows you to explicitly set a single test or set
of tests using wildcard matching:

http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html

http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.htmlAnd
as for your better command line output,  why not just use the command line
to output the test right there:

mvn test -Dtest=MyTest; cat target/surefire-reports/com.thingMyTest.txt

as you can easily get the output right back from the test in
target/surefire-reports

-Nick

On Fri, Jun 4, 2010 at 21:50, Peter Niederwieser pnied...@gmail.com wrote:


 Is there a way to get better command line output when running a JUnit 4
 test
 suite with Surefire? I'd like to get the same output as when running test
 classes directly, but I only get the Running ... and Tests run: ...
 output once for the whole suite, and failure output only appears after the
 whole suite (comprised of more than hundred test classes) has finished.
 This
 means I have to wait much longer until I get feedback.

 Cheers,
 Peter
 --
 View this message in context:
 http://old.nabble.com/Command-line-output-when-running-JUnit-4-test-suite-tp28786362p28786362.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: Best Practices Question: Teams working on different modules / SCM, etc

2010-05-22 Thread Nick Klauer
I'm not quite an expert on Maven, but would the Maven Release plugin help at
all?

http://maven.apache.org/plugins/maven-release-plugin/

I haven't used the plugin, so I can't speak to how well it works, but it
seems to me that should you be using a CI server to manage builds, when you
reach a successful test and deploy of your app in CI, it could automatically
do a 'mvn release:prepare' and 'mvn release:perform' to tag your poms with
an appropriate non-SNAPSHOT version and then be able to commit to SCM.

Does anyone else have experience with the Maven Release plugin to
verify/discredit my assumptions?

-Nick


On Sat, May 22, 2010 at 12:45 PM, Rick R ric...@gmail.com wrote:

 I've been trying to read up on best practices with Maven in a team
 environment where different groups are working on different but related
 modules. Been reading over chp7 of 'Better Builds With Maven' but still
 have
 some questions.

 To keep it simple for sake of discussion...  war project depends on jarA,
 jarA depends jarB. Three different teams are working on those three
 separate
 modules.

 For this current project we have not set up a continuous integration server
 yet. (We're still on CVS here for source control management but I know
 another team using CruiseControl for continuous builds so at some point
 we'll use that as well.)
 We are using Artificatory for our local internal repository.

 Right now since the project is still very young we're  just declaring the
 version number as 1.0-SNAPSHOT.  Ultimately all that we care about building
 to the dev server is the webapp (war) project. We started out for a while
 having the various jar projects do a 'mvn deploy' when they were ready to
 deploy their jars, the problem with that is how does jarB know that he's
 not
 going to break jarA who depends on jarB if he does a deploy? jarA team can
 be happily going along coding against a local repository version of jarB
 that allows him to not break. Lets say jarA doesn't do a deploy,  but now a
 dev build of the war project needs to take place - it ends up pulling in
 the
 new jarB snapshot which causes things to break. How is that kind of thing
 best avoided (other than forcing down locked version numbers?)

 How do you make sure you can always get a good build of a dev war that is
 dependent on various interrelated modules? Typically we've done this the
 harder way and not relied on teams using mvn deploy - and instead we would
 require teams to tag their code with a DEV tag (since we still want to
 allow
 people to check in code that compiles but isn't DEV server ready yet.) On
 the server we then go through and do a cvs update from the DEV tag for all
 the modules and build them which makes sure we get a decent build or catch
 any problems. I'm guessing this is where a continuous integration build
 system would help? ( I assume it can do the same thing and build from a tag
 and build in the correct order? )

 I'm just wondering what the best practice is in making sure you can 1)
 allow
 developers to always be checking in code (that compiles, but could break
 another person depending on it) and 2) easily get a quick dev build of the
 main project (war) to a server?

 Next probably somewhat naive question, but in regard to increasing a
 version
 number, I take the best practice is when some sub-module feels its ready
 for
 a new version number, they simply update their pom version number (remove
 the -SNAPSHOT) and check in their pom and possibly do a mvn deploy. Then
 they go back with maybe a 1.1.1-SNAPSHOT declared for their project so they
 can continue to work on the next release with snapshots? I take it then
 they
 just communicate with the other teams that a new version or snapshot
 version
 is ready.

 So to sum up what I 'think' is the way day-to-day operations run for teams

 1)  team works on their code with 1.0-SNAPSHOT version number
 2) before checking in any code, run mvn clean install with the -U flag to
 get any new dependent snap shot versions
 3) assuming code builds, it can be checked in
 4) when happy with code as stable enough for others to use, tag it to DEV,
 do mvn deploy

 There is something still really wrong with the above though. It doesn't
 allow someone to ALWAYS be able to make a good dev build, but I guess
 that's
 the drawback to using snapshots.

 Any suggestions and articles on the best way to handle a combination of
 doing source control management and maven for multiple module projects
 would
 be appreciated.



Re: unable to run jetty

2010-05-21 Thread Nick Klauer


 2010-05-21 15:26:47.975:INFO::No annotation on initializer class


 org.apache.jasper.runtime.TldScanner
 log4j:ERROR Parsing error on line 10 and column 14
 log4j:ERROR The content of element type layout must match (param)*.
 2010-05-21 15:30:01.488:INFO:/artms:Initializing Spring root
 WebApplicationContext


 please tell me why is it taking so long after it writes to the log


It looks like you're having lots of issues getting Jetty to work, so I'd
start there and rule Jetty out before you spend too much more time asking
Maven people about Jetty issues:

https://dev.eclipse.org/mailman/listinfo/jetty-users

http://wiki.eclipse.org/Jetty/FAQ#How_do_I_ask_a_question.3F


Re: Maven triggers cygwin warning

2010-05-11 Thread Nick Klauer
I've had that when upgrading to Cygwin 1.7, and it was a Cygwin issue that I
fixed it with.  I've never seen it since modifying my .profile:

export CYGWIN=nodosfilewarning

I'm pretty sure this is a Cygwin issue, not Maven.

For instance, from the What's New page on Cygwin 1.7:
http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html

On the first usage of a DOS path (C:\foo, \\foo\bar), the Cygwin DLL emits a
 scary warning that DOS paths shouldn't be used. This warning may be disabled
 via the new CYGWIN=nodosfilewarning setting.


Do you have this setting configured when you open up a terminal (either by
placing in your .profile, .bash_profile, or .bashrc file)?

-Nick
http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html
On Tue, May 11, 2010 at 10:52 AM, David Balažic xerc...@gmail.com wrote:

 On 11 May 2010 17:36, Wayne Fay wayne...@gmail.com wrote:
  When I start maven inside cygwin environment, cygwin gives a warning
  about an  MS-DOS style path.
  As the mvn script tries to detect cygwin, I find that surprising.
 
  I've used Maven inside Cygwin on and off for quite a while now (not
  really often to be honest), and I've never seen that warning.
 
  I read the messages posted to that Cygwin list, tried the sh -x ...
  command suggested by Jeremy and got no warnings, then tried again
  using mintty and still didn't get anything.
 
  This is testing on Win XP SP2, Maven 2.2.1, and Sun JDK 1.6.0_07 with
  default locale en_US and encoding Cp1252.

 The warning is printed only once per session. Maybe you missed it?

 What do you get with
 sh -x $(which mvn) -version mvn.log 21
 ?

 About the session, I'm not sure what exactly are the session borders.
 If I log into Windows, start mintty, I get one warning. If I close
 mintty and open it again,
 I again get the warning (once). If I have multiple consoles open,
 sometimes I can not
 get the warning, even if I close all of them and open one new.

 Regards,
 David

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Maven triggers cygwin warning

2010-05-11 Thread Nick Klauer
I've had that when upgrading to Cygwin 1.7, and it was a Cygwin issue that I
fixed it with.  I've never seen it since modifying my .profile:

export CYGWIN=nodosfilewarning

I'm pretty sure this is a Cygwin issue, not Maven.

For instance, from the What's New page on Cygwin 1.7:
http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html

On the first usage of a DOS path (C:\foo, \\foo\bar), the Cygwin DLL emits a
 scary warning that DOS paths shouldn't be used. This warning may be disabled
 via the new CYGWIN=nodosfilewarning setting.


Do you have this setting configured when you open up a terminal (either by
placing in your .profile, .bash_profile, or .bashrc file)?

-Nick
http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html
On Tue, May 11, 2010 at 10:52 AM, David Balažic xerc...@gmail.com wrote:

 On 11 May 2010 17:36, Wayne Fay wayne...@gmail.com wrote:
  When I start maven inside cygwin environment, cygwin gives a warning
  about an  MS-DOS style path.
  As the mvn script tries to detect cygwin, I find that surprising.
 
  I've used Maven inside Cygwin on and off for quite a while now (not
  really often to be honest), and I've never seen that warning.
 
  I read the messages posted to that Cygwin list, tried the sh -x ...
  command suggested by Jeremy and got no warnings, then tried again
  using mintty and still didn't get anything.
 
  This is testing on Win XP SP2, Maven 2.2.1, and Sun JDK 1.6.0_07 with
  default locale en_US and encoding Cp1252.

 The warning is printed only once per session. Maybe you missed it?

 What do you get with
 sh -x $(which mvn) -version mvn.log 21
 ?

 About the session, I'm not sure what exactly are the session borders.
 If I log into Windows, start mintty, I get one warning. If I close
 mintty and open it again,
 I again get the warning (once). If I have multiple consoles open,
 sometimes I can not
 get the warning, even if I close all of them and open one new.

 Regards,
 David

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Conveniently switch between settings

2010-05-07 Thread Nick Klauer
What I've done for my setup is configure maven to take a settings.xml with
no proxy settings configured and pass it explicitly from maven using *mvn -s
your_settings_file.xml* .  I'm using Cygwin for this, so I set up a
configuration to alias *mvn* commands to be *mvn -s wherever your new
settings.xml is*.

It's the best setup i've found thus far, but I'm still looking for a
solution that auto-discovers my lack of a proxy server and makes the changes
for me.

-Nick

On Fri, May 7, 2010 at 1:43 AM, Kalpak Gadre kalpa...@gmail.com wrote:

 Hi,

 I use Maven from workplace and home. At workplace we have proxy as well as
 a maven repository. Where at home I don't need any proxy and don't have a
 repository.

 Is there no convenient way to switch between these configurations other
 than specifying alternate settings file? It would be nice if it was at
 profile level where I could just say mvn -P home I know that there are lot
 of issue with that.

 I hope most of us face this problem. What do you guys do?

 Thanks,

 Kalpak



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Configure jetty port in profiles

2010-04-29 Thread Nick Klauer
Profile activation is fine by environment, but if you're using maven, just
use the explicit profile activation -P profile-name.

mvn jetty:run -P build-profile-id

Towards the bottom of the page (way past the build activation portion of
profiles) is a section devoted to what you can put in a profile, which
includes properties, reporting and build plugins, etc.,.

http://maven.apache.org/guides/introduction/introduction-to-profiles.html

-Nick

On Thu, Apr 29, 2010 at 12:27 PM, darniz rnizamud...@edmunds.com wrote:


 Any update guys.
 i know if i am in a hurry

 darniz wrote:
 
  Hi All
  I figured out how  to start jetty on default port on 80 with http  and
  https.
   plugin
  groupIdorg.mortbay.jetty/groupId
  artifactIdmaven-jetty-plugin/artifactId
  version6.1.16/version
  configuration
  scanIntervalSeconds10/scanIntervalSeconds
 
  jettyEnvXml${basedir}/src/test/resources/jetty-env.xml/jettyEnvXml
  connectors
  connector
  implementation=org.mortbay.jetty.nio.SelectChannelConnector
  port80/port
  maxIdleTime6/maxIdleTime
  /connector
 
  connector
  implementation=org.mortbay.jetty.security.SslSocketConnector
  port443/port
  maxIdleTime6/maxIdleTime
  keystorec:/xxx-ssl.keystore/keystore
  passwordxxx/password
  keyPasswordxxx/keyPassword
  /connector
  /connectors
  /configuration
  /plugin
  The issue is that i want to change the jetty port only for my machine. So
  i came accorss setting profiles.i can activate a specific profile using
  maven jetty:run -Denvironment=mylocaljetty then that profile is pulled in
  something like this
profile
  activation
property
  nameenvironment/name
  valuemylocaljetty/value
/property
  /activation
  ...
/profile
 
  the issue is that in profile element how can i speciy the jetty:port and
  the https credential detail. any examples.
  Thanks
  darniz
 

 --
 View this message in context:
 http://old.nabble.com/Configure-jetty-port-in-profiles-tp28394619p28403509.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: global filter on multi-modules project

2010-03-23 Thread Nick Klauer
Hey Aymeric,

Did you ever find a solution to this?  I can see how this might be a
sticking point in a project or two in our team, so if you do find something
or hear back from anyone else, let us (maven user group) know.

-Nick

On Wed, Mar 17, 2010 at 5:01 AM, Aymeric Alibert aymericn...@gmail.comwrote:


 I have a maven project with multiples modules.
 I defined a filter for configuration in my master pom:
filters

 filtersrc/main/filters/filter-${environment}.properties/filter
/filters

 All is good and I can use a filter properties file at the module level (one
 for each module).
 However some of the properties are common to all modules, so I would like
 to
 use a global filter for some of the properties. Anybody knows how to
 achieve
 that with maven?

 Thanks,

 Aymeric
 --
 View this message in context:
 http://old.nabble.com/global-filter-on-multi-modules-project-tp27929774p27929774.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 spitting out crap when it can't find locally added dependancies. How to stop it from checking?

2010-03-09 Thread Nick Klauer
Did you use Maven to install the .jar, or did you place it there manually?
 Maven provides a built-in way to install a 3rd party jar to your repo,
creating a POM for you:

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html




On Tue, Mar 9, 2010 at 6:06 PM, Ken Egervari ken.egerv...@gmail.com wrote:

 Oh, Okay... Thanks! I just used the -DgeneratePom=true for all 5 libraries
 and now it doesn't put that annoying stuff. Maybe true should be default
 perhaps? Thanks ;)

 Ken


 On Tue, Mar 9, 2010 at 6:56 PM, Jason van Zyl ja...@sonatype.com wrote:

  Maven is doing what it's supposed to. You've added the artifact without
 the
  POM, add a POM even a stub one and the message will go away.
 
  Artifacts are not allowed in Maven Central with the POM, it's a Maven
  requirement.
 
  On Mar 9, 2010, at 6:20 PM, Ken Egervari wrote:
 
   Hi, I am using a library called Language tool. Since it does not have a
   maven repository anywhere, I had to make a local one for it.
  
   Unfortunately, every time I execute any maven task, Maven will check
 all
  the
   repositories for updated copies. This process can be rather slow and
 I'd
   rather maven just skipped it for these locally added libraries. This is
  what
   it spits out. How do I stop it?
  
   Downloading:
  
 
 http://repository.springsource.com/maven/bundles/release/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:languagetool:
   pom:1.0.0' in repository com.springsource.repository.bundles.release (
   http://repository.springsource.com/maven/bundles/release)
   Downloading:
  
 
 http://maven.springframework.org/milestone/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in
   repository Springframework milestone (
   http://maven.springframework.org/milestone)
   Downloading:
  
 
 http://repository.jboss.com/maven2/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in
   repository jboss (http://repository.jboss.com/maven2)
   Downloading:
  
 
 http://snapshots.jboss.org/maven2/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in
   repository snapshots.jboss.org (http://snapshots.jboss.org/maven2)
   Downloading:
  
 
 http://repo1.maven.org/maven2/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in
   repository central (http://repo1.maven.org/maven2)
   Downloading:
  
 
 http://repository.springsource.com/maven/bundles/release/languagetool/resource/1.0.0/resource-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in
   repository com.springsource.repository.bundles.release (
   http://repository.springsource.com/maven/bundles/release)
   Downloading:
  
 
 http://maven.springframework.org/milestone/languagetool/resource/1.0.0/resource-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in
   repository Springframework milestone (
   http://maven.springframework.org/milestone)
   Downloading:
  
 
 http://repository.jboss.com/maven2/languagetool/resource/1.0.0/resource-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in
   repository jboss (http://repository.jboss.com/maven2)
   Downloading:
  
 
 http://snapshots.jboss.org/maven2/languagetool/resource/1.0.0/resource-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in
   repository snapshots.jboss.org (http://snapshots.jboss.org/maven2)
   Downloading:
  
 
 http://repo1.maven.org/maven2/languagetool/resource/1.0.0/resource-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in
   repository central (http://repo1.maven.org/maven2)
   Downloading:
  
 
 http://repository.springsource.com/maven/bundles/release/languagetool/rules/1.0.0/rules-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in
  repository
   com.springsource.repository.bundles.release (
   http://repository.springsource.com/maven/bundles/release)
   Downloading:
  
 
 http://maven.springframework.org/milestone/languagetool/rules/1.0.0/rules-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in
  repository
   Springframework milestone (http://maven.springframework.org/milestone)
   Downloading:
  
 
 http://repository.jboss.com/maven2/languagetool/rules/1.0.0/rules-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in
  repository
   jboss (http://repository.jboss.com/maven2)
   Downloading:
  
 
 http://snapshots.jboss.org/maven2/languagetool/rules/1.0.0/rules-1.0.0.pom
   [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in
  repository
   snapshots.jboss.org (http://snapshots.jboss.org/maven2)
   Downloading:
   

Re: settings.xml

2010-03-07 Thread Nick Klauer
http://lmgtfy.com/?q=Apache+Maven+settings.xmll=1


On Sun, Mar 7, 2010 at 5:06 AM, Sam Wun swun2...@gmail.com wrote:

 Can anyone point me to a wiki about how to setup settings.xml for
 mavern 2.0? I got an error Checksum failed.

 Thanks
 Sam

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Configure Proxy based on location

2010-03-01 Thread Nick Klauer
More or less i've asked this on StackOverflow, but I was totally unaware of
the users mailing list, so I'm reposting here since it's *probably* more
appropriate:

http://stackoverflow.com/questions/2354001/make-maven-proxy-server-settings-configurable-based-on-location

What my issue boils down to is that I have a corporate proxy and Nexus Repo
at work.  When I'm at work, everything is great, works well.  However, when
I walk out of the office, I don't have to go through a proxy, nor do I have
our corporate private Maven repo to look for artifacts against.  How can I
configure my settings.xml file to work both in and out of the office based
on those two options?

-Nick


Re: How to check badly formed pom.xml

2010-03-01 Thread Nick Klauer
Maybe i'm off the mark, but what about

mvn verify

or

mvn validate

since those are built-ins to Maven itself...  Also, I've never really been
able to get a Maven build to work if the pom was incorrect, so I would
assume you are either trying something that is too subtle to verify, or you
haven't run anything against the pom, like *mvn install*.

-Nick

On Mon, Mar 1, 2010 at 7:38 AM, Patrick Turcotte 
patrick.turco...@revolutionlinux.com wrote:

 Hi,

 Why don't you use an XML editor, (Eclipse can do the trick)? It will
 show you where your xml doesn't comply to a schema.

 If you're using linux, try xmllint.

 Patrick

 On 10-03-01 02:31 AM, amaresh mourya wrote:
  Hi Anders,
 
  Thanks for your reply. but i was asking for, is there any method which
 takes
  input my pom.xml file and this schema , so that i can directly use that
  method for validation.
 
  --Amaresh
 
 
  On Mon, Mar 1, 2010 at 12:24 PM, Anders Hammar and...@hammar.net
 wrote:
 
 
  Schema validation?
  http://maven.apache.org/maven-v4_0_0.xsd
 
  /Anders
 
  On Mon, Mar 1, 2010 at 07:01, amaresh mourya amaresh.mou...@gmail.com
 
  wrote:
 
 
  Hi All,
 
  How should i check whether or not a particular POM (pom.xml) is
  syntactically correct. Is there any apache API for that?
 
  for example, if one of the tag is missing or say is wrong. Then which
  method
  I should use so that I got exception thrown, so that I can handle it.
parent
 groupIdorg.apache.maven/groupId
 artifactIdmaven/artifactId
 version2.2.0/version
   * /pat
  Note: here the last /parent tag is wrong.
  *
 
 
 
 

 --
 Patrick Turcotte
 Développeur/Architecte Java
 
 patrick.turco...@revolutionlinux.com
 (819) 780-8955, poste 1129
 Sans frais 1-800-996-8955, poste 1129


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Purging local repository

2010-03-01 Thread Nick Klauer
You mean besides simply deleting the ${user.home}/.m2/repository directory?

On Mon, Mar 1, 2010 at 12:41 PM, Wim Deblauwe wim.debla...@gmail.comwrote:

 Hi,

 what is the best way if I want to erase all the artifacts from my local
 repo
 of the thing i am about to build using Maven? I tried the dependency
 plugin,
 but that only seems to remove the _dependencies_ of my artifact, not the
 current artifact.

 regards,

 Wim