Re: How can i build a specific version without changing the pom.xml?

2007-07-26 Thread John Patrick
Baz, I would put this type of information into a profile within the pom. Then its simple and repeatable. Also trackable if your project is under source control, instead of just relying on people knowing the correct command line arguments to use. Personally I think building a different version

Re: resources as dependencies

2007-07-26 Thread John Patrick
Initial thoughts are you could have it as a seperate project and get the dependency plugin to unpack it. http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html On 26/07/07, John Coleman [EMAIL PROTECTED] wrote: Hi, We want to farm off some of our common resources (java

Re: How can i build a specific version without changing the pom.xml?

2007-07-27 Thread John Patrick
pom.xml for product A since I really do not know which version of xyz will pass QA. Does it make sense? Baz On 7/26/07, John Patrick [EMAIL PROTECTED] wrote: Baz, I would put this type of information into a profile within the pom. Then its simple and repeatable. Also trackable

Re: How to add project specific dependencies

2007-05-03 Thread John Patrick
Kiran, Project level defined repositories can be specified within the pom: e.g. [Extract from http://maven.apache.org/pom.html] project ... repositories repository idcentral/id nameMaven Repository Switchboard/name layoutdefault/layout

maven-surefire-plugin 2.2 ignoring skipExec

2007-05-04 Thread John Patrick
Is anyone else having issues with surefire plugin ignoring configuration. According to http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html the configuration value of skipExec is valid and will compile but not execute tests. skiptrue/skip works skipExectrue/skipExec doesn't work

Re: Multi Module Project - Problems Generating Javadoc

2007-05-10 Thread John Patrick
mvn install should solve your issue. package creates the artifact within the projects target directory, but when working on a multi module project you need to do install so it uploads the artifacts into you local repository so they are avaliable to the rest of the modules. I hope that helps,

Re: (newbie question) seding war somewhere else

2007-05-10 Thread John Patrick
The common approache is to use deploy to get the war to the 'deployment' location. Install is just to install into your local repository so its avaliable to other projects your working on. On 10/05/07, Arrowx7 [EMAIL PROTECTED] wrote: Hello, I have mevenide2 installed, and when I run

Re: Javadoc generation on Unix requiring /bin/bash???

2008-08-20 Thread John Patrick
Hi, Looking at the documentation for the JavaDoc plugin it does not provide that configuration at this stage. I might see if I'm able to create a patch myself for maven-javadoc-plugin 2.5-SNAPSHOT but not sure if I'll be free to. Anyway I've raised improvement issue with maven javadoc.

Mirroring Maven - mirrors.ibiblio.org down

2008-10-25 Thread John Patrick
I rsync the maven repository from mirrors.ibiblio.org about once a month and find it is offline most times I try to use it, like now. Is their a better rsync mirror than mirrors.ibiblio.org? I've tried contacting ibiblio but have not received any response. John

Re: Resources in source folder

2009-11-25 Thread John Patrick
Have you tried: mvn eclipse:m2eclipse. Does it exibit the same behaviour. John 2009/11/20 Martin Seebach martin.seeb...@assursoft.com Hi, I have an Eclipse-project that are managed with Maven2. This project depends on resource-files in the source-folders (HTML-files, it's a Wicket

Re: Patch releases using Maven

2009-12-22 Thread John Patrick
I don't see it as maven issue, I see it as a source control management or people issue. Getting a clear understanding of how version numbers will be increased, how people should be using source control, once you know that maven can do what ever you need it to do. Issues you'll need to think

Re: Use filter files from parent project

2009-12-22 Thread John Patrick
Something which might work for you. parent | -- src/main/filters | -- pom.xml (pomP) | -- module-a | -- src/main/resources | -- pom.xml (pomA) | -- module-b | -- src/main/resources | -- pom.xml (pomB) pomP filters

Re: How to download every dependency we need at once?

2009-12-22 Thread John Patrick
I work in a sandbox network and have similar issues. What I do: 1) Internet Connected Host 1.1) Create pom contain all dependencies and plugins used. 1.2) mvn -s settings.xml clean install site 1.3) find, grep -v, sort -u, echo, cat sort -u, echo (obtain list of group id's downloaded) 1.4) rsync

Re: How to skip generating source jar files

2009-12-22 Thread John Patrick
I'ld suggest putting the source plugin in a release or full build profile. That way your release manager or continuous build system and create the source jar and developers can optionally include it if you want. 2009/12/16 Anders Hammar and...@hammar.net Sorry, I was a little bit too quite

License Help

2010-02-15 Thread John Patrick
I'm writting a maven plugin that wraps a solaris library that uses CDDL. I'm wondering what license I need to use for the plugin. 1) CDDL 2) LGPL 3) Apache 4) Dual CDDL LGPL Any help greatfully received. John Sent from my iPhone

MacPorts Maven

2011-01-13 Thread John Patrick
Does anyone install maven via macports??? If so you might be interested in some tickets I've just submitted: #27944 - Upgrade maven3 to 3.0.2 #27946 - maven_select (similar to python_select, so you can easly switch between maven2 and maven3) #27947 - maven3 update to use maven_select #27948 -

Re: MacPorts Maven

2011-01-15 Thread John Patrick
On 13 January 2011 19:42, Anders Hammar and...@hammar.net wrote: No, ignore Maven 1. /Anders On Thu, Jan 13, 2011 at 17:24, John Patrick nhoj.patr...@gmail.com wrote: Does anyone install maven via macports??? If so you might be interested in some tickets I've just submitted: #27944

Re: Missing goal eclipse:m2eclipse in version 2.8 of the Maven Eclipse plugin

2011-01-16 Thread John Patrick
On 18 December 2010 05:08, Barrie Treloar baerr...@gmail.com wrote: On Thu, Dec 16, 2010 at 9:39 PM, Stefan Eder stefan.e...@ebuconnect.de wrote:  Hi, since quite a while I am using Maven and Eclipse together with the Eclipse plugin for Maven and the Maven plugin for Eclipse. And it is just

search.maven.org working for you

2011-05-06 Thread John Patrick
Just wondering anyone else using a Mac, if so does http://search.maven.org/ display anything for you when you click Search, or Advanced Search, or Browse or Quick Stats. Is it just my MacBook Pro, Mac's or everyone. Also http://www.downforeveryoneorjustme.com/search.maven.org reports the site as

Re: search.maven.org working for you

2011-05-06 Thread John Patrick
Cheers, it was just me. It's due to Cookies, on all browsers I've selected, 'only allow cookies from site I visit'. So the 3rd party cookies it appears to rely on where being block. Site is now working now. John - To

Looking for Web Services Best Practices Views

2012-02-21 Thread John Patrick
How would people structure the following example... with a view on the following tools/plugin/integration... a) maven packaging types b) maven plugin's used c) ide integration Simple Echo Java Enterprise Application Scenario One Request XSD One Response XSD One Stateless EJB, using Request and

Re: axistools:wsdl2java

2012-02-22 Thread John Patrick
I believe to fix your issue you need to add them as a dependency of the plugin, so similar to below. [...] build [...] plugins [...] plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId

Re: Execute maven-assembly-plugin twice during package phase

2012-02-23 Thread John Patrick
If you want them to execute at the same phase, then you will need to explicitly add the jar plugin and add it before the assembly plugin to get the order correct. Yep help:effective-pom will how you what the maven understands. On 23 February 2012 06:40, Anders Hammar and...@hammar.net wrote:

Re: mvn install (Access is denied) problem

2012-03-05 Thread John Patrick
Looks like a client side issue with your local environment. Double check the -Dfile option as it looks like your referring to a directory, instead of a file. Can you confirm the following is what you are executing: mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs

Re: Dependency in the local repository is ignored

2012-03-06 Thread John Patrick
When you say ignored, do you mean that it isn't appearing on the classpath in eclipse. Have you tried: 1) mvn -X eclipse:eclipse and seeing if any of the debug reports removing or ignoring it 2) backup .classpath .project and .settings then recreating 3) Checking and older version in source

Re: Compile all projects respectively

2012-03-23 Thread John Patrick
Look into pom packages, then that maven project has your jar, war and ear as modules. ./pom.xml (i.e project-pom package type pom) project... [...] packagepom/package [...] modules modulejar/module modulewar/module moduleear/module /modules [...] /project

Re: Filename too long while compiling a project

2012-03-27 Thread John Patrick
Is this a Unix* or Windows filesystem? What plugin is doing the code generation? Have you executed the plugin with any debugging enabled, i.e. mvn -X ... If you move the project to say /tmp/ or c:/tmp/ and build their does the same error occur? I'm thinking is it filename or directory name, or

Re: Filename too long while compiling a project

2012-04-01 Thread John Patrick
is not of Maven concern ? Jeff On Tue, Mar 27, 2012 at 1:59 PM, John Patrick nhoj.patr...@gmail.comwrote: Is this a Unix* or Windows filesystem? What plugin is doing the code generation? Have you executed the plugin with any debugging enabled, i.e. mvn -X ... If you move the project to say /tmp

Re: DependencyResolutionException when upgrading from Maven 2.2.1 to Maven 3.0.4

2012-04-11 Thread John Patrick
If you add relativePath../pom.xml/relativePath Into the parent section of child-alpha, does it resolve any issue your having? Specifically with having to do mvn -N install on the parent 1st. On 11 April 2012 16:14, Brain Dump braindump2...@gmail.com wrote: I was able to compile with no

Re: DependencyResolutionException when upgrading from Maven 2.2.1 to Maven 3.0.4

2012-04-11 Thread John Patrick
Or start from scratch with simple pom.xml and nothing in src, then add src and fix dependencies, build up slowly then diff the resulting pom and see what's different. On 11 April 2012 16:25, John Patrick nhoj.patr...@gmail.com wrote: If you add relativePath../pom.xml/relativePath

Re: How to pass a custom jar file to maven jarsigner plugin for signing

2012-04-13 Thread John Patrick
If you don't need ABC.jar a work around hack until you find the proper solution might be to use antrun at the right phase and move ABC-small.jar to ABC.jar. On 13 April 2012 15:42, Shyamsundar Purkayastha s.purkayas...@airtelmail.in wrote: I have a maven build configuration where I do the

Re: Which in-container test framework do you use?

2012-04-13 Thread John Patrick
I moved from Cactus and testing the running container, to using dependency injection type patterns and testing them independently and/or with mock objects. i.e. Servlet is just a wrapper to a pojo of business logic, ejb get helpers and other pojo injected, so everything can be tested separately.

Re: Selective Parallel Builds with maven 3

2012-04-17 Thread John Patrick
Out of interest... How many modules is that? How many java files? Any code generation happening like XMLBeans etc? Also does that half day include or exclude test execution time? I worked somewhere, where the build was 3 hours not including tests, by simply upgrading from maven 2.x to 3 and

Re: Compilation failure: interface com.ibm.websphere.sibx.smobo.ServiceMessageObject

2012-04-20 Thread John Patrick
Create a new eclipse/netbeans project, add all jar's under the websphere installation. Search for that interface and/or look at the inheritance tree to see which object contains that methord. Blunt approach but usually works for classes/jar that are not in a maven repository. Once you find the

Re: convert Ant script to Maven

2012-05-10 Thread John Patrick
Alternatively you can use maven-antrun-plugin and just have that execute your ant script. http://maven.apache.org/plugins/maven-antrun-plugin/ On 10 May 2012 13:29, Antonio Petrelli antonio.petre...@gmail.com wrote: 2012/5/10 chavanmukeshp mukesh.cha...@igate.com Hello Friends, Can you

Re: convert Ant script to Maven

2012-05-10 Thread John Patrick
Have you used maven before or are you totally new to maven? Do you have to get your ant code snippet into an existing maven project or a new project just for this snippet? On 10 May 2012 15:58, Ron Wheeler rwhee...@artifact-software.com wrote: Did you look at the Ant plug-in? Ron On

Re: Maven using eclipse

2012-05-22 Thread John Patrick
With the latest version of the eclipse maven plugin, you can import a pom directly into eclipse without the command line step. If you then just close the eclipse project your not using, the dependencies will automatically change from the eclipse project to the last published version in your

Re: Feel Maven is not intuitive

2012-05-23 Thread John Patrick
Do you specifically want to know about the compile plugin or plugin's in general. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html might be a useful site to read. When helping a new developer understand maven, below is what I go though with them. 1) Understand

Re: modules, dependencies, whatelse?

2012-10-15 Thread John Patrick
If this was me I would create a new pom, which would be the parent for the 3 libraries, I would then also build at that level. e.g. ~/mavenprojects/pom.xml (packaging pom) ~/mavenprojects/myLib1/pom.xml (packaging jar) ~/mavenprojects/myLib2/pom.xml (packaging jar) ~/mavenprojects/myLib3/pom.xml

Re: modules, dependencies, whatelse?

2012-10-16 Thread John Patrick
Step By Step will get you though this, once you understand Maven more it will become a lot clearer. Nexus is a good idea and i should probably do that myself but it's probably step 2 after getting this working. 1) Create pom for myLib1, packaging type jar 2) myPom/myLib1$ mvn clean install 3)

Re: Overriding a property from a profile

2012-10-29 Thread John Patrick
How are the profiles being activated? Command line -P or via activations, or a mix? About 6 months ago I had issues using -P and -D and fix it by getting all -D options we might need to use into profiles and then just remembering specific orders of profiles. John On 29 October 2012 16:33,

Re: Overriding a property from a profile

2012-10-30 Thread John Patrick
my projects now require M3. I guess I need to build a test case and JIRA. /Anders On Mon, Oct 29, 2012 at 12:47 PM, John Patrick nhoj.patr...@gmail.com wrote: How are the profiles being activated? Command line -P or via activations, or a mix? About 6 months ago I had issues using -P

Re: Overriding a property from a profile

2012-10-30 Thread John Patrick
it's a bug that needs to be fixed. /Anders On Tue, Oct 30, 2012 at 10:19 AM, John Patrick nhoj.patr...@gmail.com wrote: If you try switching the parameter and profile the other way around, does that then work? -Dbletch=false -Pa On 29 October 2012 21:52, Benson Margulies bimargul

Re: Why does mvn compiile using java 1.3?

2012-11-16 Thread John Patrick
Jasper, I also experience similar issues, it comes down to what version of java you have installed, what version of the plugin you use and what their respective defaults are. To avoid this I would explicitly state version's of plugins and also a few other useful properties. I always but at the

Re: Remove and Rename Files in MAven

2012-12-14 Thread John Patrick
Quick answer, If you want to do exactly what you asking, then I would use the antrun plugin to do that. Personally settings like this are always external, so the projects I'm working on create a zip with this files in, one for each environment and allow each environment to be altered without

Maven and JPA/EclipseLink Configuration...

2013-07-09 Thread John Patrick
I'm working on a project that uses JPA EclipseLink, everything started of fine with Jetty for developers development and WebLogic and Oracle proper ear deployments. EclipseLink has two values that need to be set in persistence.xml depending upon your Application Server and Database;

Re: Maven and JPA/EclipseLink Configuration...

2013-07-10 Thread John Patrick
. Cheers 2013/7/9 John Patrick nhoj.patr...@gmail.com I'm working on a project that uses JPA EclipseLink, everything started of fine with Jetty for developers development and WebLogic and Oracle proper ear deployments. EclipseLink has two values that need to be set in persistence.xml depending

Re: How to move the directory of a multi-module project?

2014-05-30 Thread John Patrick
You can't do exactly what you are aiming to do dynamically but you could hard code that structure into your pom's. Look into the property; project.build.directory If you defined that in the respective pom's as below; project.build.directory=/tmp/grandfarther/target

Re: How to move the directory of a multi-module project?

2014-05-30 Thread John Patrick
So I'm guessing you then have mapped tmp to a ram drive, otherwise tmp will still be on your SSD unless you also have a non-SSD too which is mapped to tmp. Honestly as long as it's a new ish SSD, your not writing GB and GB per hour constantly 24/7, your SSD is under about 60% full then I would

Re: How do I separate UTs and ITs directory?

2016-06-24 Thread John Patrick
I've also used the separate module for integration tests before. I've also used junit categories and testng groups before. Some places I've worked prefer seperate modules over categories/groups. Usually I put selenium or cucumber tests in separate modules and also have groups groups as well.

Re: Maybe a lack of specification ?

2016-04-13 Thread John Patrick
Nice spot, just tried to work that one out myself. My guess is... the documentation generation plugin has been updated and it now skips/ignores required properties. If you compare those two plugins, you can see resources was last published 1.5 years ago; maven-resources-plugin is 2.7, last

Re: Cobertura Maven Plugin works locally, but not in Jenkins

2016-07-12 Thread John Patrick
I've had similar, where versions between locally and jenkins where different. Question to ask yourself to see if you have checked; ) maven version used locally vs jenkins ) java version used locally vs jenkins ) operating system? same? both 32bit or 64bit? ) does your jenkins project have a

Re: Is there any way to have archetype:generate fill in "boilerplate" fields?

2016-07-05 Thread John Patrick
What about creating a company/personal pom, publish that to your local repo or company repo, then simply have that as the parent of all the projects you work on. You can version it and update it as things develop. It's what I do, if you have a standard setup you can even use parameters for scm

Re: How does maven choose which plugin version to use?

2016-07-04 Thread John Patrick
The lifecycle defines the version to use, but if you edit your pom to use a different version it will take precedence from what I've experienced. Editing the pom I believe this is a better solution as otherwise different developers or different machines might behave differently. Where as if the

Re: Maven Compiler Plugin 3.5.1 bug

2016-10-22 Thread John Patrick
hi robert, what is the plugin that creates files and puts them into the generated-sources/annotations directory as from how i understand it works, the plugin should on execution dynamically register that new extra directory into the list of source directories that the maven-compiler-plugin will

Re: Is there a way to make mvn default to Java 8?

2017-01-13 Thread John Patrick
If you only have Java 8 installed, would that work? Or does target still default to something older? I've got Java 7, 8 and 9 on my machine so can't easily test myself. On 13 January 2017 at 17:04, Chris Barlock wrote: > Most projects I've been on have a notion of a "parent"

Re: Structuring bigger Maven projects

2016-11-30 Thread John Patrick
I've worked on several large 'enterprise' projects, several could have been 4-6 projects in their own right so maybe 12 ear's, one had 120 pom files. Lucky it got refactored and split into I think 40 repos. I would suggest; ) branching, using git flow method. ) jgit-flow plugin

Re: rat:check bad default?

2017-07-21 Thread John Patrick
Does this help? https://maven.apache.org/settings.html#Plugin_Groups Maybe something like this... org.apache.maven.plugins org.apache.rat org.mojohaus.mojo org.codehaus.mojo With codehaus dead, either moved to github or mojohaus, the scan ordering might need to be changed for future releases.

Re: When time do we need to delete .m2/repository

2017-09-12 Thread John Patrick
I do similar to Eric for jenkins. But also for both developer builds and jenkins, I've got all projects setup to use the http://www.mojohaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html plugin. With both a default and clean phase execution. So when either jenkins or a developer

Re: How to up date a property in a POM to a specific value

2017-08-22 Thread John Patrick
I think I do similar and I simply use -DpropertyName=newValueForProperty on the command line when executing the maven command, or via a profile and then activate the required profile. Just checking the property is already defined in a pom e.g. ..oldValueForProperty At build time I would

Re: How to up date a property in a POM to a specific value

2017-08-26 Thread John Patrick
practice, as the pom deployed would not contain the value from command >> line. It all depends on what the property is used for. >> >> /Anders >> >> On Tue, Aug 22, 2017 at 10:34 AM, John Patrick <nhoj.patr...@gmail.com> >> wrote: >> >>&g

Re: When time do we need to delete .m2/repository

2017-09-01 Thread John Patrick
when every your running out of disk space you can also use this plugin http://www.mojohaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html so when you do a clean or a install, it will also remove that project from your local repo. e.g. if your building a JEE project or other war

Re: Is there another alternative to using maven plug-in ?

2018-01-26 Thread John Patrick
Change your pom to something like this; Hi5S Hi5S 0.0.1-SNAPSHOT war UTF-8 1.8 1.8 org.apache.maven.plugins

Re: How to specify to make use of the latest version of hibernate jars using maven?

2018-10-04 Thread John Patrick
I would... 1) Look at the dependency tree and see how it's being included. 2) Add an exclude for hibernate for how it's being included. 3) Add a dependency for hibernate to the version you want to use. I might not do step 2. On Wed, 3 Oct 2018 at 09:17, Karl Heinz Marbaise wrote: > > Hi, > >

Re: maven-failsafe-plugin and JPMS module

2018-09-17 Thread John Patrick
surefire and failsafe plugins appear to work the same I've had to use the 2.22.0 versions I defined my plugin in a pluginManagement section and had to add this ${project.custom.failsafe.argLine.jpms} then in each project I add properties as required like this for surefire or failsafe

Re: OS

2019-04-18 Thread John Patrick
>From my experience maven modules don't care about the operating system, some might, your code and tests might but what is your issue with hard coding to a specific OS not a surefire issue. Modules care about the version of maven being used and the version of java being used. Does the version of

java 1.8 and java 11 using toolchains plus compiler and surefire

2019-08-31 Thread John Patrick
evening, i'm having trouble testing a multi-release jar project using toolchains. i want to test it using both java 1.8 and java 11. i've the following structure; src/main/java src/main/java11 src/test/java src/test/java11 tried both maven-surefire-plugin v 2.22.2 and 3.0.0-M3 if i set java to

Re: mvn versions:display-plugin-updates says I can update from 3 to 2

2019-09-07 Thread John Patrick
Technically you didn't do anything wrong... If you don't configure what version of java and maven your project requires, then versions will tell you about all options available. So that is saying if you want users to build using maven 2.0.1 then the maven-war-plugin needs to be 2.0.2. If you add

Re: java 1.8 and java 11 using toolchains plus compiler and surefire

2019-12-04 Thread John Patrick
oo general error message. > Can you post the configuration of the plugin with the latest version in > your POM including the test summary? What provider you use? > > Cheers > Tibor17 > > > > On Sat, Aug 31, 2019 at 7:53 PM John Patrick wrote: > > > evening, &

Re: java 1.8 and java 11 using toolchains plus compiler and surefire

2019-12-04 Thread John Patrick
Have decided to raise as issue so potential fixes/solutions can move to their. https://issues.apache.org/jira/browse/SUREFIRE-1731 John On Wed, 4 Dec 2019 at 10:55, John Patrick wrote: > > So I've created a sample project for Java 1.8 and Java 11, in a Multi > Release jar setup and w

Re: 2 issues with maven version range

2019-11-26 Thread John Patrick
m.out.println(list); // [4.7.0, 4.9.0, 5.0.0-RC1, > 5.0.0-SNAPSHOT, 5, 5.0.0] > > So version "5.0.0-RC1" is smaller than version "5"; you can use [4.7.0, > 4.999]". > > Regards, > Tomo > > On Sun, Nov 24, 2019 at 2:46 PM John Patrick wrote: >

2 issues with maven version range

2019-11-24 Thread John Patrick
i'm trying to start using maven version range more but having issues with things like guava and also it not excluding version i believe should be excluded. 1) i don't think this is possible but it might be, take a look a google guava, it has a jre and a android version. using maven version range

Re: Profile not being activated by default

2020-05-13 Thread John Patrick
Running `mvn help:active-profiles` does it list your build-dist-archives profile in the output? Also `mvn help:all-profiles' is it listed their and does it show the correct source? so pom or settings If you add duplicate the executions section into your plugin defined in the profiles, do you see

Re: Build Failed

2020-03-19 Thread John Patrick
Did it previously work from this machine? Are you being a firewall or proxy server? What version of maven are you using? What version of Java are you using? I've just deleted org/apache/maven from my local repository and it downloaded fine. If you go to other websites do they work? i.e. are you

Re: Build with dependencies + debug in NetBeans in a single Maven invocation

2020-10-20 Thread John Patrick
Going to be rusty on NetBeans specific bits as not used for maybe 10+ years because it was slow and bugging from memory, switched to Eclipse and then IntelliJ and not looked back. So execute [1] I believe is because you have checked "Build With Dependencies" so it does a force rebuild of all

Re: Need help with maven deploy plugin.

2020-08-19 Thread John Patrick
Which pom are properties beans.version and rest.version defined? com.blah.nw.libraries:libraries:1.0.0 or it's parent? Technically what you're deploying and using looks valid, the consumed using them should resolve those dependencies and pick up your custom version property and work it out

Re: How to disable certain enforcer rules in a child module in a multi-module maven project?

2020-08-14 Thread John Patrick
So something like the following if all configuration is managed via a pluginMangement section; org.apache.maven.plugins maven-enforcer-plugin 3.0.0-M2 alpha enforce

Re: Pd: inteliJ 2020 + maven error

2020-05-25 Thread John Patrick
you don't need a settings.xml in your users home .m2 directory, that is optional does the project build from the command line? yes / no when you import into intellij do you select it is a maven project? in your browser do you have a proxy set? as this might need to be configured for intellij and

Re: Build with dependencies + debug in NetBeans in a single Maven invocation

2020-10-21 Thread John Patrick
So some quick feedback... You mention maven is rather slow... It's taking me an average of 6 seconds for a command line 'mvn clean install' to build all 4 pom's. I've got a MacBookPro (2013 model), 2.8 GHz Dual-Core Intel Core i7, 16GB Ram and SSD. I'm using Java 11.0.8 and Maven 3.6.3. So

Re: Maven Dependency Plugin

2020-10-26 Thread John Patrick
If you read the opening line it talks about Maven 3.7.0, which is not yet released. If you want to use a maven wrapper before v3.7.0, then use this https://github.com/takari/maven-wrapper. The upgrade from takari to maven is easy but does allow you to change your documentation, process and ci

Re: Maven Dependency Plugin

2020-10-26 Thread John Patrick
gt; release date of Maven 3.7.0 that I could announce there? > -Markus > > > -Ursprüngliche Nachricht- > Von: John Patrick > Gesendet: Montag, 26. Oktober 2020 12:07 > An: Maven Users List > Betreff: Re: Maven Dependency Plugin > > If you read the opening line i

Re: How maven repositories are resolved?

2020-07-29 Thread John Patrick
The answer depends on the following; 1) is it a release version or snapshot version. As if the release version is in local repo then no remote repo's are checked. 2) order your pom's are executed I've simplified your profiles with central repo and company repo, and Aa, Ab and Ac are the same GAV

Re: How to download zip instead of jar from maven repo...

2020-07-09 Thread John Patrick
Use Java 1.8 or older. Because the plugin was last released in 2015, and Java 9 was released in 2019, I suspect it doesn't support or handle modules correctly. I've just tried a simple project and I get the same stacktrace using Java 11, but it passes on Java 1.8. I tried this command line; $

Re: How to download zip instead of jar from maven repo...

2020-07-09 Thread John Patrick
hing fails, I try it with Java 1.8, or see if a newer version is available. John On Thu, 9 Jul 2020 at 19:55, John Patrick wrote: > > Use Java 1.8 or older. > > Because the plugin was last released in 2015, and Java 9 was released > in 2019, I suspect it doesn't support or handle mo

Re: Maven Versions Plugin scans whole Maven repository

2020-07-11 Thread John Patrick
The maven project doesn't have a code maven versions plugin, mojohaus formally codehaus has a versions-maven-plugin. Is that the plugin you're talking about? And I've just noticed they point their users mailing list to this maven users list. 1) What is the exact command line you are executing?

Re: shade plugin modifying string constants

2020-06-27 Thread John Patrick
>From the views of a another user, relocation should be dumb and should be exact case sensitive for both pattern and shadedPattern. So I would not expect PKG to be altered. Yes the output is what your pattern match lists but but so does; System.out.println ("org.example" + ".pkg."); and I wouldn't

Re: My maven is trying to download artifacts from an incorrect repository

2020-06-04 Thread John Patrick
I would try building with a temporary local maven repo to see if something got corrupt/wrong/incorrect in your user's repo, so i would do; $ mvn -Dmaven.repo.local=./mvn-repo clean install that would for that execution download everything into a local mvn-repo directory if that works then your

Re: How to disable certain enforcer rules in a child module in a multi-module maven project?

2020-08-14 Thread John Patrick
I would do the following snippet, not sure if phase is needed, not sure if it should be pluginManagement, but i tend to put all configuration in pluginManagement then only the usage in plugins. For the query, from what I'm aware I used the same id of default, it will override that execution from

Re: Maven 3.6.3 configuration enquiry

2021-01-07 Thread John Patrick
I use https://github.com/takari/maven-wrapper which is being adopted and merged into maven as a core plugin as part of maven v3.7.0. For me it allows each git commit to control what version of maven to use, the developer and cicd for the same commit will be using the same version of maven as they

Re: Reporting in maven. help please

2020-11-29 Thread John Patrick
Is this the documentation you said you are reading https://maven.apache.org/plugins/index.html, as it has a reporting section for maven maintained plugins. but to highlight some, take a look at; checkstyle https://maven.apache.org/plugins/maven-checkstyle-plugin/ pmd/cpd

Re: Version ranges: bug or feature

2020-11-11 Thread John Patrick
Ranges can be used in released artifacts which I have done myself, but it means you won't have reproducible builds. So be careful and be aware if you use them... >From your version range I assume you want any v6.7.x and newer but not any v7.x release. So I would have done [6.7.0,6.999.999) I

Re: How do you get "import in3.*;" to work in a Java program when using Maven?

2021-01-17 Thread John Patrick
So what I can tell is the documentation got change on 18 Dec 2019 to mention maven. But the project has never published it into maven central. It also looks like it now uses gradle to build and from what I'm aware of gradle it doesn't have anything configured to even publish. On Sun, 17 Jan

Re: maven cannot find symbol class EJBClientResult

2022-03-06 Thread John Patrick
Is this an old company project? As maven-compiler-plugin is showing as v3.5.1 and that was released in Feb 2016. Also the group id com.mypack is not in maven central so probably in an internal company nexus or artifactory. So you might need to search for someone who previous built it. If you

Re: Run all tests (also in dependent modules), fail build at end

2022-02-26 Thread John Patrick
.g. an extension). > Next best thing is a separate extension, which I think was discussed > here before. > > Cheers, > > Falko > > Am 26.02.2022 um 12:18 schrieb John Patrick: > > So I understand the option, but for the average developer understanding > the > &

Re: Run all tests (also in dependent modules), fail build at end

2022-02-26 Thread John Patrick
So I understand the option, but for the average developer understanding the intermixed output might be a nightmare. If someone is building the code they can just do -SkipTests and -fae, fix those, then go back to run the tests. I do a similar setup on Jenkins, with this kind of Jenkinsfile

Re: Can't get Surefire to run any JUnit 5 tests

2022-03-19 Thread John Patrick
>From your stackoverflow post I move your your junit-jupiter-engine dependency to a project dependency instead of a test dependency. Eclipse is probably working as it's own IDE logic/dependencies/support, not maven's. I've also switched over to using the bom, so have config like.

Re: question java 1.7 support

2022-03-26 Thread John Patrick
Alexander, Your email says Java 1.7, your sdkman says 17 and your maven pom says 1.17. I thought maven.compiler.release only supports Java 9 and newer (The -release argument for the Java compiler, supported since Java9). If you are wanting Java 1.7 (released July 2011) then use user properties;

Re: question java 1.7 support

2022-03-26 Thread John Patrick
. If it was a type and the person has Java Home and Path set to Java 17, then use release. Also what I posted is the text from the maven compiler plugin. On Sat, 26 Mar 2022 at 15:05, Alexander Kriegisch wrote: > John Patrick schrieb am 26.03.2022 16:12 (GMT +07:00): > > &g

Re: Getting the groupid, artifact id, and version of the package under test

2022-03-30 Thread John Patrick
I would do this via a profile, default value and surefire config, so something like; withJavaAgent -javaagent:C:\JARS\agent.jar maven-surefire-plugin ${myJavaAgent} -DtheGroup=${project.groupId} -DtheArtifact=${project.artifactId} Then if you want

Re: Remove SNAPSHOT from all sub-modules, but honor version

2022-04-02 Thread John Patrick
Try https://github.com/aleksandr-m/gitflow-maven-plugin So for me dropping the -SNAPSHOT would mean I'm creating a gitflow release branch for testing, which would be as simply using that plugin as `mvn gitflow:release-start`. Not tried it with different modules having different version so it might

  1   2   >