Re: A "?"/.m2 folder is created by Maven

2019-12-14 Thread Jeff MAURY
What's the value of $HOME

Le sam. 14 déc. 2019 à 08:22, Leira Hua  a écrit :

> I use Nix under Debian. I installed clojure through nix-shell -p clojure.
> clj successfully started the repl after downloaded some poms from maven.
> Then I found there is a folder named ‘?’ created under my $HOME. The maven
> cache .m2 is under this ‘?’ folder. I tried leiningen, it is the same.
>
> I suppose it should be a Java related issue rather than Clojure. So I tried
> to install Maven and try with mvn. A simple mvn archetype:generate created
> a '?'/.m2 folder under the current folder. mvn clean -X|grep setting shows:
>
> $ mvn clean -X|grep setting
> [DEBUG]   Imported: org.apache.maven.settings < plexus.core
> [DEBUG] Reading global settings from
>
> /nix/store/jyrx2vh4kg1dhbyil63bclpkfhbq6r2i-apache-maven-3.6.2/maven/conf/settings.xml
> [DEBUG] Reading user settings from ?/.m2/settings.xml
>
>
> Where is this ‘?’ folder from? Is it expected behavior? How do I get rid of
> it?
>
> Here is a screenshot showing the ‘?’ folder under  $HOME:
> [image: Screenshot from 2019-12-04 18-40-35]
> <
> https://user-images.githubusercontent.com/39118/70199367-54c8c180-16c6-11ea-9cc7-d3c64a4cf619.png
> >
>
>
> Thanks,
>
> - Leira
>


Re: Failures building Eclipse 4.13 with maven-3.6.2

2019-09-13 Thread Jeff MAURY
This is a know case between tycho pomless and maven 3.6.2

Le sam. 14 sept. 2019 à 05:26, Jonathan Chen  a écrit :

> Hi,
>
> I'm currently attempting to build Eclipse 4.13 from source using
> maven-3.6.2, and I'm seeing these current failures:
> [INFO] Scanning for projects...
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.cdcfoundation10/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.cdcfoundation11/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.feature/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.j2se12/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.j2se13/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.j2se14/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.j2se15/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.javase16/.polyglot.build.properties:
> input contained no data @
> [FATAL] Non-readable POM
>
> /home/jonc/work/ports/freebsd-eclipse/eclipse.platform.releng.aggregator/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools.ee.javase17/.polyglot.build.properties:
> input contained no data @
> ...
>
> It appears that the pom-less builds are failing due to a missing
> .polyglot.build.properties. These are transient files that are removed
> once the compiling JVM exits. Something in the 3.6.2 lifecycle has
> changed such that the files are not staying long enough to be
> available for dependency-resolution.
>
> If I downgrade to maven-3.6.1 or maven-3.6.0, these errors do not arise.
>
> Cheers.
> --
> Jonathan Chen 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: No compiler is provided in this environment - how to stop this error ?

2018-06-24 Thread Jeff MAURY
This is because this repo only delivers only non snapshot artifacts

Jeff

Le dim. 24 juin 2018 à 06:02, Karen Goh  a écrit :

> Thanks Jeff.  It is working now.
>
> However, I'd like to know is it possible to change the version to 2.0.3
> from 2.1.0 in maven pom.xml ?
>
> 
> org.springframework.boot
> spring-boot-starter-parent
> 2.0.3.BUILD-SNAPSHOT
> 
>
> I have tried to change on the advice of a forum member in Java Range.
>
> But, I keep receiving error message :
>
> Project build error: Non-resolvable parent POM for
> com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not transfer artifact
> org.springframework.boot:spring-
>  boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to spring-snapshots (
> https://repo.spring.io/snapshot): repo.spring.io and
> 'parent.relativePath' points at no local
>  POM
>
>
> I tried various ways like doing mvn clean, mvn purge local repositories,
> update and then sue the below as per stackoverflow suggestion to change the
> version but to no avai.
>
>
> https://books.google.de/books?id=yEqrMNX3LAgC=PA124=IoIU0MYUp-=huettermann+automatic+releasing=de=PA123#v=onepage=huettermann%20automatic%20releasing=false
>
> Hope you could let me know how should I go about changing the version
> without all these errros.
>
> Tks & rgds,
> Karen
>
>
> 
> On Fri, 6/22/18, Jeff MAURY  wrote:
>
>  Subject: Re: No compiler is provided in this environment - how to stop
> this error ?
>  To: "Maven Users List" , "Karen Goh" <
> karenwo...@yahoo.com>
>  Date: Friday, June 22, 2018, 7:24 PM
>
>  Your JAVA_HOME must point a jdk
>  not à jre
>
>  Le ven. 22 juin
>  2018 à 13:16, Karen Goh 
>  a
>  écrit :
>
>  >
>  Hi,
>  >
>  > I have been
>  trying to tackle the below error without avail.
>  >
>  > In my due diligence,
>  I have done the necessary checking like making sure
>  > that the environment is run on 1.8JDK
>  >
>  > Please see
>  screenshot
>  >
>  > https://ibb.co/eopTVT
>  >
>  > https://ibb.co/g2wE4o
>  >
>  > I got the below when
>  I did the following:
>  >
>  > 1st, I did run maven clean
>  > 2nd, I did maven install
>  >
>  > And the error
>  appeared.
>  >
>  >
>  >
>  > ---
>  maven-resources-plugin:3.0.1:resources (default-resources)
>  @
>  > SpringBootHi5CRUD ---
>  > [INFO] Using 'UTF-8' encoding to
>  copy filtered resources.
>  > [INFO] Copying
>  1 resource
>  > [INFO] Copying 0 resource
>  > [INFO]
>  > [INFO] ---
>  maven-compiler-plugin:3.7.0:compile (default-compile) @
>  > SpringBootHi5CRUD ---
>  >
>  [INFO] Changes detected - recompiling the module!
>  > [INFO] Compiling 6 source files to
>  >
>  C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
>  > [INFO]
>  -
>  > [ERROR] COMPILATION ERROR :
>  > [INFO]
>  -
>  > [ERROR] No compiler is provided in this
>  environment. Perhaps you are
>  > running on
>  a JRE rather than a JDK?
>  > [INFO] 1
>  error
>  > [INFO]
>  -
>  > [INFO]
>  >
>  
>  > [INFO] BUILD FAILURE
>  >
>  [INFO]
>  >
>  
>  > [INFO] Total time: 16.031 s
>  > [INFO] Finished at:
>  2018-06-22T18:53:34+08:00
>  > [INFO] Final
>  Memory: 20M/182M
>  > [INFO]
>  >
>  
>  > [ERROR] Failed to execute goal
>  >
>  org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
>  > (default-compile) on project
>  SpringBootHi5CRUD: Compilation failure
>  >
>  [ERROR] No compiler is provided in this environment. Perhaps
>  you are
>  > running on a JRE rather than a
>  JDK?
>  > [ERROR] -> [Help 1]
>  > [ERROR]
>  > [ERROR] To
>  see the full stack trace of the errors, re-run Maven with
>  the
>  > -e switch.
>  >
>  [ERROR] Re-run Maven using the -X switch to enable full
>  debug logging.
>  > [ERROR]
>  >
>  > If I run using -X
>  switch, I get the below error :
>  >
>  > [ERROR] Failed to execute goal
>  >
>  org.springframework.boot:spring-boot-maven-plugin:2.1

Re: No compiler is provided in this environment - how to stop this error ?

2018-06-22 Thread Jeff MAURY
Your JAVA_HOME must point a jdk not à jre

Le ven. 22 juin 2018 à 13:16, Karen Goh  a
écrit :

> Hi,
>
> I have been trying to tackle the below error without avail.
>
> In my due diligence, I have done the necessary checking like making sure
> that the environment is run on 1.8JDK
>
> Please see screenshot
>
> https://ibb.co/eopTVT
>
> https://ibb.co/g2wE4o
>
> I got the below when I did the following:
>
> 1st, I did run maven clean
> 2nd, I did maven install
>
> And the error appeared.
>
>
>
> --- maven-resources-plugin:3.0.1:resources (default-resources) @
> SpringBootHi5CRUD ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @
> SpringBootHi5CRUD ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 6 source files to
> C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
> [INFO] -
> [ERROR] COMPILATION ERROR :
> [INFO] -
> [ERROR] No compiler is provided in this environment. Perhaps you are
> running on a JRE rather than a JDK?
> [INFO] 1 error
> [INFO] -
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 16.031 s
> [INFO] Finished at: 2018-06-22T18:53:34+08:00
> [INFO] Final Memory: 20M/182M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
> (default-compile) on project SpringBootHi5CRUD: Compilation failure
> [ERROR] No compiler is provided in this environment. Perhaps you are
> running on a JRE rather than a JDK?
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
>
> If I run using -X switch, I get the below error :
>
> [ERROR] Failed to execute goal
> org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
> (default-cli) on project SpringBootHi5CRUD: An exception occurred while
> running. null: InvocationTargetException: Error creating bean with name
> 'articleServiceImpl': Unsatisfied dependency expressed through field
> 'articleRepository'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'articleRepository': Invocation of init method failed;
> nested exception is java.lang.IllegalArgumentException: Not a managed type:
> class com.StudentRecruit.model.Article -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal
> org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
> (default-cli) on project SpringBootHi5CRUD: An exception occurred while
> running. null
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at
> 

Re: mvn dependency:purge-local-repository

2018-06-15 Thread Jeff MAURY
Looks like you gave mvn as a goal
In eclipse there should be a run as maven menu

Jeff

Le ven. 15 juin 2018 17:45, Karen Goh  a
écrit :

> Hi,
>
> I run into a problem in my Spring Boot Web project and then there's an
> advice following this URL :
>
> https://github.com/spring-projects/spring-boot/issues/12398
>
> But, when I run mvn dependency:purge-local-repository, I get another error
> :
>
> Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or
> a goal in the format : or
> :[:]:. Available
> lifecycle phases are: validate, initialize, generate-sources,
> process-sources, generate-resources, process-resources, compile,
> process-classes, generate-test-sources, process-test-sources,
> generate-test-resources, process-test-resources, test-compile,
> process-test-classes, test, prepare-package, package, pre-integration-test,
> integration-test, post-integration-test, verify, install, deploy,
> pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. ->
> [Help]
>
> I hope someone can tell you how to run mvn
> dependency:purge-local-repository in Eclipse Oxygen.
>
> Tks
>
> Karen
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: [POM.xml][SKIP] - logical test

2018-01-10 Thread Jeff MAURY
You have to deal with properties to do that or a groovy script that will
see to props
ᐧ

On Tue, Jan 9, 2018 at 10:45 AM, loic bourgeois <
loic.bourge...@sgss.socgen.com> wrote:

> Hello,
>
> In my pom.xml I want to skip some steps. The skip run fine but I would like
> to skip sometime with a test between two conditions like:  contition1
> & condition2  or  contition1 || condition2 
>
> Is it possible ? If yes how (there is a specific syntaxe).
>
> Regards,
>
>
>
> --
> Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Post processing generated sources

2016-03-21 Thread Jeff MAURY
You can generate in any folder (under target) but you must add this folder
to the list of source directories so that the maven compiler will process
them
This can be done with the maven API if you have your own Maven plugin or
with the build-helper-plugin

Jeff
Le 21 mars 2016 12:45, "Jens Teglhus Møller" <djar...@gmail.com> a écrit :

> Thanks for the short and precise answer.
>
> Any guidelines as how to organize the code that performs the processing.
> Should I create a new directory in src separate from main and test i.e.
> preprocess and compile it to target/preprocess-classes?
>
> Best regards Jens
>
> And where should i put my source that does the post processing should i
> create my own
>
> On Mon, Mar 21, 2016 at 12:29 PM, Jeff MAURY <jeffma...@gmail.com> wrote:
>
> > Generate-sources
> >
> > Jeff
> > Le 21 mars 2016 12:25, "Jens Teglhus Møller" <djar...@gmail.com> a
> écrit :
> >
> > > Hi
> > >
> > > I'm generating java sources (using jsonschema2pojo and
> jaxb2-maven-plugin
> > > plugin) and I would like to do some post processing on the generated
> > source
> > > files before compiling them (like have some of the generated files
> > > implement certain interfaces, perhaps using roaster).
> > >
> > > I'm a bit unsure which phase I should do that in and if I do it with
> > > roaster I will have probably have a few java files that I would need to
> > > compile and run on the source files (I would prefer not to på that in a
> > > separate project). It could probably be done quite easily with
> > > maven-antrun-plugin but I'm but I'm interested to know if there is a
> > smart
> > > way to do it.
> > >
> > > Best regards Jens
> > >
> >
>


Re: Post processing generated sources

2016-03-21 Thread Jeff MAURY
Generate-sources

Jeff
Le 21 mars 2016 12:25, "Jens Teglhus Møller"  a écrit :

> Hi
>
> I'm generating java sources (using jsonschema2pojo and jaxb2-maven-plugin
> plugin) and I would like to do some post processing on the generated source
> files before compiling them (like have some of the generated files
> implement certain interfaces, perhaps using roaster).
>
> I'm a bit unsure which phase I should do that in and if I do it with
> roaster I will have probably have a few java files that I would need to
> compile and run on the source files (I would prefer not to på that in a
> separate project). It could probably be done quite easily with
> maven-antrun-plugin but I'm but I'm interested to know if there is a smart
> way to do it.
>
> Best regards Jens
>


Re: valid p2 repository?

2015-12-01 Thread Jeff MAURY
Did you tried the standard Eclipse P2 repositories ?

Jeff

On Tue, Dec 1, 2015 at 3:44 PM, Martin Gainty <mgai...@hotmail.com> wrote:

> all of them but my immediate need is :
> Caused by:
> org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
> Could not find "javax.annotation/1.2.0.v201401042248" in the repositories
> of the current location
> Thanks!
> Martin __
>
>
>
> > Date: Tue, 1 Dec 2015 14:18:13 +0100
> > Subject: Re: valid p2 repository?
> > From: jeffma...@gmail.com
> > To: users@maven.apache.org
> >
> > Which artifacts are you looking for ?
> >
> > Jeff
> > Le 1 déc. 2015 13:56, "Martin Gainty" <mgai...@hotmail.com> a écrit :
> >
> > > Anyone know of a valid P2 repositories ?i tried this supposedly valid
> p2
> > > repository:
> > >
> http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
> > > cannot resolve any of the repository location="" for P2 artifacts or
> > > plugins referenced in build.target?
> > >
> > > guide is here:
> > >
> > >
> http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
> > > Thanks,
> > > Martin Gainty
> > > __
> > >
> > >
>
>



-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: valid p2 repository?

2015-12-01 Thread Jeff MAURY
Which artifacts are you looking for ?

Jeff
Le 1 déc. 2015 13:56, "Martin Gainty"  a écrit :

> Anyone know of a valid P2 repositories ?i tried this supposedly valid p2
> repository:
> http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
> cannot resolve any of the repository location="" for P2 artifacts or
> plugins referenced in build.target?
>
> guide is here:
>
> http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
> Thanks,
> Martin Gainty
> __
>
>


Re: valid p2 repository?

2015-12-01 Thread Jeff MAURY
http://download.eclipse.org/releases/kepler

Jeff

On Tue, Dec 1, 2015 at 5:08 PM, Martin Gainty <mgai...@hotmail.com> wrote:

> using kepler but the http://?; need be resolved at
> command-lineapologies but i dont know the repository urls for "standard
> eclipse p2 repositories"the p2 repository URL for kepler is...?
> Martin
> __
>
>
>
> > From: jeffma...@jeffmaury.com
> > Date: Tue, 1 Dec 2015 16:19:00 +0100
> > Subject: Re: valid p2 repository?
> > To: users@maven.apache.org
> >
> > Did you tried the standard Eclipse P2 repositories ?
> >
> > Jeff
> >
> > On Tue, Dec 1, 2015 at 3:44 PM, Martin Gainty <mgai...@hotmail.com>
> wrote:
> >
> > > all of them but my immediate need is :
> > > Caused by:
> > > org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
> > > Could not find "javax.annotation/1.2.0.v201401042248" in the
> repositories
> > > of the current location
> > > Thanks!
> > > Martin __
> > >
> > >
> > >
> > > > Date: Tue, 1 Dec 2015 14:18:13 +0100
> > > > Subject: Re: valid p2 repository?
> > > > From: jeffma...@gmail.com
> > > > To: users@maven.apache.org
> > > >
> > > > Which artifacts are you looking for ?
> > > >
> > > > Jeff
> > > > Le 1 déc. 2015 13:56, "Martin Gainty" <mgai...@hotmail.com> a écrit
> :
> > > >
> > > > > Anyone know of a valid P2 repositories ?i tried this supposedly
> valid
> > > p2
> > > > > repository:
> > > > >
> > >
> http://download.eclipse.org/tools/orbit/downloads/drops/R20130827064939/repository/but
> > > > > cannot resolve any of the repository location="" for P2 artifacts
> or
> > > > > plugins referenced in build.target?
> > > > >
> > > > > guide is here:
> > > > >
> > > > >
> > >
> http://www.eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-publisher-plugin/attach-artifacts-mojo.html
> > > > > Thanks,
> > > > > Martin Gainty
> > > > > __
> > > > >
> > > > >
> > >
> > >
> >
> >
> >
> > --
> > Jeff MAURY
> >
> >
> > "Legacy code" often differs from its suggested alternative by actually
> > working and scaling.
> >  - Bjarne Stroustrup
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
> > http://www.twitter.com/jeffmaury
>
>



-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Solaris

2015-11-04 Thread Jeff MAURY
Not sure the Maven scripts supports tcsh. Switch to bash if you can.

Regards
Jeff

On Wed, Nov 4, 2015 at 5:20 PM, james pruett <gpscru...@gmail.com> wrote:

> Hi,
>
> I am compiling maven on Solaris.   apache-maven-3.3-3.bin.tar.gz
>
> My environment is:
>
> echo $0
> tcsh
>
>
> I get this error
>
> /apache-maven-3.3.3/bin % ./mvn
> ./mvn: syntax error at line 200: `(' unexpected
>
>
> line 200 says: local basedir=($pwd)
>
>
>
> Any help appreciated!
> Jim
>



-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: MRELEASE: Release only modules, not project itself

2015-09-24 Thread Jeff MAURY
What is the problem with releasing the parent pom ?

Jeff
Le 24 sept. 2015 10:58, "Wouter Lievens"  a
écrit :

> Hello,
>
> I would like to run the release plugin (prepare/perform) for a top-level
> POM (packaging "pom") that has a big list of modules.
> The top project itself doesn't need to be tagged, released and deployed,
> because it's there only to build the modules in good order.
> So, I want the release plugin run over each module, and only on those
> modules.
>
> Is this possible? Could this be added as a feature?
>
> Best regards,
> Wouter Lievens
>
>
> --
> Wouter Lievens
> Senior Software Architect
> CMOSIS bvba
> Phone +32 3 260 17 58
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Help on parent pom for spring boot project

2015-09-19 Thread Jeff MAURY
If you follow Maven rules if you import both spring boot and Jackson then
the version of Jackson use will be the one from you pom

Jeff
Le 19 sept. 2015 04:16, "Subramanian Olagappan" <osu...@gmail.com> a écrit :

> Hi Jeff,
>
> This is one option and it is listed in the spring documentation. In our
> case, eg: we want to use newer version of jaxson and "import" is not
> working. The working soln is, have spring-boot-starter-parent as parent pom
> and over ride the jaxson version ( as listed in the doc, see the URL in my
> original post )
>
> With spring-boot-starter-parent as parent pom, I'm not able to use our
> existing company parent pom which has lot of plugin and other tools for
> build.
>
> Thanks for your inputs.
>
> Regards,
> Subbu
>
> On Sat, Sep 19, 2015 at 1:03 AM, Jeff MAURY <jeffma...@gmail.com> wrote:
>
>> Use import scope for boot pom
>>
>> Jeff
>> Le 18 sept. 2015 19:59, "Subramanian Olagappan" <osu...@gmail.com> a
>> écrit :
>>
>> > Sorry.. re-sending it again.
>> >
>> > Thanks,
>> > Subbu
>> >
>> > On Fri, Sep 18, 2015 at 11:21 PM, Subramanian Olagappan <
>> osu...@gmail.com>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > We have a company wide parent pom for all the projects and it has all
>> the
>> > > plugin and distribution management code. I now have a new project
>> where
>> > we
>> > > wanted to use spring-boot-starter-parent. We also wanted to update
>> few of
>> > > the versions using the property tag [ As described in 13.1.3 of
>> > >
>> >
>> http://docs.spring.io/spring-boot/docs/1.3.0.M5/reference/htmlsingle/#using-boot-maven-without-a-parent
>> > > ]
>> > >
>> > > We don't want to create one more company parent for spring boot
>> projects
>> > > with a copy of plugin, distribution management and
>> > > spring-boot-starter-parent.
>> > >
>> > > Is there any way I can reuse my existing company wide parent pom to
>> > create
>> > > a parent pom for spring boot projects.
>> > >
>> > > What is the best practice to follow when you have a existing company
>> wide
>> > > parent pom and want to override few spring boot dependent versions.
>> > >
>> > > If you can give some examples, it will be helpful to me.
>> > >
>> > > Thanks,
>> > > Subbu
>> > >
>> >
>>
>
>


Re: Help on parent pom for spring boot project

2015-09-18 Thread Jeff MAURY
Use import scope for boot pom

Jeff
Le 18 sept. 2015 19:59, "Subramanian Olagappan"  a écrit :

> Sorry.. re-sending it again.
>
> Thanks,
> Subbu
>
> On Fri, Sep 18, 2015 at 11:21 PM, Subramanian Olagappan 
> wrote:
>
> > Hi,
> >
> > We have a company wide parent pom for all the projects and it has all the
> > plugin and distribution management code. I now have a new project where
> we
> > wanted to use spring-boot-starter-parent. We also wanted to update few of
> > the versions using the property tag [ As described in 13.1.3 of
> >
> http://docs.spring.io/spring-boot/docs/1.3.0.M5/reference/htmlsingle/#using-boot-maven-without-a-parent
> > ]
> >
> > We don't want to create one more company parent for spring boot projects
> > with a copy of plugin, distribution management and
> > spring-boot-starter-parent.
> >
> > Is there any way I can reuse my existing company wide parent pom to
> create
> > a parent pom for spring boot projects.
> >
> > What is the best practice to follow when you have a existing company wide
> > parent pom and want to override few spring boot dependent versions.
> >
> > If you can give some examples, it will be helpful to me.
> >
> > Thanks,
> > Subbu
> >
>


Re: Java heap space error

2015-08-27 Thread Jeff MAURY
Change MAVEN_OPTS accordingly

Jeff
Le 27 août 2015 21:28, michael.ctr.taru...@faa.gov a écrit :

 When running Maven to build a COTS product I am getting the following
 exception thrown:

 Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17
 11:22:22-0400)
 Maven home: C:\Apache\apache-maven-3.1.1\bin\..
 Java version: 1.7.0_85, vendor: Oracle Corporation
 Java home: C:\Dev\Java\jdk1.7.0_85\jre
 Default locale: en_US, platform encoding: Cp1252
 OS name: windows 7, version: 6.1, arch: amd64, family: windows
 [INFO] Error stacktraces are turned on.
 [DEBUG] Reading global settings from
 C:\Apache\apache-maven-3.1.1\bin\..\conf\settings.xml
 [DEBUG] Reading user settings from C:\Users\Michael CTR
 Tarullo.FAA\.m2\settings.xml
 [DEBUG] Using local repository at C:\Users\Michael CTR
 Tarullo.FAA\.m2\fuse-offline-repository-620133
 [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0
 for C:\Users\Michael CTR Tarullo.FAA\.m2\fuse-offline-repository-620133
 [INFO] Scanning for projects...
 [ERROR] Java heap space - [Help 1]
 java.lang.OutOfMemoryError: Java heap space
 at java.util.HashMap.inflateTable(HashMap.java:316)
 at java.util.HashMap.put(HashMap.java:488)
 at
 org.apache.maven.model.ConfigurationContainer.setLocation(ConfigurationContainer.java:230)
 at
 org.apache.maven.model.inheritance.DefaultInheritanceAssembler$InheritanceModelMerger.mergePluginContainer_Plugins(DefaultInheritanceAssembler.java:147)
 at
 org.apache.maven.model.merge.ModelMerger.mergePluginContainer(ModelMerger.java:2470)
 at
 org.apache.maven.model.merge.ModelMerger.mergePluginManagement(ModelMerger.java:2504)
 at
 org.apache.maven.model.merge.ModelMerger.mergePluginConfiguration_PluginManagement(ModelMerger.java:2463)
 at
 org.apache.maven.model.merge.ModelMerger.mergePluginConfiguration(ModelMerger.java:2448)
 at
 org.apache.maven.model.merge.ModelMerger.mergeBuildBase(ModelMerger.java:2323)
 at
 org.apache.maven.model.merge.ModelMerger.mergeBuild(ModelMerger.java:2163)
 at
 org.apache.maven.model.merge.ModelMerger.mergeModel_Build(ModelMerger.java:494)
 at
 org.apache.maven.model.merge.ModelMerger.mergeModel(ModelMerger.java:146)
 at
 org.apache.maven.model.merge.MavenModelMerger.mergeModel(MavenModelMerger.java:79)
 at
 org.apache.maven.model.merge.ModelMerger.merge(ModelMerger.java:120)
 at
 org.apache.maven.model.inheritance.DefaultInheritanceAssembler.assembleModelInheritance(DefaultInheritanceAssembler.java:56)
 at
 org.apache.maven.model.building.DefaultModelBuilder.assembleInheritance(DefaultModelBuilder.java:636)
 at
 org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:330)
 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:411)
 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:496)
 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:496)
 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344)
 at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:637)
 at
 org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:586)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:229)
 at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)


 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294




Re: How to delete certain snapshots from Nexus

2015-07-21 Thread Jeff MAURY
Nexus tasks ?
Jeff
Le 21 juil. 2015 18:03, David Hoffer dhoff...@gmail.com a écrit :

 We use Nexus as our corporate Maven repository and would like to
 periodically delete certain SNAPSHOT artifacts.  We need to be able to
 filter/select by groupId and by version...so delete all where
 groupId=com.mycomp.mygroupid.* and version=X.SNAPSHOT.

 Our use case is that when we refactor part of the build to use new groupIds
 the old ones are not valid anymore however sometimes there is a lingering
 reference to the old groupId, if we can delete all the old SNAPSHOTS we
 could find those errors now instead of when we release.

 Any ideas on how to do this are much appreciated.

 -Dave



Re: mvn deploy:deploy-file with same groupId artifactId but different classifiers

2015-06-29 Thread Jeff MAURY
I think you should have a look at the generatePom parameter (
https://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html#generatePom)
which is true by default and should be false for the second call.

Jeff

On Mon, Jun 29, 2015 at 11:11 AM, Francois Marot francois.ma...@gmail.com
wrote:

 Thanks Sandra,

 but I'm not sure I understand: I already use the -Dclassifier= parameter in
 the 2 command I copy/pasted above.
 Do you mean setting linux/windows instead of
 natives-linux/natives-win would change something ? I think classifiers
 are form-free and I kind of need the prefix native- in front of it so
 that other parts of the build can handle those dependencies as native ones
 (for example this plugni: https://code.google.com/p/mavennatives/)



 - - - - -


 *François Marot06-50-91-96-38*

 On 29 June 2015 at 09:57, Sandra Parsick spars...@web.de wrote:

  Hi,
 
  you can use the property -Dclassifier. For the Linux build I would use
  -Dclassifier=linux and for the Windows build -Dclassifier=win.
 
  Best regards,
 
  Sandra
 
  Am 29.06.2015 um 09:53 schrieb Francois MAROT:
   Hello all,
  
   I'm in the process of converting an existing build to Maven. I have
   2 Jenkins jobs building the same native library on 2 different
   systems (win / lin). At the end of each one, I want to deploy them
   on my Archiva repo. So I execute the following commands :
  
   On a Linux computer: mvn deploy:deploy-file
   -Dfile=myLib-x64-natives-linux.zip -Dclassifier=natives-linux
   -DgroupId=com.myCompany  -DartifactId=myLib -Dversion=1.0.0
   -DrepositoryId=archiva.internal
   -Durl=http://centos-dev:8090/repository/internal/
  
   On a Windows computer: mvn deploy:deploy-file
   -Dfile=jre-x64-natives-win.zip -Dclassifier=natives-win
   -DgroupId=com.myCompany  -DartifactId=myLib -Dversion=1.0.0
   -DrepositoryId=archiva.internal
   -Durl=http://centos-dev:8090/repository/internal/
  
   Problem is the second command leads to a build failed because the
   pom of the project in version 1.0.0 is already deployed... BUT, I
   am lucky because the artifact with classifier natives-win has
   already been uploaded so both artifact end up on the server
   correctly. So builds depending on them can retreive them correctly
   and everything is fine... ... except that I don't want to base my
   build on luck and would like to know what is the correct way to
   deploy 2 artifacts with everything being the same except the
   qualifier.
  
   How do you pepole deploy a same artifact but built by different
   computers, architectures ?
  
   I'm using Maven 3.3.1  Apache Archiva 2.1.1
  
  
  
   -- View this message in context:
  
 
 http://maven.40175.n5.nabble.com/mvn-deploy-deploy-file-with-same-groupId-artifactId-but-different-classifiers-tp5838931.html
  
  
  Sent from the Maven - Users mailing list archive at Nabble.com.
  
   -
  
  
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: A little puzzle with the build helper

2015-06-26 Thread Jeff MAURY
Please find what I do:

  plugingroupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactIdexecutions
 executionidinitialize-parse-version/id
  phaseinitialize/phasegoals
goalparse-version/goal/goals
configuration  propertyPrefixosgi/propertyPrefix
   /configuration  /execution  execution
   idinitialize-timestamp/id
phaseinitialize/phasegoals
goaltimestamp-property/goal/goals
configuration  nameosgi.buildtime/name
pattern'v'MMddhhmmss/pattern/configuration
   /execution  execution
idinitialize-regex/idphaseinitialize/phase
   goals  goalregex-property/goal
/goalsconfiguration
nameosgi.osgiVersion/name
value${osgi.osgiVersion}/value
regexSNAPSHOT/regex
replacement${osgi.buildtime}/replacement
failIfNoMatchfalse/failIfNoMatch/configuration
   /execution/executions  /plugin



On Fri, Jun 26, 2015 at 11:32 PM, Benson Margulies bimargul...@gmail.com
wrote:

 We don't seem to have a mojo user mailing list post-codehaus, do we?

 I'm trying to use the regexPropertySettings goal to map from Maven
 version to OSGi version, since I need the OSGi version in more places
 than just the manifest.

 I can't figure out how to account for -SNAPSHOT well. It does not work
 very well to specify two 'setting' blocks for the same value; it just
 uses the second -- and I can't figure out how to write a
 regex/replacement pair that maps -SNAPSHOT to _SNAPSHOT if present,
 and to nothing if absent, while also doing other things.

 execution
 idosgi-version/id
 goals
 goalregex-properties/goal
 /goals
 phasegenerate-resources/phase
 configuration
 regexPropertySettings
 regexPropertySetting
 nameosgi-version/name
 value${project.version}/value
 regex${osgi-version-regex}/regex
 replacement${osgi-version-replacement}/replacement
 failIfNoMatchfalse/failIfNoMatch
 /regexPropertySetting
 /regexPropertySettings
 /configuration
 /execution

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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Compiler plugin: generated files by processor not in target/generated-sources

2015-06-19 Thread Jeff MAURY
Hello,

I have a project which uses an annotation processor to generated files. I
switched source and target from 1.6 to 1.5
With 1.6 the files where generated in target/generated-sources.
With 1.5 the files are now generated in target/classes

Does it sound like an expected behavior ?

Thanks

-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Use of Multiple Local Repositories

2015-06-04 Thread Jeff MAURY
Then declare local repo 1 as a remove Maven repo accessed from the file:
URL prefix

Jeff

On Thu, Jun 4, 2015 at 11:41 AM, Curtis Rueden ctrue...@wisc.edu wrote:

 Hi Mehdi,

  it could be great if we can use multiple local reposiry for a build

 That has been discussed before on the list [1]. It was an interesting
 discussion but ultimately Maven does not support such a feature. I think it
 would be useful if a motivated party pursued it, though.

 Regards,
 Curtis

 [1] *
 http://mail-archives.apache.org/mod_mbox/maven-users/201310.mbox/%3C1617140979.4777131.1383039481273.JavaMail.root%40imag.fr%3E
 
 http://mail-archives.apache.org/mod_mbox/maven-users/201310.mbox/%3C1617140979.4777131.1383039481273.JavaMail.root%40imag.fr%3E
 *

 On Thu, Jun 4, 2015 at 10:30 AM, Mehdi Hayani hayani.mehdi...@gmail.com
 wrote:

  Hello,
 
  I'm actually working on a continuous integration platform, and most of
 the
  projects are using Maven as a build tool.
 
  We've found that there is a list of dependencies and plugins most of the
  projects have to download in addition of there specific dependencies.
  Therefore, I though it could be great if we can use multiple local
 reposiry
  for a build, the idea is:
 
 - Local repo 1 : Is the shared folder where we will put dependencies
 that are download by each project.
 - Local repo 2 : this one is created for each project and it will
 contains dependencies that are specific to that project.
 
 
  So while running the build, maven will check in local repo 1, if it
 can't
  find the required librairy it will download it and put it in local repo
 2
 
 
  It there a way to implement this solution :) ?
 
  Thanks in advance
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: AJ to Java converter plugin?

2015-04-19 Thread Jeff MAURY
http://mojo.codehaus.org/aspectj-maven-plugin/ ?

Jeff

On Sun, Apr 19, 2015 at 3:33 AM, Martin Gainty mgai...@hotmail.com wrote:

 Good Evening Gentlemen

 glad you could take a brief respite from eating red-hot texas chili and
 riding broncing bucks
 I am seeking a plugin to convert aspectj (aj) files to plain java
 does such a plugin exist?
 Enjoy Austin!
 Martin
 __






-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Build extension not found when specifying different local repository

2015-03-07 Thread Jeff MAURY
Are you sure the second build is using the same Maven local repo ?

Jeff

On Sat, Mar 7, 2015 at 2:58 PM, Pascal Rapicault pas...@rapicault.net
wrote:

 Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
 2014-12-14T12:29:23-05:00)


 On 03/07/2015 02:44 AM, Jeff MAURY wrote:

 Which version of Maven are you using ?

 Jeff

 On Sat, Mar 7, 2015 at 12:53 AM, Pascal Rapicault pas...@rapicault.net
 wrote:

  Hi,

 I'm trying to do a set of builds where I'm trying to make sure I'm not
 getting extraneous artifacts.

 The first step of the build consists in building Tycho (a set of maven
 plugins for building OSGi / Eclipse things) and to ensure I get clean
 artifacts, I deleted the ~/.m2 folder and now I use the
 -Dmaven.repo.local
 parameter (I know I should not need the two but nonetheless...).
 The build completes and I'm happy.

 Now when I try to build my real project, which uses the freshly built
 maven plugin, here again specifying the -Dmaven.repo.local parameter, I
 get
 an error saying that Maven can't find the build extension (see error
 below).

 I tried many workarounds but none of them are working. Is this expected?
 Do you have any idea on how to avoid this? Thx.

 Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-
 plugin:0.23.0-SNAPSHOT
 or one of its dependencies could not be resolved: Failure to find
 org.eclipse.tycho:tycho-maven-plugin:jar:0.23.0-SNAPSHOT in
 https://oss.sonatype.org/content/repositories/public/ was cached in the
 local repository, resolution will not be reattempted until the update
 interval of tycho has elapsed or updates are forced - [Help 2]

 Pascal

 -
 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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Build extension not found when specifying different local repository

2015-03-06 Thread Jeff MAURY
Which version of Maven are you using ?

Jeff

On Sat, Mar 7, 2015 at 12:53 AM, Pascal Rapicault pas...@rapicault.net
wrote:

 Hi,

 I'm trying to do a set of builds where I'm trying to make sure I'm not
 getting extraneous artifacts.

 The first step of the build consists in building Tycho (a set of maven
 plugins for building OSGi / Eclipse things) and to ensure I get clean
 artifacts, I deleted the ~/.m2 folder and now I use the -Dmaven.repo.local
 parameter (I know I should not need the two but nonetheless...).
 The build completes and I'm happy.

 Now when I try to build my real project, which uses the freshly built
 maven plugin, here again specifying the -Dmaven.repo.local parameter, I get
 an error saying that Maven can't find the build extension (see error below).

 I tried many workarounds but none of them are working. Is this expected?
 Do you have any idea on how to avoid this? Thx.

 Unresolveable build extension: Plugin 
 org.eclipse.tycho:tycho-maven-plugin:0.23.0-SNAPSHOT
 or one of its dependencies could not be resolved: Failure to find
 org.eclipse.tycho:tycho-maven-plugin:jar:0.23.0-SNAPSHOT in
 https://oss.sonatype.org/content/repositories/public/ was cached in the
 local repository, resolution will not be reattempted until the update
 interval of tycho has elapsed or updates are forced - [Help 2]

 Pascal

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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: maven-compiler-plugin ignores Javac annotation processor error

2015-02-21 Thread Jeff MAURY
Sure this is not a Javac problem ?

Jeff

On Fri, Feb 20, 2015 at 9:09 PM, Sébastien Lesaint 
sebastien.lesa...@gmail.com wrote:

 Hello,

 I have been into annotation processing a lot for the past year and a half
 and I am now going back to the basics so that I can share knowledge I
 gathered.

 Doing so, I stumbled upon, again, a problem I had meet very early, for
 which I had googled the solution, but this time I went deeper to figure out
 what was really wrong.

 # the symptoms

 When writing an annotation processor and creating the associated
 service-discovery file
 `META-INF/services/javax.annotation.processing.Processor in a Maven
 module, one needs to disable annotation processing completely (using
 the procnone/proc configuration option of the maven-compiler-plugin)
 otherwise the module compilation succeeds but not a single .class file is
 created.

 # how I investigated

 I compiled the module with the -X option, extracted the javac command line
 and ran it by hand. I got the following compilation error:
 error: Bad service configuration file, or exception thrown while
 constructing Processor object: javax.annotation.processing.Processor:
 Provider com.foo.BarProcessor not found

 The thing is, the com.foo.BarProcessor is the very processor I am compiling
 (and the single .java file of the module).

 # what I found

 I went through the maven logs, spent some time thinking about it and
 believe that we are facing one, maybe two bugs in the
 maven-compiler-plugin:

 1. Maven copies resources from the src/main/resources directory to the
 target/classes directory
 2. the maven-compiler-plugin builds up a javac command line that specifies
 the target/classes directory as a member on the classpath with the
 argument -classpath (is that a bug ? there may be a good reason to do so
 but in a basic jar module setup I can see any)
 3. when run, javac finds a
 META-INF/services/javax.annotation.processing.Processor file in the
 classpath and looks for the specified processor com.foo.BarProcessor 
 4. obviously, this processor can not be found, javac reports an error and
 stops the compilation before it even started compiling anything (ence not a
 single .class file in the target directory)
 5. the error (error: Bad service configuration file, or exception thrown
 while constructing Processor object: javax.annotation.processing.Processor:
 Provider com.foo.BarProcessorr not found) is ignored by the
 maven-compiler-plugin that considers the compilation successful and the
 maven build goes on (this is our big bug)

 # bonus

 Please note that this has pernicious side effects.

 Since the build is successful, the jar which is supposed to contain the
 processor is created but only with the resources which means that it
 contains the META-INF/services/javax.annotation.processing.Processor
 file.

 Now, any module or project which has this jar file as a dependency will
 produce 0 .class file. Their compilation classpath is contaminated with a
 META-INF/services/javax.annotation.processing.Processor which references
 an non existent processor. Javac will therefor fail with the Bad service
 configuration file and produces no .class file.

 # affected versions

 I tested this with Maven 3.1.1  3.2.5, maven-compiler-plugin 2.5, 3.1 and
 3.2 and Oracle JDK 6, 7  8 on a ubuntu 64 bits machine. But, according to
 the various posts, stackoverflow entries, etc. all around the web which
 provide the procnone/proc solution, it occurs on other setups.

 # conclusion

 I initially though I would file a bug in the maven-compiler-plugin JIRA but
 it is unclear how I can create an account.

 So, I am using this mailing list to reach to the experts and the developer
 to get accurate feedback on the matter.

 Thanks in advance,

 Sébastien Lesaint




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: API to resolve a maven coordinate to a URL (no download)??

2015-01-17 Thread Jeff MAURY
Have you looked at Aether ?

Jeff

On Sat, Jan 17, 2015 at 3:15 AM, Dan Tran dant...@gmail.com wrote:

 Hi

 Is there a API to convert a maven coordinate ( including snapshot) to a
 URL?

 I would like the obtain the URL and and do the download myself


 Thanks

 -Dan




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Emotional Support Group for Typesafe Maven Users

2014-12-04 Thread Jeff MAURY
Scala IDE is a piece of crap because it is a piece of crap, not because
Eclipse

Jeff

On Wed, Dec 3, 2014 at 10:05 PM, Simon Ochsenreither 
simon.ochsenreit...@gmail.com wrote:

 I have a lot less issues with SBT than Maven and I think that the Scala
 IDE could be magnitudes better if it wouldn't have to deal with the train
 wreck that is Eclipse.

 Different experiences?


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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Error

2014-11-11 Thread Jeff MAURY
Which version of Maven are you using ?

Jeff
Le Mon Nov 10 2014 at 7:50:35 AM, userB tufanomich...@hotmail.it a écrit :

Hi,

 I'm trying to compile a specific snapshot of Apache log4j.

 I obtain this error:

 http://pastebin.com/Vg00dmfH

 This is the pom.xml

 http://pastebin.com/DbPW7esv

 Do you know what is the problem?

 Thanks!



 --
 View this message in context: http://maven.40175.n5.nabble.c
 om/Error-tp5813409.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: Making an Instrumentation Plugin to Instrument Its Own Tests

2014-10-09 Thread Jeff MAURY
project.build.testOutputDirectory

Jeff

On Thu, Oct 9, 2014 at 3:48 PM, Volkan YAZICI volkan.yaz...@gmail.com
wrote:

 Hello,

 I have a Maven plugin that instruments the classes in
 *project.build.directory*. Further, I have a unit test that checks whether
 the plugin kicks in and instruments the classes right, or not. When I run
 *mvn
 install*, the instrumentation does not kick in since the plugin instruments
 the class files under *project.build.directory*, which points to
 *target/classes*, but misses *target/test-classes*. Here, I either need to
 explicitly let the plugin to access *target/test-classes* directory (if so,
 which *project.build.X* property should I prefer), or configure *pom.xml*
 such that test classes are compiled using the built plugin JAR.

 *Long story short:* Plugin instruments the classes, but while building, I
 also need it to instrument its own test classes as well.

 Any ideas will be really appreciated.

 Best.




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Plugin to invoke SQLLDR

2014-06-26 Thread Jeff MAURY
Exec plugin ?




Jeff

—
Sent from Mailbox for iPhone

On Fri, Jun 27, 2014 at 2:17 AM, hanuman hanumannallap...@gmail.com
wrote:

 Hi All,
 I am planning to invoke SQLLDR from in the POM.xml.
 any idea which plugin we can use to invoke the same?
 Thanks for your help,
 Hanuman
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Plugin-to-invoke-SQLLDR-tp5797813.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: Unmanaged dependency question

2014-05-31 Thread Jeff MAURY
--
   
repository
   
idproject.local/id
   
nameproject/name
   
urlfile:${project.basedir}/repo/url
   
/repository
   
/repositories
   
/project
   
   
   
   
   
Now, here is the problem. Since I want to use this as a dependency in
  other
projects, I am trying to run 'maven install' so that it will push
everything
into my .m2 directory. The maven build is a success. However, the
  resulting
sqljdbc4.jar file in the target directory and up in the m2 directory
 is
only
2kb (whereas the original jar file is 571kb, none of the content made
  it
in). As a result, projects that use this as a dependency build, but
  then
throw a ClassNotFoundException at runtime, because the classes aren't
there.
   
   
   
I am building a separate project that uses this as a dependency:
   
   
   
C:\dev\Github-repos\applications\myapp
   
   
   
The pom.xml for this project uses the dependency correctly:
   
dependency
   
groupIdcom.microsoft.sqlserver/groupId
   
artifactIdsqljdbc4/artifactId
   
version4.0/version
   
/dependency
   
   
   
I'm even using the maven assembly plugin to ensure a jar is built
 with
  all
dependencies packaged in:
   
   
   
plugin
   
   
artifactIdmaven-assembly-plugin/artifactId
   
configuration
   
descriptorRefs
   
   
descriptorRefjar-with-dependencies/descriptorRef
   
/descriptorRefs
   
archive
   
manifest
   
addClasspathtrue/addClasspath
   
   
mainClassproductfeeds.main.ProductFeedDriver/mainClass
   
/manifest
   
/archive
   
/configuration
   
executions
   
execution
   
phasepackage/phase
   
goals
   
goalsingle/goal
   
/goals
   
/execution
   
/executions
   
/plugin
   
   
   
   
   
Any ideas what I'm doing wrong? I'm sure it's something really simple
  I've
overlooked. If I don't make this a standalone dependency, and simply
  use
'mvn install:install-file -Dfile=sqljdbc4.jar
-DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0
-Dpackaging=jar ', then everything works fine.
   
   
   
Thanks,
   
   
   
Matt
   
   
   
   




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Custom plugin: how to process filtered resources

2014-05-18 Thread Jeff MAURY
You need to read them from the target folder.

Jeff


On Sat, May 17, 2014 at 2:44 PM, gdrouet guidro...@gmail.com wrote:

 Hi,

 I wrote a custom plugin that processes some resources inside my project.
 Some of them are filtered before my plugin get executed. However, I don't
 know how my plugin can process the filtered resource. Currently, it could
 only read the raw resource.

 I would like to know how my custom plugin can get the filtered version of
 any resource.

 Can you help me ?

 Thanks !



 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Custom-plugin-how-to-process-filtered-resources-tp5793267.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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Premature decomposition of projects

2013-11-23 Thread Jeff MAURY
Baptiste, you got it.

Jeff


On Sat, Nov 23, 2013 at 10:50 AM, Baptiste Mathus bmat...@batmat.netwrote:

 I guess Jeff is only speaking about version ranges, not snapshots.

 If so, I'm +1 with Jeff. I don't think version ranges should ever be used.

 Cheers
 Le 23 nov. 2013 00:18, Ziga GREGORIC ziga.grego...@gmail.com a écrit :

  Jeff, maybe I'm missing the point, but to have the possibility to define
 a
  SNAPSHOT version of a dependency is the beauty of maven IMHO.
 
  Having said that, I would not feel safe in a large project where lots of
  dependencies are SNAPSHOT dependencies. But when you have a continuous
  integration server, all these SNAPSHOT dependencies will be in 'latest'.
  Ok, it's not really easy, as one might have more than one build agent,
  which implies the need for snapshot maven repository, but this is another
  topic (also on the first link of that thread, but I don't wanna go in
  there).
 
  When a release (with maven-release-plugin) is just a click of a button
  away, you can easily release a milestone version (1.2.03-M1), so the big
  majority of the team can work without the need to build internal SNAPSHOT
  dependencies or mixing own SNAPSHOTS with SNAPSHOTS from team's maven
  repository. Using this approach, you easily get repeatable builds. Only
 the
  team, intentionally working on both the main project and the dependency
  'foo', would set 'foo' to SNAPSHOT in the main project. When 'foo'
 becomes
  feature complete, 'foo' get's released and its version incremented in the
  main project.
 
  The other way is to use buildnumber-maven-plugin, which would fetch
 source
  control revision number, branch name, which you can put into MANIFEST.MF
 -
  have a look at
  http://mojo.codehaus.org/buildnumber-maven-plugin/usage.html
 
  @Viktor, I agree on you last point. When you high cohesion on maven
 project
  level, bring the projects together as a multi module maven project and
  versioning is no longer an issue for modules.
  The issue with snapshot repository is that you have to define who can
  publish and who can use these snapshot artifacts. When we need multiple
  build executors (build agents), and we have a project with a SNAPSHOT
  dependency on another project, we must have a snapshot maven repository
 and
  build agents configured to publish these SNAPSHOTs with every build. But
  this does not mean that every developer has to use this snapshot maven
  repository. I'd actually try to keep developers away from snapshots
  repository. This automatically forces the 'main' project to be easy on
  number of SNAPSHOT dependencies. If you have one, everyone is aware of
 it,
  as it has to be build separately (and one is sure of what revision that
  is).
 
  Sorry for my TL;DR style comment. I just wanted to share my experience
  dealing with non identified versions.
 
  Ziga
 
 
 
  On Fri, Nov 22, 2013 at 10:26 PM, Jeff MAURY jeffma...@jeffmaury.com
  wrote:
 
   Having a build using non identified dependencies (LATEST,...) is a VERY
  bad
   practice: the build is not reproducible and your team will not have
   attentions on dependencies versions.
   A non existing case for me.
  
   Jeff
  
  
   On Fri, Nov 22, 2013 at 5:11 PM, Viktor Sadovnikov 
 vik...@jv-ration.com
   wrote:
  
Hello,
   
Here is an interesting article about dependencies management and
 builds
with Maven, which can become unnecessary overcomplicated
http://bit.ly/1dn9ZZL
   
With regards,
Viktor
   
  
  
  
   --
   Jeff MAURY
  
  
   Legacy code often differs from its suggested alternative by actually
   working and scaling.
- Bjarne Stroustrup
  
   http://www.jeffmaury.com
   http://riadiscuss.jeffmaury.com
   http://www.twitter.com/jeffmaury
  
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Premature decomposition of projects

2013-11-22 Thread Jeff MAURY
Having a build using non identified dependencies (LATEST,...) is a VERY bad
practice: the build is not reproducible and your team will not have
attentions on dependencies versions.
A non existing case for me.

Jeff


On Fri, Nov 22, 2013 at 5:11 PM, Viktor Sadovnikov vik...@jv-ration.comwrote:

 Hello,

 Here is an interesting article about dependencies management and builds
 with Maven, which can become unnecessary overcomplicated
 http://bit.ly/1dn9ZZL

 With regards,
 Viktor




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Error Installing docbook-xml-5.0-all-resources.zip

2013-11-13 Thread Jeff MAURY
]com.agilejava.docbkx:docbkx-maven-base:jar:2.0.14:compile
 [DEBUG]   commons-el:commons-el:jar:1.0:compile
 [DEBUG]   javax.servlet.jsp:jsp-api:jar:2.0:compile
 [DEBUG]   jaxen:jaxen:jar:1.0-FCS:compile
 [DEBUG]   saxpath:saxpath:jar:1.0-FCS:compile
 [DEBUG]   xom:xom:jar:1.1:compile
 [DEBUG]   saxon:saxon:jar:6.5.3:compile
 [DEBUG]   xml-resolver:xml-resolver:jar:1.1:compile
 [DEBUG]   plexus:plexus-utils:jar:1.0.1:compile
 [DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-5:compile
 [DEBUG]   org.apache.maven.plugins:maven-antrun-plugin:jar:1.1:compile
 [DEBUG]  ant:ant-launcher:jar:1.6.5:runtime
 [DEBUG]  ant:ant:jar:1.6.5:compile
 [DEBUG]net.sf.xslthl:xslthl:jar:2.0.1:compile
 [DEBUG]net.sf.docbook:docbook-xsl:zip:ns-resources:1.76.1:compile
 [DEBUG]net.sf.docbook:docbook-xsl-saxon:jar:1.0.0:compile
 [DEBUG]net.sf.docbook:docbook-xsl-webhelpindexer:jar:1.0.0:compile
 [DEBUG]   org.apache.lucene:lucene-core:jar:3.0.0:compile
 [DEBUG]   org.apache.lucene:lucene-analyzers:jar:3.0.0:compile
 [DEBUG]   org.apache.ant:ant:jar:1.7.0:compile
 [DEBUG]  org.apache.ant:ant-launcher:jar:1.7.0:compile
 [DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for
 http://repo.maven.apache.org/maven2
 Downloading:
 http://repo.maven.apache.org/maven2/net/sf/docbook/docbook-xml/5.0-all/docbook-xml-5.0-all-resources.zip

 Thanks for any help in advance,

 Sean




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Error Installing docbook-xml-5.0-all-resources.zip

2013-11-13 Thread Jeff MAURY
Why do you perform the installation manually (as it is on central) ?

Jeff


On Wed, Nov 13, 2013 at 2:49 PM, Sean Smitz ssm...@cssiinc.com wrote:

 I originally tried just compiling normally, both through NetBeans and
 command line.



 I've also tried the following commands to manually perform the
 installation:



 mvn install:install-file -Dfile=docbook-xml-5.0-all-resources.zip
 -DgroupId=net.sf.docbook -DartifactId=docbook-xml -Dversion=5.0-all
 -Dpackaging=zip



 After downloading the pom file from the repository:



 mvn install:install-file -Dfile=docbook-xml-5.0-all-resources.zip
 -DpomFile=docbook-xml-5.0-all.pom



 The pom file appears valid with no weird characters appearing prior to the
 first line and the computed MD5 and SHA1 checksums are valid.



 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
 http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
 



 Sean



 -Original Message-
 From: jeffma...@gmail.com [mailto:jeffma...@gmail.com] On Behalf Of Jeff
 MAURY
 Sent: Wednesday, November 13, 2013 04:24
 To: Maven Users List
 Subject: Re: Error Installing docbook-xml-5.0-all-resources.zip



 I don't know how you installed the dependency bu can you check the file
 C:\Users\ssmitz\.m2\repository\net\sf\docbook\docbook-xml\5.0-all\docbook-xml-5.0-all.pom

 as it does not appear to be a valid XML file.



 Regards

 Jeff





 On Tue, Nov 12, 2013 at 8:03 PM, Sean Smitz ssm...@cssiinc.commailto:
 ssm...@cssiinc.com wrote:



  I have also tried installing the docbook-xml-5.0-all-resources.zip

  plugin manually using both the POM from the repository and command line
 flags.

  Everytime I encounter the following error trying to compile a project

  after adding a dependency to Docbook 5.0:

  POM:

 

  plugins

  plugin

  groupIdcom.agilejava.docbkx/groupId

  artifactIddocbkx-maven-plugin/artifactId

  version2.0.14/version ...

  dependencies

  dependency

  groupIdnet.sf.docbook/groupId

  artifactIddocbook-xml/artifactId

  version5.0-all/version

  classifierresources/classifier

  typezip/type

  scoperuntime/scope

  /dependency

  /dependencies

  /plugin

  ...

  /plugins

 

  ERROR:

  [INFO] --- docbkx-maven-plugin:2.0.14:generate-html (reference manual)

  @ swac-users-guide --- [WARNING] The POM for

  net.sf.docbook:docbook-xml:zip:resources:5.0-all is invalid,

  transitive dependencies (if any) will not be available: 1 problem was

  encountered while building the effective model [FATAL] Non-parseable

  POM

 
 C:\Users\ssmitz\.m2\repository\net\sf\docbook\docbook-xml\5.0-all\docbook-xml-5.0-all.pom:

  only whitespace content allowed before start tag and not P (position:

  START_DOCUMENT seen P... @1:1)  @ line 1, column 1 [DEBUG] Dependency

  collection stats: {ConflictMarker.analyzeTime=1,

  ConflictMarker.markTime=1, ConflictMarker.nodeCount=265,

  ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0,

  ConflictIdSorter.conflictIdCount=66,

  ConflictIdSorter.conflictIdCycleCount=4,

  ConflictResolver.totalTime=15, ConflictResolver.conflictItemCount=166,

  DefaultDependencyCollector.collectTime=167,

  DefaultDependencyCollector.transformTime=18}

  [DEBUG] com.agilejava.docbkx:docbkx-maven-plugin:jar:2.0.14:

  [DEBUG]net.sf.docbook:docbook-xml:zip:resources:5.0-all:runtime

  [DEBUG]antlr:stringtemplate:jar:2.2:compile

  [DEBUG]   antlr:antlr:jar:2.7.2:compile

  [DEBUG]xerces:xercesImpl:jar:2.8.0:runtime

  [DEBUG]   xml-apis:xml-apis:jar:1.3.03:compile

  [DEBUG]xerces:xmlParserAPIs:jar:2.6.2:runtime

  [DEBUG]org.apache.xmlgraphics:fop:jar:1.0:compile

  [DEBUG]   org.apache.xmlgraphics:xmlgraphics-commons:jar:1.4:compile

  [DEBUG]   org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile

  [DEBUG]  org.apache.xmlgraphics:batik-anim:jar:1.7:compile

  [DEBUG]  org.apache.xmlgraphics:batik-css:jar:1.7:compile

  [DEBUG]  org.apache.xmlgraphics:batik-dom:jar:1.7:compile

  [DEBUG]  org.apache.xmlgraphics:batik-parser:jar:1.7:compile

  [DEBUG]  org.apache.xmlgraphics:batik-util:jar:1.7:compile

  [DEBUG]  xml-apis:xml-apis-ext:jar:1.3.04:compile

  [DEBUG]   org.apache.xmlgraphics:batik-bridge:jar:1.7:compile

  [DEBUG]  org.apache.xmlgraphics:batik-script:jar:1.7:compile

  [DEBUG] org.apache.xmlgraphics:batik-js:jar:1.7:compile

  [DEBUG]  org.apache.xmlgraphics:batik-xml:jar:1.7:compile

  [DEBUG]   org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile

  [DEBUG]   org.apache.xmlgraphics:batik-gvt:jar:1.7:compile

Re: deplot at end not working

2013-11-08 Thread Jeff MAURY
—
Sent from Mailbox for iPhone

On Fri, Nov 8, 2013 at 6:22 PM, null alejandro.e...@miranda.com wrote:

 I'm using m-d-p 2.8.1 using the new deploy at end config. I also use 
 install at end in the m-i-p. However, what I see is that sometimes the 
 artifacts are not installed nor deployed at all.
 I see the normal execution of the plugins with the ** will be deployed at 
 end in both cases. But comparing the cases when it does work and when it 
 doesn't, when it does I see a final invocation to m-d-p where the deploy 
 happens. This last invocation sometimes doesn't happen. I have -X logs for 
 both cases but the case where it doesn't work, the build is like 
 200modules so the log is 150MB
 I'm using differential builds in jenkins (mvn -amd -pl ) in the one that 
 worked, and it built and deployed like 10artifacts that changed. But when 
 I run it without -amd -pl, i.e. a full build, it never deploys nor 
 installs at end
 This is the last part of when it doesn't work (some obfuscations done)
 [DEBUG]   (f) retryFailedDeploymentCount = 1
 [DEBUG]   (f) skip = false
 [DEBUG]   (f) updateReleaseInfo = false
 [DEBUG]   (f) project = MavenProject: com.tools:blah:1.0.0-SNAPSHOT @ 
 /var/lib/jenkins/workspace/blah/tools/upgrade/pom.xml
 [DEBUG] -- end configuration --
 [INFO] Deploying com.tools:blah:1.0.0-SNAPSHOT at end
 projectSucceeded com.tools:blah:1.0.0-SNAPSHOT
 sessionEnded
 [INFO] 
 
 [INFO] Reactor Summary:
 [INFO]
 
 when it does work i see at the end the deploy plugin running
 Uploaded: http://someUrl/maven-metadata.xml (415 B at 1.0 KB/sec)
 mojoSucceeded 
 org.apache.maven.plugins:maven-deploy-plugin:2.8.1(default-deploy)
 projectSucceeded com.tools.other:foo.1.0.0-SNAPSHOT
 sessionEnded
 [INFO] 
 
 [INFO] Reactor Summary:
 ...
 Is this a known issue or am I doing something wrong?
 Let me know if someone needs more details
 Thank you, 
 Alejandro Endo | Software Designer/Concepteur de logiciels
 DISCLAIMER:
 Privileged and/or Confidential information may be contained in this
 message. If you are not the addressee of this message, you may not
 copy, use or deliver this message to anyone. In such event, you
 should destroy the message and kindly notify the sender by reply
 e-mail. It is understood that opinions or conclusions that do not
 relate to the official business of the company are neither given
 nor endorsed by the company.
 Thank You.

Re: Get last version of a artifact

2013-10-30 Thread Jeff MAURY
You're probably missing a dependency.

Jeff


On Wed, Oct 30, 2013 at 2:24 PM, Romain Gilles romain.gil...@gmail.comwrote:

 Hi all,
 I'm developing a maven plugin and I want to discover the last version of a
 specific artifact. I had a look to the maven-vesions-plugin. But I don't
 know why when I try to get a (deprecated) ArtifacteMetadataSource as
 follow:
@Component
 private ArtifactMetadataSource artifactMetadataSource

 I get an exception:

 1) No implementation for
 org.apache.maven.repository.legacy.metadata.ArtifactMetadataSource was
 bound.

 I'm usign Maven 3.0.5 as a model and runtime.
 Could somebody help me?

 Thanks,

 Romain.




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: file based mirror

2013-09-21 Thread Jeff MAURY
Use the file form of URL




Jeff

—
Sent from Mailbox for iPhone

On Sat, Sep 21, 2013 at 12:55 PM, Michael Hüttermann
mich...@huettermann.net wrote:

  Hello,
  as the mirror in the settings.xml, is it possible to reference a file 
  based repository as URL? How to define it?
  Best regards
  Michael
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

Re: How can I compile all .thrift files (*.thrift) as a Maven phase?

2013-09-13 Thread Jeff MAURY
You should use an ant fileset in your ant script instead of a file




Jeff

—
Sent from Mailbox for iPhone

On Fri, Sep 13, 2013 at 6:10 PM, Andrew Pennebaker apenneba...@42six.com
wrote:

 When I use an asterisk (*) in arg, Maven complains:
 [INFO] --- maven-antrun-plugin:1.3:run (generate-sources) @ sigacts ---
 [INFO] Executing tasks
  [exec]
  [exec] [FAILURE:arguments:1] Could not open input file with realpath:
 src/main/thrift/*.thrift
  [exec] Result: 1
 On Thu, Sep 12, 2013 at 3:41 PM, Michael-O 1983-01...@gmx.net wrote:
 Am 2013-09-12 17:09, schrieb Andrew Pennebaker:

  I'm using maven-antrun-plugin to execute a thrift shell command. I can
 compile one file per exec with arg value=...path/to/file.thrift /,
 but I would like to compile all .thrift files in a directory. How can I do
 this?

 I tried using arg value=...path/to/*.thrift /, but Maven rejected this
 syntax.


 I have answered this already before: http://stackoverflow.com/a/**
 6781742/696632 http://stackoverflow.com/a/6781742/696632

 HTH,

 Michael


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



Re: odd behavior of running tests with surefire plugin

2013-07-30 Thread Jeff MAURY
 extensions
 extension
 groupIdorg.apache.maven.**wagon/groupId
 artifactIdwagon-ssh/**artifactId
 version1.0-beta-6/version
 /extension
 /extensions
 /build

 and get the JettyTest and Cobertura in a profile called all-test

 profiles
 profile
 idall-test/id
 build
 pluginManagement
 plugins
 plugin
 groupIdorg.apache.maven.**plugins/groupId
 artifactIdmaven-surefire-**plugin/artifactId
 configuration
 argLine-Xms512m -Xmx1024m
 -XX:MaxPermSize=512m/argLine
 junitArtifactNamejunit:**junit/junitArtifactName
 includes
 include**/*UnitTest*/**include
 include**/*JettyTest*/**include
 /includes
 /configuration
 /plugin
 plugin
 groupIdorg.codehaus.mojo/**groupId
 artifactIdcobertura-maven-**plugin/artifactId
 configuration
 skip${maven.test.skip}/**skip
 check
 branchRate30/branchRate
 lineRate30/lineRate
 haltOnFailuretrue/**haltOnFailure
 totalBranchRate55/**totalBranchRate
 totalLineRate55/**totalLineRate
 packageLineRate50/**packageLineRate
 packageBranchRate50/**packageBranchRate
 /check
 /configuration
 executions
 execution
 goals
 goalclean/goal
 goalcheck/goal
 /goals
 /execution
 /executions
 /plugin
 /plugins
 /pluginManagement
 /build
 /profile
 /profiles

 It runs fine in my centos 5.5 x86_64. But if I submit it to centos 5.7
 x86_64, jetty tests are giving me all kinds of errors, like the jetty
 server cannot be initiated right. But with the original configuration,
 jetty tests are OK. I'm so confused. Totally out of clues. Can any one
 please give me some hint/insights? Anything would be deeply appreciated




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: webstart application and Java7u25

2013-07-26 Thread Jeff MAURY
I don't see why do you need of Mojo for that.

Jeff


On Fri, Jul 26, 2013 at 11:34 AM, Laurent Forêt laurent.fo...@gmail.comwrote:

 Hello Davide,

   I had the same issue with signing applets. After a quick search, I come
 to the conclusion that we need to override the jarsigner plugin with
 writing a new mojo which will use
 use the maven archiver (
 http://maven.apache.org/shared/maven-archiver/index.html)  and the
 mecanism
 of the dependency-plugin:copy to achieve this.

 If you find a better solution, I will be pleased to hear about that.


 Laurent Forêt
 @laurentforet
 http://www.devcoop.fr


 On Thu, Jul 25, 2013 at 2:30 PM, Davide Silvestre d...@cdrator.com wrote:

  Hello,
  In Java 7u25 the following change has been introduced:
 
 http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/no_redeploy.html
  This requires that all the jars included in my webstart application have
 2
  extra entries in their manifest files.
  I build and I sign the jars contained in my webstart application using
 the
  Webstart Maven Plugin version 1.0-beta-3.
 
  To solve this I should add the 2 new manifest entries in all the jars
 used
  by my application, but this is not always possible, as most of my
  dependencies are already deployed in our Nexus repository and some of
 them
  are thirdparty dependencies, coming from external repositories.
 
  Is there a way to add those entries in all my dependencies before they
 are
  signed?
 
  Thanks!
  David
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: webstart application and Java7u25

2013-07-26 Thread Jeff MAURY
I didn't get the dependency issue.

Jeff


On Fri, Jul 26, 2013 at 5:49 PM, Laurent Forêt laurent.fo...@gmail.comwrote:

 To secure and make deployable an applet or a WebStartApp, you have to :

   * get the dependencies
   * modify each manifest (you also have to deal with
 http://docs.oracle.com/javase/6/docs/technotes/guides/jweb/mixed_code.html#
 )
   * and sign the jar.

 If you have something else than a specific mojo which can do that, I will
 be pleased to hear about that.

 AFAIK the only plugin that can deal with the archiver and change a manifest
 of an artifact is the jar plugin.

 Thanks.

 Laurent Forêt
 @laurentforet
 http://www.devcoop.fr


 On Fri, Jul 26, 2013 at 4:59 PM, Jeff MAURY jeffma...@jeffmaury.com
 wrote:

  I don't see why do you need of Mojo for that.
 
  Jeff
 
 
  On Fri, Jul 26, 2013 at 11:34 AM, Laurent Forêt laurent.fo...@gmail.com
  wrote:
 
   Hello Davide,
  
 I had the same issue with signing applets. After a quick search, I
 come
   to the conclusion that we need to override the jarsigner plugin with
   writing a new mojo which will use
   use the maven archiver (
   http://maven.apache.org/shared/maven-archiver/index.html)  and the
   mecanism
   of the dependency-plugin:copy to achieve this.
  
   If you find a better solution, I will be pleased to hear about that.
  
  
   Laurent Forêt
   @laurentforet
   http://www.devcoop.fr
  
  
   On Thu, Jul 25, 2013 at 2:30 PM, Davide Silvestre d...@cdrator.com
  wrote:
  
Hello,
In Java 7u25 the following change has been introduced:
   
  
 
 http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/no_redeploy.html
This requires that all the jars included in my webstart application
  have
   2
extra entries in their manifest files.
I build and I sign the jars contained in my webstart application
 using
   the
Webstart Maven Plugin version 1.0-beta-3.
   
To solve this I should add the 2 new manifest entries in all the jars
   used
by my application, but this is not always possible, as most of my
dependencies are already deployed in our Nexus repository and some of
   them
are thirdparty dependencies, coming from external repositories.
   
Is there a way to add those entries in all my dependencies before
 they
   are
signed?
   
Thanks!
David
   
  
 
 
 
  --
  Jeff MAURY
 
 
  Legacy code often differs from its suggested alternative by actually
  working and scaling.
   - Bjarne Stroustrup
 
  http://www.jeffmaury.com
  http://riadiscuss.jeffmaury.com
  http://www.twitter.com/jeffmaury
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: MANIFEST.MF into assembly plugin

2013-06-28 Thread Jeff MAURY
Why don't you use the maven war plugin to generate the MANIFEST.MF with
your entries ?

Jeff


On Fri, Jun 28, 2013 at 10:31 AM, adrien ruffie
adriennolar...@hotmail.frwrote:

 Hello all,

 ** **

 I have a problem, Perhaps you know a solution.

 ** **

 I have the following (in attached file) plugin to build a distribution,
 with unpackaged war, and several jars (built to from the webapp). I search
 to place a manifest with several information in my unpackaged war directory
 into /classes/META-INF but I doesn’t find how I can generate a MANIFEST.MF
 and place it at this Location. I have try to use configuration +
 archive + manifest … into maven-assembly-plugin 2.4 but doesn’t work …
 

 Do you know a solution ?

 ** **

 I think jar manifest as far as war manifest is generated and integrated
 into jar/war archive during its packaging/zip but, we cannot exporte get it
 before, to extract it to another location.

 ** **

 ** **

 Thank and best regards,

 ** **

 adrien


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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: MANIFEST.MF into assembly plugin

2013-06-28 Thread Jeff MAURY
The Maven war plugin can handle exploded. Even if you need some
distribution, having then generated by the Maven WAR plugin will make sure
users of the WAR will benefit from it

Jeff


On Fri, Jun 28, 2013 at 1:34 PM, adrien ruffie adriennolar...@hotmail.frwrote:

 Because I don't use warm aven plugin, my webapp is exploded in my
 distribution packaging (it is one of directories located in my main
 distribution), so that's why I doesn't generate a war.
 Therefore Maven doesn't pass through the war packaging phase where it is
 supposed to generate the manifest

 -Message d'origine-
 De : jeffma...@gmail.com [mailto:jeffma...@gmail.com] De la part de Jeff
 MAURY
 Envoyé : vendredi 28 juin 2013 11:04
 À : Maven Users List
 Objet : Re: MANIFEST.MF into assembly plugin

 Why don't you use the maven war plugin to generate the MANIFEST.MF with
 your
 entries ?

 Jeff


 On Fri, Jun 28, 2013 at 10:31 AM, adrien ruffie
 adriennolar...@hotmail.frwrote:

  Hello all,
 
  ** **
 
  I have a problem, Perhaps you know a solution.
 
  ** **
 
  I have the following (in attached file) plugin to build a
  distribution, with unpackaged war, and several jars (built to from the
  webapp). I search to place a manifest with several information in my
  unpackaged war directory into /classes/META-INF but I doesn’t find how
  I can generate a MANIFEST.MF and place it at this Location. I have try
  to use configuration + archive + manifest … into
  maven-assembly-plugin 2.4 but doesn’t work …
  
 
  Do you know a solution ?
 
  ** **
 
  I think jar manifest as far as war manifest is generated and
  integrated into jar/war archive during its packaging/zip but, we
  cannot exporte get it before, to extract it to another location.
 
  ** **
 
  ** **
 
  Thank and best regards,
 
  ** **
 
  adrien
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 



 --
 Jeff MAURY


 Legacy code often differs from its suggested alternative by actually
 working and scaling.
  - Bjarne Stroustrup

 http://www.jeffmaury.com
 http://riadiscuss.jeffmaury.com
 http://www.twitter.com/jeffmaury


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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Can't manage to download a site with wagon maven plugin

2013-06-13 Thread Jeff MAURY
Hello,

I want to setup my pom in order to dowload a remote web site through HTTP.
Here is my POM:

project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion

groupIdcom.jeffmaury/groupId
 artifactIdwagon-http-test/artifactId
version0.0.1-SNAPSHOT/version
packagingjar/packaging

namewagon-http-test/name
urlhttp://maven.apache.org/url

properties
project.build.sourceEncodingUTF-8/project.build.sourceEncoding
 /properties

build
extensions
 extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-http/artifactId
 version2.4/version
/extension
/extensions
 plugins
plugin
groupIdorg.codehaus.mojo/groupId
 artifactIdwagon-maven-plugin/artifactId
version1.0-beta-4/version
 executions
execution
phasegenerate-resources/phase
 goals
goaldownload/goal
/goals
 /execution
/executions
configuration
 urlhttp://www.syspertec.com/url
fromDir//fromDir
 toDir${project.outputDirectory}/test/toDir
includes**/*/includes
 /configuration
/plugin
/plugins
 /build
/project

Here is the output:

[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building wagon-http-test 0.0.1-SNAPSHOT
[INFO]

[INFO]
*[INFO] --- wagon-maven-plugin:1.0-beta-4:download (default) @
wagon-http-test ---*
*[INFO] Scanning remote file system: http://www.syspertec.com ...*
*[INFO] Nothing to download.*
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
wagon-http-test ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
d:\workspace\wagon-http-test\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
wagon-http-test ---
[INFO] Nothing to compile - all classes are up to date
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 3.162s
[INFO] Finished at: Thu Jun 13 10:53:50 CEST 2013
[INFO] Final Memory: 6M/73M
[INFO]

/d/workspace/wagon-http-test

Any help ?
-- 
Jeff MAURY
PS; I'm posting to Maven user list instead of Mojo because I suspect this
is related to wagon-http


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Can't manage to download a site with wagon maven plugin

2013-06-13 Thread Jeff MAURY
Yes, but this should be converted by Maven as it is not possible to specify
a File in a POM.
I'm working with a sample but I think this is related to the returned HTML
file format.

Jeff


On Thu, Jun 13, 2013 at 12:12 PM, Martin Gainty mgai...@hotmail.com wrote:

 Jeff download toDir is a file not a string
 http://mojo.codehaus.org/wagon-maven-plugin/download-mojo.html

  try copy
 http://mojo.codehaus.org/wagon-maven-plugin/usage.html

 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.


  From: jeffma...@jeffmaury.com
  Date: Thu, 13 Jun 2013 10:55:39 +0200
  Subject: Can't manage to download a site with wagon maven plugin
  To: users@maven.apache.org
 
  Hello,
 
  I want to setup my pom in order to dowload a remote web site through
 HTTP.
  Here is my POM:
 
  project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
  http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/xsd/maven-4.0.0.xsd;
   modelVersion4.0.0/modelVersion
 
  groupIdcom.jeffmaury/groupId
   artifactIdwagon-http-test/artifactId
  version0.0.1-SNAPSHOT/version
  packagingjar/packaging
 
  namewagon-http-test/name
  urlhttp://maven.apache.org/url
 
  properties
  project.build.sourceEncodingUTF-8/project.build.sourceEncoding
   /properties
 
  build
  extensions
   extension
  groupIdorg.apache.maven.wagon/groupId
  artifactIdwagon-http/artifactId
   version2.4/version
  /extension
  /extensions
   plugins
  plugin
  groupIdorg.codehaus.mojo/groupId
   artifactIdwagon-maven-plugin/artifactId
  version1.0-beta-4/version
   executions
  execution
  phasegenerate-resources/phase
   goals
  goaldownload/goal
  /goals
   /execution
  /executions
  configuration
   urlhttp://www.syspertec.com/url
  fromDir//fromDir
   toDir${project.outputDirectory}/test/toDir
  includes**/*/includes
   /configuration
  /plugin
  /plugins
   /build
  /project
 
  Here is the output:
 
  [INFO] Scanning for projects...
  [INFO]
  [INFO]
  
  [INFO] Building wagon-http-test 0.0.1-SNAPSHOT
  [INFO]
  
  [INFO]
  *[INFO] --- wagon-maven-plugin:1.0-beta-4:download (default) @
  wagon-http-test ---*
  *[INFO] Scanning remote file system: http://www.syspertec.com ...*
  *[INFO] Nothing to download.*
  [INFO]
  [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
  wagon-http-test ---
  [debug] execute contextualize
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory
  d:\workspace\wagon-http-test\src\main\resources
  [INFO]
  [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
  wagon-http-test ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO]
  
  [INFO] BUILD SUCCESS
  [INFO]
  
  [INFO] Total time: 3.162s
  [INFO] Finished at: Thu Jun 13 10:53:50 CEST 2013
  [INFO] Final Memory: 6M/73M
  [INFO]
  
  /d/workspace/wagon-http-test
 
  Any help ?
  --
  Jeff MAURY
  PS; I'm posting to Maven user list instead of Mojo because I suspect this
  is related to wagon-http
 
 
  Legacy code often differs from its suggested alternative by actually
  working and scaling.
   - Bjarne Stroustrup
 
  http://www.jeffmaury.com
  http://riadiscuss.jeffmaury.com
  http://www.twitter.com/jeffmaury





-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Can't manage to download a site with wagon maven plugin

2013-06-13 Thread Jeff MAURY
I've found the problem with a sample on top of wagon-http. The response is
gzip'ed by the server but the Apache HTTP client or wagon-http does not
unzip the stream - parsing the response leads to no links detected 

Jeff


On Thu, Jun 13, 2013 at 2:52 PM, Olivier Lamy ol...@apache.org wrote:

 not sure you will be able to get that working with current plugins.
 But wagon api has a method to get file list from a directory (

 http://maven.apache.org/wagon/wagon-provider-api/apidocs/org/apache/maven/wagon/Wagon.html#getFileList(java.lang.String)
 )

 So easy to traverse a remote site tree and download all files (but
 IMHO you will need to write your own plugin or improve one)

 2013/6/13 Jeff MAURY jeffma...@jeffmaury.com:
  Yes, but this should be converted by Maven as it is not possible to
 specify
  a File in a POM.
  I'm working with a sample but I think this is related to the returned
 HTML
  file format.
 
  Jeff
 
 
  On Thu, Jun 13, 2013 at 12:12 PM, Martin Gainty mgai...@hotmail.com
 wrote:
 
  Jeff download toDir is a file not a string
  http://mojo.codehaus.org/wagon-maven-plugin/download-mojo.html
 
   try copy
  http://mojo.codehaus.org/wagon-maven-plugin/usage.html
 
  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.
 
 
   From: jeffma...@jeffmaury.com
   Date: Thu, 13 Jun 2013 10:55:39 +0200
   Subject: Can't manage to download a site with wagon maven plugin
   To: users@maven.apache.org
  
   Hello,
  
   I want to setup my pom in order to dowload a remote web site through
  HTTP.
   Here is my POM:
  
   project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
   http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
   http://maven.apache.org/xsd/maven-4.0.0.xsd;
modelVersion4.0.0/modelVersion
  
   groupIdcom.jeffmaury/groupId
artifactIdwagon-http-test/artifactId
   version0.0.1-SNAPSHOT/version
   packagingjar/packaging
  
   namewagon-http-test/name
   urlhttp://maven.apache.org/url
  
   properties
   project.build.sourceEncodingUTF-8/project.build.sourceEncoding
/properties
  
   build
   extensions
extension
   groupIdorg.apache.maven.wagon/groupId
   artifactIdwagon-http/artifactId
version2.4/version
   /extension
   /extensions
plugins
   plugin
   groupIdorg.codehaus.mojo/groupId
artifactIdwagon-maven-plugin/artifactId
   version1.0-beta-4/version
executions
   execution
   phasegenerate-resources/phase
goals
   goaldownload/goal
   /goals
/execution
   /executions
   configuration
urlhttp://www.syspertec.com/url
   fromDir//fromDir
toDir${project.outputDirectory}/test/toDir
   includes**/*/includes
/configuration
   /plugin
   /plugins
/build
   /project
  
   Here is the output:
  
   [INFO] Scanning for projects...
   [INFO]
   [INFO]
  
 
   [INFO] Building wagon-http-test 0.0.1-SNAPSHOT
   [INFO]
  
 
   [INFO]
   *[INFO] --- wagon-maven-plugin:1.0-beta-4:download (default) @
   wagon-http-test ---*
   *[INFO] Scanning remote file system: http://www.syspertec.com ...*
   *[INFO] Nothing to download.*
   [INFO]
   [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
   wagon-http-test ---
   [debug] execute contextualize
   [INFO] Using 'UTF-8' encoding to copy filtered resources.
   [INFO] skip non existing resourceDirectory
   d:\workspace\wagon-http-test\src\main\resources
   [INFO]
   [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
   wagon-http-test ---
   [INFO] Nothing to compile - all classes are up to date
   [INFO]
  
 
   [INFO] BUILD SUCCESS
   [INFO]
  
 
   [INFO] Total time: 3.162s
   [INFO] Finished at: Thu Jun 13 10:53:50 CEST

Re: Import an open source maven project into Eclipse?

2013-03-29 Thread Jeff MAURY
Can you send the eclipse log file ?

Jeff
Le 29 mars 2013 18:09, Peter J. Farley III pjfarl...@earthlink.net a
écrit :

 I need some very basic newbie help.  I have never used maven before this,
 but I would like very much to learn how.

 I would like to import an existing open source maven project named ofx4j
 into Eclipse on my machine.  I have installed Eclipse Juno and Maven 3.0.5
 on my Win7 system.  Maven basic test mvn -version responds with correct
 version numbers:

 Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02
 Maven home: C:\Program Files\apache-maven-3.0.5
 Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
 Java home: C:\Program Files\Java\jdk1.6.0_25\jre
 Default locale: en_US, platform encoding: Cp1252
 OS name: windows 7, version: 6.1, arch: amd64, family: windows

 I have done no tasks with maven other than this.

 I have the m2e and svn plugins installed in Eclipse, but when I try to use
 the Maven import, I am confused by the choices and procedures to actually
 get the ofx4j project sources into my Eclipse workspace.

 When I try to do Maven import, there are 4 choices:

 Check out Maven Projects from SCM
 Existing Maven Projects
 Install or deploy an artifact to a Maven repository
 Materialize Maven Projects from SCM

 I naively assumed I should use the Check out option to go retrieve the
 project sources.  When the import dialog then asks to pick an SCM, I
 selected svn and pasted in the project repository address:

 https://ofx4j.svn.sourceforge.net/svnroot/ofx4j

 Then I clicked Next and let the checkmarks default to Use default
 Workspace
 location and clicked Finish.

 Then nothing at all happens except that the import wizard disappears.

 What am I doing wrong please?  I have tried looking for tutorials about
 importing an existing open source maven project into Eclipse, but none of
 them seems to address the basic task of getting the existing sources into
 the local Eclipse workspace.

 I know I am missing something very basic, but I do not know what it is.

 Any help or RTFM pointers you can provide would be greatly appreciated.

 Peter
 --



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




Re: Preferred way of deploying sites to GitHub Pages

2013-03-25 Thread Jeff MAURY
I've been using a long time ago wagon-gitsite but I had to patch it.
I don't know what the status now ?

Was about to use the GitHub's one for a brand new project.

Regards
Jeff



On Mon, Mar 25, 2013 at 11:54 AM, Thomas Broyer t.bro...@gmail.com wrote:

 Hi everyone,

 I've seen many ways of deploying a site to GitHub Pages (some old,
 some newer) and I wonder which should be considered the preferred one,
 and/or which are the pros and cons of each:

 * wagon-gitsite: there are a few forks, anyone knows the differences
 between them?
 * GitHub's own site-maven-plugin (apparently doesn't work well with
 multi-module builds)
 * Deploying locally and then using scm-publish:
 http://java.dzone.com/articles/how-publish-maven-site-docs


 --
 Thomas Broyer
 /tɔ.ma.bʁwa.je/ http://xn--nna.ma.xn--bwa-xxb.je/

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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Unpacking jars into target/classes

2013-03-17 Thread Jeff MAURY
Impress to see that you're claiming you personal priorities prevent you to
open a ticket on JIRA but allow you to write a mail including external
links 
Stay focused

Jeff



On Sun, Mar 17, 2013 at 5:30 PM, Joachim Durchholz j...@durchholz.org wrote:

 Am 16.03.2013 11:54, schrieb Anders Hammar:

  Jira would be an option, but unfortunately, my time is limited and I'll
 leave that to people who are already registered and know how to split up
 a
 report into meaningful, addressable chunks and file them under the right
 section.


 I'm sorry Joachim, but I find that statement very offensive! Do you think
 that other people's time is less valuable and that we don't have limited
 time?


 You forgot the other part of the statement: People who have more
 experience with the Maven Jira would have to spend less of their time.

 Also, there's personal priorities. In fact you're just now trying to
 dictate my priorities by indicating that not adding a report to Jira is
 offensive to you.

 If you feel offended by that, you should probably readjust something.


  A lot of people here has put in time answering your questions,

 Not to mention the abuse, evangelization, useless distractions, cetera.

 So you're also trying a guilt trip on me...


  but

 you can't find some time to help improve the docs with the info that you
 think is missing?


 Actually, there's also lack of interest.
 However, explaining the details behind that would indeed be offensive and
 (FAR more importantly) just reiterate well-known issues so I wouldn't help
 anybody with that.
 That's why I deleted that paragraph from my message.


  It will help the next person (which could have been you

 if someone before you had done this).


 Sorry, not buying that.


  To me open source software is about everyone helping out.


 Sure. Go over to SymPy and help out there, that's a project that I have
 contributed to.
 Not your interest? How dare you!!!
 ;-P


  The very least I

 expect is for people to file tickets about bugs and improvements they
 find.
 No one can do everything, but everyone can do something!


 Let me say it with Anastacia:
 https://www.youtube.com/watch?**v=rsryGFw_H4Mhttps://www.youtube.com/watch?v=rsryGFw_H4M

 Somehow this list seems to be harboring a lot of people who like to tell
 me what to think, what to be grateful for, what the best structure for my
 project should be, and whom to acknowledge as ethically and technically
 superior.
 If find that... funny. Sort of.
 And patronizing.

 Regards,
 Jo

 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org

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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Unpacking jars into target/classes

2013-03-08 Thread Jeff MAURY
Maybe you could have a look at the truezip maven plugin:
http://mojo.codehaus.org/truezip/truezip-maven-plugin/

Regards
Jeff



On Fri, Mar 8, 2013 at 2:05 PM, Baptiste MATHUS m...@batmat.net wrote:

 Le 8 mars 2013 08:29, Joachim Durchholz j...@durchholz.org a écrit :
 
  Am 08.03.2013 04:48, schrieb Ron Wheeler:
 
  I am not sure what you expect us to say.
 
 
  Simply stick with the question at hand and don't waste everybody's time
 with evangelizing and philosophy.
 
 
  By your own experience, your approach doesn't work; you won't try to do
  it the right way;
 
 
  If there's no way to get it to work (and that's the answer I got from
 Baptiste), then it's not me who's doing it wrong.

 Where did I write there's no way to get it to work?

 Initially I actually just gave you a hint of the path I would look at. You
 then transformed this thread into a troll...

 -- Baptiste




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Is there any generic Maven code generator?

2013-02-27 Thread Jeff MAURY
First, the way to plug extra functionnality into Maven is to write a Maven
plugin so I don't think you can find a Maven plugin to be generic enough to
perform any kind of task.
For you purpose, you can try a Java annotation processor which are
supported by the Maven compiler plugin or a combination of the Maven exec
plugin (to launch your own generator) and the Maven build helper plugin (to
let Maven know that new files have been generated)

Regards
Jeff



On Wed, Feb 27, 2013 at 12:30 PM, christofer.d...@c-ware.de 
christofer.d...@c-ware.de wrote:

 I just posted this to Stackoverflow, but after posting I realized, that I
 should have come here first :-(


 I am currently working on a project, that makes intense usage of code
 generation for various purposes. One generator generates SQL scripts from
 jpa entities. Another generates DTOs from pojos, another generates the
 JPA2.0 meta model, jet another generates some xml and schema files based on
 Java classes ... each generator works completely different needs to be
 configured differently.

 My question now is ... is there any generic maven code generator plugin
 out there with the following attributes:

  *
 Creates a pojo model of a Java class (Names, Properties, Annotation,
 Methods ...)
  *
 Uses templates for defining the output that uses the pojo model to
 generate any output.
  *
 Allows me to specify multiple templates for one class
  *
 Allows me to generate code and resources
  *
 Allows me to generate a base class to target/generated-sources and a dummy
 implementation to src/main/java which simply extends the base class (If the
 dummy class in src/main/java exists, nothing happens, if it doesn't it
 generates such a dummy class. This code is checked in to the SCM and allows
 extending the generated classes manually)

 I am using the Flexmojos GraniteDS plugin for generating my ActionScript
 model code, but it's pretty specialized for that particular purpose.

 I think such a generic generator would make things a lot easier ... is
 there something like that available out there, or do I have to start
 implementing it myself?

 Chris




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Create Windows executable JAR

2013-02-07 Thread Jeff MAURY
Hello,

I have the following request:
I want to build with Maven a Windows executable given the fact that I am
able to produce an executable JAR.
I have seen the Codehaus appasembler Maven plugin but it seems it produces
several files where I want to produce a single .exe file.
Do you know if such a plugin exists somewhere ?

Thanks

-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Should I add tools.jar to my internal repo?

2012-12-23 Thread Jeff MAURY
I don't think you should as there are probably some differences between
versions of the JDK

Regards
Jeff MAURY



On Fri, Dec 21, 2012 at 11:20 AM, Anders Hammar and...@hammar.net wrote:

 So far I've managed the few situations where tools.jar (included in the
 JDK) is needed by using the deprecated system scope and point at a local
 tools.jar file. Up until now it's just been used in build time by plugins,
 but now I've run into a case where it's an actual dependency and therefore
 it could cause issues.

 Normally, artifacts should be in the repo but I'm wondering if there are
 any problems adding this one to an internal repo? Is it platform neutral
 for example?
 It's a strictly internal repo so I think we can ignore any license problems
 by adding it to the repo.

 /Anders




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: hi, is these any properties like ${project.module} in maven's system properties?

2012-12-03 Thread Jeff MAURY
project.artifactId ?

Jeff



On Sun, Dec 2, 2012 at 4:21 PM, a seiyam...@163.com wrote:


 I assembly a multi-module project, in the assembly, I write like the
 follow,
 is there any property  word like  ${project.module}  to replace module1?
 or can i user .properties file to set project.module1=module1?

 moduleSets
 moduleSet
   useAllReactorProjectstrue/useAllReactorProjects
   includes
   include${project.groupId}:module1/include
   /includes
   binaries
 outputDirectorymodule1/outputDirectory
 unpackfalse/unpack
 includeDependenciestrue/includeDependencies
 dependencySets
 dependencySet
 outputDirectorymodule1/lib/outputDirectory
 scoperuntime/scope
 /dependencySet
 /dependencySets
   /binaries
 /moduleSet

 thanks



 a




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: why axis-1.4.jar is dependent upon wsdl4j-1.5.1 jar file in maven

2012-11-30 Thread Jeff MAURY
If you want to use your WSDL4J and not the one from Axis and because it
seems they have different groupId/artifactId, you should include an
exclusion inside the Axis dependency declaration in order to exclude the
WSDL4J dependency from Axis

Regards
Jeff



On Fri, Nov 30, 2012 at 3:02 AM, Benson Margulies bimargul...@gmail.comwrote:

 You will have to consult the Axis project. This is because their POM
 declares this dependency.

 On Thu, Nov 29, 2012 at 7:26 AM, koti koti.a...@gmail.com wrote:
  HI all, My application is already using wsdl4j-1.6.2.jar and will not
 support
  with wsdl4j-1.5.1.jar file. I have observed that when I have written only
  axis1.4 dependency code in my pom.xml like below
  /  axis  axis  1.4  jar  compile
  /
   (nabble_embed tag is added to display code.. it is not having in my
 actual
  code... )it downloading wsdl4j-1.5.1.jar file (not sure how it is
  downloading) due to that my existing application is not working. So, I
 have
  modified code like
 /wsdl4jwsdl4j1.6.2
  jar
  compile axis  axis  1.4
  jar
  compile/
  now it automatically downloading axis-wsdl4j-1.5.1.jar file which is also
  creating problem to my existing application. could you please let me
 know,
  why axis jar is internally downloading wsdl file and how to remove this
  internal dependency.Please let me if another version of axis jar will
  download wsdl4j-1.6.2.jar file.Thanks in advance.
 
 
 
  --
  View this message in context:
 http://maven.40175.n5.nabble.com/why-axis-1-4-jar-is-dependent-upon-wsdl4j-1-5-1-jar-file-in-maven-tp5734252p5734255.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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: How to generate ZIP containing another generated ZIP with resources ?

2012-11-28 Thread Jeff MAURY
Can'y you use a fileset with directory element being to your project output
directory, it should include the first ZIP file, no ?

Jeff


On Wed, Nov 28, 2012 at 2:39 PM, Xavier NOPRE xno...@gmail.com wrote:

 Hi all,

 With Maven (3.0.3), I can generate a ZIP file containing some resources
 from my projet, with maven-assembly-plugin and an assembly.xml descriptor.
 OK.

 I can also generate 2 different ZIP files with 2 executions binded on
 different phases. OK.

 Now, I need to generate the second ZIP file containing some resources and
 the first generated ZIP file. I can do that with a separated module to
 generate the first ZIP file. But is it possible without modules, just one
 Maven project ?

 In fact, my problem is how to reference the first ZIP file in the
 assembly.xml for the second ZIP file generation.

 Thanks for any help,

 Xavier




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: How to generate ZIP containing another generated ZIP with resources ?

2012-11-28 Thread Jeff MAURY
I don't feel he is not following the Maven way if the first ZIP is not
attached to the project

Jeff



On Wed, Nov 28, 2012 at 2:50 PM, Ron Wheeler rwhee...@artifact-software.com
 wrote:

 General rule - one artifact from one project.

 First get your zip with a zip included, working by doing it the Maven way.
 Then see if it is worth optimizing the process.

 Ron


 On 28/11/2012 8:42 AM, Jeff MAURY wrote:

 Can'y you use a fileset with directory element being to your project
 output
 directory, it should include the first ZIP file, no ?

 Jeff


 On Wed, Nov 28, 2012 at 2:39 PM, Xavier NOPRE xno...@gmail.com wrote:

  Hi all,

 With Maven (3.0.3), I can generate a ZIP file containing some resources
 from my projet, with maven-assembly-plugin and an assembly.xml
 descriptor.
 OK.

 I can also generate 2 different ZIP files with 2 executions binded on
 different phases. OK.

 Now, I need to generate the second ZIP file containing some resources and
 the first generated ZIP file. I can do that with a separated module to
 generate the first ZIP file. But is it possible without modules, just one
 Maven project ?

 In fact, my problem is how to reference the first ZIP file in the
 assembly.xml for the second ZIP file generation.

 Thanks for any help,

 Xavier





 --
 Ron Wheeler
 President
 Artifact Software Inc
 email: rwhee...@artifact-software.com
 skype: ronaldmwheeler
 phone: 866-970-2435, ext 102


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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: How to unpack dependencies in specific order ?

2012-11-28 Thread Jeff MAURY
Does not seem to be possible with unpack dependencies.
One option would be to use unpack-dep with the flag that tell to unpack
each dependency in a separate folder and then use the assembly, specifying
the folders in the proper order.
The drawback is that you must list each dependency and inherited dependency

Jeff



On Wed, Nov 28, 2012 at 4:19 PM, Xavier NOPRE xno...@gmail.com wrote:

 Hi all,

 My project is depending on many ZIP resources.

 With maven-dependency-plugin and its unpack-dependencies, I kown how to
 unpack each dependency.

 But (for different reasons I cannot explain here), I have to unpack the
 dependencies in a specific order (*).

 Is it possible to unpack in a specific order, or is it possible to manage
 the dependencies order ?

 Thanks,

 Xavier



 (*) there are some files with the same names, and I have to overwrite some
 files from one dependency with other from another dependency 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: How to optimize maven dependencies to get better performance?

2012-10-11 Thread Jeff MAURY
I would vote for a DNS issue

Jeff
Le 11 oct. 2012 08:08, Ron Wheeler rwhee...@artifact-software.com a
écrit :

 On 11/10/2012 1:40 AM, Wang, Simon wrote:
  Hi, Barrie,
 That's really helpful!
 
 Even I have local cache, it also takes about 2 mins to resolve
 dependencies.
 What is it doing during this time. Run maven with a detailed log to see
 each step.

 You might want to break your project up into modules that are smaller
 and have fewer dependencies in each one.

 Also it seems maven still will talk with remote maven server even I
 have local cache.
 It will talk to your Nexus and you need to make sure that your POMs or
 settings.xml do not refer to any other Maven Repo besides your Nexus.
 Yes, maybe it's caused by unspecified version numbers for
 dependencies.
 
 Specify your versions on all dependencies
 I'll try maven-enforcer-plugin.
 Not sure how this will help with performance.
 
 We're using nexus now, haven't tried MRM, I'll host it and compare it
 to nexus.
 Nexus is an MRM.
 
 And I saw aether(major in dependency resolving) will take longer time
 to resolve conflict dependencies.
 Is it also a point that need to be improved?
 Do you know is there any maven plugin to identify conflict
 dependencies?

 The Eclipse IDE will do this with the m2 Eclipse plug-in. We use STS
 which is Eclipse fully loaded with everything that you need to use Maven.

 This is not likely going to cause a big performance hit.
  Regards
  Simon
 
  -Original Message-
  From: Barrie Treloar [mailto:baerr...@gmail.com]
  Sent: 2012年10月11日 11:48
  To: Maven Users List
  Subject: Re: How to optimize maven dependencies to get better
 performance?
 
  On Thu, Oct 11, 2012 at 1:46 PM, Wang, Simon yunfeng.w...@ebay.com
 wrote:
  Hi,
 We're in trouble of terrible performance on resolve maven
 dependencies.
  I did some search about it. Basically below ways should be helpful:
 
  1. optimize nexus server to improve response time.
  2. optimize maven dependencies.
1) avoid duplicated dependencies
2) avoid dependency conflict cases
3)
 
  Any others suggestions?
  What specifically is your problem?
 
  I can only guess at what you mean.
  I'm assuming that when you run mvn install that maven is reaching out
 to check for new dependencies which can be time consuming, especially with
 an empty ~/.m2/repository local cache.
  After the first install this shouldn't be a problem.
 
  Firstly make sure that you do not define additional repository in
 either your settings.xml or pom.xml.
  Every dependency will be checked against all repositories defined.
  So just by defining one extra repository will double the time it takes
 to check dependencies.
  There is no logic in Maven to blacklist/whitelist what artifacts are
 located where, this is one reason why you use a Repository Manager.
  You can see that if you declare repositories in your pom.xml and this is
 published how it will affect everyone that includes your artifacts.
  Please don't do that.
 
  Secondly, make sure you lock down all version numbers of dependencies.
  It is bad practice to not specify these as it makes your build
 non-reproducable.
  This could also be a reason why it is slow as Maven will need to check
 periodically to see if new versions are available.
  You can use maven enforcer
  (http://maven.apache.org/plugins/maven-enforcer-plugin/) to ensure that
 you have no unversioned artifacts.
 
  Thirdly, install a Maven Repository Manager (Nexus is one).
  This will act as a local proxy and make downloading times much faster.
  It also provides an aggregation point, so that there is only one
 repository to check each artifact for and the Repository Manager will hide
 checking the other repos MRMs also allow you to do whitelist/blacklist
 stuff to improve performance.
  If you are in a corporate environment you really want an MRM installed.
 
  -
  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


 --
 Ron Wheeler
 President
 Artifact Software Inc
 email: rwhee...@artifact-software.com
 skype: ronaldmwheeler
 phone: 866-970-2435, ext 102


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




Re: JNI jars dependencies

2012-09-17 Thread Jeff MAURY
Simone,

You're right, this is a limitation of artifact produced by profiles. Unless
you can live with classifier computed from the running platform.

Jeff


On Mon, Sep 17, 2012 at 9:09 AM, Simone Tripodi simonetrip...@apache.orgwrote:

 Salut Jeff,

 profiling sounds a good idea but I didn't understand how mvn is able
 to resolve profiled dependencies, I mean, in my project X I need to
 import the c.jar dependency with mac-x86_64 as classifier - how to
 guarantee transitive dependencies are imported for the same platform
 (same classifier)?

 TIA!
 -Simo

 http://people.apache.org/~simonetripodi/
 http://simonetripodi.livejournal.com/
 http://twitter.com/simonetripodi
 http://www.99soft.org/


 On Fri, Sep 14, 2012 at 7:52 PM, Jeff MAURY jeffma...@gmail.com wrote:
  Can't you define the platform classifier in the parent POM (through
  profiles) as a property and this property in the child POMs ?
 
  Jeff
  Le 14 sept. 2012 16:21, Simone Tripodi simonetrip...@apache.org a
  écrit :
 
  Hi David,
 
  thanks a lot - my issue anyway is NOT compiling the code, rather than
  managing the dependencies, the software has been provided by a 3rd
  party and is closed source, I just have the jars.
 
  So, let's suppose I need the c.jar for mac-x86_64, when specifying
  that classifier I aim that a.jar and b.jar, that are transitive
  dependencies, are brought for the same platform...
 
  Any suggestion?
  TIA!!!
  -Simo
 
  http://people.apache.org/~simonetripodi/
  http://simonetripodi.livejournal.com/
  http://twitter.com/simonetripodi
  http://www.99soft.org/
 
 
  On Fri, Sep 14, 2012 at 3:40 PM, David Hoffer dhoff...@gmail.com
 wrote:
   There is also the native-maven-plugin.  I'm not sure which is
 best/most
   current as it's been years since I have used either one, but they both
  set
   out to help manage builds with native code.
  
   -Dave
  
   On Fri, Sep 14, 2012 at 7:31 AM, Simone Tripodi 
  simonetrip...@apache.orgwrote:
  
   Hi Martin,
  
   very good news, thanks a lot, I am going to have a look at that
 plugin!
  
   All the best,
   -Simo
  
   http://people.apache.org/~simonetripodi/
   http://simonetripodi.livejournal.com/
   http://twitter.com/simonetripodi
   http://www.99soft.org/
  
  
   On Fri, Sep 14, 2012 at 3:26 PM, Martin Eisengardt
   martin.eisenga...@gmail.com wrote:
Ask google about maven-nar-plugin.
   
It introduces nar dependencies (typenar/type) and internally
  tries to
find out the correct qualifier depending on the current
machine/architecture.
   
I am playing around with it because I have a similar situation.
 There
  is
   a
problem with the project because there are tens of orks on github.
 If
  you
have any questions about it please ask. I have contact to one of
 the
   ative
authors and we try to merge all the forks.
   
On Fri, Sep 14, 2012 at 3:13 PM, Simone Tripodi 
   simonetrip...@apache.orgwrote:
   
Hi all guys,
   
I have the task of managing a 3rd party forest of dependencies
 which
contain JNI code, so let's immagine that the provided library
directory tree is as shown below:
   
linux-i386
├── a.jar
├── b.jar (depends from a.jar)
└── c.jar (depends from a.jar and b.jar)
   
linux-x86_64
├── a.jar
├── b.jar (depends from a.jar)
└── c.jar (depends from a.jar and b.jar)
   
mac-x86_64
├── a.jar
├── b.jar (depends from a.jar)
└── c.jar (depends from a.jar and b.jar)
   
I was going to put all that jar in my Nexus installation, when I
 just
realized I need classifiers to manage each platform... While
 manage a
single dependency would be really easy, managing transitive
dependencies per platform is not trivial, should be profiled...
   
Do you have any suggestion on how that situation could be handled?
   
Many thanks in advance, all the best!
-Simo
   
http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.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
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: JNI jars dependencies

2012-09-14 Thread Jeff MAURY
Can't you define the platform classifier in the parent POM (through
profiles) as a property and this property in the child POMs ?

Jeff
Le 14 sept. 2012 16:21, Simone Tripodi simonetrip...@apache.org a
écrit :

 Hi David,

 thanks a lot - my issue anyway is NOT compiling the code, rather than
 managing the dependencies, the software has been provided by a 3rd
 party and is closed source, I just have the jars.

 So, let's suppose I need the c.jar for mac-x86_64, when specifying
 that classifier I aim that a.jar and b.jar, that are transitive
 dependencies, are brought for the same platform...

 Any suggestion?
 TIA!!!
 -Simo

 http://people.apache.org/~simonetripodi/
 http://simonetripodi.livejournal.com/
 http://twitter.com/simonetripodi
 http://www.99soft.org/


 On Fri, Sep 14, 2012 at 3:40 PM, David Hoffer dhoff...@gmail.com wrote:
  There is also the native-maven-plugin.  I'm not sure which is best/most
  current as it's been years since I have used either one, but they both
 set
  out to help manage builds with native code.
 
  -Dave
 
  On Fri, Sep 14, 2012 at 7:31 AM, Simone Tripodi 
 simonetrip...@apache.orgwrote:
 
  Hi Martin,
 
  very good news, thanks a lot, I am going to have a look at that plugin!
 
  All the best,
  -Simo
 
  http://people.apache.org/~simonetripodi/
  http://simonetripodi.livejournal.com/
  http://twitter.com/simonetripodi
  http://www.99soft.org/
 
 
  On Fri, Sep 14, 2012 at 3:26 PM, Martin Eisengardt
  martin.eisenga...@gmail.com wrote:
   Ask google about maven-nar-plugin.
  
   It introduces nar dependencies (typenar/type) and internally
 tries to
   find out the correct qualifier depending on the current
   machine/architecture.
  
   I am playing around with it because I have a similar situation. There
 is
  a
   problem with the project because there are tens of orks on github. If
 you
   have any questions about it please ask. I have contact to one of the
  ative
   authors and we try to merge all the forks.
  
   On Fri, Sep 14, 2012 at 3:13 PM, Simone Tripodi 
  simonetrip...@apache.orgwrote:
  
   Hi all guys,
  
   I have the task of managing a 3rd party forest of dependencies which
   contain JNI code, so let's immagine that the provided library
   directory tree is as shown below:
  
   linux-i386
   ├── a.jar
   ├── b.jar (depends from a.jar)
   └── c.jar (depends from a.jar and b.jar)
  
   linux-x86_64
   ├── a.jar
   ├── b.jar (depends from a.jar)
   └── c.jar (depends from a.jar and b.jar)
  
   mac-x86_64
   ├── a.jar
   ├── b.jar (depends from a.jar)
   └── c.jar (depends from a.jar and b.jar)
  
   I was going to put all that jar in my Nexus installation, when I just
   realized I need classifiers to manage each platform... While manage a
   single dependency would be really easy, managing transitive
   dependencies per platform is not trivial, should be profiled...
  
   Do you have any suggestion on how that situation could be handled?
  
   Many thanks in advance, all the best!
   -Simo
  
   http://people.apache.org/~simonetripodi/
   http://simonetripodi.livejournal.com/
   http://twitter.com/simonetripodi
   http://www.99soft.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
 
 

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




Re: Additional settings.xml file

2012-09-13 Thread Jeff MAURY
With Maven, you can specify the global settings file (-gs) and the settings
file (-s).
However, in Jenkins, you can specify the settings files (even severals)
through the Jenkins UI and choose which one in your job

Jeff


On Thu, Sep 13, 2012 at 5:32 PM, Mickael Istria mist...@redhat.com wrote:

 Hi all,

 I'd like to know if it is possible to pass an additional settings.xml file
 to Maven.

 Here is the use case:
 We have a project, and CI is built on Jenkins. On Jenkins, it is allowed
 to deploy stuff onto Nexus. So the settings.xml for Jenkins specifies the
 necessary credentials in order to push to Nexus. We do not own the
 settings.xml file, so we can't simply modify it. Also, it changes often, so
 I can't simply copy it for my project and add what I want to it: it would
 get out of sync pretty fastly, and a lot of stuff -such as deployent- won't
 work any longer.
 For our projects, we would like to use some mirrors, that are specific to
 our project, and that may change often. Then it wouldn't make sense to put
 them in the global settings.xml (that we can't change as we want). So I
 want to have mirrors but can't edit nor replace the current settings.xml. I
 thought maybe there is a way to append another settings.xml file through
 command-line, for project-specific settings.
 Does anyone how to achieve that? Or have a workaround for my use-case?

 Thanks in advance for your insights.
 --
 Mickael Istria
 Eclipse developer at JBoss, by Red Hat http://www.jboss.org/tools
 My blog 
 http://mickaelistria.**wordpress.comhttp://mickaelistria.wordpress.com
 - My Tweets 
 http://twitter.com/**mickaelistriahttp://twitter.com/mickaelistria
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Question about plugin execution ordering

2012-09-05 Thread Jeff MAURY
Thanks for the help.
For this in order to fix it using POM only solution:
https://github.com/TimMoore/mojo-executor

Jeff


On Fri, Aug 31, 2012 at 11:09 AM, Anders Hammar and...@hammar.net wrote:

 It's not supported. The best solution I can think of is to produce your own
 maven plugin,that does what you want. With Maven 3, you can produce that
 plugin as part of you multi-module build if you don't want to keep it
 outside of it.

 /Anders

 On Fri, Aug 31, 2012 at 10:57 AM, Jeff MAURY jeffma...@jeffmaury.com
 wrote:

  Hello,
 
  I have a question about plugin execution ordering. I understood this has
  been fixed in 3.0.3 but I have a special case.
  I need to execute differents goals from the same plugin in the same
 phase:
  so far so good, I just need to list them in the proper order in my POM
  file.
  But now, I want to insert between the two goal the execute of the clean
  goal of the Maven clean goal.
  So I duplicated the definition of the first plugin, each declaration
  declaring only one goal and insert the Maven clean plugin execution
 between
  the two.
  I am facing several problems
  1) it seems multi declaration of the same plugin generates a warning and
  leads to problems as I can't see the execution of the first goal
  2) do you think this use case is not supported
 
  Thanks
  Jeff
 
 
  --
  Jeff MAURY
 
 
  Legacy code often differs from its suggested alternative by actually
  working and scaling.
   - Bjarne Stroustrup
 
  http://www.jeffmaury.com
  http://riadiscuss.jeffmaury.com
  http://www.twitter.com/jeffmaury
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Create custom phase

2012-08-23 Thread Jeff MAURY
If you bind those plugins in your POM to the deploy phase, they will be
executed after the standard plugins so this will do the trick

Jeff


On Thu, Aug 23, 2012 at 2:35 PM, Billy Newman newman...@gmail.com wrote:

 Sorry if this is a dumb question but I cannot find much on the topic.

 I need a phase between  install and deploy. Ie maybe a pre-deploy or
 prepare-deploy. I would like to do some checks in all poms before the
 artifacts get deployed.

 I think custom phase is possible if you write your own plugin but I do not
 need my own plugin I just want to attach some existing plugins to a
 'pre-deploy' phase

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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Hooking before and after a phase

2012-06-09 Thread Jeff MAURY
Hello,

there is no way in Maven to insert a Mojo between two Mojo from a
packaging. Each Mojo you add in your POM will be executed after the ones
from the packaging.
If you want to execute your Mojo before any Mojo of the package phase, then
you can bind it to the prepare-package phase.

Jeff


On Fri, Jun 8, 2012 at 11:25 PM, Pascal Rapicault pas...@rapicault.netwrote:

 Hi,

 I have a situation where I need to execute a mojo just before the
 execution of the mojo bound to the phase. Is there a way to achieve this
 without binding my mojo to the previous phase but to the phase that I'm
 interested in?

 For example, the eclipse-plugin packaging type has the following phases:
 - […]
 - process-test-resources
 - package (which itself executes 2 mojos)
 - […]

 I would like to execute a mojo just before the first mojo of the package
 phase is executed, or even better in between the execution of the two mojos
 executed by the package phase.

 I could hook my mojo to the process-test-resources but I feel that this is
 incorrect since the execution of my mojo should only happen if the package
 phase does, otherwise it may screw up following builds.

 Thanks.

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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Fact-checking a statement about Maven from a book

2012-05-30 Thread Jeff MAURY
This has no yet changed with Maven 3, if you try to build with a plugin in
a lifecycle that has no fixed version, Maven 3 will issue a warning but
will continue.
Please note that the latest version of the Maven Enforcer Plugin now works
with Maven 3 (for the rule that checks all plugins in your build are
configured with a fixed version)

Jeff


On Wed, May 30, 2012 at 4:28 AM, Barrie Treloar baerr...@gmail.com wrote:

 On Wed, May 30, 2012 at 11:48 AM, KARR, DAVID dk0...@att.com wrote:
  I'm reading Continuous Delivery, which is a good book, but I read one
 statement about Maven that seems out of date to me.  I'd appreciate a bit
 of fact-checking here.
 
  It said:
 
  ... in its default configuration, it is self-updating. Maven's core is
 very small, and in order to make itself functional, it downloads its own
 plugins from the internet. Maven will attempt to upgrade itself every time
 it is run...
 
  I seem to remember the default self-updating problem from years ago, but
 I thought that was changed in the last couple of years.  If this isn't
 still the case, do you remember the history of when this changed?

 The version of maven you use will never update itself, you have to do
 that manually.

 The current best practice is to lock down plugin versions to stop the
 latest version being used, and maven enforcer can help with this.
 If you don't lock down plugins then 6 months later your build is no
 longer reproducible as you will be using different versions.
 I think what plugins that were during the build lifecycle was meant to
 be written into the jar's META-INF files somewhere but I can't recall
 clearly enough whether it did that correctly.

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




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: m-source-p excludes regex support

2012-05-23 Thread Jeff MAURY
You must understand that excludes limits the set configured by includes.
So your configuration will has no sources as Quote.java will be discarded
by Q*.java

Review your configuration

Jeff


On Mon, May 21, 2012 at 7:44 PM, Ryan Connolly ryn...@gmail.com wrote:

 Hello, Maven Users:
 I am faced with a situation where we are generating two sets of sources at
 build time and I would like to exclude the sources generated by one of
 these plugins when creating our source jar by using a regex expression.

 For example, we have a source file Quote.java that plugin1 uses to generate
 QQuote.java and plugin2 uses to generate IQuote.java.  Is there any way to
 supply a regex that would exclude the QQuote.java file while including the
 Quote.java and IQuote.java sources in our source jar?

 I have tried the following with version 2.1.2 but this configuration
 produces output declaring that there are no sources (when in fact there
 are) and I can't seem to find any examples of using the %regex[expr] syntax
 with the m-source-p.  Any help would be greatly appreciated.

  includes
include**/model/Quote.java/include
  /includes
  excludes
exclude**/model/Q*.java/exclude
exclude**/*.gwt.xml/exclude
  /excludes


 Best,
 -Ryan Connolly




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: apache httpd plugin

2012-05-21 Thread Jeff MAURY
Can you explain what do you want to achieve from Maven: start/stop an httpd
instance, deploy to an httpd instance, ... ?

Jeff


On Mon, May 21, 2012 at 6:20 PM, martin.eisengardt 
martin.eisenga...@googlemail.com wrote:

 Hi.


 I looked around for some apache plugin (apache httpd) and did not find any.
 So my first question is: Does anyone know of a project? Google seems not to
 find any and in official repository there seems to be no match.
 The main reason I need it is because some non-java web applications will
 require .htaccess files (mod_rewrite).

 Maybe I will start a plugin project if there is nothing around.


 Greetings
 Martin




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: resolver-status.properties read/write warnings

2012-05-08 Thread Jeff MAURY
On Thu, Apr 19, 2012 at 7:08 AM, Jason van Zyl ja...@tesla.io wrote:

 Separate repos work. If you absolutely needed a concurrent safe local repo
 there's one here:

 https://github.com/etesla/tesla-concurrent-localrepo


Link is not valid anymore

Jeff


 On Apr 18, 2012, at 10:03 PM, Bracewell, Robert wrote:

  I wasn't aware that a shared local repo wasn't supported. I just switched
  over all nodes to a local repo throughout the build farm and the warnings
  did indeed disappear.
  Version of Java used on this particular OSX node is
  java version 1.6.0_31
  Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
  Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)
 
 
  Thanks,
  Robert
 
  On 4/18/12 6:44 PM, Wayne Fay wayne...@gmail.com wrote:
 
  farm. The Maven repo is hosted on a net app box that is visible to all
  my
  Redhat, Windows and now OSX build nodes via an NFS mount. The build
  ...
  It seems you are using a shared local repository which is not supported
 
  Agreed on this point. You must use a local repo cache on each machine.
  And you should ensure that you only have 1 Maven instance access
  eaching local repo cache at once as well. If you're using
  Jenkins/Hudson, this is simple to configure.
 
  When running any mvn command (tried 3.0.3 and 3.0.4) on OSX Lion I see
 
  What version of Java are you running?
 
  java.io.IOException: Operation not supported
at sun.nio.ch.FileChannelImpl.lock0(Native Method)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:832)
at
 
 
 org.sonatype.aether.impl.internal.TrackingFileManager.lock(TrackingFileM
  anager.java:209)
 
  This stacktrace suggests to me that your OS does not support file
  locking over NFS? Look at sun.nio.ch.FileChannelImpl for more info.
 
  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
 

 Thanks,

 Jason

 --
 Jason van Zyl
 Founder,  Apache Maven
 http://twitter.com/jvanzyl
 -

 We know what we are, but know not what we may be.

  -- Shakespeare







-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: help needed: problems with eclipse, m2e and wst

2012-05-05 Thread Jeff MAURY
You should also have a look at sonatype webby, it is based on cargo and it
works almost instantenously on Maven war projects

Jeff

Le samedi 5 mai 2012, Kalle Korhonen a écrit :

 I've always found WTP's generic container support to be too slow and
 too limiting for me. Sysdeo's Tomcat launcher allows for more explicit
 control of the classpath, google or see
 http://tynamo.org/Developing+with+Tomcat+and+Eclipse for more info.
 run-jetty-run plugin is another good and simple choice.

 Kalle


 On Wed, Apr 25, 2012 at 1:43 PM, Jörg Hohwiller 
 jo...@j-hohwiller.dejavascript:;
 wrote:
  Hi there,
 
  I have problems running/debugging a WAR module out of a maven based
 multi-module
  project in Eclipse using WST and Tomcat.
 
  The problem is that the classpath is wrong.
  When I build the WAR and manually deploy to a local tomcat webapps
 directory all
  works fine. However in Eclipse I get these ClassNotFoundExceptions.
 
  When I expand the JEE sub-modules of the WAR module in servers view,
  I can see that there are modules missing. If I select the WAR module
  in Projects view and check
  Properties  Java Build Path  Libraries  Maven Dependencies
  everything is there...
 
  Maven  Update Project... does not help either. Nor removing the WAR
 module from
  Tomcat and adding once again. Nor cleaning Tomcat.
 
  This lead me to the config file
 .settings/org.eclipse.wst.common.component
  When I manually patched this file by adding the missing modules and
 refreshed
  the project the problem goes away.
 
  Searching the web I found this one:
  https://issues.sonatype.org/browse/MECLIPSEWTP-146
 
  However this is fixed already in 0.14.0 and I am running
  m2e 1.1.0.20120130-216 with m2e wtp in 0.14.0.20110928-2045
 
  Anyhow the entries with the JAR including Version still can be found
  in my org.eclipse.wst.common.component
 
  Mybe the fix did not make it into 0.14.0 ?
 
  Any ideas but going back to mvn eclipse:eclipse ?
  I always avoided m2e before and now just started loving it until I ran
 into
  these problems...
 
  Regards
   Jörg
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.orgjavascript:;
  For additional commands, e-mail: users-h...@maven.apache.orgjavascript:;
 

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



-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: resolver-status.properties read/write warnings

2012-04-18 Thread Jeff MAURY
It seems you are using a shared local repository which is not supported

Jeff
Le 18 avr. 2012 23:56, Bracewell, Robert rbrac...@qualcomm.com a écrit :

 When running any mvn command (tried 3.0.3 and 3.0.4) on OSX Lion I see
 numerous lines of output similar to below. I added a mac box to my build
 farm. The Maven repo is hosted on a net app box that is visible to all my
 Redhat, Windows and now OSX build nodes via an NFS mount. The build doesn't
 fail but the log is seriously bloated. If I move the same build to a red
 hat or windows box in my build farm I don't see any such warnings. In this
 particular case I am simply running mvn help:effective-settings

 [WARNING] Failed to read resolution tracking file
 /Volumes/sharedrepo/repository/org/codehaus/sonar/resolver-status.properties

 java.io.IOException: Operation not supported
at sun.nio.ch.FileChannelImpl.lock0(Native Method)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:832)
at
 org.sonatype.aether.impl.internal.TrackingFileManager.lock(TrackingFileManager.java:209)
at
 org.sonatype.aether.impl.internal.TrackingFileManager.read(TrackingFileManager.java:62)
at
 org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.read(DefaultUpdateCheckManager.java:478)
at
 org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkMetadata(DefaultUpdateCheckManager.java:244)
at
 org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolve(DefaultMetadataResolver.java:299)
at
 org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolveMetadata(DefaultMetadataResolver.java:177)
at
 org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveMetadata(DefaultRepositorySystem.java:338)
at
 org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromRepository(DefaultPluginPrefixResolver.java:185)
at
 org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:90)
at
 org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:262)
at
 org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:222)
at
 org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106)
at
 org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86)
at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:597)
at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)


 Any pointers appreciated


 Thanks



Re: if condition in pom.xml

2012-04-13 Thread Jeff MAURY
Look at maven profiles

Jeff

Le samedi 14 avril 2012, wzhao6898 a écrit :

 Hi there,

 Is there a way for me configure maven-war-plugin (or any plugin in general)
 to execute conditionally?
 e.g.: I want to configure to exclude a js directory if property notExclude
 set to false, and skip if property notExclude set to true:

 plugin
artifactIdmaven-war-plugin/artifactId
configuration

  warSourceExcludes**/external/dojo/**/*.js/warSourceExcludes
/configuration
 /plugin

 Thanks,

 David

 --
 View this message in context:
 http://maven.40175.n5.nabble.com/if-condition-in-pom-xml-tp5639737p5639737.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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



-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: maven-install-plugin:install - naming the installed artifact

2012-04-11 Thread Jeff MAURY
Use the groupid, artifactid, version and classifier parameters of the goal
to achieve that

Ji
Le 10 avr. 2012 19:51, Mehul Sanghvi mehul.sang...@gmail.com a écrit :

 Hi,

g

 Hi,

Below is the output of the maven-install-plugin being executed.
 What do I have to do so that I can specify the name of the
 installed artifact ?  If you look at line 26, the artifact got renamed
 to mandrage-module-rpm-1.4.0-bin.rpm and that is not
 the name that it should have.  The name should be the same as the source.

 24: [2012-04-03_18-05-16] [INFO] ---
 maven-install-plugin:2.3.1:install (default-install) @
 mandrake-module-rpm ---
 25: [2012-04-03_18-05-16] [INFO] Installing

 /opt/jenkins/slave/workspace/build-mandrake-master/mandrake-module-rpm/pom.xml
 to
 /opt/maven-cache/mandrake-master/repository/com/constantcontact/apps/mandrake/mandrake-module-rpm/1.4.0/mandrake-module-rpm-1.4.0.pom
 26: [2012-04-03_18-05-16] [INFO] Installing

 /opt/jenkins/slave/workspace/build-mandrake-master/mandrake-module-rpm/target/rpm/mandrake_20120403_180515-bin/RPMS/noarch/mandrake_20120403_180515-1.4.0-20120403_180515.noarch.rpm
 to
 /opt/maven-cache/mandrake-master/repository/com/constantcontact/apps/mandrake/mandrake-module-rpm/1.4.0/mandrake-module-rpm-1.4.0-bin.rpm
 27: [2012-04-03_18-05-16] [INFO] Installing

 /opt/jenkins/slave/workspace/build-mandrake-master/mandrake-module-rpm/target/rpmversion.properties
 to
 /opt/maven-cache/mandrake-master/repository/com/constantcontact/apps/mandrake/mandrake-module-rpm/1.4.0/mandrake-module-rpm-1.4.0-rpmversion.properties
 28: [2012-04-03_18-05-16] [INFO]




 cheers,

 mehul
 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com

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




Re: Maven release plugin help...

2012-04-04 Thread Jeff MAURY
This seems to be an authentication problem and is probably linked to
SVNBridge

Regards
Jeff


On Wed, Apr 4, 2012 at 7:54 PM, Jeff predato...@gmail.com wrote:

 This is likely a n00b question, but I'm banging my head with no success.
 I am trying to run the maven release plugin on my first mavenized project.

 Our infrastructure has SVNBridge to TFS (not my choice) and I'm using the
 latest TortoiseSVN 1.7.6.22632 client with command-line files.

 I can use SVN to check out, commit, etc. from the command-line, Internet
 Explorer, via NetBeans (using SVN client files) but when I run

'mvn release:prepare'

 or

 'mvn release:prepare -Dusername=me -Dpassword=mypassword'

 from the command-line, I get the following error:

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli)
 on project Shared: Unable to tag SCM
 [ERROR] Provider message:
 [ERROR] The svn tag command failed.
 [ERROR] Command output:
 [ERROR] svn: E170001: COPY of '/!svn/bc/131514/Shared': authorization
 failed: Could not authenticate to server: rejected Digest challenge

 I'm not sure if I'm missing something in my POM or mvn command line or if
 there is an issue with my SVN client or with SVNBridge.  SVN works for all
 other activities I have been doing.

 Any ideas?

 --

 Jeff Vincent
 predato...@gmail.com
 See my LinkedIn profile at:
 http://www.linkedin.com/in/rjeffreyvincent
 I ♥ DropBox http://db.tt/9O6LfBX !!




-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Using artifacts as resources in other projects.

2012-04-02 Thread Jeff MAURY
You should probably use the maven assembly plugin

Jeff
Le 2 avr. 2012 17:47, Mariusz Plucinski plucinski.mari...@gmail.com a
écrit :

 Hello Maven users,

 I am really newbie in Maven, so I am not pretty sure if my way of thinking
 is right. If it's not, do not hesitate to criticize it.

 I am developing medium-size project, which contains both Java SE and
 Android sub-projects. After many troubles with Ant, I've decided to give
 Maven's a try.

 To make it simple, let's say that I have three projects:
  - Android application
  - Swing application
  - Main application (also uses Swing, but this is not important now)

 Those three applications are building pretty well with maven. I am typing
 mvn package and - as expected - I get one *.apk file and two *.jar files.
 Thanks to maven-shade-plugin, JAR files contains all required dependencies.
 They are, of course, executable jars.

 Goal of Main application is to generate Swing and Android applications
 for user's request. Those applications are prebuilt, so Main program needs
 only to slightly modify it before putting onto user's disk. However, I
 would like to deliver only one file - Main.jar. Two other files -
 Android.apk and Swing.jar should be put as entire files inside of Main.jar
 (they should stay there as full files, without unpacking or anything). This
 way, when user decided to generate e.g. Swing application, Main application
 gets whole file Swing.jar from itself, modifies it a little and put
 somewhere to user's file system. That same is possible in case of
 generating Android program. But it requires shipping Android.apk and
 Swing.jar inside of Main.jar.

 Is it possible to be done using Maven? I suppose that Swing.jar and
 Android.apk should be provided as resources during build of Main.jar, but I
 don't know how to instruct Maven to do it this way. I have tried to set
 phasecompile/phase in maven-jar-plugin configuration in Swing.jar. I
 suppose it is wrong solution - in compile phase, Main application should
 already have all required resources. Is there any way to instruct Maven to
 package my Android and Swing projects during prepare-resources of Main
 project? Of course, those two are dependencies, so Main project should be
 informed, that resources were changed in case of modifications in those two.

 I am using Maven 3.0.3 and m2e 1.0.200.

 Thank you in advance for any help/advise/criticism :).

 Best Regards,
 Mariusz Pluciński



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




Re: Eclipse pde with maven

2012-03-29 Thread Jeff MAURY
Nexus OSS does support p2 since version 2.0

Jeff
Le 29 mars 2012 06:28, Barrie Treloar baerr...@gmail.com a écrit :

 On Thu, Mar 29, 2012 at 1:27 PM, Not Zippy notzi...@gmail.com wrote:
  I just wanted to verify that there wasnt a better plugin to do the job
 for
  an eclipse pde, thats why I asked here first.

 Not that I am aware of.

 We still use pde-maven-plugin which has long been abandoned.
 Its just a shell to the Eclipse Ant build framework anyway.

 I'm trying to migrate to tycho but the lack of p2 mirror support in
 Nexus is causing me pain being behind a firewall and annoying since it
 always wants to download the damn index file - which I assume hasn't
 changed since the last time I invoked it.
 Nexus OSS doesn't support p2 - only the commercial product.

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




Re: Filename too long while compiling a project

2012-03-28 Thread Jeff MAURY
On which platform are you running ? There is a limit of Windows file
systems (http://en.wikipedia.org/wiki/NTFS#Limitations) that you may have
reached which is not of Maven concern ?

Jeff

On Tue, Mar 27, 2012 at 1:59 PM, John Patrick nhoj.patr...@gmail.comwrote:

 Is this a Unix* or Windows filesystem?

 What plugin is doing the code generation?

 Have you executed the plugin with any debugging enabled, i.e. mvn -X ...

 If you move the project to say /tmp/ or c:/tmp/ and build their does
 the same error occur? I'm thinking is it filename or directory name,
 or directory depth.

 John

 On 13 March 2012 08:08, Mikhail Tsaplin tsmis...@gmail.com wrote:
  Hi all.
  I'm trying to compile source code with maven. It falls with an error:
 filename is too long ... However file system allows me to create the
 problem class file, and also this project was successful compiled with
 eclipse. Is there any configuration tweaks to avoid this problem. The code
 that I'm trying to compile is autogenerated and I can't modify it to reduce
 class'es names length.
 

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




-- 
Jeff MAURY

Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: AbstractMavenLifecycleParticipant.afterSessionStart method not invoked

2012-03-06 Thread Jeff MAURY
It seems quite confusing: Tycho is using this functionality and does not
require to be installed in M2_HOME/lib/ext.
My understanding is the following:
- for afterSessionStart, must be installed in M2_HOME/lib/ext
- for afterProjectRead, can be an extension in the POM

Jeff

On Tue, Mar 6, 2012 at 10:51 PM, Olivier Lamy ol...@apache.org wrote:

 2012/3/6 Tom Bujok tom.bu...@gmail.com:
  Hi guys,
 
  I have implemented an AbstractMavenLifecycleParticipant to customize the
 standard build behavior a bit.
  The declaration of the participant looks like this:
 
  @Component(role = AbstractMavenLifecycleParticipant.class, hint =
 testParticipant)
  public class TestParticipant extends AbstractMavenLifecycleParticipant
 implements Initializable {
  …
  }
 
  I have noticed, however, that the afterSessionStart method is never
 invoked. I debugged the getLifecycleParticipants method in the
 DefaultMaven.java class and it looks like an class-loading issue.
  Container.lookupList( AbstractMavenLifecycleParticipant.class ) method
 fetches my participant only when the context class loader is set to project
 realm's class loader, basically after this stuff is executed:
  ClassLoader projectRealm = project.getClassRealm();
  Thread.currentThread().setContextClassLoader( projectRealm );
 
  afterSessionStart() method, however, is invoked before the projects are
 read, so in general, it look like it is impossible to use the
 afterSessionStart method from a plugin defined in a project...
  Am I right, or maybe I am missing something? I am willing to provide a
 patch if you explain what the default behavior should be.
 AFAIK AbstractMavenLifecycleParticipant are maven extension (i.e.
 placed in $M2_HOME/lib/ext/ ) and not project extension.
 And btw afterSessionStart is executed before reading project so
 project realm is unknown at this stage.
 
  Thanks in advance,
  Tom Bujok
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 



 --
 Olivier Lamy
 Talend: http://coders.talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

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




-- 
Jeff MAURY

Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: How to run a maven goal when there is tests failures?

2012-01-10 Thread Jeff MAURY
You can configure the maven surefire plugin to ignore errors (not the
default). Look at the Maven Surefire plugin documentation.

Regards
Jeff MAURY

-- Forwarded message --
From: Xavier S. xavier.seign...@gmail.com
Date: Tue, Jan 10, 2012 at 2:05 PM
Subject: How to run a maven goal when there is tests failures?
To: Maven Users List users@maven.apache.org


Hello,

I would like to know if there is a way to execute a goal when there is test
failures?

Since maven stops its execution (fail fast mode) after encountering a test
failure, is there any options to launch a goal between that test failure
and he stop of maven?

Regards,
Xavier.



-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: How to run a maven goal when there is tests failures?

2012-01-10 Thread Jeff MAURY
what about
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#testFailureIgnore

Jeff MAURY

On Tue, Jan 10, 2012 at 4:55 PM, Xavier S. xavier.seign...@gmail.comwrote:

 Thanks for all your answers, but I think I should re explain my need.

 I don't want to skip the tests. The default fail fast mode of maven suits
 me (section 6.1.8

 http://www.sonatype.com/books/mvnref-book/reference/running-sect-options.html
 ).

 I just want to run my custom mojo just after my tests failures and just
 before the end of the maven execution (if there is build failures, maven do
 not even finishes the current test phase).

 Regards,

 Xavier




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Installation glitch!

2012-01-09 Thread Jeff MAURY
Probably because you have spaces in the directory where you installed Maven
(C:\Program Files\Apache Software Foundation)

Regards
Jeff MAURY

On Mon, Jan 9, 2012 at 11:15 AM, MH martinleeharri...@hotmail.co.uk wrote:

 Hi

 I am a first time user of maven and new to open source in general. I have
 downloaded the latest version .bin file and followed the instructions
 “copied and pasted” below:
 Windows 2000/XP
  1.. Unzip the distribution archive, i.e. apache-maven-3.0.3-bin.zip to
 the directory you wish to install Maven 3.0.3. These instructions assume
 you chose C:\Program Files\Apache Software Foundation. The subdirectory
 apache-maven-3.0.3 will be created from the archive.
  2.. Add the M2_HOME environment variable by opening up the system
 properties (WinKey + Pause), selecting the Advanced tab, and the
 Environment Variables button, then adding the M2_HOME variable in the
 user variables with the value C:\Program Files\Apache Software
 Foundation\apache-maven-3.0.3. Be sure to omit any quotation marks around
 the path even if it contains spaces. Note: For Maven  2.0.9, also be sure
 that the M2_HOME doesn't have a '\' as last character.
  3.. In the same dialog, add the M2 environment variable in the user
 variables with the value %M2_HOME%\bin.
  4.. Optional: In the same dialog, add the MAVEN_OPTS environment variable
 in the user variables to specify JVM properties, e.g. the value -Xms256m
 -Xmx512m. This environment variable can be used to supply extra options to
 Maven.
  5.. In the same dialog, update/create the Path environment variable in
 the user variables and prepend the value %M2% to add Maven available in the
 command line.
  6.. In the same dialog, make sure that JAVA_HOME exists in your user
 variables or in the system variables and it is set to the location of your
 JDK, e.g. C:\Program Files\Java\jdk1.5.0_02 and that %JAVA_HOME%\bin is in
 your Path environment variable.
  7.. Open a new command prompt (Winkey + R then type cmd) and run mvn
 --version to verify that it is correctly installed.
 After running several different permutations and attempting to gain an
 expected response from the command prompt  using mvn –version the system
 has proved to be not properly installed. The command mvn is not recognised.
 I have a standard Windows 7 install with a fairly standard AMD processor.
 Plenty of memory and disk space.

 Can anyone identify what might be causing this phenomenon on my machine?

 Many thanks

 Martin Harrison




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Maven is using SNAPSHOT versions of plugins

2012-01-04 Thread Jeff MAURY
SNAPSHOT are not available in central repository.

Jeff MAURY

On Wed, Jan 4, 2012 at 2:17 PM, Abid Hussain hussain.d...@gmx.de wrote:

 Hi all,

 trying to create a project using the archetype-plugin fails because maven
 tries to use a SNAPSHOT version of the plugin:
 [INFO] Unable to find resource
 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.3-SNAPSHOT'
 in repository central (http://central)
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] A required plugin was not found: Plugin could not be found - check
 that the goal name is correct: Unable to download the artifact from any
 repository

 Same happens when trying to perform the maven-eclipse-plugin. So my
 question is: why does maven try to use SNAPSHOT versions which do not
 exist? Can the cause of the problem be in my local configuration?

 Regards,

 Abid
 --
 NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
 Jetzt informieren: http://www.gmx.net/de/go/freephone

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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Jeff MAURY
You should run Maven from a directory where a pom.xml is present or use the
-f argument.
Regards
Jeff MAURY

On Sat, Dec 17, 2011 at 4:22 PM, Apache Omega jason007tho...@yahoo.comwrote:

 i'm trying to get maven fully operational but every time i run anything
 there's an error stating NO POM1
 how do I correct this???

 Microsoft Windows [Version 6.1.7600]
 Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

 C:\Users\Administratormvn install:install
 [INFO] Scanning for projects...
 [INFO]
 [INFO]
 
 [INFO] Building Maven Stub Project (No POM) 1
 [INFO]
 
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 0.296s
 [INFO] Finished at: Sun Dec 18 09:08:37 CST 2011
 [INFO] Final Memory: 7M/73M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-install-plugin:2.3
 .1:install (default-cli): Goal requires a project to execute but there is
 no
 POM
  in this directory (C:\Users\Administrator). Please verify you invoked
 Maven
 fro
 m the correct directory. - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
 swit
 ch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please
 rea
 d the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
 Exception
 C:\Users\Administratormvn install:install-file
 -Dfile=path-to-your-artifact-jar
  -DpomFile=path-to-pom
 [INFO] Scanning for projects...
 [INFO]
 [INFO]
 
 [INFO] Building Maven Stub Project (No POM) 1
 [INFO]
 
 [INFO]
 [INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @
 standalone-po
 m ---
 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0
 .6/maven-plugin-api-2.0.6.pom
 Downloaded:
 http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.
 6/maven-plugin-api-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.%0A6/maven-plugin-api-2.0.6.pom(2
  KB at 3.1 KB/sec)
 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.
 0.6.pom
 Downloaded:
 http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0
 .6.pom (9 KB at 18.4 KB/sec)
 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven
 -parent-5.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven%0A-parent-5.pom
 Downloaded:
 http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-
 parent-5.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-%0Aparent-5.pom(15
  KB at 30.2 KB/sec)
 Downloading:
 http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
 Downloaded: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
 (4 KB
  at 7.0 KB/sec)
 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/
 maven-project-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/%0Amaven-project-2.0.6.pom
 Downloaded:
 http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m
 aven-project-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/m%0Aaven-project-2.0.6.pom(3
  KB at 5.0 KB/sec)
 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6
 /maven-settings-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6%0A/maven-settings-2.0.6.pom
 Downloaded:
 http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/
 maven-settings-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/%0Amaven-settings-2.0.6.pom(2
  KB at 4.7 KB/sec)
 Downloading:
 http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma
 ven-model-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/ma%0Aven-model-2.0.6.pom
 Downloaded:
 http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav
 en-model-2.0.6.pomhttp://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/mav%0Aen-model-2.0.6.pom(3
  KB at 6.3 KB/sec)
 Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.
 1/plexus-utils-1.4.1.pomhttp://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.%0A1/plexus-utils-1.4.1.pom
 Downloaded:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1
 /plexus-utils-1.4.1.pomhttp://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1%0A/plexus-utils-1.4.1

Re: No POM 1 how do I install my POM (Please help!!!)

2011-12-17 Thread Jeff MAURY
I suggest you read the documentation before asking such questions ?
The -f parameter allows to specify the name and location of the pom.xml (if
you want to use other names than the standard pom.xml)

Regards
Jeff MAURY

On Sat, Dec 17, 2011 at 4:53 PM, Apache Omega jason007tho...@yahoo.comwrote:

 I entered mvn -f and this is what i got
 what does all this mean???

 C:\Program Files\apache-maven-3.0.3mvn -f
 Unable to parse command line options: Missing argument for option: f

 usage: mvn [options] [goal(s)] [phase(s)]

 Options:
  -am,--also-makeIf project list is specified, also
build projects required by the
list
  -amd,--also-make-dependentsIf project list is specified, also
build projects that depend on
projects on the list
  -B,--batch-modeRun in non-interactive (batch)
mode
  -C,--strict-checksums  Fail the build if checksums don't
match
  -c,--lax-checksums Warn if checksums don't match
  -cpu,--check-plugin-updatesIneffective, only kept for
backward compatibility
  -D,--define arg  Define a system property
  -e,--errorsProduce execution error messages
  -emp,--encrypt-master-password arg   Encrypt master security password
  -ep,--encrypt-password arg   Encrypt server password
  -f,--file argForce the use of an alternate POM
file.
  -fae,--fail-at-end Only fail the build afterwards;
allow all non-impacted builds to
continue
  -ff,--fail-fastStop at first failure in
reactorized builds
  -fn,--fail-never   NEVER fail the build, regardless
of project result
  -gs,--global-settings argAlternate path for the global
settings file
  -h,--help  Display help information
  -l,--log-file argLog file to where all build output
will go.
  -N,--non-recursive Do not recurse into sub-projects
  -npr,--no-plugin-registry  Ineffective, only kept for
backward compatibility
  -npu,--no-plugin-updates   Ineffective, only kept for
backward compatibility
  -nsu,--no-snapshot-updates Suppress SNAPSHOT updates
  -o,--offline   Work offline
  -P,--activate-profiles arg   Comma-delimited list of profiles
to activate
  -pl,--projects arg   Comma-delimited list of specified
reactor projects to build instead
of all projects. A project can be
specified by [groupId]:artifactId
or by its relative path.
  -q,--quiet Quiet output - only show errors
  -rf,--resume-from argResume reactor from specified
project
  -s,--settings argAlternate path for the user
settings file
  -T,--threads arg Thread count, for instance 2.0C
where C is core multiplied
  -t,--toolchains arg  Alternate path for the user
toolchains file
  -U,--update-snapshots  Forces a check for updated
releases and snapshots on remote
repositories
  -up,--update-plugins   Ineffective, only kept for
backward compatibility
  -V,--show-version  Display version information
WITHOUT stopping build
  -v,--version   Display version information
  -X,--debug Produce execution debug output
 [ERROR] Error executing Maven.
 org.apache.commons.cli.MissingArgumentException: Missing argument for
 option: f
at org.apache.commons.cli.Parser.processArgs(Parser.java:343)
at org.apache.commons.cli.Parser.processOption(Parser.java:393)
at org.apache.commons.cli.Parser.parse(Parser.java:199

Re: Solve my exception for mvn installtion

2011-12-16 Thread Jeff MAURY
It means the class files have geen generated using a JDK 1.5 and you are
running a pre 1.5 JDK with Maven.
You should probably check your JAVA_HOME.
What does java -version says ?

Regards
Jeff MAURY

On Fri, Dec 16, 2011 at 5:42 AM, ashishmemod ashishme...@gmail.com wrote:

 thank you for above reply...

 But I installed java 6 with update 24 in my system!!!

 So now what is meaning of this exception?



 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Solve-my-exception-for-mvn-installtion-tp5076811p5079295.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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Solve my exception for mvn installtion

2011-12-15 Thread Jeff MAURY
Maven needs à minimum 1.5 jdk to run

Jeff

Le jeudi 15 décembre 2011, ashishmemod ashishme...@gmail.com a écrit :

 Hi friends,

 i found these types of error or exceptions.

 please help me ro solve it.


 C:\Users\Ashishmvn install
 Exception in thread main java.lang.UnsupportedClassVersionError:
 org/apache/ma
 ven/cli/MavenCli (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at

org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)
at

org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
at

org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at

org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
at

org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145)
at

org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267)
at

org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at

org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)


 --
 View this message in context:
http://maven.40175.n5.nabble.com/Solve-my-exception-for-mvn-installtion-tp5076811p5076811.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




Fwd: YUI Compressor Maven plugin executed at wrong time and tomcat plugin not using yui-compressor output

2011-12-02 Thread Jeff MAURY
By default, the compress goal of the YUI maven plugin is bound to the
process-resources phase.
So, you need to bind it to another phase after the war plugin has produced
the war directory structure the Tomcat plugin will use.
I recommand you also customize the outputDirectory parameter of the YUI
maven plugin because the default value does not comply with the standard
Maven War directory layout.

Regards
Jeff MAURY

-- Forwarded message --
From: fe.character.guide fe.character.gu...@gmail.com
Date: Fri, Dec 2, 2011 at 7:17 AM
Subject: YUI Compressor Maven plugin executed at wrong time and tomcat
plugin not using yui-compressor output
To: users@maven.apache.org


Hello everyone!

I'm trying to get some basic maven build processes configured correctly
with my Java project, and beyond Stackoverflow, I'm not sure
where else to turn.

I'd like to compress all of my javascript files and aggregate them using
YUICompressor, and I saw that there was a maven plugin to allow me to do
this. I got it working for the most part.

I am also using the Mojo tomcat plugin as well. When i go to run the
tomcat:run goal, tomcat does not read from the target's output
directory (this is where the YUI compressor put my javascript files) - but
rather, it reads from the actual source files in my src/main/
webapp/scripts directory. Of course, the aggregated javascript file
(all.js) is not there. This makes sense, but is a big problem for me.

I have a few questions.

1. How can I get the tomcat plugin to read the target's output folder that
the yui compressor plugin created?

2. Do I have to run the yui compressor maven goal every time I want to
update my javascript files during development while my tomcat instance is
running?

3. How can tell Maven that I want to run the YUI compressor AFTER Maven
copies over the `src/main/webapp` directory? Currently, Maven runs the YUI
compressor, but then overwrites all of the compressed css and javascript
files with the original source files, defeating the purposes of compressing
them ;)

4. Is there a better way to achieve my objective rather than using the YUI
compressor? Essentially, my end goal is to be able to develop JavaScript
code in separate files and test my source files in development mode without
having to aggregate them... but I want to compress and aggregate the files
and use the `all.js` script when the application is running in production
mode.

While the Rails people have certainly figured this out, this seems to be a
non-trivial thing to do with Maven and Spring.
I would appreciate any and all assistance on how I can get this running
correctly. Thanks!



-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: writing a maven plugin that transparently adds a new source folder

2011-11-30 Thread Jeff MAURY
You can develop a Mojo that will do the trick but you will have to
configure it in you pom (at least define it so that it will be invoked) so
I don't see the added value compared to the build-helper-plugin

Regards
Jeff MAURY

On Wed, Nov 30, 2011 at 7:53 PM, Andrew Eisenberg 
andrew.eisenb...@gmail.com wrote:

 Thanks, Jeff and Stephen for your answers.  I know about the
 build-helper-maven-plugin, but this adds about 20 lines of
 configuration to the pom and I was hoping to avoid that.  Also,
 forcing users to specify a parent pom is not feasible since users will
 likely have their own parent poms to use.

 My goal is to simplify the configuration of the pom so that with just
 about 3-4 lines of configuration, all the functionality happens
 automatically.  Are you suggesting that this is not possible?

 ps- Apologies for not responding sooner, but somehow these messages
 have been ending up in my spam folder.

 On Sat, Nov 26, 2011 at 9:59 AM, Jeff MAURY jeffma...@jeffmaury.com
 wrote:
  If you need to add source folders, there is an existing Maven plugin to
 do
  it: the build-helper-maven-plugin. Check the doc at
  http://mojo.codehaus.org/build-helper-maven-plugin
 
  Regards
  Jeff MAURY
 
  On Sat, Nov 26, 2011 at 1:58 AM, Stephen Connolly 
  stephen.alan.conno...@gmail.com wrote:
 
  either mandate a parent pom... they will have to reference your plugin
 in
  their pom and the execution from the pluginmgmt will be pulled in, or
  custom lifecycle (they will need to ref the plugin and set extensions to
  true...
 
  themselves the only two ways to skin the cat
 
  - Stephen
 
  ---
  Sent from my Android phone, so random spelling mistakes, random nonsense
  words and other nonsense are a direct result of using swype to type on
 the
  screen
  On 25 Nov 2011 22:17, Andrew Eisenberg andrew.eisenb...@gmail.com
  wrote:
 
   Hi all,
  
   I am trying to create a maven plugin that transparently adds a new
   source folder to the project.  It is always the same folder and so
   there should be no configuration required from the user.  I've been
   going through
  
 http://www.sonatype.com/books/mvnref-book/reference/writing-plugins.html
   , but I can't find anything that solves my problem.
  
   I created a plugin project with the following mojo:
  
  
   /**
* @goal add-xxx-source
* @phase compile
* @execute phase=compile
*/
   public class AddGroovySourceFolders extends AbstractMojo {
  /**
   * @parameter expression=${project}
   * @required
   * @readonly
   */
  private MavenProject project;
  
  public void execute() throws MojoExecutionException,
   MojoFailureException {
  getLog().info(Adding /src/main/xxx to the list of source
  folders);
  this.project.addCompileSourceRoot(project.getBasedir() +
   /src/main/xxx);
  }
   }
  
   Now, the only way that I can get this mojo executing is by explicitly
   adding it in the executions section of the plugin dependency:
  
  plugin
  groupIdorg.codehaus.groovy/groupId
  artifactIdxxx-compiler/artifactId
  version2.6.0-01-SNAPSHOT/version
  executions
  execution
  idadd-source/id
  
phasegenerate-sources/phase
  goals
  
goaladd-xxx-source/goal
  /goals
  /execution
  /executions
  /plugin
  
   I would like it so that consumers of my plugin can leave out the
   extensions section and have the mojo executed automatically, like
   this:
  
  plugin
  groupIdorg.codehaus.groovy/groupId
  artifactIdxxx-compiler/artifactId
  version2.6.0-01-SNAPSHOT/version
  /plugin
  
   Is this possible? And how can I do this?
  
   thanks for your help.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
 
 
 
 
  --
  Legacy code often differs from its suggested alternative by actually
  working and scaling.
   - Bjarne Stroustrup
 
  http://www.jeffmaury.com
  http://riadiscuss.jeffmaury.com
  http://www.twitter.com/jeffmaury

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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http

Re: writing a maven plugin that transparently adds a new source folder

2011-11-30 Thread Jeff MAURY
No, you can have a mojo automatically invoked as soon as it is declared in
a pom. You must bind your mojo to a specific phase.

Regards
Jeff MAURY

On Wed, Nov 30, 2011 at 10:48 PM, Andrew Eisenberg 
andrew.eisenb...@gmail.com wrote:

 On Wed, Nov 30, 2011 at 1:31 PM, Jeff MAURY jeffma...@jeffmaury.com
 wrote:
  You can develop a Mojo that will do the trick but you will have to
  configure it in you pom (at least define it so that it will be invoked)
 so
  I don't see the added value compared to the build-helper-plugin

 Right. Well, the only benefit is that doing it through the mojo that I
 would create is about 6 fewer lines of configuration, which is not
 much benefit (and I actually did get this working, but I wasn't happy
 with the solution).  I must say that I am disappointed in maven that
 this is not possible.  I was expecting that mojos could somehow be
 executed implicitly just by referencing a plugin in your pom.  I'm
 sure there's a reason for not allowing this, but from my perspective
 allowing this would certainly cut down on some configuration
 verbosity.

 Thanks for your help with this.  I'll have to settle for the
 build-helper-maven-plugin approach.

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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: writing a maven plugin that transparently adds a new source folder

2011-11-30 Thread Jeff MAURY
This is done through a Javadoc annotation in your Mojo source file.

Regards
Jeff MAURY

On Wed, Nov 30, 2011 at 11:45 PM, Andrew Eisenberg 
andrew.eisenb...@gmail.com wrote:

 Sorry for asking so many questions, but I am now confused.  When you
 say You must bind your mojo to a specific phase, where does this
 binding happen?  Inside the pom associated with the mojo or inside the
 plugin consumer's pom?  Earlier, I think you implied that this had to
 happen in the consumer's pom, but is that not what you are saying now?
  If this is the correct interpretation, can you point me to some docs
 or an example of how to do this?

 My goal is to do all of the configuring inside of the mojo's pom so
 that the plugin consumer has to do as little configuring as possible
 (preferably none at all, except for declaring a dependency).

 thanks,
 Andrew

 On Wed, Nov 30, 2011 at 2:26 PM, Jeff MAURY jeffma...@jeffmaury.com
 wrote:
  No, you can have a mojo automatically invoked as soon as it is declared
 in
  a pom. You must bind your mojo to a specific phase.
 
  Regards
  Jeff MAURY
 
  On Wed, Nov 30, 2011 at 10:48 PM, Andrew Eisenberg 
  andrew.eisenb...@gmail.com wrote:
 
  On Wed, Nov 30, 2011 at 1:31 PM, Jeff MAURY jeffma...@jeffmaury.com
  wrote:
   You can develop a Mojo that will do the trick but you will have to
   configure it in you pom (at least define it so that it will be
 invoked)
  so
   I don't see the added value compared to the build-helper-plugin
 
  Right. Well, the only benefit is that doing it through the mojo that I
  would create is about 6 fewer lines of configuration, which is not
  much benefit (and I actually did get this working, but I wasn't happy
  with the solution).  I must say that I am disappointed in maven that
  this is not possible.  I was expecting that mojos could somehow be
  executed implicitly just by referencing a plugin in your pom.  I'm
  sure there's a reason for not allowing this, but from my perspective
  allowing this would certainly cut down on some configuration
  verbosity.
 
  Thanks for your help with this.  I'll have to settle for the
  build-helper-maven-plugin approach.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Legacy code often differs from its suggested alternative by actually
  working and scaling.
   - Bjarne Stroustrup
 
  http://www.jeffmaury.com
  http://riadiscuss.jeffmaury.com
  http://www.twitter.com/jeffmaury

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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: writing a maven plugin that transparently adds a new source folder

2011-11-26 Thread Jeff MAURY
If you need to add source folders, there is an existing Maven plugin to do
it: the build-helper-maven-plugin. Check the doc at
http://mojo.codehaus.org/build-helper-maven-plugin

Regards
Jeff MAURY

On Sat, Nov 26, 2011 at 1:58 AM, Stephen Connolly 
stephen.alan.conno...@gmail.com wrote:

 either mandate a parent pom... they will have to reference your plugin in
 their pom and the execution from the pluginmgmt will be pulled in, or
 custom lifecycle (they will need to ref the plugin and set extensions to
 true...

 themselves the only two ways to skin the cat

 - Stephen

 ---
 Sent from my Android phone, so random spelling mistakes, random nonsense
 words and other nonsense are a direct result of using swype to type on the
 screen
 On 25 Nov 2011 22:17, Andrew Eisenberg andrew.eisenb...@gmail.com
 wrote:

  Hi all,
 
  I am trying to create a maven plugin that transparently adds a new
  source folder to the project.  It is always the same folder and so
  there should be no configuration required from the user.  I've been
  going through
  http://www.sonatype.com/books/mvnref-book/reference/writing-plugins.html
  , but I can't find anything that solves my problem.
 
  I created a plugin project with the following mojo:
 
 
  /**
   * @goal add-xxx-source
   * @phase compile
   * @execute phase=compile
   */
  public class AddGroovySourceFolders extends AbstractMojo {
 /**
  * @parameter expression=${project}
  * @required
  * @readonly
  */
 private MavenProject project;
 
 public void execute() throws MojoExecutionException,
  MojoFailureException {
 getLog().info(Adding /src/main/xxx to the list of source
 folders);
 this.project.addCompileSourceRoot(project.getBasedir() +
  /src/main/xxx);
 }
  }
 
  Now, the only way that I can get this mojo executing is by explicitly
  adding it in the executions section of the plugin dependency:
 
 plugin
 groupIdorg.codehaus.groovy/groupId
 artifactIdxxx-compiler/artifactId
 version2.6.0-01-SNAPSHOT/version
 executions
 execution
 idadd-source/id
 
   phasegenerate-sources/phase
 goals
 
   goaladd-xxx-source/goal
 /goals
 /execution
 /executions
 /plugin
 
  I would like it so that consumers of my plugin can leave out the
  extensions section and have the mojo executed automatically, like
  this:
 
 plugin
 groupIdorg.codehaus.groovy/groupId
 artifactIdxxx-compiler/artifactId
 version2.6.0-01-SNAPSHOT/version
 /plugin
 
  Is this possible? And how can I do this?
 
  thanks for your help.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Mojo configuration file

2011-11-23 Thread Jeff MAURY
You can bind the MavenProject to your mojo through the ${project}
expression.
But you can also bind the ${project.build.resources} expression to access
the list of resources directories.

Jeff MAURY

On Wed, Nov 23, 2011 at 5:53 PM, krwell krw...@hotmail.com wrote:

 I am developing an in-house mojo to be used across multiple projects.  All
 of
 our in-house projects are built off a similar framework that requires an
 application.xml file.  My problem is that mojo I am creating cannot find
 the
 application.xml file in the calling project.  In the calling project the
 file is located in src/main/resources and the mojo is being called in the
 test phase to perform test setup activities.

 So my question is, how do I have the mojo access the file from the calling
 project?

 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Mojo-configuration-file-tp5017276p5017276.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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: UTF-8 Test Mystery

2011-10-10 Thread Jeff MAURY
Where is your .properties file located and what type of encoding do you have
in your POM for sources/resources ?

Regards
Jeff MAURY

On Tue, Oct 11, 2011 at 12:04 AM, Eric Kolotyluk
eric.koloty...@gmail.comwrote:

 I am having trouble understanding a mystery.

 I have code that checks my .properties file to make sure that it has not
 been corrupted after being edited by a non UTF-8 editor. In particular I
 have a property called lambda = λ and I check to see that it actually does
 resolve to the correct character.

 If I run my code from main (my manual unit test) it works. If I run my test
 from JUnit in Eclipse, it works. But when the same test runs under Maven it
 fails because lambda = ?

 When I look in the actual properties file that the test runs with, lambda =
 λ, but somehow when the code runs it gets lambda = ?.

 I thought this was maybe a surefire configuration problems so I am using

 pluginManagement
 plugins
 plugin
 groupIdorg.apache.maven.**plugins/groupId
 artifactIdmaven-surefire-**plugin/artifactId
 version2.9/version
 configuration
 junitArtifactNamejunit:**junit/junitArtifactName
 encodingUTF-8/encoding
 inputEncodingUTF-8/**inputEncoding
 outputEncodingUTF-8/**outputEncoding
 argLine-Xms256m -Xmx512m -XX:MaxPermSize=128m -ea/argLine
 /configuration
 /plugin
 /plugins
 /pluginManagement

 but this makes no difference. Does anyone have any idea why my JUnit test
 fails running under surefire, but not running under Eclipse?

 Cheers, Eric

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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Http(s) transport layer change (call for early adopters users)

2011-10-03 Thread Jeff MAURY
Hello,

I have build Hadoop trunk with this version without problems.

Jeff

On Mon, Oct 3, 2011 at 10:24 AM, Olivier Lamy ol...@apache.org wrote:

 Hello,
 In the current maven core dev trunk, we have recently replace the
 http(s) transport layer from lightweight wagon (based on default jdk
 http(s) mechanism) to the wagon http module based on Apache httpclient
 [1].

 This change include two improvements:
 * connection pool mechanism (to avoid http(s) connection recreation
 for each artifacts download).
 * preemptive authz mechanism which will prevent uploading artifacts twice.

 As it's important change in the core distribution, we like to have
 some feedbacks from users a SNAPSHOT distribution (based on rev
 1178324) is available here :
 http://people.apache.org/~olamy/core/maven-3-r1178324/

 mvn -v display:  Apache Maven 3.0.4-SNAPSHOT (r1178324; 2011-10-03
 10:07:26+0200)

 An other way to test it with maven3 is to download the shaded jar [1]
 and copy it in $M2_HOME/lib/ext.

 Feel free to test it and report any issues you will have with this new
 default http(s) transport layer.


 Thanks in advance for your testing time!
 --
 Olivier Lamy
 Talend : http://talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

 [1] http://hc.apache.org/httpcomponents-client-ga/index.html
 [2]
 http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http/2.0/wagon-http-2.0-shaded.jar

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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Can I configure the version used as default for Maven plugins?

2011-09-25 Thread Jeff MAURY


Envoyé de mon VT100 Phone

Le 25 sept. 2011 à 14:27, Baptiste MATHUS m...@batmat.net a écrit :

 And what would be the benefit of storing that information over using a
 corporate super-pom, which is the way to go to define corporate-wide
 versions to be used?
 
 I don't think having things outside the build context is a good idea.
 Settings.xml is necessary, but it should stay as small as possible IMO, that
 is: basically almost only contain the corporate mrm address.
+1

Jeff
 
 Storing plugin versions outside the project itself would create a whirlwind
 of unreproducible issues, which were typical before maven 2.0.9.
 
 Cheers
 
 2011/9/25 Andy Glick andygl...@gmail.com
 
 Robert,
 
 I believe that you have explained that the super pom or some important
 aspects of it reside in artifact-handlers.xml  and that if I were to modify
 it and build a new version of Maven that I would have modified the super pom
 and universally changed the version of a plugin available from the command
 line without a pom in a manner that would be both controlled and repeatable?
 
 That is useful information, I appreciate the suggestion. Though it does
 seem to me that this information is quite valuable and ought to be more
 widely disseminated.
 
 Is it possible that this file, or some parts of it, could be exposed as a
 public resource and available for configuration similar to settings.xml?
 
 
 On 9/25/11 5:38 AM, Robert Scholte wrote:
 
 That should be http://svn.apache.org/viewvc/**
 maven/maven-3/tags/maven-3.0.**3/maven-core/src/main/**
 resources/META-INF/plexus/**artifact-handlers.xml?view=loghttp://svn.apache.org/viewvc/maven/maven-3/tags/maven-3.0.3/maven-core/src/main/resources/META-INF/plexus/artifact-handlers.xml?view=log
 
 And here you see that the maven-deploy-plugin uses version 2.5
 
 -Robert
 
 
 Date: Sun, 25 Sep 2011 11:32:03 +0200
 From: pr...@jonand.se
 To: users@maven.apache.org
 Subject: Re: Can I configure the version used as default for Maven
 plugins?
 
 To get what you want, just put a minimal pom.xml into the directory from
 which you invoke your mvn goal and use pluginMgmt to bump the version
 
 Thanks. This and the tip from Kristian, that the goal always is invoked
 asgroupId:artifactId:**version:goal, seems to be the two choices
 to configure the plugin version used and of them seems use of the qualified
 name then often be the easiest choice.
 
 I understand the reason to why the default version of the plugins used
 not is just updated every time, that seems wise, and as I understand it is
 it in the pluginManagement of the super pom where the default version of
 plugins with a prefix is configured. Just because I am a bit curious did I
 also have a look at the super pom which I found should be located in the
 file org/apache/maven/model/pom-4.**0.0.xm in the JAR
 lib/maven-model-builder-3.0.3.**jar but I didn't find the configured
 plugin versions there. Now it is only about curiosity : ) but where do I
 find this configuration?
 
 Anyway, thanks for good information! It is interesting to learn these
 details about Maven to better understand how it works.
 
 Jonny Andersson
 
 2011-09-25 10:35, Stephen Connolly wrote:
 
 The best practice for poms is to always specify a version of plugins.
 
 before Maven 2.0.8 the plugins used in the standard lifecycle did not
 have their version specified in the superpom that is baked into Maven
 itself.
 
 This meant that if a plugin was updated and cause a breakage for
 people, _everyone_ had the pain until they set the version explicitly.
 
 So from 2.0.9 onwards, Maven has included baked in versions for the
 plugins invoked by the baked in packaging's lifecycles.
 
 Every time there is a release of Maven, we typically bump up the
 versions to the next version that we think is stable.
 
 3.0.x now has baked in warnings that you should specify the plugin
 version in your pom, that is so that at some stage, think 3.1.x or
 maybe 4.0.x we can remove the baked in versions _hack_ that was
 necessary to allow us to release versions of some critical core
 plugins (such as m-compiler-p) without fear of causing major issues
 for people who had not baked the version into their pom.
 
 The side-effect of all this is that if you are execution mvn plugin
 goals directly from the cli in a directory that does not have a
 pom.xml and you want to use a newer version, you need to call out the
 full long form of the plugin.
 
 To get what you want, just put a minimal pom.xml into the directory
 from which you invoke your mvn goal and use pluginMgmt to bump the
 version
 
 -Stephen
 
 On 25 September 2011 09:12, Jonny Anderssonpr...@jonand.se  wrote:
 
 But it still seems strange to me thatprefix:goal  for the
 maven-deploy-plugin always gives me version 2.5 (for Maven 3.0.3) and
 not
 the newest available version 2.7. I also tried to delete version 2.5
 from my
 local repo one time with version 2.7 left and tried again which caused
 version 2.5 to be downloaded. What 

Re:

2011-09-07 Thread Jeff MAURY
Warning, the link is a fishing site

Jeff

On Wed, Sep 7, 2011 at 2:21 PM, tommy schindler shin...@hotmail.com wrote:

 Get some pleasure with your lover tonight!...
 http://www.miguelangelscebba.com.ar/com.page.php?jhotmailID=31c7





-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: test-jar classifier

2011-08-25 Thread Jeff MAURY
Look at the jar plugin documentation. The jar:test-jar goal does not support
classifier, as jar:jar.

Regards
Jeff MAURY

On Thu, Aug 25, 2011 at 11:00 AM, Adrien Ruffie - Petals Link 
adrien.ruf...@petalslink.com wrote:

 Hello, I have specify a classifier example bdd
 for my project, so when I execute mvn package,
 I can found myproject-Version-**Myclassifier.jar
 Into .m2

 [INFO] Building
 jar: /home/aruffie/Workspace/**Product/acceptance/petals-bc-**
 mail/target/myproject-3.2-**SNAPSHOT-bdd.jar
 [INFO] [jar:test-jar {execution: default}]
 [WARNING] JAR will be empty - no content was marked for inclusion!
 [INFO] Building
 jar: /home/aruffie/Workspace/**Product/acceptance/petals-bc-**
 mail/target/myproject-3.2-**SNAPSHOT-tests.jar

 But the tests.jar has always -tests.jar but not -bdd-tests.jar ...

 Does  anyone has  an  idea?

 Thank,

 Adrien


 --
 Adrien Ruffié
 - Ingénieur de recherches et développements
 - Scrum Team member




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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Re: Maven Eclipse Plugin doesn't include all source paths in generated .classpath file in a Java / Groovy project

2011-07-13 Thread Jeff MAURY
You probably need to configure your Eclipse project as a Groovy project
(through a nature I think).
Please not that you can configure the Maven Eclipse plugin to add specific
natures when eclipse:eclipse is run.

Regards
Jeff


On Wed, Jul 13, 2011 at 7:26 PM, DaveyBob psyn...@yahoo.com wrote:

 I essentially have the same problem.  I am just getting started with Groovy
 for this project.

 Environment:
  Ubuntu 11.04
  Eclipse 3.7
  Groovy Eclipse plugin 2.5.1
  Maven 2.2.1

 Following the instructions in the Groovy Eclipse Plugin page
 (http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven), I
 ran
 the mvn archetype:generate command, and it generated a project for me.
  Then
 I did mvn eclipse:eclipse and then imported that project into Eclipse.

 But the project flags errors in src/test/java/JavaTest because the package
 is not right.  Fixed that.

 Next src/main/java/JavaMain.java is in error because it cannot find
 GroovyHello.  Sure enough, that is not compiled.  So I checked the build
 path, and like Sebastian found, src/main/groovy does not include groovy
 files at all...so I added an include of **/*.groovy.

 That still doesn't fix it, though.  None of the groovy files ever get
 compiled to .class files in the output folder.  At this point I don't have
 a
 clue how to get Eclipse to build these files.

 I think I'll come at it from the Eclipse side and create a Groovy project.


 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Maven-Eclipse-Plugin-doesn-t-include-all-source-paths-in-generated-classpath-file-in-a-Java-Groovy-pt-tp4535545p4583476.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




-- 
Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


  1   2   3   >