Accessing a file specified by parameter from a submodule

2020-08-04 Thread Russell Gold
In my project https://github.com/oracle/weblogic-monitoring-exporter/, one option is to specify a file path on the command line, such as: mvn clean install -Dconfiguration=samples/configuration/servlets.yml and this works whether the path is actually absolute or relative, since the invocation i

Re: Maven project: method defineClass in class sun.misc.Unsafe cannot be applied to given types with latest Java version.

2020-08-04 Thread Russell Gold
If the definition has changed, it’s going to appear to Java to be a different method, and you won’t be able to call it, any more than you can call any method that no longer exists. That’s the challenge with working with very old code. Deprecation typically only gives you flexibility to move one

Re: Help with shading jar

2020-07-07 Thread Russell Gold
Are they part of the same build? Can you create a minimal example and post it to GitHub? There’s really not enough detail to understand what you are trying to do. > On Jul 2, 2020, at 5:18 PM, Quiyan H wrote: > > Hi All > I am stuck with one shading stuff, Need help if there is known way out.

Re: Shade plugin cannot find default setter?

2020-05-04 Thread Russell Gold
> >javax.ejb >jakarta.ejb > >javax.ejb.* > > > > > > On Mon, 4 May 2020 at 15:01, Russell Gold wrote: > >> I’m attempting to use the shade plugin to relocate some dependent cl

Shade plugin cannot find default setter?

2020-05-04 Thread Russell Gold
I’m attempting to use the shade plugin to relocate some dependent classes with the following configuration: javax.ejb jakarta.ejb javax.ejb.* but when I try running, I see: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-

Re: hi ,

2020-03-27 Thread Russell Gold
mvn jar:help The rest is assumed > On Mar 27, 2020, at 11:54 AM, Angelo Moreschini > wrote: > > I am new to maven, and I am exploring it, > So for some plugins i would like to have some additional information using > theirs "help" goal. > However (apart from the basic plugins such as archetype

Would it make sense to publish a WAR to maven central?

2019-05-30 Thread Russell Gold
The open source Weblogic Monitoring Exporter is a set of servlets that works as an exporter for Prometheus. Building it involves two steps: one build compiles the servlets and the second assembles them into a WAR, in which a configuration

Re: Surefire plugin with multi-release?

2019-04-04 Thread Russell Gold
of the maven-compiler-plugin[1] > > thanks, > Robert > > [1] https://maven.apache.org/plugins/maven-compiler-plugin/multirelease.html > > On Thu, 04 Apr 2019 18:14:58 +0200, Russell Gold > wrote: > >> As of 3.8.0, the maven-compiler-plugin will place javaNNN sour

Surefire plugin with multi-release?

2019-04-04 Thread Russell Gold
As of 3.8.0, the maven-compiler-plugin will place javaNNN source under META-INF/versions/NNN, which makes them ready for the jar plugin. But the surefire plugin ignores them! Is there a way to get the surefire plugin to run against them? They would need to be added on the class path ahead of the

Re: maven compiler plugin multiReleaseOutput option and previous versions

2019-02-12 Thread Russell Gold
r it, but can't find it. > Looks like you found a bug. > > Robert > > On Tue, 12 Feb 2019 20:03:10 +0100, Russell Gold > wrote: > >> But it doesn’t appear to be working for me. >> >>> [INFO] --- maven-compiler-plugin:3.8.0:comp

Re: maven compiler plugin multiReleaseOutput option and previous versions

2019-02-12 Thread Russell Gold
le to > /Users/rgold/projects/eclipse-ee4j/orb-gmbal-pfl/pfl-basic/target/classes/META-INF/versions/11 > [DEBUG] incrementalBuildHelper#afterRebuildExecution > [INFO] - > [ERROR] COMPILATION ERROR : > [INFO] ---

maven compiler plugin multiReleaseOutput option and previous versions

2019-02-12 Thread Russell Gold
Version 3.8.0 of the maven-compiler-plugin supports a multiReleaseOutput option which can compile classes directly to the appropriate META-INF/versions/{release} directory, which is very nice. What I don’t see, though, is how to tell it to use the previous release as its dependency. That is, gi

Maven-generated sites for multiple supported versions?

2018-11-20 Thread Russell Gold
How would one generate a site that provides access to multiple versions of the documentation? Is there standard support for such a thing, or a known plugin? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For addition

Re: Plugin parameter for project class path?

2018-11-10 Thread Russell Gold
19:02:03 +0100, Russell Gold > wrote: > >> Thanks, that was the problem :) >> >>> On Nov 7, 2018, at 3:48 PM, Robert Scholte wrote: >>> >>> Did you specify the requiresDependencyResolution of the @Mojo? >>> >>> Robert >>

Re: Plugin parameter for project class path?

2018-11-08 Thread Russell Gold
tations > On Tue, 06 Nov 2018 21:24:03 +0100, Russell Gold > wrote: > >> I am writing a plugin which does post-processing on some classes compiled in >> the build, so I have defined a parameter that I would like Maven to fill in >> with the appropriate list of depende

Re: How do I skip site-generation for modules?

2018-11-08 Thread Russell Gold
And at the same time, I would like to copy to the site directory some files that were generated during the build (and are now in one of the module jars). > On Nov 8, 2018, at 1:31 PM, Russell Gold wrote: > > I want to generate a site for my multi-module project only from the > to

How do I skip site-generation for modules?

2018-11-08 Thread Russell Gold
I want to generate a site for my multi-module project only from the top-level. How do I tell maven to skip running the site plugin on each module? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional command

Plugin parameter for project class path?

2018-11-06 Thread Russell Gold
I am writing a plugin which does post-processing on some classes compiled in the build, so I have defined a parameter that I would like Maven to fill in with the appropriate list of dependencies, but I am clearly misunderstanding how to do that. Here is what I have: > @Parameter(defaultValue

Re: Building and unit-testing MR Jars, easily

2018-04-14 Thread Russell Gold
The biggest problem with most of these is that the violate the principle of convention over configuration. My parent POM attempts to get close by hiding all of the configuration in the parent, but I think it would be much more usable if it were built into maven. That would require a fair bit of wor

Re: Building and unit-testing MR Jars, easily

2018-04-13 Thread Russell Gold
te projects with them. Jetbrains has blogged about their workaround <https://blog.jetbrains.com/idea/2017/10/creating-multi-release-jar-files-in-intellij-idea/>, but that solution bypasses the build tools. > > From: Russell Gold mailto:russell.g...@or

Re: Building and unit-testing MR Jars, easily

2018-04-12 Thread Russell Gold
to do that, but it is a clear pain point for projects like Mockito, ByteBuddy, SimpleStub, and a number of others, which have been designed to do tricky code generation or field access. > >> On Apr 12, 2018, at 10:44 AM, Martin Gainty wrote: >> >> MG>one-off request wi

Re: Building and unit-testing MR Jars, easily

2018-04-12 Thread Russell Gold
he approach I have described. If you are actively working on adding MR capabilities to the compiler plugin, is there something I can do to help? > On Apr 12, 2018, at 10:44 AM, Martin Gainty wrote: > > MG>one-off request with ant only approach to compiling MR jars > >

Re: Building and unit-testing MR Jars, easily

2018-04-12 Thread Russell Gold
> On Apr 11, 2018, at 12:36 PM, Robert Scholte wrote: > > On Wed, 11 Apr 2018 14:25:37 +0200, Russell Gold > wrote: > >> Hi Robert, >> >> I used properties because I need to trigger multiple profiles, depending on >> whether we’re building the MR ja

Re: Building and unit-testing MR Jars, easily

2018-04-11 Thread Russell Gold
ttests are executed. So you should run the build X times, once > for every multirelease version. > > thanks, > Robert > > > On Tue, 03 Apr 2018 21:42:39 +0200, Russell Gold > wrote: > >> I have just developed a new and easier way for building MR Jars >&g

Building and unit-testing MR Jars, easily

2018-04-03 Thread Russell Gold
I have just developed a new and easier way for building MR Jars , while waiting for the capability to be built into Maven. This approach is not only simple to set up (just use the designated parent POM, if you can), it lets you unit test for an

Re: Unexpected copying / recompiling

2018-03-05 Thread Russell Gold
UID-277D77C7-0F96-40A6-8411-A264B6F28A46 > > On Mon, 05 Mar 2018 19:29:11 +0100, Russell Gold > wrote: > >> Thanks, >> >> That does indeed prevent the recompilation. >> >> What do I need to do to prevent the superfluous recopying? >> >> Thank

Re: Unexpected copying / recompiling

2018-03-05 Thread Russell Gold
x27;s causing issues. Try adding > -Xpkginfo:always > > thanks, > Robert > > > [1] https://issues.apache.org/jira/browse/MCOMPILER-205 > > On Mon, 05 Mar 2018 17:03:29 +0100, Russell Gold > wrote: > >> In the project at https://github.com/oracle/weblogic-k

Unexpected copying / recompiling

2018-03-05 Thread Russell Gold
In the project at https://github.com/oracle/weblogic-kubernetes-operator, repeated runs of ‘mvn compile’ insist on copying the resources and recompiling all of the source, every time. How do I fix that? Thanks, Russ - To unsubsc

Re: Problems Using ANTLR4 (Packaged Classes Not Found in Generated Code)

2017-10-29 Thread Russell Gold
Interesting. I see: > Durendal:antlr4-mvn russgold$ mvn clean compile > [INFO] Scanning for projects... > [INFO] > [INFO] > > [INFO] Building antlr4-mvn 1.0-SNAPSHOT > [INFO] > -

Re: Overriding the site plugin

2017-10-15 Thread Russell Gold
Have you tried adding the desired maven-site-plugin (with version) as a project dependency? > On Oct 15, 2017, at 12:54 PM, Mark Raynsford > wrote: > > Hello. > > When one types "mvn site", it seems that the site plugin that's included > with the local Maven install is executed (which then ru

Re: Need to pass properties to the dependency POM file

2017-10-10 Thread Russell Gold
Sounds as though you may want to use “import” scope https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html > On Oct 10, 2017, at 7:26 AM, Bikash Chandra Barad > wrote: > > Hi, > > I am trying to grouping the dependencies into a pom(pom-deps.pom)file and > add

Re: Maven Extension Idea: iJar support

2017-10-04 Thread Russell Gold
Does this iJar have more information than a regular JAR? If not, what is the benefit? If so, where is this information coming from? The closest thing I can think of is the new Java 9 module system, which defines what is visible; presumably, that information would be useful in such a determinati

Re: Activating a profile if an executable exists on the path?

2017-10-01 Thread Russell Gold
If you know where the file should be, certainly: path-to-dot-file ... You can specify either or depending on what you want the profile to do > On Oct 1, 2017, at 8:25 PM, Alex O'

Re: unable to generate site with module-info defined

2017-10-01 Thread Russell Gold
e-plugin 3.4, and > run "mvn javadoc:javadoc": perhaps you found a new issue with this plugin > regarding Java 9 modules > > Regards, > > Hervé > > Le samedi 30 septembre 2017, 21:57:00 CEST Russell Gold a écrit : >> And here is the stack trace with 3

Re: unable to generate site with module-info defined

2017-09-30 Thread Russell Gold
s though DefaultBuildPluginManager doesn’t know about the change in java version formats. I am running: > /Users/rgold/projects/meterware/simplestub> mvn -version > Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; > 2017-04-03T15:39:06-04:00) > Maven home: /opt/

Re: unable to generate site with module-info defined

2017-09-30 Thread Russell Gold
e will give you much > better insight on the cause of the failure: see https://issues.apache.org/ > jira/browse/MSITE-713 > > Regards, > > Hervé > > Le samedi 30 septembre 2017, 13:15:36 CEST Hervé BOUTEMY a écrit : >> Hi Russel, >> >> Can you give more sta

unable to generate site with module-info defined

2017-09-29 Thread Russell Gold
I have added a module-info to my project, and now when I run mvn site, it is failing: > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on > project simplestub: Error during page generation >

Re: How to exclude artifacts inherited from a parent POM?

2017-09-27 Thread Russell Gold
What problem is caused by the superfluous dependencies? > On Sep 27, 2017, at 9:14 PM, mingleizhang wrote: > > The actual thing is I can not modify the pom in parent. That is my issue. > > > > > > > > > At 2017-09-28 09:03:38, "Guang Chao" wrote: >> On Mon, Sep 25, 2017 at 2:38 AM, Ande

Re: how can I prevent maven-deploy-plugin:deploy-file from deploying main artifact?

2017-09-19 Thread Russell Gold
loy” goal is > currently not executing. > > The problem seems to me that the “deploy-file” goal is deploying both the > file I want in addtion to the main artifact. > > Maybe this is a bug? Seems like it could be. > > - JK > > On 9/19/17, 3:09 PM, "Russell

Re: how can I prevent maven-deploy-plugin:deploy-file from deploying main artifact?

2017-09-19 Thread Russell Gold
Instead of default-deploy none deploy try default-deploy none > On Sep 19, 2017, at 5:57 PM, James Klo wrote: > > I’m using the io.fabric8:maven-docker-plugin to laun

Re: Release plugin: why are my releases tagged as snapshots?

2017-09-10 Thread Russell Gold
I see that after you build the release version, you are then building the snapshot version. It is the latter that is being uploaded: > > Uploaded: > https://oss.sonatype.org/content/repositories/snapshots/io/github/pr0methean/betterrandom/BetterRandom/0.9.2.11-SNAPSHOT/Better

Re: Are multi-release jars supported?

2017-08-28 Thread Russell Gold
; don't think it will be used that much. > > Any suggestions to improve this are welcome :) > > Robert > > [1] https://github.com/hboutemy/maven-jep238 > > On Mon, 28 Aug 2017 16:18:40 +0200, Russell Gold > wrote: > >> I have found a number of workaround

Are multi-release jars supported?

2017-08-28 Thread Russell Gold
I have found a number of workarounds for MR jars, including https://github.com/metlos/multi-release-jar-maven-plugin, which makes the jars relatively easy to build, but lacks support for unit tests and doesn’t allow building in lower JDKs. Is there built-in maven support now? If not, is there a

Re: How does maven handle Java module dependencies?

2017-08-28 Thread Russell Gold
or each > package contains tests invoked by the test framework." > > So there's enough to improve to make it all work. > I would say "any help is appreciated", but I'll leave it up to Tibor. > > thanks > Robert > > [1] https://issues.apache.org/j

Re: How does maven handle Java module dependencies?

2017-08-27 Thread Russell Gold
; To create an installer, I think you're referring to JLink. Karl Heinz is > preparing the maven-jlink-plugin. > > thanks, > Robert > > On Sun, 27 Aug 2017 13:50:46 +0200, Russell Gold > wrote: > >> I’m sure this must have been described somewhere; is there an o

Re: How does maven handle Java module dependencies?

2017-08-27 Thread Russell Gold
there really nothing to be done in the meantime? > On Aug 27, 2017, at 7:50 AM, Russell Gold wrote: > > I’m sure this must have been described somewhere; is there an overall > direction document for supporting the java platform module system? > > case 1) > > I want to

How does maven handle Java module dependencies?

2017-08-27 Thread Russell Gold
I’m sure this must have been described somewhere; is there an overall direction document for supporting the java platform module system? case 1) I want to compile against another project on the module path rather than the class path. I do this in order to ensure compile-time checking for attemp

Re: Transitive dependencies and version management

2017-08-17 Thread Russell Gold
Have you considered using snapshot versions for C? If both A and B depend on a snapshot, they will automatically take the latest version in the repository. https://stackoverflow.com/questions/5901378/what-exactly-is-a-maven-snapshot-and-why-do-we-need-it#5901460 > On Aug 17, 2017, at 8:34 PM, H

Re: options

2017-08-17 Thread Russell Gold
Hi Tomaž, What do you mean by, “downloaded”? Do you mean where the local maven repository is located? You can configure that in settings.xml Regards, Russ > On Aug 17, 2017, at 5:25 AM, Tomaž Majerhold wrote: > > Hello! > > Is it possible(some optio

Re: Unable to do a release with Java 9

2017-08-16 Thread Russell Gold
th > it to Central. > > Anyhow, I think we need more info. I would expect at least some logging when > the signing would fail. > > thanks, > Robert > > On Wed, 16 Aug 2017 19:21:13 +0200, Russell Gold > wrote: > >> This is the first time I have tried doi

Unable to do a release with Java 9

2017-08-16 Thread Russell Gold
This is the first time I have tried doing a release since the -ea designator was removed from Java 9. I have upgraded the enforcer and javadoc plugins to 3.0.0-M1 I have filed a bug against the site plugin But when I try to close the uploaded r

Re: dependency question

2017-04-07 Thread Russell Gold
> time for this scenario. > > -Original Message----- > From: Russell Gold [mailto:russell.g...@oracle.com] > Sent: Thursday, April 6, 2017 2:27 PM > To: Maven Users List > Subject: Re: dependency question > > The simplest way is simply to use a snapshot version of A

Re: dependency question

2017-04-06 Thread Russell Gold
The simplest way is simply to use a snapshot version of A. That way B will always use the latest snapshot. When you finally release A, you can have B point to the released version instead of the snapshot. > On Apr 6, 2017, at 2:52 PM, Magnanao, Hector wrote: > > I have to 2 java projects a and

Re: How to add class file to build & classpath?

2017-04-06 Thread Russell Gold
Hi David, Is this class generated from data files rather than compiled classes? If so, can you bind the plugin run with the generate-resources phase? That would make it available at compile time. > On Apr 6, 2017, at 11:48 AM, David Hoffer wrote: > > I'm using exec-maven-plugin to call a ma

Build using toolchains version, but run unit tests against various JDKs?

2017-03-03 Thread Russell Gold
I am using the toolchains plugin to ensure that the jars are produced with the correct JDK version; however, I want to be able to unit test against both that version and later versions. Is there a way to do that? The surefire plugin just selects the same version as was used to build. Thanks, Ru

Re: Is it time to change the defaults for source and target?

2017-01-18 Thread Russell Gold
1.6 or later. Russ > On Jan 18, 2017, at 3:30 PM, Jochen Wiedmann > wrote: > > On Wed, Jan 18, 2017 at 4:37 PM, Russell Gold wrote: > >> These settings are incompatible with Java 9. > > How so? > > > > -- > The next time you h

Is it time to change the defaults for source and target?

2017-01-18 Thread Russell Gold
Currently, the maven-compiler-plugin defaults to 1.5 for the values of “source” and “target.” But Java 1.5 was end-of-lifed some time ago, and Maven doesn’t even run with lower than 1.6. These settings are incompatible with Java 9. Would it not make sense now to change those defaults to at least

Re: Adding an add-on jar to a project

2015-09-07 Thread Russell Gold
t;> >> http://onjavahell.blogspot.in/2009/12/releasing-multi-module-project-using.html >> >> Cheers, >> Niraj >> >> On Mon, Sep 7, 2015 at 2:18 AM, Russell Gold wrote: >> >>> Hi, >>> >>> I am trying to update my library, Simp

Re: Adding an add-on jar to a project

2015-09-07 Thread Russell Gold
> On Mon, Sep 7, 2015 at 2:18 AM, Russell Gold wrote: > >> Hi, >> >> I am trying to update my library, Simplestub with an optional add-on jar, >> simplestub-asm. It seemed to me that the simplest thing would be to covert >> it to a multi-module project, so I m

Adding an add-on jar to a project

2015-09-06 Thread Russell Gold
Hi, I am trying to update my library, Simplestub with an optional add-on jar, simplestub-asm. It seemed to me that the simplest thing would be to covert it to a multi-module project, so I moved the original project down a level, created a parent pom in its place, and the add-on as a second nest

Re: Problems compiling source java with different encodings

2015-08-25 Thread Russell Gold
Do you have the following in your pom.xml? UTF-8 If not, do you know what encoding is being used in your source file? > On Aug 25, 2015, at 4:01 PM, Néstor Boscán wrote: > > Hi > > I have a legacy code that compiles correctly using IDEA or JDeveloper. But > if I try to use

Re: compile error with aspose.pdf

2015-08-25 Thread Russell Gold
What happens when you run: mvn -X compile? do you really mean to have a package named aspose.pdf? > On Aug 25, 2015, at 2:59 PM, Magnanao, Hector wrote: > > Can anyone tell me how to resolve this compile error ? I've uploaded the jar > locally and I still get the error. > > [ERROR] Failed

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread Russell Gold
mvn -X compile Look at the listing; it will show you all of the dependencies. > On Aug 7, 2015, at 7:14 AM, James Green wrote: > > See in-line > > On 7 August 2015 at 12:05, Björn Raupach > wrote: > >> hi, >> >>> On 07 Aug 2015, at 12:33, James Green wrote: >>> >>> Hi, >>> >>> I want to

Re: E-Book "Beter Builds with Maven" seems to be missing

2014-11-24 Thread Russell Gold
I found it on Scribd - I assume this is the one you mean. http://www.scribd.com/doc/238927/Better-Builds-With-Maven > On Nov 11, 2014, at 3:09 AM, Nick Stolwijk wrote: > > Hi all, > > It seems the link from the External Resources[1] to the e-book "Beter > Builds with Maven'[2] is broken. > >

Re: Help with converting existing ant build to maven is required

2014-04-29 Thread Russell Gold
HI Maxim, Here is how I do child projects: com.meterware.totalizer totalizer 1.0-SNAPSHOT .. server Note that I am specifying the parent project, but neither the group nor the version for the child project - just the artifactId. The others are au

Re: Different profiles with different surefire excludes and includes doesn't work

2014-04-08 Thread Russell Gold
HI Lahiru, I see that both of your profiles are active by default, so you’re going to get both. That means that Maven has to combine them for you, which is likely to result in something you don’t want. Regards, Russ On Apr 8, 2014, at 12:02 PM, Lahiru Gunathilake wrote: > Hi All, > > I ma

Re: Configuring SCM for github

2014-03-19 Thread Russell Gold
HI Eric, I think you are missing the “.git” extensions in your urls. Here’s the ones I use. https://github.com/meterware/simplestub.git scm:git:https://github.com/meterware/simplestub.git scm:git:https://github.com/meterware/simplestub.git On Mar 19, 2014, at

Re: Maven install phase - Access is denied

2014-01-08 Thread Russell Gold
I suspect it has to do with your customization of the install goal: > > org.apache.maven.plugins > maven-install-plugin > 2.5.1 > > certloader-custo

Re: Maven install phase - Access is denied

2014-01-08 Thread Russell Gold
Hi Andrew, can you show us the result of doing this when you run the -X switch? It is likely to provide more information about what is going on; a copy of your pom.xml would also be very helpful. Thanks, Russ On Jan 7, 2014, at 11:29 PM, andre999 wrote: > Hi all, > > I have a project which m

Re: short and snappy description of what Maven is

2014-01-06 Thread Russell Gold
I missed this earlier - I agree. The biggest advantage I find with Maven over tools that have adopted its dependency management philosophy is that every build essentially follows a predictable pattern, rather than being free form. A new developer automatically knows how to invoke it. That is mos

Re: short and snappy description of what Maven is

2014-01-06 Thread Russell Gold
with a follow-up sentence to amplify/explain this one. >> Most programmers or project managers should be able to find the time to >> read 2 or maybe 3 sentences before deciding on a build tool. >> As long as each sentence draws the person deeper into Maven, that would >>

Re: short and snappy description of what Maven is

2014-01-06 Thread Russell Gold
Of course, you could say that about Gradle, too. And ant now does have the ability to use those dependency features. I went through this when creating my video course (not in the sig because this is work email). It’s not clear to me that you can make a one sentence description that will provide

Re: How to run a script only for top-level project using maven-antrun-plugin?

2013-12-23 Thread Russell Gold
HI Sumit, The simplest thing might be to make a separate module which does nothing but run your script. Then it would only run when executing that module. If you are doing this once for each build, you don’t even need the profile. Regards, Russ On Dec 23, 2013, at 3:16 PM, Sumit Kumar wrote:

Re: Fine versioning on multi-modules project ?...

2013-12-21 Thread Russell Gold
HI Benoit, Given you scenario, it really sounds as though your project is essentially a single project, and your modules should just inherit the version from the parent. Maven tools, especially the release plugin, make this easy. If not, I would regard what you are creating is a set of interrel

Re: Question: Maven Pathes includes and others

2013-12-18 Thread Russell Gold
Hi Martin, On Dec 13, 2013, at 9:37 AM, Hoffmann Martin (UniCredit Business Integrated Solutions) wrote: > > > ${basedir}/${project.parent.relativePath} > Can you co

Re: Maven Site Generation for foreign projects

2013-12-18 Thread Russell Gold
Hi Ralf, You should be able to create your own pages to do just about anything you want - but you could lose the automatic reporting that Maven supports per module, if you are not generating the site from the module poms themselves. Why do you not want to configure the build pom for site genera

Re: Premature decomposition of projects

2013-11-22 Thread Russell Gold
It’s also an attempt to create a modular system, in hopes of minimizing codebase size and providing custom functionality. It’s thus closely related to a lot of the modularity ideas that have come and gone over time, without the judgment of what is properly a “module.” I’ve seen multi-hundred mod

Re: Is it possible to release a child module that isn't listed in the parent's list of modules?

2013-11-19 Thread Russell Gold
The release plugin does an awful lot more than deploy. The usual case is that during development, your version is set to a snapshot - the plugin changes it to a release version, commits the change to CM and tags it, among other things. Deploy won’t do any of that. That said, your point about th

Re: Maven Extension automatic deployment

2013-11-17 Thread Russell Gold
Hi James, There are some things I don’t understand about your scenario. You say you “temporarily” have a maven build extension. What does that mean? Are you currently using ant? And using ant tasks for maven to build the maven portions? Or now using maven and having it call an old build tool? M

Re: maven-failsafe-plugin: what is it actually intended for?

2013-11-15 Thread Russell Gold
It appears that there are multiple use cases for failsafe. I tend to use it for slow tests that don’t necessarily need to pass at the moment, but for which I want to know the percentage passing. Accordingly, I bind the integration-test goal but NOT the verify goal. On Nov 15, 2013, at 1:57 AM,

Re: Access denied downloading artifact from nexus

2013-11-14 Thread Russell Gold
only certain individuals in your organization granted the right to use it? On Nov 14, 2013, at 4:56 PM, KARR, DAVID wrote: >> -Original Message- >> From: Russell Gold [mailto:r...@gold-family.us] >> Sent: Thursday, November 14, 2013 1:44 PM >> To: Maven Users Lis

Re: Access denied downloading artifact from nexus

2013-11-14 Thread Russell Gold
HI David. Try accessing http://nexusprohost.com:8084/nexus/content/groups/cditspoc/com/oracle/coherence/coherence/12.1.2-0-0/coherence-12.1.2-0-0.pom via your browser. That will test if it is a maven problem or a nexus problem. On Nov 14, 2013, at 4:35 PM, KARR, DAVID wrote: > (Sorry for the i

Re: maven-failsafe-plugin: what is it actually intended for?

2013-11-13 Thread Russell Gold
Hi James, Start with the basic Agile presumption about unit tests: they are very fast (you should be able to run about 100 unit tests in a second), so that you don’t mind running them with every compile, and must always run at 100% before checkin. Integration tests are pretty much anything else

Re: best way to attach source for debugging maven plugin

2013-11-05 Thread Russell Gold
Bringing in the source should be a function of your editor. What are you using? It works fine for me in IntelliJ - Russ On Nov 5, 2013, at 6:09 PM, Steve Cohen wrote: > On 11/05/2013 04:22 PM, Olivier Lamy wrote: >> Use mvnDebug cli instead of mvn >> >> -- >> Olivier >> On Nov 6, 2013 8:09 AM

Simplified syntax?

2013-11-01 Thread Russell Gold
Has there been any discussion to consider simplifying the syntaxof pom files, such as allowing them to be written in JSON? - Author, Getting Started with Apache Maven Come read my webnovel, Take a Lemon

Re: How can I force a Maven task to depend on other Maven tasks?

2013-10-31 Thread Russell Gold
No need to specify. Any plugins bound to generate-sources will run before the compile phase. Are you using custom plugins? Multiple modules? Maybe show us your pom? On Oct 31, 2013, at 11:23 AM, Andrew Pennebaker wrote: >> It sounds as though you might have intermittent tests. > > > Good gue

Re: How can I force a Maven task to depend on other Maven tasks?

2013-10-31 Thread Russell Gold
‘mvn test’ should compile any code that needs to be compiled. It sounds as though you might have intermittent tests. Can you show us a log of such a test run followed by a “compile test” run? - Russ On Oct 31, 2013, at 11:00 AM, Andrew Pennebaker wrote: > When I run `mvn test`, I sometimes ge

Re: Best Practice for testing code that uses provided dependencies

2013-10-27 Thread Russell Gold
On Oct 27, 2013, at 9:38 PM, Ron Wheeler wrote: > On 27/10/2013 7:59 PM, Russell Gold wrote: >> I’m actually running into the same issue, and my plan was s to take >> advantage of the situation to provide test versions of the classes. What I >> found was that the “provi

Re: Best Practice for testing code that uses provided dependencies

2013-10-27 Thread Russell Gold
I’m actually running into the same issue, and my plan was s to take advantage of the situation to provide test versions of the classes. What I found was that the “provided” dependency wound up in the test class path. So I think that the fact that it is provided should have no impact on how you

Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-26 Thread Russell Gold
Hi sahil, That’s not exactly what I meant. How are your repository tags set up? How is your nexus repo configured? Are you certain than Maven is treated snapshots as snapshots rather than releases? What commands are you using to upload them? Maven should not actually be aware of the time stamps

Re: how to convert unique snaphot into non-unique snaphot on downloading from nexus

2013-10-25 Thread Russell Gold
Can you explain how you are copying the artifacts currently? You say that your dependencies are being packaged with a timestamp. How are you doing this? And then you say that you are copying the flex artifact with a plugin. What plugin is that? I think that you need to explain a bit more what i

Adding to Books on Maven?

2013-10-25 Thread Russell Gold
How does one get added to the list of available Maven publications on the site (http://maven.apache.org/articles.html)? - Author, Getting Started with Apache Maven Come read my webnovel, Take a Lemon

Re: Getting restSQL to work with maven

2013-10-24 Thread Russell Gold
Hi Robert, Did you add this to your POM? If so, Eclipse should try to download the jar from maven central into your local repo. If you didn't, just putting it in the repo probably won't do much. - Russ On Oct 24, 2013, at 5:47 PM, Robert Dailey wrote: > So my goal right now is to generate an

Re: Maven - slf4j noclassdeffound error

2013-10-24 Thread Russell Gold
Did you by any chance install using apt-get? I've seen a number of cases where doing so leads to errors like this. Try installing manually from the website. On Oct 24, 2013, at 12:31 AM, gunrock seenu wrote: > ~/M101J$ mvn --version > Apache Maven 3.0.4 > Maven home: /usr/share/maven > Java ver

Re: Maven - slf4j noclassdeffound issue

2013-10-23 Thread Russell Gold
Hi Seenu, What does the source code look like for spark.route.RouteMatcherFactory? - Russ On Oct 23, 2013, at 7:52 AM, Seenu wrote: > I am using intellij and maven, > > I have used the following pom.xml : > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchem

Re: Blacklisting during Dependency Location

2013-10-23 Thread Russell Gold
wrote: > > Must login to see the dependencies. So in the settings.xml we have a > section to define the repository location and a > section to match the repository id with a username and password. > > Robert > > > On 10/23/2013 12:06 AM, Russell Gold wrote: &

Re: Blacklisting during Dependency Location

2013-10-22 Thread Russell Gold
Are you saying that it takes a login to see the dependencies? So once you login, you are presented with a set of directories? Or possibly you are pointing to the control address rather than the dependency address? - Russ On Oct 23, 2013, at 12:01 AM, Robert Kuropkat wrote: > > I am trying

Re: passing the deployed artifact URL to another system

2013-10-22 Thread Russell Gold
gt; Can you specify individual timestamped snapshots in a GAV based request? > > Anders, > I will look into the nexus pro/plugin | Artifactory route, thanks. > > Regards > > Adam D > > > On 22/10/2013 13:13, "Russell Gold" wrote: > >> HI Ada

Re: passing the deployed artifact URL to another system

2013-10-22 Thread Russell Gold
HI Adam, I'd think this would be easier to handle using the artifacts' GAV coordinates directly rather than the remote URL. Those should be predictable and you'd probably use Maven to download them anyway. So why not use the coordinates as your key? - Russ On Oct 22, 2013, at 6:10 AM, Adam Do

Re: Problem downloading dependencies

2013-10-22 Thread Russell Gold
Hi Robert, I don't see the artifact you want in the repository you listed. I don't see it in Maven Central, either. So: 1) What makes you think such an artifact exists? It looks to me as though all of the spring artifacts have names beginning with "spring-osgi" 2) Why are you trying to use a sn

  1   2   3   >