Re: Producing java8 and java7 versions
On a side note, in a few months, if you like to live dangerously, java9 comes with built-in support for multijar : http://in.relation.to/2017/02/13/building-multi-release-jars-with-maven/ laurent 2017-06-09 14:07 GMT+02:00 Jörg Schaible: > Hi Paul, > > Paul Hammant wrote: > > > Older releases tried to have a single jar that had adaptive bytecode > > within, right Jörg > > > > Specifically, class file formats 49, 50, 51 in one Jar. > > This is still the case. The -java7 version just omits class files > targetting > Java 8, because in some environments they cause harm if the runtime is not > yet Java 8 compatible (Android, app servers scanning jars for annotations > ...). > > Cheers, > Jörg > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- http://blog.jdeuxe.info/;>http://blog.jdeuxe.info/ - Java entreprise tips & tricks
Best practice to share a common set of jsps between war artifacts ?
Hello I have two webapps under a multi modules project, and I want to share jsps between them. Obviously I will not copy/paste files, nor use a svn:externals to host them. I'm thinking of using an assembly to zip them as a bundle artifact, and use the dependencies plugin to unzip them when war files will be built. Is this the common way to share non-classpath resources ? Thanks laurent -- a href=http://blog.jdeuxe.info/;http://blog.jdeuxe.info/ - Java entreprise tips tricks/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT
Hello, Any progress made so far related to http://www.supose.org/issues/show/297 ? Thanks laurent 2010/3/4 Karl Heinz Marbaise k...@soebes.de: Hi Laurent, laurent.perez wrote: I'm sorry, I don't have much time right now to look at the plugin source code :/ You don't need to apologize, cause i say thank you for your time...I'm working on it to see what's going wrong... laurent.perez wrote: So *maybe* my licenses.xml file is wrong, I did not find a concrete example on the site ; you can find mine at (1). That pushes me to enhance the documentation as well... Many thanks for testing and of course giving feedback to me... Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/-ANNOUNCEMENTMaven-License-Verifier-Plugin-0.2-SNAPSHOT-tp27658754p27778628.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 -- a href=http://blog.jdeuxe.info/;http://blog.jdeuxe.info/ - Java entreprise tips tricks/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT
Hello My first question: Which release of Maven do you use ? Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_14 Would you try to bind the plugin to a particular phase and just do a mvn test (and take a look if some output has been produced). executions(snip) well, the check is indeed triggered, but I'm getting a NPE : [INFO] [license-verifier:check {execution: default}] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.getInvalid(LicenseValidator.java:57) at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.isInvalid(LicenseValidator.java:367) at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.isInvalid(LicenseValidator.java:260) at com.soebes.maven.plugins.mlv.LicenseVerifierMojo.execute(LicenseVerifierMojo.java:83) note : if I use report instead of check, the NPE is moving in some warning methods: [INFO] [license-verifier:report {execution: default}] [INFO] LicenseVerifierReport:execute() [INFO] LicenseVerifierReport:generate() [ERROR] java.lang.NullPointerException at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.getWarning(LicenseValidator.java:65) at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.isWarning(LicenseValidator.java:382) at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.isWarning(LicenseValidator.java:281) I'm sorry, I don't have much time right now to look at the plugin source code :/ The thing is, I'm only really interested in the report command ;) So *maybe* my licenses.xml file is wrong, I did not find a concrete example on the site ; you can find mine at (1). thanks laurent (1) licenses valid license idApache Software License 2.0/id descriptionApache Software License 2.0/description names nameApache 2/name nameApache Software License 2.0/name nameApache Software License, Version 2.0/name /names urls urlhttp://www.apache.org/licenses/LICENSE-2.0/url urlhttp://www.apache.org/licenses/LICENSE-2.0.html/url urlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url urlhttp://apache.org/licenses/LICENSE-2.0/url urlhttp://apache.org/licenses/LICENSE-2.0.html/url urlhttp://apache.org/licenses/LICENSE-2.0.txt/url /urls /license /valid /licenses - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT
Hello I've tried, but did not manage to produce a report, or to check the licenses , I'm getting an NPE whenever I try to run it after test, I get no results if I try mvn clean licence-verifier:report. The documentation is a little bit lacking ;) Can you help me ? Thanks My configuration : - build plugins plugin groupIdcom.soebes.maven.plugins.mlv/groupId artifactIdmaven-license-verifier-plugin/artifactId version0.2-SNAPSHOT/version configuration verbosetrue/verbose /configuration Output of : mvn test license:report : NPE - [INFO] [license-verifier:report {execution: default-cli}] [INFO] LicenseVerifierReport:execute() [INFO] LicenseVerifierReport:generate() [INFO] Loading /home/laurent/Desktop/SVN/4.0.x//src/main/licenses/licenses.xml licenses file. [ERROR] java.lang.NullPointerException at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.getWarning(LicenseValidator.java:65) at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.isWarning(LicenseValidator.java:382) at com.soebes.maven.plugins.mlv.licenses.LicenseValidator.isWarning(LicenseValidator.java:281) at com.soebes.maven.plugins.mlv.LicenseVerifierReport.doGenerateItemReport(LicenseVerifierReport.java:238) at com.soebes.maven.plugins.mlv.LicenseVerifierReport.doGenerateReport(LicenseVerifierReport.java:180) at com.soebes.maven.plugins.mlv.LicenseVerifierReport.generate(LicenseVerifierReport.java:482) at com.soebes.maven.plugins.mlv.LicenseVerifierReport.execute(LicenseVerifierReport.java:516) Output of : mvn clean license:report : nothing is generated in target/site/ -- [INFO] [license-verifier:report {execution: default-cli}] [INFO] LicenseVerifierReport:execute() [INFO] LicenseVerifierReport:generate() [INFO] [INFO] BUILD SUCCESSFUL [INFO] My src/main/licenses/license.xml : -- licenses valid license idApache Software License 2.0/id descriptionApache Software License 2.0/description names nameApache 2/name nameApache Software License 2.0/name nameApache Software License, Version 2.0/name /names urls urlhttp://www.apache.org/licenses/LICENSE-2.0/url urlhttp://www.apache.org/licenses/LICENSE-2.0.html/url urlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url urlhttp://apache.org/licenses/LICENSE-2.0/url urlhttp://apache.org/licenses/LICENSE-2.0.html/url urlhttp://apache.org/licenses/LICENSE-2.0.txt/url /urls /license /valid /licenses laurent 2010/2/19 Karl Heinz Marbaise k...@soebes.de: Hi to all, i'm happy to announce that the first SNAPSHOT release is available of the Maven License Verifier Plugin. The Release 0.2-SNAPSHOT contains only basic functionality and is not intended for production usage. The intention is to check if everything is correctly configured on my site that it will work with other setup's as well and the basics are working. If you are willing to give it a try i appreciate feedback in any form...concerning the functionality or the documentation or enhancements etc. The plugin is available from the following SNAPSHOT Repository: http://oss.sonatype.org/content/repositories/snapshots/ The coordinates (GAV) are: plugin groupIdcom.soebes.maven.plugins.mlv/groupId artifactIdmaven-license-verifier-plugin/artifactId version0.2-SNAPSHOT/version /plugin The current state of the documentation is located at: http://site.supose.org/maven-licenses-verifier-plugin/ If you have any problems concerning the plugin give a mail on the list (or direct to me) or via issue tracker: http://www.supose.org/projects/show/mlv Kind regards Karl Heinz Marbaise Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/-ANNOUNCEMENTMaven-License-Verifier-Plugin-0.2-SNAPSHOT-tp27658754p27658754.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 -- a href=http://blog.jdeuxe.info/;http://blog.jdeuxe.info/ - Java entreprise tips tricks/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[maven-changes-plugin] jira report does not support fix for multiple versions (?)
Hi I'm using version 2.1 of the plugin ; my artifactid is 3.1.1-SNAPSHOT, I am also maintaining another branch of the project, under version 4.0.M4-SNAPSHOT. I have a resolved jira entry with a Fix For: field labelled for versions 3.1.1 and 4.0.M4. Whenever I run mvn changes:announcement-generate, it does not generate a report for this specific entry. If I modify the entry and use a single Fix For: 3.1.1, the report is generated. Can anyone confirm the jira report does not include multiple fix for versions reports ? I'll fill a JIRA if I'm not alone with this. Thanks laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: passing properties from filters to an ant task
Hi Not sure if this could work, but did you try to explicitly pass the property again to the task with a property name=test.db.username value=${test.db.username} / within tasks ? laurent 2009/6/2 Jean Luc jeanluc2...@gmail.com: Hello, I'm trying to use an ant task (a wrapper for sqlplus, http://incanto.sourceforge.net/usage-sqlplus.html) for a Maven build. It works if I hardcode the parameters for the ant task in my pom.xml, but if I try to use properties set through a filter, they are not read. There's nothing atypical: database credentials are read through properties so they can be overridden for each developer. If no overriding file is specified, a common one is read. This part in itself works fine (it's used elsewhere in the build). The problem is that the ant task does not see those properties and thus the db login fails. The output from running mvn -X install is further below. Any hints would be much appreciated. Is there anything missing in order to propagate Maven properties to ant tasks? Thanks, -jl build filters filter${filter.db.props}/filter /filters plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution phasepre-integration-test/phase configuration tasks taskdef name=sqlplus classname=net.sf.incanto.Sqlplus classpathref=maven.plugin.classpath/ sqlplus logon=${test.db.username}/${test.db.passwo...@sid dir=database/scripts start=reinit.sql failOnError=true / /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdnet.sf/groupId artifactIdincanto/artifactId version0.2.4/version /dependency /dependencies /plugin /plugins ... profiles profile iduser.test.db.props/id activation fileexists${user.home}/test.db.properties/exists/file /activation properties filter.db.props${user.home}/test.db.properties/filter.db.props /properties /profile profile iddefault.test.db.props/id activation filemissing${user.home}/test.db.properties/missing/file /activation properties filter.db.props${common.test.filters}/test.db.properties/filter.db.props /properties /profile [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.3:run' -- [DEBUG] (f) pluginArtifacts = [net.sf:incanto:jar:0.2.4:compile, org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime, org.apache.ant:ant-launcher:jar:1.7.1:runtime, org.apache.ant:ant:jar:1.7.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.4:runtime, org.apache.maven:maven-project:jar:2.0.4:runtime, org.apache.maven:maven-artifact:jar:2.0.4:runtime] [DEBUG] (f) tasks = [DEBUG] -- end configuration -- [INFO] [antrun:run {execution: default}] [DEBUG] Storing: maven.dependency.commons-lang.commons-lang.jar.path=c:\dev\m2-repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar Project base dir set to: C:\dev\mybuild Adding reference: maven.dependency.classpath Adding reference: maven.compile.classpath Adding reference: maven.runtime.classpath Adding reference: maven.test.classpath Adding reference: maven.plugin.classpath [INFO] Executing tasks [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false) [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found. [DEBUG] getProperty(ns=null, name=test.db.username, user=false) Property test.db.username has not been set [DEBUG] getProperty(ns=null, name=test.db.password, user=false) Property test.db.password has not been set [echo] mumu: ${test.db.username}/${test.db.passwo...@sid [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false) [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false) Class net.sf.incanto.Sqlplus loaded from parent loader (parentFirst) +Datatype sqlplus net.sf.incanto.Sqlplus [DEBUG] getProperty(ns=null, name=test.db.username, user=false) Property test.db.username has not been set [DEBUG] getProperty(ns=null, name=test.db.password, user=false) Property test.db.password has not been set [sqlplus] Executing 'sqlplus' with arguments: [...] -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail:
maven changes plugin : how to include JIRA Tasks in the mail report ?
Hi I'm using a custom announcement template, does anyone know how to include Tasks in the JIRA report ? Running mvn -X shows there seems to be no wording available, ie. I can see [DEBUG] o update for Improvements but for tasks, the line is [DEBUG] o I'm really confused because the announce itself for the plugin release contains a **Task segment (http://mail-archives.apache.org/mod_mbox/maven-announce/200811.mbox/%3c9948cb690811250201u2d6489eep2d46a584ff57a...@mail.gmail.com%3e), but looking at the template source http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changes-plugin/src/main/resources/org/apache/maven/plugin/announcement/announcement.vm , there is no Task segment, and there is no Task segment either on the live jira report on http://maven.apache.org/plugins/maven-changes-plugin/jira-report.html. Was the task part added manually when the 2.1 plugin announcement was prepared ? :) thanks laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Binding to a jetty:run goal ?
Hi I would like to bind an ant task from maven antrun plugin only when I use the jetty:run goal : my task basically extracts and preconfigures a few files needed at webapp startup. I've managed to bind antrun to the compile phase, but this is not good enough. I've tried the goaljetty/goal or goal jetty:run/goals options, but it's not working. Does anyone know how to bind to the jetty:run goal ? Thanks laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[maven] Making versionLATEST/version work for multiple dependant projects ?
Hi I've got a dozen projects or so with a dependency on a 1.0-SNAPSHOT artifact X ; recently, I've been using the maven release plugin for this artifact, so that I can release incremental versions with maven changes plugin jira changelogs, like 1.0.1, 1.0.2, and so on. My problem is that each time I release a new artifact X (or even deploy a new SNAPSHOT), I have to upgrade the ~12 projects pom.xml in order to benefit from the latest upgrade. This is very cumbersome, and I'd like to have some automation enabled. I've tried setting the artifact X version to LATEST in my child projects so that the newest jar is always downloaded on mvn install, however, this does not seem to work, I'm getting the usual BUILD ERROR, saying 1) com.my.company.artifact:jar:LATEST is missing. - How is LATEST supposed to work, do I have to specify something in my artifact X pom.xml to say I'm the latest version, too ? Is it a repository option to tell which artifact is the latest one ? - How would you deal with such an upgrade situation where many projects rely on a single one, and this single one is evolving very often thru incremental releases ? Thanks if you shed some light :) laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [maven] Making versionLATEST/version work for multiple dependant projects ?
Thanks, I did not know about the versions-maven-plugin plugin (duh) ! :) laurent 2009/3/2 Oleg Taranenko olegtarane...@googlemail.com: Jeff MAURY, yes, it is stated in xsd. If I were in charge I'd made mandatory either relativePath or group/artifact/version not mutually exclusive, but with preference of the second option, if both are given. Cheers, Oleg am Monday, March 02, 2009 um 4:46 PM schrieben Sie: 2009/3/2 Oleg Taranenko olegtarane...@googlemail.com Jeff MAURY, sorry for possible offtopic and a naive question too. Maven points to the parent POM with help parent groupIdorg.group/groupId artifactIdartifact/artifactId version1.0-SNAPSHOT/version relativePath../parent-poms/pom.xml/relativePath /parent why not allow skip groupId, artifactId and version in case relativePath is given? if relative path is valid and pom.xml is what we need, why I should duplicate this values in many subprojects? IMHO, this would radically reduce needs to modify poms on version advancing. my apologize if this problem is already discussed. Because they are mandatory. RelativePath is optional and is just here when Maven conventions are not respected. I'm not sure relativePath can point to the pom or just to the directory when the pom is stored. Please not that if no pom is stored there, then Maven will try to resolve it from repositories so the Maven coordinates are required. Regards Jeff MAURY Cheers, Oleg am Monday, March 02, 2009 um 10:36 AM schrieben Sie: LATEST works only for plugins artifacts. I suggest that you use a parent POM and put the required versions in the dependenciesManagement section. So you have to modify a single POM instead (but you still have to modify the version for this POM in your sub-poms !) Jeff MAURY On Mon, Mar 2, 2009 at 10:26 AM, Laurent Perez hak...@gmail.com wrote: Hi I've got a dozen projects or so with a dependency on a 1.0-SNAPSHOT artifact X ; recently, I've been using the maven release plugin for this artifact, so that I can release incremental versions with maven changes plugin jira changelogs, like 1.0.1, 1.0.2, and so on. My problem is that each time I release a new artifact X (or even deploy a new SNAPSHOT), I have to upgrade the ~12 projects pom.xml in order to benefit from the latest upgrade. This is very cumbersome, and I'd like to have some automation enabled. I've tried setting the artifact X version to LATEST in my child projects so that the newest jar is always downloaded on mvn install, however, this does not seem to work, I'm getting the usual BUILD ERROR, saying 1) com.my.company.artifact:jar:LATEST is missing. - How is LATEST supposed to work, do I have to specify something in my artifact X pom.xml to say I'm the latest version, too ? Is it a repository option to tell which artifact is the latest one ? - How would you deal with such an upgrade situation where many projects rely on a single one, and this single one is evolving very often thru incremental releases ? Thanks if you shed some light laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Mit freundlichen GrьЯen Oleg Taranenko mailto:olegtarane...@googlemail.com -- Mit freundlichen GrьЯen Oleg Taranenko mailto:olegtarane...@googlemail.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn changelog:changelog fails under Mac OSX 10.5, svn --non-interactive authorization failed
Thanks ! Olivier, do you have any plans regarding http://jira.codehaus.org/browse/MRELEASE-385 ? Of course I know the blog hack works for the release plugin too, just asking :). laurent 2008/12/12 Olivier Lamy ol...@apache.org: Maybe : http://blogs.exist.com/bporter/2008/02/25/working-around-non-interactive-problems-in-leopards-subversion/ -- Olivier 2008/12/12 Laurent Perez hak...@gmail.com: Hi I recently opened http://jira.codehaus.org/browse/MCHANGELOG-91 , does anyone on 10.5 have a workaround for this one ? Unfortunately, I don't have access to a win32/nix system, and I'd like to be able to use the changelog plugin. Thanks if you can help laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - 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 -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
mvn changelog:changelog fails under Mac OSX 10.5, svn --non-interactive authorization failed
Hi I recently opened http://jira.codehaus.org/browse/MCHANGELOG-91 , does anyone on 10.5 have a workaround for this one ? Unfortunately, I don't have access to a win32/nix system, and I'd like to be able to use the changelog plugin. Thanks if you can help laurent -- a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com - Mobile world, technology and more/a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org