Re: faster release:perform

2010-12-02 Thread Arnaud Héritier
I think no because what we want it is to be sure that what we publish is coming 
from what you have in the branch (no more, no less).
Using a switch in SVN could keep various unwanted local files.


Arnaud Héritier
aherit...@apache.org

On Dec 1, 2010, at 8:50 PM, Phillip Hellewell wrote:

 Would it make sense when using SVN to have release:perform do an svn
 switch (to the tag created by release:prepare) rather than check out
 the tag?
 
 Phillip
 
 -
 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: Assembly filtering syntax - properties not filtered

2010-12-02 Thread Alberti Antoine
Hi all,
I found it. It's the @ character from @echo off. If I add the property 
atChar@/atChar and replace my original run.bat with 


${project.version}
${atChar}echo off
FOR /F eol=; tokens=2,2 delims== %%i IN ('findstr /i http_port
conf\configuration.properties') DO set http_port=%%i FOR /F eol=; tokens=2,2 
delims== %%i IN ('findstr /i control_port
conf\configuration.properties') DO set control_port=%%i

cmd /C java -jar target\bafana-web-${project.version}-standalone.jar
--httpPort=%http_port% --controlPort=%control_port% %*


It works.

Cheers.
AA

-Message d'origine-
De : Alberti Antoine [mailto:aalbe...@axway.com] 
Envoyé : mercredi 1 décembre 2010 19:06
À : users@maven.apache.org
Objet : Assembly filtering syntax - properties not filtered

Hi all,

is it possible that the syntax of a file to filter prevents the assembly plugin 
from detecting a variable to replace? If I filter the following run.bat file:
 

${project.version}
@echo off
FOR /F eol=; tokens=2,2 delims== %%i IN ('findstr /i http_port
conf\configuration.properties') DO set http_port=%%i FOR /F eol=; tokens=2,2 
delims== %%i IN ('findstr /i control_port
conf\configuration.properties') DO set control_port=%%i

cmd /C java -jar target\bafana-web-${project.version}-standalone.jar
--httpPort=%http_port% --controlPort=%control_port% %*


the result is:


1.0-SNAPSHOT
@echo off
FOR /F eol=; tokens=2,2 delims== %%i IN ('findstr /i http_port
conf\configuration.properties') DO set http_port=%%i FOR /F eol=; tokens=2,2 
delims== %%i IN ('findstr /i control_port
conf\configuration.properties') DO set control_port=%%i

cmd /C java -jar target\bafana-web-${project.version}-standalone.jar
--httpPort=%http_port% --controlPort=%control_port% %*



Note that the first instance of project.version is filtered, but not the second 
one. Of course, I added the first one as a test, to verify that the file was 
actually filtered.

What should I change in my original file?

Thanks a lot
Antoine Alberti

-
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: Assembly filtering syntax - properties not filtered

2010-12-02 Thread Jochen Stiepel
Hi Antoine,

as far as I can see this is a known bug. I has to do with the default
delimiter @.  Please see: http://jira.codehaus.org/browse/MRESOURCES-104

CU,

Jochen


RE: Assembly filtering syntax - properties not filtered

2010-12-02 Thread Alberti Antoine
ok, thanks a lot. I'll try this other workaround. 

-Message d'origine-
De : Jochen Stiepel [mailto:j.stie...@gmail.com] 
Envoyé : jeudi 2 décembre 2010 11:54
À : Maven Users List
Objet : Re: Assembly filtering syntax - properties not filtered

Hi Antoine,

as far as I can see this is a known bug. I has to do with the default delimiter 
@.  Please see: http://jira.codehaus.org/browse/MRESOURCES-104

CU,

Jochen

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



RE: Assembly filtering syntax - properties not filtered

2010-12-02 Thread Alberti Antoine
Hi Jochen,

I tried to put back my @ character in my file to filter and changed my pom this 
way:

plugin
artifactIdmaven-resources-plugin/artifactId
configuration
delimiters
delimiter${*}/delimiter
/delimiters
useDefaultDelimitersfalse/useDefaultDelimiters
/configuration
/plugin
plugin
artifactIdmaven-assembly-plugin/artifactId
executions
execution
idmake-kit/id
phasepackage/phase
goals
goalsingle/goal
/goals
/execution
/executions
configuration
descriptors

descriptorsrc/main/assembly/install-kit-descriptor.xml/descriptor
/descriptors
/configuration
/plugin

Well... didn't work. I still have my ${project.version} variable in my filtered 
file.

As I'm filtering the file through the assembly plugin, maybe I didn't set it up 
correctly, or maybe it doesn't use the resource plugin?

Thanks again.
AA

-Message d'origine-
De : Jochen Stiepel [mailto:j.stie...@gmail.com] 
Envoyé : jeudi 2 décembre 2010 11:54
À : Maven Users List
Objet : Re: Assembly filtering syntax - properties not filtered

Hi Antoine,

as far as I can see this is a known bug. I has to do with the default delimiter 
@.  Please see: http://jira.codehaus.org/browse/MRESOURCES-104

CU,

Jochen

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



[Antrun]: access to build file located in a jar

2010-12-02 Thread abousso...@gmail.com

Hi


 I'm trying to lauch an antfile from a jar but it'd not working.
If I unzip the jar it works but the idea is to work with the jar.
This is my pom :

dependency
groupIdfr.sogeti.plpm.infra.persistance.jpa/groupId

artifactIdfr.sogeti.plpm.infra.persistance.jpa.generator/artifactId
version0.0.1-SNAPSHOT/version
typejar/type
scopecompile/scope
/dependency
dependency
groupIdfr.sogeti.plpm.infra.persistance.jpa/groupId

artifactIdfr.sogeti.plpm.infra.persistance.jpa.model/artifactId
version0.0.1-SNAPSHOT/version
typejar/type
scopecompile/scope
/dependency
  /dependencies
  
  build
plugins
  plugin
artifactIdmaven-antrun-plugin/artifactId
version1.6/version
executions
  execution
phasecompile/phase
configuration
  tasks
ant 
  antfile =D:\Documents and
settings\elabouss\.m2\repository\fr\sogeti\plpm\infra\persistance\jpa\fr.sogeti.plpm.infra.persistance.jpa.model\0.0.1-SNAPSHOT\fr.sogeti.plpm.infra.persistance.jpa.model-0.0.1-SNAPSHOT.jar/0_UML2JPA_chain.xml/


  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin
/plugins
  /build

Any idea ?
thanks
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Antrun-access-to-build-file-located-in-a-jar-tp3289407p3289407.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



Maven Central Repository Bad Checksums

2010-12-02 Thread Scott Parkerson
Once upon a time, I filed a JIRA at Codehaus: 
http://jira.codehaus.org/browse/MEV-641. Eleven months elapsed before someone 
finally fixed the checksum metadata to match the jar in the repository. 

Yesterday, I filed another pair of issues: MEV-675 and MEV-676. I was wondering 
if I have to wait another 11 months before they are addressed.[1]

Who is handling these? Is there a labor shortage on handling these issues? 
Furthermore, it would seem that automating this process would be the answer, as 
it probably wouldn't be difficult to crawl the repository and check checksums 
and either (a) add them where they are missing or (b) fix them where they are 
there and are incorrect.

If there's a need, I'll volunteer to do just that.

--sgp

[1] Just kidding, naturally.



Re: Maven Central Repository Bad Checksums

2010-12-02 Thread Anders Hammar
You should file tickets for Maven Central at [1] instead.

/Anders

[1] https://issues.sonatype.org/browse/MVNCENTRAL

On Thu, Dec 2, 2010 at 15:21, Scott Parkerson s...@snortasprocket.netwrote:

 Once upon a time, I filed a JIRA at Codehaus:
 http://jira.codehaus.org/browse/MEV-641. Eleven months elapsed before
 someone finally fixed the checksum metadata to match the jar in the
 repository.

 Yesterday, I filed another pair of issues: MEV-675 and MEV-676. I was
 wondering if I have to wait another 11 months before they are addressed.[1]

 Who is handling these? Is there a labor shortage on handling these issues?
 Furthermore, it would seem that automating this process would be the answer,
 as it probably wouldn't be difficult to crawl the repository and check
 checksums and either (a) add them where they are missing or (b) fix them
 where they are there and are incorrect.

 If there's a need, I'll volunteer to do just that.

 --sgp

 [1] Just kidding, naturally.




Re: Maven Central Repository Bad Checksums

2010-12-02 Thread Scott Parkerson
On Dec 2, 2010, at 10:02 AM, Anders Hammar wrote:

 You should file tickets for Maven Central at [1] instead.
 
 [1] https://issues.sonatype.org/browse/MVNCENTRAL
 

Sigh. This is what I get for not reading *closely* (and assuming that things 
were as they were 11 months ago). So Sonatype is in charge of housekeeping for 
Maven Central now?

I'll close my issues on the Codehaus JIRA and re-open them on Sonatype's JIRA, 
then.

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



Re: Maven Central Repository Bad Checksums

2010-12-02 Thread Wayne Fay
 Furthermore, it would seem that automating this process would be the answer, 
 as
 it probably wouldn't be difficult to crawl the repository and check checksums 
 and
 either (a) add them where they are missing or (b) fix them where they are 
 there
 and are incorrect.

I don't think you want to automate fixing them, only detecting the
problems. Because if/when an honestly bad (or compromised/hacked) jar
lands in Central, you want to know about it, and not just assume it is
correct and use that MD5, right?

Wayne

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



Re: [Antrun]: access to build file located in a jar

2010-12-02 Thread Wayne Fay
  I'm trying to lauch an antfile from a jar but it'd not working.
 If I unzip the jar it works but the idea is to work with the jar.

        ant
      antfile =D:\Documents and
 settings\elabouss\.m2\repository\fr\sogeti\plpm\infra\persistance\jpa\fr.sogeti.plpm.infra.persistance.jpa.model\0.0.1-SNAPSHOT\fr.sogeti.plpm.infra.persistance.jpa.model-0.0.1-SNAPSHOT.jar/0_UML2JPA_chain.xml/

Did you just make this up and hope/assume it would work? Where are you
getting this from? I can see no such support for this kind of feature
listed in any documentation for Maven, Ant, or the Antrun plugin
itself.

Wayne

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



Re: Maven Central Repository Bad Checksums

2010-12-02 Thread Anders Hammar
I don't think that checksums are for detecting compromised jars. Checksums
are for checking that a file was transferred correctly, regardless of it
being compromised or not. So, I also think that all checksums should be
corrected.
However, pgp signatures are for detecting compromised files.

/Anders

On Thu, Dec 2, 2010 at 17:58, Wayne Fay wayne...@gmail.com wrote:

  Furthermore, it would seem that automating this process would be the
 answer, as
  it probably wouldn't be difficult to crawl the repository and check
 checksums and
  either (a) add them where they are missing or (b) fix them where they are
 there
  and are incorrect.

 I don't think you want to automate fixing them, only detecting the
 problems. Because if/when an honestly bad (or compromised/hacked) jar
 lands in Central, you want to know about it, and not just assume it is
 correct and use that MD5, right?

 Wayne

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




Re: Maven Central Repository Bad Checksums

2010-12-02 Thread Wayne Fay
 I don't think that checksums are for detecting compromised jars. Checksums
 are for checking that a file was transferred correctly, regardless of it
 being compromised or not. So, I also think that all checksums should be
 corrected.

But how does a bot know that the Jar was uploaded ok into Central? Its
the same problem. The checksum should be generated by the original
owner of the artifact and uploaded alongside it, and any deviations
should be directed back to the owner to resolve.

Wayne

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



Catch 22 with clean phase

2010-12-02 Thread Phillip Hellewell
There's a batch file I want to run during the clean phase.  Problem
is, the batch file lives below target/dependency, and the clean phase
wipes target first, so then my batch file can't be found.

Is there a good solution to this?  Like a pre-clean phase or something?

The only other ideas I've come up with are:
1. Move the functionality of the batch file into a plugin.
2. Copy the batch file from target/dependency to the base directory
(where the pom.xml is) during process-sources after the unpack.

The downside of #1 is that a plugin is really overkill for what this
batch file does.
The downside of #2 is that I have yet another file cluttering up the
base directory (though of course it will be svn:ignored).

Phillip

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



Re: Catch 22 with clean phase

2010-12-02 Thread Brian Topping
There is a pre-clean, see 
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference

On Dec 2, 2010, at 3:08 PM, Phillip Hellewell wrote:

 There's a batch file I want to run during the clean phase.  Problem
 is, the batch file lives below target/dependency, and the clean phase
 wipes target first, so then my batch file can't be found.
 
 Is there a good solution to this?  Like a pre-clean phase or something?
 
 The only other ideas I've come up with are:
 1. Move the functionality of the batch file into a plugin.
 2. Copy the batch file from target/dependency to the base directory
 (where the pom.xml is) during process-sources after the unpack.
 
 The downside of #1 is that a plugin is really overkill for what this
 batch file does.
 The downside of #2 is that I have yet another file cluttering up the
 base directory (though of course it will be svn:ignored).
 
 Phillip
 
 -
 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: Catch 22 with clean phase

2010-12-02 Thread Wendy Smoak
On Thu, Dec 2, 2010 at 3:08 PM, Phillip Hellewell ssh...@gmail.com wrote:
 There's a batch file I want to run during the clean phase.  Problem
 is, the batch file lives below target/dependency, and the clean phase
 wipes target first, so then my batch file can't be found.

What does the batch file do?

Just guessing since you're trying to do it during clean, perhaps you
could configure the clean plugin to delete some additional files?

-- 
Wendy

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



Re: Maven Central Repository Bad Checksums

2010-12-02 Thread Brian Fox
We do a little bit of sleuthing when resolving these types of issues
to make sure the file hasn't been changed, which is why automatic
correction isn't implemented. We are working on process to ensure that
no new things come in this way. It can only happen today via the old
rsync mechanisms and those are deprecated and will be disabled soon
anyway.

On Thu, Dec 2, 2010 at 2:45 PM, Wayne Fay wayne...@gmail.com wrote:
 I don't think that checksums are for detecting compromised jars. Checksums
 are for checking that a file was transferred correctly, regardless of it
 being compromised or not. So, I also think that all checksums should be
 corrected.

 But how does a bot know that the Jar was uploaded ok into Central? Its
 the same problem. The checksum should be generated by the original
 owner of the artifact and uploaded alongside it, and any deviations
 should be directed back to the owner to resolve.

 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: maven-dependency-plugin 2.2 release?

2010-12-02 Thread Brian Fox
Soon. I resolved a ton of issues at ApacheCon and just ran out of time
to wrap it up. I'll be getting back to it in the next week or so.

On Wed, Dec 1, 2010 at 10:19 PM, Dan Tran dant...@gmail.com wrote:
 me too :-)

 On Wed, Dec 1, 2010 at 10:04 AM, Jim McCaskey
 jim.mccas...@pervasive.com wrote:
 Hello all,

 I ran across a problem with the maven-dependency-plugin that is already 
 fixed (actually fixed almost a year ago it seems):

 http://jira.codehaus.org/browse/MDEP-138

 I was wondering if there are any plans to release a new 
 maven-dependency-plugin?  According to Jira, there appear to be a rather 
 large number of resolved issues.

 -Jim



 -
 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: Catch 22 with clean phase

2010-12-02 Thread Tamás Cservenák
FYI, Simple things (you say for bath file a plugin is really overkill for
what this batch file does)  are the best candidates to make into plugins.

Especially if that's something company specific or project specific
thingy.

Thanks,
~t~

On Thu, Dec 2, 2010 at 9:36 PM, Wendy Smoak wsm...@gmail.com wrote:

 On Thu, Dec 2, 2010 at 3:08 PM, Phillip Hellewell ssh...@gmail.com
 wrote:
  There's a batch file I want to run during the clean phase.  Problem
  is, the batch file lives below target/dependency, and the clean phase
  wipes target first, so then my batch file can't be found.

 What does the batch file do?

 Just guessing since you're trying to do it during clean, perhaps you
 could configure the clean plugin to delete some additional files?

 --
 Wendy

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




webservice for maven artifact search?

2010-12-02 Thread Russ Tremain
anyone know of a web-service interface to any of the public maven 
artifact lookup services?


tia,
-russ

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



RE: webservice for maven artifact search?

2010-12-02 Thread Martin Gainty

what kinds of things would you look for in this webservice?
SOAP 1.0 or SOAP 1.1 or some other schema?

Martin Gainty 
__ 
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.




 Date: Thu, 2 Dec 2010 13:43:45 -0800
 To: users@maven.apache.org
 From: ru...@releasetools.org
 Subject: webservice for maven artifact search?
 
 anyone know of a web-service interface to any of the public maven 
 artifact lookup services?
 
 tia,
 -russ
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
  

Re: clean then package error

2010-12-02 Thread Marshall Schor


On 10/19/2010 6:14 AM, 冯仁君 wrote:
 yes, I do this from m2eclipse, not command line. and I have set eclipse
 running in jdk in the setting.ini of eclipse.

 my setting:
 -vm
 D:\Java\jdk1.6.0_21\bin\javaw.exe

 I think it's what you say,right?

I think that's not right.

should be without the \javaw.exe ... should end with ...\bin

-Marshall Schor
 --
 From: Anders Hammar and...@hammar.net
 Sent: Tuesday, October 19, 2010 12:34 PM
 To: Maven Users List users@maven.apache.org
 Subject: Re: clean then package error

 You're doing tis from Eclipse/m2eclipe, right? Not command line? Is you're
 Eclipseset up to use a JDK?
 http://tech.karolzielinski.com/m2eclipse-eclipse-is-running-in-a-jre-but-a-jdk-is-required


 /Anders

 2010/10/19 冯仁君 frj1...@126.com

 yes,I know. but I have set the JAVA_HOME pointing to the directory of JDK.
 and when I run package without clean before, it works well.
 if I run clean, and then package, it's error!

 --
 From: MK Tan mktan...@gmail.com
 Sent: Monday, October 18, 2010 11:34 PM
 To: Maven Users List users@maven.apache.org
 Subject: Re: clean then package error

 I should spell check before I sending this mail.

 Maven need jdk and not jre.
 And if possible please include environment variable called JAVA_HOME which
 point to your jdk installation directory

 2010/10/18 MK Tan mktan...@gmail.com

 Haven require jdk but you are refer to jre

 On Oct 18, 2010 8:46 PM, 冯仁君 frj1...@126.com wrote:
  I'm new in using maven. when I try to package a helloworld maven 
 program
 after I clean in the Eclipse IDE, it comes to an error. it says :
 
  [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
 (default-compile) on project module: Compilation failure
  Unable to locate the Javac Compiler in:
  D:\Java\jre6\..\lib\tools.jar
  Please ensure you are using JDK 1.4 or above and
  not a JRE (the com.sun.tools.javac.Main class is required).
  In most cases you can change the location of your Java
  installation by setting the JAVA_HOME environment variable.
  - [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]
  [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
  [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  [ERROR]
  [ERROR] After correcting the problems, you can resume the build with  
 the
 command
  [ERROR] mvn goals -rf :module
 
  I'm sure I have installed the jdk1.6, and my environment variable is  
 also
 correct. I don't it's the problem of maven, but I don't know what to do.
 what can I do?




 -
 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: Catch 22 with clean phase

2010-12-02 Thread Phillip Hellewell
On Thu, Dec 2, 2010 at 1:25 PM, Brian Topping topp...@codehaus.org wrote:
 There is a pre-clean, see 
 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference

That's so weird.  I swear I was on this page looking for pre-clean and
couldn't find it.  I don't know why.

Oh well, thanks!

Phillip

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



Re: Catch 22 with clean phase

2010-12-02 Thread Phillip Hellewell
On Thu, Dec 2, 2010 at 1:36 PM, Wendy Smoak wsm...@gmail.com wrote:
 On Thu, Dec 2, 2010 at 3:08 PM, Phillip Hellewell ssh...@gmail.com wrote:
 There's a batch file I want to run during the clean phase.  Problem
 is, the batch file lives below target/dependency, and the clean phase
 wipes target first, so then my batch file can't be found.

 What does the batch file do?

It just deletes a few generated files that get created during the
build that happen to not be inside target/ (most the generated files
go below target/bin so they aren't a problem).

 Just guessing since you're trying to do it during clean, perhaps you
 could configure the clean plugin to delete some additional files?

Oh, I didn't even think that the clean plugin could be configured to
delete additional files.  That is good to know, thanks!

Phillip

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



RE: webservice for maven artifact search?

2010-12-02 Thread Russ Tremain
Well, if I were going to design something from scratch, I think a simple 
REST'ful api would suffice, perhaps similar to hudson:

http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API

(although don't need so many choices!)

So perhaps I should broaden my question - is there anything out there already, 
webservice or any other remote api?

[I'm doing another large maven conversion, and it would be helpful to be able 
to query/retrieve pomable dependency snippets into a text file.  The 
dependencies are currently encoded in 400+ ant files.]

:)

thx,
-russ

At 4:46 PM -0500 12/2/10, Martin Gainty wrote:
what kinds of things would you look for in this webservice?
SOAP 1.0 or SOAP 1.1 or some other schema?

Martin Gainty

 Date: Thu, 2 Dec 2010 13:43:45 -0800
 To: users@maven.apache.org
 From: ru...@releasetools.org
 Subject: webservice for maven artifact search?

 anyone know of a web-service interface to any of the public maven
 artifact lookup services?

 tia,
 -russ

 -
 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: Catch 22 with clean phase

2010-12-02 Thread Phillip Hellewell
On Thu, Dec 2, 2010 at 4:43 PM, Phillip Hellewell ssh...@gmail.com wrote:
 On Thu, Dec 2, 2010 at 1:25 PM, Brian Topping topp...@codehaus.org wrote:
 There is a pre-clean, see 
 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference

 That's so weird.  I swear I was on this page looking for pre-clean and
 couldn't find it.  I don't know why.

Ok, so this is working great now, except for one problem.  It runs
great the first time, but if I run mvn clean a second time, the
batch file is not there so it can't call it and it returns with an
error.

Is there any way to make it conditional so it won't try to run the
batch file if the target/ directory is not there?  I'm using the
exec-maven-plugin but I don't see any options that would help.

Phillip

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



Re: Catch 22 with clean phase

2010-12-02 Thread Hilco Wijbenga
On 2 December 2010 15:57, Phillip Hellewell ssh...@gmail.com wrote:
 Is there any way to make it conditional so it won't try to run the
 batch file if the target/ directory is not there?  I'm using the
 exec-maven-plugin but I don't see any options that would help.

You could add a profile that's only triggered if your batch file exists.

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



Re: webservice for maven artifact search?

2010-12-02 Thread Jason van Zyl
http://www.sonatype.com/people/2008/11/searching-with-the-sonatype-nexus-rest-api-groovy/

On Dec 2, 2010, at 6:57 PM, Russ Tremain wrote:

 Well, if I were going to design something from scratch, I think a simple 
 REST'ful api would suffice, perhaps similar to hudson:
 
   http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API
 
 (although don't need so many choices!)
 
 So perhaps I should broaden my question - is there anything out there 
 already, webservice or any other remote api?
 
 [I'm doing another large maven conversion, and it would be helpful to be able 
 to query/retrieve pomable dependency snippets into a text file.  The 
 dependencies are currently encoded in 400+ ant files.]
 
 :)
 
 thx,
 -russ
 
 At 4:46 PM -0500 12/2/10, Martin Gainty wrote:
 what kinds of things would you look for in this webservice?
 SOAP 1.0 or SOAP 1.1 or some other schema?
 
 Martin Gainty
 
 Date: Thu, 2 Dec 2010 13:43:45 -0800
 To: users@maven.apache.org
 From: ru...@releasetools.org
 Subject: webservice for maven artifact search?
 
 anyone know of a web-service interface to any of the public maven
 artifact lookup services?
 
 tia,
 -russ
 
 -
 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
-

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

 -- Buddha





Re: Catch 22 with clean phase

2010-12-02 Thread Wayne Fay
 Ok, so this is working great now, except for one problem.  It runs
 great the first time, but if I run mvn clean a second time, the
 batch file is not there so it can't call it and it returns with an
 error.

Turn your batch file into a plugin and these problems will magically go away.

Wayne

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



Dependency overriding.

2010-12-02 Thread asdas adasads
Hi,

My project has two pom's. One is a called a super pom and contains basic
configuration for the whole project. Second pom declares super pom as its
parent.
In super pom you can find these dependency:

   dependency
groupIdorg.slf4j/groupId
   artifactIdslf4j-log4j12/artifactId
version1.5.6/version
   /dependency

Which defines what kind of implementation all project should use for
logging. In the second pom (child) I want to declare different logging
implementation, namely:

   dependency
   groupIdorg.slf4j/groupId
   artifactIdslf4j-nop/artifactId
   version1.5.6/version
   /dependency

But it seems that the maven builds classpath is a way where dependency from
parent is before, dependency from child. So nop logging will not be used
during execution.
Is there any way change that ? (to use nop as logging implementation) I
cannot change super pom file. The behavior what I'm interested is the same
as method overriding in OOP.

- John


Re: Catch 22 with clean phase

2010-12-02 Thread Brian Topping

On Dec 2, 2010, at 7:05 PM, Wayne Fay wrote:

 Ok, so this is working great now, except for one problem.  It runs
 great the first time, but if I run mvn clean a second time, the
 batch file is not there so it can't call it and it returns with an
 error.
 
 Turn your batch file into a plugin and these problems will magically go away.

I have to agree here.  Creating a plugin is easy, and we will refund your 
purchase price of Maven if you do not find the Plugin interface to be the 
easiest one you've ever seen.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: webservice for maven artifact search?

2010-12-02 Thread Brian Fox
Repository.apache.org exposes nexus' rest interface

--mobile

On Dec 2, 2010, at 4:44 PM, Russ Tremain ru...@releasetools.org wrote:

 anyone know of a web-service interface to any of the public maven artifact 
 lookup services?

 tia,
 -russ

 -
 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: Dependency overriding.

2010-12-02 Thread per-henrik hedman
Hi John,
there is such a thing as dependency exclusions, that might help you in this:
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

cheers,
Phh

On Fri, Dec 3, 2010 at 1:14 AM, asdas adasads
zestriddle123...@gmail.com wrote:
 Hi,

    My project has two pom's. One is a called a super pom and contains basic
 configuration for the whole project. Second pom declares super pom as its
 parent.
 In super pom you can find these dependency:

       dependency
                groupIdorg.slf4j/groupId
               artifactIdslf4j-log4j12/artifactId
                version1.5.6/version
       /dependency

 Which defines what kind of implementation all project should use for
 logging. In the second pom (child) I want to declare different logging
 implementation, namely:

       dependency
           groupIdorg.slf4j/groupId
           artifactIdslf4j-nop/artifactId
           version1.5.6/version
       /dependency

 But it seems that the maven builds classpath is a way where dependency from
 parent is before, dependency from child. So nop logging will not be used
 during execution.
 Is there any way change that ? (to use nop as logging implementation) I
 cannot change super pom file. The behavior what I'm interested is the same
 as method overriding in OOP.

 - John


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