[m2] problem getting latest plugin version to local maven repository
We've got an inhouse mirror of the central repository (MyCompanyCentral). We also publish a company-specific maven-plugin to that same repository. We face the problem that the latest version of our plugin is not downloaded to the local maven repository, if there is already an old version, even not after several days. We also tried with interval:30 and always but no success. It only worked when we deleted the old local versions, or when we run maven with the -U parameter. Should this basically work? Any idea what we might do wrong? We use this settings.xml: D:/mavenrepo MyCompanyCentral MyCompany Central Repository http://build.mycompany.com/m2/repository central MyCompanyDefaultProfile MyCompanyCentral MyCompany Central Repository http://build.mycompany.com/m2/repository default MyCompanySnapshot MyCompany Snapshot Repository http://build.mycompany.com/snapshot MyCompanyDefaultProfile Thanks, Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] does mvn install ignore finalName?
I configured the finalname in the pom to something like this: abc After mvn install there is a file with the name abc.jar in the target folder, as expected. But in the maven repository the filename still has the form -.jar, the seems to be ignored. Is there a way to have a custom filename like abc.jar in the repository, or would this violate basic maven2 concepts? Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] version ranges
I'd like to use a version range when specifying the version of the parent pom. ... [1.0.0,2.0.0) but get an error message that the artefact version [1.0.0,2.0.0) cannot be resolved. Is this not supported? Thanks, Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] How can a plugin change the value of a variable?
How can a maven2 plugin change the value of a variable, which could be used then later by another plugin? The usage of System.get/setProperty is probably very limited from a maven2 point of view. Are there other options? Thanks for any hints, Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dependency-maven-plugin force copy
Is there a way to configure the dependency-maven-plugin to force the copy and unpack operations, e.g. overwrite existing files? Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] existing JAR in WEB-INF/lib without dependency
I know it's not the usual or recommended case, but is this possible somehow: I've got a web app, which has already a JAR in the source directory under WEB-INF/lib I do not want the JAR to be picked from the maven repository, and thus I did not define the dependency. How can I make that JAR (or better all existing JARs in the WEB-INF/lib) visible to the compiler classpath? Tom __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] maven scm api and cvs
Hi, I use the maven scm api, and try to connect to cvs. I've got cvsnt installed. Is it still possible to use a .cvspass file for the stored password? In maven1 there was a changelog goal create-cvspass, which I didn't find in maven2. Is there another alternative in maven2? Thanks, Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-scm includes/excludes
Hi I try to use the maven-scm api in my custom m2 plugin. I use svn. I cannot update explicitly a single file. Always the complete directory structure gets updated. I use ScmFileSet like this: String directory = "D:/temp/test"; String includes "test.txt"; String excludes = null; new ScmFileSet(directory, includes, excludes) How do I need to specifiy the includes/excludes correctly? Thanks, Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] scm API or scm plugin?
Hi Within my own custom plugin I need (among other tasks) to get a specific file from scm (svn), change it, and commit it back to scm. What is a recommended/possible alternative: Use the maven-scm-plugin? Use the maven-scm API? Use the svn java API? Thanks, Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] jar plugin: filter classes
Hi I've got a packaging type of 'jar'. How can I specify include/exclude filters (e.g. certain classes) to influence what's packaged into the JAR? Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
before-package phase
Hi I need to perform some work prior to the packaging phase. I could attach my plugin to the 'test' phase (immediately before 'packaging'). But that way the work is executed each time when the 'test' phase is run, even if the 'package' phase is not executed after. What I need is something like a 'before-package' phase. What are the implementation alternatives to execute some work on a 'before-package' basis? Thanks, Tom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]