Re: Problem with maven for php

2012-06-26 Thread martin.eisengardt
>
> You would have better luck on a maven php mailing list than here as
> this is specific to that php plugin.
>
And that google group is located at
https://groups.google.com/forum/?fromgroups#!forum/maven-for-php

Berrie already says: The zend archetype is available with version
2.0.0 (-DarchetypeVersion=2.0.0). Version 1.0 does not exist, neither in
central repository nor in php-maven repository.


Re: Problem with maven for php

2012-06-26 Thread Barrie Treloar
On Wed, Jun 27, 2012 at 1:04 PM, Fernanda Araújo
 wrote:
> Hi,
>
>  I'm trying to build a new project using mvn archetype:generate
> -DarchetypeArtifactId=php5-zend-archetype -X
>
>  It gives me the following error
>
>  [DEBUG] Archetype org.apache.maven.archetypes:php5-zend-archetype:1.0
> doesn't exist
...
> Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in
> http://repo1.php-maven.org/release

You would have better luck on a maven php mailing list than here as
this is specific to that php plugin.

The error message is telling you that this archetype does not exist.

I dont really use archetypes, but you can see that this one does not
exist in Maven Central.
http://search.maven.org/#search|ga|1|%3Aphp5-zend-archetype

A google finds this page, which I am assuming you are following:
http://www.php-maven.org/tags/2.0.0/php-zend-5min.html

Did you follow the Preparation Instructions
(http://www.php-maven.org/prepare.html) as requested?
This will configure maven with additional repos (like
http://repos.php-maven.org/releases) which are unfortunately not
browsable, if you try they redirect you the the underlying Nexus
repos.
You can see that the artifact is available here
http://nexus.bghosting.de/content/repositories/php-maven-plugin-releases/org/phpmaven/php5-zend-archetype/2.0.0/php5-zend-archetype-2.0.0.jar
Which is what 
http://repos.php-maven.org/releases/org/phpmaven/php5-zend-archetype/2.0.0/php5-zend-archetype-2.0.0.jar
will get you as well.

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



Problem with maven for php

2012-06-26 Thread Fernanda Araújo
Hi,

  I'm trying to build a new project using mvn archetype:generate
-DarchetypeArtifactId=php5-zend-archetype -X

 It gives me the following error

 [DEBUG] Archetype org.apache.maven.archetypes:php5-zend-archetype:1.0
doesn't exist
org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested
org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 download does not
exist.
at
org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:78)
 at
org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:272)
at
org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:114)
 at
org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:84)
 at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
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)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in
http://repo1.php-maven.org/release was cached in the local repository,
resolution will not be reattempted until the update interval of
release-repo1.php-maven.org has elapsed or updates are forced

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes
-DartifactId=php5-zend-archetype -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes
-DartifactId=php5-zend-archetype -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.archetypes:php5-zend-archetype:jar:1.0

from the specified remote repositories:
  release-repo1.php-maven.org (http://repo1.php-maven.org/release,
releases=true, snapshots=true),
  snapshot-repo1.php-maven.org (http://repo1.php-maven.org/snapshot,
releases=false, snapshots=true),
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
 at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
at
org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:70)
 ... 24 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in
http://repo1.php-maven.org/release was cached in the local repository,
resolution will not be reattempted until the update interval of
release-repo1.php-maven.org has elapsed or updates are forced
 at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
 at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
 

Re: can't verify tarball

2012-06-26 Thread Jay Scott

On 06/26/2012 05:01 PM, Olivier Lamy wrote:

2012/6/26 Jay Scott :

On 06/26/2012 04:49 PM, Olivier Lamy wrote:


Do you remember from which mirror you download tar.gz ?



Hmm, I just clicked the link on http://maven.apache.org/download.html and
got whatever I got. When I return to the page now the link is

http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz


Yup and some mirrors are proposed to you.
It looks you used one with "strange" content.
If you could report which mirror fail that could be lovely :-)


O! Now I think I know what went wrong! I saw ".tar.gz" at the end of 
the URL and right-clicked it and downloaded the list of mirrors instead 
of the file I wanted. It had the right filename and somehow I never 
noticed that the size was much too small.


Sorry for the false alarm! But that list page should have a different 
URL, I'm sure I'm not the only one it has confused.


  Jay Scott
  http://satirist.org/


which sounds like it's not telling me the ultimate source.



Can you try to download from archive site ?
http://www.us.apache.org/dist/maven/binaries/



Success: Signature verifies and md5 matches with that download.



I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and
signature) and can't verify the signature. I grabbed KEYS from
http://www.apache.org/dist/maven/KEYS and:



...




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



Re: can't verify tarball

2012-06-26 Thread Jay Scott

PS: Thanks, a fast and good answer!

  Jay Scott
  http://satirist.org/

On 06/26/2012 04:58 PM, Jay Scott wrote:

On 06/26/2012 04:49 PM, Olivier Lamy wrote:

Do you remember from which mirror you download tar.gz ?


Hmm, I just clicked the link on http://maven.apache.org/download.html
and got whatever I got. When I return to the page now the link is

http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz


which sounds like it's not telling me the ultimate source.


Can you try to download from archive site ?
http://www.us.apache.org/dist/maven/binaries/


Success: Signature verifies and md5 matches with that download.


I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and
signature) and can't verify the signature. I grabbed KEYS from
http://www.apache.org/dist/maven/KEYS and:

 > ...



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



Re: can't verify tarball

2012-06-26 Thread Olivier Lamy
2012/6/26 Jay Scott :
> On 06/26/2012 04:49 PM, Olivier Lamy wrote:
>>
>> Do you remember from which mirror you download tar.gz ?
>
>
> Hmm, I just clicked the link on http://maven.apache.org/download.html and
> got whatever I got. When I return to the page now the link is
>
> http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz

Yup and some mirrors are proposed to you.
It looks you used one with "strange" content.
If you could report which mirror fail that could be lovely :-)

>
> which sounds like it's not telling me the ultimate source.
>
>
>> Can you try to download from archive site ?
>> http://www.us.apache.org/dist/maven/binaries/
>
>
> Success: Signature verifies and md5 matches with that download.
>
>
>> I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and
>> signature) and can't verify the signature. I grabbed KEYS from
>> http://www.apache.org/dist/maven/KEYS and:
>
>> ...
>
>
>  Jay Scott
>  http://satirist.org/
>
>
>
> -
> 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



Re: can't verify tarball

2012-06-26 Thread Jay Scott

On 06/26/2012 04:49 PM, Olivier Lamy wrote:

Do you remember from which mirror you download tar.gz ?


Hmm, I just clicked the link on http://maven.apache.org/download.html 
and got whatever I got. When I return to the page now the link is


http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz

which sounds like it's not telling me the ultimate source.


Can you try to download from archive site ?
http://www.us.apache.org/dist/maven/binaries/


Success: Signature verifies and md5 matches with that download.


I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and 
signature) and can't verify the signature. I grabbed KEYS from 
http://www.apache.org/dist/maven/KEYS and:

> ...

  Jay Scott
  http://satirist.org/



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



RE: can't verify tarball

2012-06-26 Thread m m

does Dick know?

> Date: Tue, 26 Jun 2012 16:43:13 -0400
> From: j...@mathforum.org
> To: users@maven.apache.org
> Subject: can't verify tarball
> 
> I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and 
> signature) and can't verify the signature. I grabbed KEYS from 
> http://www.apache.org/dist/maven/KEYS and:
> 
> $ gpg --import KEYS
> ...
> gpg: Total number processed: 42
> gpg:   imported: 41  (RSA: 4)
> gpg:  unchanged: 1
> gpg: no ultimately trusted keys found
> $ gpg --verify apache-maven-3.0.4-bin.tar.gz.asc 
> apache-maven-3.0.4-bin.tar.gz
> gpg: Signature made Tue 17 Jan 2012 03:47:55 AM EST using DSA key ID 
> B4372146
> gpg: BAD signature from "Olivier Lamy "
> 
> The md5 checksum also doesn't match. I get
> 
> $ md5sum apache-maven-3.0.4-bin.tar.gz
> bc6559d120933c27534200d7dc9e0d39  apache-maven-3.0.4-bin.tar.gz
> 
> and the download page says e513740978238cb9e4d482103751f6b7
> 
> Obviously I'm not using this tarball until I know what's up! Whose 
> mistake and/or compromise?
> 
>Jay Scott
>http://satirist.org/
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
  

Re: can't verify tarball

2012-06-26 Thread Olivier Lamy
Hi,
Do you remember from which mirror you download tar.gz ?

Can you try to download from archive site ?
http://www.us.apache.org/dist/maven/binaries/

2012/6/26 Jay Scott :
> I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and
> signature) and can't verify the signature. I grabbed KEYS from
> http://www.apache.org/dist/maven/KEYS and:
>
> $ gpg --import KEYS
> ...
> gpg: Total number processed: 42
> gpg:               imported: 41  (RSA: 4)
> gpg:              unchanged: 1
> gpg: no ultimately trusted keys found
> $ gpg --verify apache-maven-3.0.4-bin.tar.gz.asc
> apache-maven-3.0.4-bin.tar.gz
> gpg: Signature made Tue 17 Jan 2012 03:47:55 AM EST using DSA key ID
> B4372146
> gpg: BAD signature from "Olivier Lamy "
>
> The md5 checksum also doesn't match. I get
>
> $ md5sum apache-maven-3.0.4-bin.tar.gz
> bc6559d120933c27534200d7dc9e0d39  apache-maven-3.0.4-bin.tar.gz
>
> and the download page says e513740978238cb9e4d482103751f6b7
>
> Obviously I'm not using this tarball until I know what's up! Whose mistake
> and/or compromise?
>
>  Jay Scott
>  http://satirist.org/
>
> -
> 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



can't verify tarball

2012-06-26 Thread Jay Scott
I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and 
signature) and can't verify the signature. I grabbed KEYS from 
http://www.apache.org/dist/maven/KEYS and:


$ gpg --import KEYS
...
gpg: Total number processed: 42
gpg:   imported: 41  (RSA: 4)
gpg:  unchanged: 1
gpg: no ultimately trusted keys found
$ gpg --verify apache-maven-3.0.4-bin.tar.gz.asc 
apache-maven-3.0.4-bin.tar.gz
gpg: Signature made Tue 17 Jan 2012 03:47:55 AM EST using DSA key ID 
B4372146

gpg: BAD signature from "Olivier Lamy "

The md5 checksum also doesn't match. I get

$ md5sum apache-maven-3.0.4-bin.tar.gz
bc6559d120933c27534200d7dc9e0d39  apache-maven-3.0.4-bin.tar.gz

and the download page says e513740978238cb9e4d482103751f6b7

Obviously I'm not using this tarball until I know what's up! Whose 
mistake and/or compromise?


  Jay Scott
  http://satirist.org/

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



Re: [ANN] JAXB-2 Maven Plugin 1.4 Released

2012-06-26 Thread Kathryn Huxtable
In general, how does this compare to the jvnet jaxb plugin? Why would I use one 
over the other?

I do a certain amount of JAXB, and I'm curious.

-K

On Jun 26, 2012, at 3:20 PM, Anders Hammar wrote:

> Hi,
> 
> The Mojo team is pleased to announce the release of the JAXB-2 Maven
> Plugin version 1.4.
> 
> http://mojo.codehaus.org/jaxb2-maven-plugin/
> 
> To get this update, simply specify the version in your project's
> plugin configuration:
> 
> 
>  org.codehaus.mojo
>  jaxb2-maven-plugin
>  1.4
> 
> 
> Release Notes
> 
> ** Bug
>* [MJAXB-49] - Change the name of the plugin
> 
> ** Improvement
>* [MJAXB-30] - Patch to add support for Ant-style wildcards to schemaFiles
>* [MJAXB-37] - Getters not being generated for Boolean fields
>* [MJAXB-39] - Document use of schemagen target
>* [MJAXB-48] - Make it possible to enable verbose from command line
>* [MJAXB-53] - add an "encoding" parameter and use
> ${project.build.sourceEncoding} as default value
>* [MJAXB-59] - SchemaGen should skip non-existent source directories
>* [MJAXB-60] - Improve m-compiler-p version lock-down in usage pages
> 
> ** New Feature
>* [MJAXB-55] - Provide means to set the file name of generated XML schema
> 
> ** Task
>* [MJAXB-50] - Document an example about having two (or more)
> bindings with different config
> 
> 
> Enjoy,
> 
> The Mojo team.
> 
> /Anders
> 
> -
> 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: Can I do scm checkout from inside a plugin?

2012-06-26 Thread Kathryn Huxtable
Okay, I have what I need. Thanks to everyone. The most useful advice (for me) 
was Olivier's pointer at the invoker plugin. I had never needed it and didn't 
really know about it. Knowing about it, I was able to find its uses in the 
release plugin, so I can make my use of it more robust.

-K

On Jun 26, 2012, at 1:56 PM, Kathryn Huxtable wrote:

> Thanks. I am using maven3, but I think the invoker looks simpler. If we were 
> using Jenkins already I might think differently… -K
> 
> On Jun 26, 2012, at 11:27 AM, Olivier Lamy wrote:
> 
>> 2012/6/26 Kathryn Huxtable :
>>> Thanks!
>>> 
>>> I'm also checking out the mojo-executor plugin. It looks kind of 
>>> squirrelly, but it may do what I want. I'm going to need to run a plugin on 
>>> the checked out code, so I guess I can't avoid either embedding Maven or 
>>> forking it. (I think I'll fork.)
>> Probably maven-invoker (http://maven.apache.org/shared/maven-invoker/)
>> library can help you.
>> If you use maven3 maybe you can have a look at
>> https://github.com/jenkinsci/lib-jenkins-maven-embedder which is "not
>> prefect" :-) embedder.
>>> 
>>> Part of me wonders if sticking to shell scripting for this might be easier.
>>> 
>>> -K
>>> 
>>> On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote:
>>> 
 Hi,
 Maybe will be more easy to have a look at the CheckoutMojo ?
 
 http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java
 
 2012/6/26 Kathryn Huxtable :
> I know the release plugin can do it, but the source is fairly complex.
> 
> Is there an easy way?
> 
> My goal is to check out an earlier version of the artifact, copy its 
> resources (so I'll also be running the copy-resources plugin), which 
> produces some data as side effects, and then compare that data to the 
> current data. I'm trying to make an incremental updater.
> 
> Obviously I can keep the earlier version around, but it would be nice not 
> to have to depend on that.
> 
> Any advice would be appreciated.
> 
> -K
> -
> 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
 
>>> 
>>> 
>>> -
>>> 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
>> 
> 
> 
> -
> 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



[ANN] JAXB-2 Maven Plugin 1.4 Released

2012-06-26 Thread Anders Hammar
Hi,

The Mojo team is pleased to announce the release of the JAXB-2 Maven
Plugin version 1.4.

http://mojo.codehaus.org/jaxb2-maven-plugin/

To get this update, simply specify the version in your project's
plugin configuration:


  org.codehaus.mojo
  jaxb2-maven-plugin
  1.4


Release Notes

** Bug
* [MJAXB-49] - Change the name of the plugin

** Improvement
* [MJAXB-30] - Patch to add support for Ant-style wildcards to schemaFiles
* [MJAXB-37] - Getters not being generated for Boolean fields
* [MJAXB-39] - Document use of schemagen target
* [MJAXB-48] - Make it possible to enable verbose from command line
* [MJAXB-53] - add an "encoding" parameter and use
${project.build.sourceEncoding} as default value
* [MJAXB-59] - SchemaGen should skip non-existent source directories
* [MJAXB-60] - Improve m-compiler-p version lock-down in usage pages

** New Feature
* [MJAXB-55] - Provide means to set the file name of generated XML schema

** Task
* [MJAXB-50] - Document an example about having two (or more)
bindings with different config


Enjoy,

The Mojo team.

/Anders

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



Re: truezip-maven-plugin fails when run on CI server

2012-06-26 Thread Dan Tran
may want to try 'immediateUpdate=true'

-D

On Tue, Jun 26, 2012 at 12:05 PM, David Hoffer  wrote:
> Thanks much for your help.  Unfortunately I don't have access to our CI
> build server so there wasn't much I could do here.  I changed the build to
> not use this plugin...I just unzip and then re-jar...solves this problem in
> this case.
>
> Thanks,
> -Dave
>
> On Mon, Jun 25, 2012 at 3:57 PM, Wayne Fay  wrote:
>
>> > *[14:53:10]*Caused by: java.io.IOException: Failed to delete file
>> >
>> F:\work\7832e3bc4d2f257b\dashboard-dev\target\dashboard-dev-4.4-SNAPSHOT.jar\rhinoDiff.txt.
>> > Reason is unknown.
>> > *[14:53:10]* at
>> >
>> org.codehaus.mojo.truezip.internal.TrueZipFileSetManager.delete(TrueZipFileSetManager.java:353)
>>
>> Does that path exist?
>> Does the CI server user have permissions to delete that file?
>>
>> The code you're running into is roughly here:
>>
>> http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.mojo/truezip-maven-plugin/1.0-beta-7/org/codehaus/mojo/truezip/util/TrueZipFileSetManager.java#349
>>
>> If you have a specific change/patch to provide that might help solve
>> this issue, please don't hesitate to provide it.
>>
>> 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



Re: truezip-maven-plugin fails when run on CI server

2012-06-26 Thread David Hoffer
Thanks much for your help.  Unfortunately I don't have access to our CI
build server so there wasn't much I could do here.  I changed the build to
not use this plugin...I just unzip and then re-jar...solves this problem in
this case.

Thanks,
-Dave

On Mon, Jun 25, 2012 at 3:57 PM, Wayne Fay  wrote:

> > *[14:53:10]*Caused by: java.io.IOException: Failed to delete file
> >
> F:\work\7832e3bc4d2f257b\dashboard-dev\target\dashboard-dev-4.4-SNAPSHOT.jar\rhinoDiff.txt.
> > Reason is unknown.
> > *[14:53:10]* at
> >
> org.codehaus.mojo.truezip.internal.TrueZipFileSetManager.delete(TrueZipFileSetManager.java:353)
>
> Does that path exist?
> Does the CI server user have permissions to delete that file?
>
> The code you're running into is roughly here:
>
> http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.mojo/truezip-maven-plugin/1.0-beta-7/org/codehaus/mojo/truezip/util/TrueZipFileSetManager.java#349
>
> If you have a specific change/patch to provide that might help solve
> this issue, please don't hesitate to provide it.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Can I do scm checkout from inside a plugin?

2012-06-26 Thread Kathryn Huxtable
Thanks. I am using maven3, but I think the invoker looks simpler. If we were 
using Jenkins already I might think differently… -K

On Jun 26, 2012, at 11:27 AM, Olivier Lamy wrote:

> 2012/6/26 Kathryn Huxtable :
>> Thanks!
>> 
>> I'm also checking out the mojo-executor plugin. It looks kind of squirrelly, 
>> but it may do what I want. I'm going to need to run a plugin on the checked 
>> out code, so I guess I can't avoid either embedding Maven or forking it. (I 
>> think I'll fork.)
> Probably maven-invoker (http://maven.apache.org/shared/maven-invoker/)
> library can help you.
> If you use maven3 maybe you can have a look at
> https://github.com/jenkinsci/lib-jenkins-maven-embedder which is "not
> prefect" :-) embedder.
>> 
>> Part of me wonders if sticking to shell scripting for this might be easier.
>> 
>> -K
>> 
>> On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote:
>> 
>>> Hi,
>>> Maybe will be more easy to have a look at the CheckoutMojo ?
>>> 
>>> http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java
>>> 
>>> 2012/6/26 Kathryn Huxtable :
 I know the release plugin can do it, but the source is fairly complex.
 
 Is there an easy way?
 
 My goal is to check out an earlier version of the artifact, copy its 
 resources (so I'll also be running the copy-resources plugin), which 
 produces some data as side effects, and then compare that data to the 
 current data. I'm trying to make an incremental updater.
 
 Obviously I can keep the earlier version around, but it would be nice not 
 to have to depend on that.
 
 Any advice would be appreciated.
 
 -K
 -
 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
>>> 
>> 
>> 
>> -
>> 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
> 


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



Re: Can I do scm checkout from inside a plugin?

2012-06-26 Thread Ansgar Konermann
Inject a maven ScmManager into your Mojo. Checkout code is fairly simple.
Can give example code later if desired.

Sent on the go

A
Am 26.06.2012 15:26 schrieb "Kathryn Huxtable" :

> I know the release plugin can do it, but the source is fairly complex.
>
> Is there an easy way?
>
> My goal is to check out an earlier version of the artifact, copy its
> resources (so I'll also be running the copy-resources plugin), which
> produces some data as side effects, and then compare that data to the
> current data. I'm trying to make an incremental updater.
>
> Obviously I can keep the earlier version around, but it would be nice not
> to have to depend on that.
>
> Any advice would be appreciated.
>
> -K
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Can I do scm checkout from inside a plugin?

2012-06-26 Thread Olivier Lamy
2012/6/26 Kathryn Huxtable :
> Thanks!
>
> I'm also checking out the mojo-executor plugin. It looks kind of squirrelly, 
> but it may do what I want. I'm going to need to run a plugin on the checked 
> out code, so I guess I can't avoid either embedding Maven or forking it. (I 
> think I'll fork.)
Probably maven-invoker (http://maven.apache.org/shared/maven-invoker/)
library can help you.
If you use maven3 maybe you can have a look at
https://github.com/jenkinsci/lib-jenkins-maven-embedder which is "not
prefect" :-) embedder.
>
> Part of me wonders if sticking to shell scripting for this might be easier.
>
> -K
>
> On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote:
>
>> Hi,
>> Maybe will be more easy to have a look at the CheckoutMojo ?
>>
>> http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java
>>
>> 2012/6/26 Kathryn Huxtable :
>>> I know the release plugin can do it, but the source is fairly complex.
>>>
>>> Is there an easy way?
>>>
>>> My goal is to check out an earlier version of the artifact, copy its 
>>> resources (so I'll also be running the copy-resources plugin), which 
>>> produces some data as side effects, and then compare that data to the 
>>> current data. I'm trying to make an incremental updater.
>>>
>>> Obviously I can keep the earlier version around, but it would be nice not 
>>> to have to depend on that.
>>>
>>> Any advice would be appreciated.
>>>
>>> -K
>>> -
>>> 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
>>
>
>
> -
> 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



Re: Can I do scm checkout from inside a plugin?

2012-06-26 Thread Kathryn Huxtable
Thanks!

I'm also checking out the mojo-executor plugin. It looks kind of squirrelly, 
but it may do what I want. I'm going to need to run a plugin on the checked out 
code, so I guess I can't avoid either embedding Maven or forking it. (I think 
I'll fork.)

Part of me wonders if sticking to shell scripting for this might be easier.

-K

On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote:

> Hi,
> Maybe will be more easy to have a look at the CheckoutMojo ?
> 
> http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java
> 
> 2012/6/26 Kathryn Huxtable :
>> I know the release plugin can do it, but the source is fairly complex.
>> 
>> Is there an easy way?
>> 
>> My goal is to check out an earlier version of the artifact, copy its 
>> resources (so I'll also be running the copy-resources plugin), which 
>> produces some data as side effects, and then compare that data to the 
>> current data. I'm trying to make an incremental updater.
>> 
>> Obviously I can keep the earlier version around, but it would be nice not to 
>> have to depend on that.
>> 
>> Any advice would be appreciated.
>> 
>> -K
>> -
>> 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
> 


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



Re: Can I do scm checkout from inside a plugin?

2012-06-26 Thread Olivier Lamy
Hi,
Maybe will be more easy to have a look at the CheckoutMojo ?

http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java

2012/6/26 Kathryn Huxtable :
> I know the release plugin can do it, but the source is fairly complex.
>
> Is there an easy way?
>
> My goal is to check out an earlier version of the artifact, copy its 
> resources (so I'll also be running the copy-resources plugin), which produces 
> some data as side effects, and then compare that data to the current data. 
> I'm trying to make an incremental updater.
>
> Obviously I can keep the earlier version around, but it would be nice not to 
> have to depend on that.
>
> Any advice would be appreciated.
>
> -K
> -
> 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



Can I do scm checkout from inside a plugin?

2012-06-26 Thread Kathryn Huxtable
I know the release plugin can do it, but the source is fairly complex.

Is there an easy way?

My goal is to check out an earlier version of the artifact, copy its resources 
(so I'll also be running the copy-resources plugin), which produces some data 
as side effects, and then compare that data to the current data. I'm trying to 
make an incremental updater.

Obviously I can keep the earlier version around, but it would be nice not to 
have to depend on that.

Any advice would be appreciated.

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



Re: WAR file always attached; suppress/skip deployment?

2012-06-26 Thread Ron Wheeler
It would appear that you really want 2 projects; one that makes a jar 
and one that makes a war.


Ron

On 26/06/2012 4:00 AM, myron0...@gmx.net wrote:

Hi

I have a WAR project, but the plugin is currently driving me crazy :)

What i want to archive:
Do not install/deploy the generated SNAPSHOT-WAR file, just the packaged JAR 
file out of the classes.
But of course it needs to be packaged/exploded for being local runnable per 
default.

I thought i could use
 


maven-jar-plugin


package

jar





maven-war-plugin


package

war


false
local
true
false
[...]





But what i see is, that

1) the default-war goal is ALWAYS executed, and
2) the primaryArtifact=false does not work, always installing the file


[INFO] --- maven-war-plugin:2.2:war (default-war) @ myproject --- <-- 
always executed
[INFO] Packaging webapp
[INFO] Assembling webapp [myproject] in 
[C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp]
[INFO] Webapp assembled in [25300 msecs]
[INFO] Building war: 
C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.war
[INFO] WEB-INF\web.xml already added, skipping
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default) @ myproject ---
[INFO] Building jar: 
C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default) @ myproject ---<-- my 
specified configuration
[INFO] Packaging webapp
[INFO] Assembling webapp [myproject] in 
[C:\Users\myuser\myproject\target\WebRoot-local]
[INFO] Processing war project
[INFO] Copying webapp webResources [C:\Users\myuser\myproject\src/main/config] 
to [C:\Users\myuser\myproject\target\WebRoot-local]
[INFO] Copying webapp webResources 
[C:\Users\myuser\myproject\src/main/webapp/WEB-INF] to 
[C:\Users\myuser\myproject\target\WebRoot-local]
[INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp]
[INFO] Building jar: 
C:\Users\myuser\myproject\target\WebRoot-local\WEB-INF\lib\myproject-1.0.0-SNAPSHOT.jar
[INFO] Webapp assembled in [6390 msecs]
[INFO] Building war: 
C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT-local.war
[INFO] WEB-INF\web.xml already added, skipping

With above config i get the classes jar and 2xWARs :/
Same for using no WAR execution; configuring on plugin level -> 1xWAR 
(default-war) always installed
Playing with archiveClasses & attachClasses does not work either.
Any other ideas to achieve this?
There is no skip parameter, i guess? (or a buildhelper:detach-atrifacts?)
So the WAR file is ALWAYS generated and attached b/c of war ??

The only workaround I've found so far is declaring the project as 
jar.
But executing the WAR plugin in package phase STILL attaches it

TIA,
Myron




--
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



Importing poms and scoping dependencies

2012-06-26 Thread Stevo Slavić
Hello Apache Maven community,

Is there a way to import dependencies from dependencyManagement section of
a pom artifact, but also configure default scope for all of the imported
dependencies (without actually specifying all of them as dependencies)?

Kind regards,
Stevo.


Re: maven compilation error

2012-06-26 Thread Belhadj abdessalem
Make sure that you have the pom.xml file in the root of your maven project
Le 26 juin 2012 00:54, "mbb216"  a écrit :

> Build error
> Reason:cannot execute mojjo:it requires a project with an existing pom.xml
> but the build is not in use
> What is the reason for this erroe in maven.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-compilation-error-tp5711968.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: compile plugin

2012-06-26 Thread Belhadj abdessalem
Are you sure that you have specified the best jdk.
Perhaps you point to the jre locaton
Le 25 juin 2012 19:22,  a écrit :

>
>
> >
> > Run "whereis java" ("where java" in Windows) to find out how many java
> > executable you might have in PATH and which one is listed first. That's
> where
> > I'd start.
>
> I'm beyond that phase already, but thanks.  I'm on linux, and the mvn
> start up script checks
> JAVA_HOME to see which version of java to use.  This works, but it doesn't
> seem to propogate down to the javac invocation by the compile plugin.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


WAR file always attached; suppress/skip deployment?

2012-06-26 Thread myron0815
Hi

I have a WAR project, but the plugin is currently driving me crazy :)

What i want to archive:
Do not install/deploy the generated SNAPSHOT-WAR file, just the packaged JAR 
file out of the classes.
But of course it needs to be packaged/exploded for being local runnable per 
default.

I thought i could use

>
>maven-jar-plugin
>
>
>package
>
>jar
>
>
>
>
>
>maven-war-plugin
>
>
>package
>
>war
>
>
>false
>local
>true
>false
>[...]
>
>
>
>
   
But what i see is, that
1) the default-war goal is ALWAYS executed, and
2) the primaryArtifact=false does not work, always installing the file

> [INFO] --- maven-war-plugin:2.2:war (default-war) @ myproject --- <-- 
> always executed
> [INFO] Packaging webapp
> [INFO] Assembling webapp [myproject] in 
> [C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp]
> [INFO] Webapp assembled in [25300 msecs]
> [INFO] Building war: 
> C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.war
> [INFO] WEB-INF\web.xml already added, skipping
> [INFO]
> [INFO] --- maven-jar-plugin:2.4:jar (default) @ myproject ---
> [INFO] Building jar: 
> C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.jar
> [INFO]
> [INFO] --- maven-war-plugin:2.2:war (default) @ myproject ---<-- my 
> specified configuration
> [INFO] Packaging webapp
> [INFO] Assembling webapp [myproject] in 
> [C:\Users\myuser\myproject\target\WebRoot-local]
> [INFO] Processing war project
> [INFO] Copying webapp webResources 
> [C:\Users\myuser\myproject\src/main/config] to 
> [C:\Users\myuser\myproject\target\WebRoot-local]
> [INFO] Copying webapp webResources 
> [C:\Users\myuser\myproject\src/main/webapp/WEB-INF] to 
> [C:\Users\myuser\myproject\target\WebRoot-local]
> [INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp]
> [INFO] Building jar: 
> C:\Users\myuser\myproject\target\WebRoot-local\WEB-INF\lib\myproject-1.0.0-SNAPSHOT.jar
> [INFO] Webapp assembled in [6390 msecs]
> [INFO] Building war: 
> C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT-local.war
> [INFO] WEB-INF\web.xml already added, skipping

With above config i get the classes jar and 2xWARs :/
Same for using no WAR execution; configuring on plugin level -> 1xWAR 
(default-war) always installed
Playing with archiveClasses & attachClasses does not work either.
Any other ideas to achieve this?
There is no skip parameter, i guess? (or a buildhelper:detach-atrifacts?)
So the WAR file is ALWAYS generated and attached b/c of war ??

The only workaround I've found so far is declaring the project as 
jar.
But executing the WAR plugin in package phase STILL attaches it

TIA,
Myron

-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!  

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

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



Re: How to run parallel test suite files in Maven

2012-06-26 Thread sreekumar
No i tried with 'classes' also. A separate thread is not creating for each
xml file.

My Requirement:

I have 1000 automated test cases. i want to run in different machine with
different browsers using selenium webdriver.

I used TestNG.xml's to get all these test case details and plan to run in
test case wise.

I am dividing testng.xml's based on machine names. When i run parallel xml
file's all test cases run in different machine with different browser.

For this scenario i need to use the below one...

On Tue, Jun 26, 2012 at 11:14 AM, Kristian Rosenvold-4 [via Maven] <
ml-node+s40175n5712024...@n5.nabble.com> wrote:

> Probably not; if you switch to "classes" there should be some threading.
>
> Is there any good reason why you choose the generally inferior
> "methods" threading ?
>
> Kristian
>
>
> 2012/6/26 sreekumar <[hidden 
> email]>:
>
>
> > Hi Team
> >
> > I am try to run parallel test suitesXML files from Maven as below
> >
> > 
> >
> >
>  org.apache.maven.plugins
> >
>  maven-surefire-plugin
> >2.12
> >
> >
> >
> >methods
> >2
> >
> >
> >
>  testng-vm1.xml
> >
>  testng-vm2.xml
> >
> >
> >
> >
> >
> >
> > When i execute with above code, the last testng xml file only (i.e
> > testng-vm2.xml) is running.  But i want to run both xml files parallel .
> >
> >
> > Please let me know is it possible to run parallel suites through Maven?
> >
> > --
> > View this message in context:
> http://maven.40175.n5.nabble.com/How-to-run-parallel-test-suite-files-in-Maven-tp5712022.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://maven.40175.n5.nabble.com/How-to-run-parallel-test-suite-files-in-Maven-tp5712022p5712024.html
>  To unsubscribe from How to run parallel test suite files in Maven, click
> here
> .
> NAML
>



-- 
Thanks and regards
Sreekumar
9492330784


--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-run-parallel-test-suite-files-in-Maven-tp5712022p5712037.html
Sent from the Maven - Users mailing list archive at Nabble.com.