is it possible to use maven flatten plugin with maven shade plugin?

2018-04-04 Thread Richard Sand
Hi all, Has anyone tried using the MojoHaus flatten plugin in conjunction with Maven shade plugin? The trick is to get the flatten plugin to flatten the DRP after shading, instead of the original pom. My goal is for the uber-jar to include a standalone POM that does not reference any parent

Re: Where does shaded JAR get its POM?

2017-09-04 Thread Richard Sand
.commons org.apache.commons.logging.* full-clear package shade com.idfconnect.ssorest:common-tools:tests commons-logging:commons-logging junit:junit

Re: generate a POM with dependencies only?

2017-05-03 Thread Richard Sand
Woohoo! Thanks Robert! -Richard -- Original Message -- From: "Robert Scholte" To: "Maven Users List" Sent: 5/3/2017 2:38:56 PM Subject: Re: generate a POM with dependencies only? Yes, http://www.mojohaus.org/flatten-maven-plugin/ On Wed, 03 May 2017 20:37:52

generate a POM with dependencies only?

2017-05-03 Thread Richard Sand
Is there a plugin/goal that will generate a "reduced" POM for a project that only contains the dependencies, but none of the other build/profile or any other tags? May sound like a strange ask - but the scenario I'm facing is that I'm building a particular set of jars/wars/zips (using assembly

Re: Please officially support RELEASE and LATEST (was: Re: dependency question)

2017-04-24 Thread Richard Sand
Are you using the versions plugin? I can't live without it, I've got it in my corporate master base POM http://www.mojohaus.org/versions-maven-plugin/ -Richard -- Original Message -- From: "Curtis Rueden" To: "Maven Users List" Sent: 4/24/2017 1:46:59 PM Subject: Re: Please official

RE: short and snappy description of what Maven is

2014-01-06 Thread Richard Sand
When people ask me what Maven is, I tell them it's a build and library management tool. If I take it a step further I explain it manages library and dependency versions akin to how SCM systems manage source code. It's not a perfect analogy but I find it works for a lay description. Ri

RE: Looking for class property-substitution plugin

2013-09-30 Thread Richard Sand
Hi Russel, Take a look at the templating plugin provided by Codehaus: http://mojo.codehaus.org/templating-maven-plugin/ Its flagged as pre-release but it worked fine for me. In my case, I needed to insert the filename of a resolved dependency (a war file) into a configuration file I generated fo

RE: Obtain a dependency version for output in resource filtering

2013-09-29 Thread Richard Sand
inal Message- From: Mark Eggers [mailto:its_toas...@yahoo.com] Sent: Sunday, September 29, 2013 5:55 PM To: Maven Users List Subject: Re: Obtain a dependency version for output in resource filtering On 9/29/2013 2:26 PM, Richard Sand wrote: > Hi Mark- I posted the same exact question a fe

Re: Obtain a dependency version for output in resource filtering

2013-09-29 Thread Richard Sand
Hi Mark- I posted the same exact question a few weeks ago and was told I was being unmaven... :-) I wrote a plugin to do exactly what you're asking- ill put it on sourceforge this week. Sent from my iPad On Sep 29, 2013, at 2:24 PM, Mark Eggers wrote: > Folks, > > I have a requirement to do th

Cannot find 'httpConfiguration' in class org.apache.maven.wagon.providers.http.LightweightHttpsWagon

2013-09-18 Thread Richard Sand
Can anyone tell me the providence of this error message? [WARNING] Could not apply configuration for idfconnect.com to wagon org.apache.maven.wagon.providers.http.LightweightHttpsWagon:Cannot find 'httpConfiguration' in class org.apache.maven.wagon.providers.http.LightweightHttpsWagon Best regard

RE: [help]mvn clean install -Pdb,mysql -Dimpex.dba.password=[dbapassword]

2013-09-16 Thread Richard Sand
You're getting a database error, not a maven error. You're going to need to pose your question to a kuali forum to get the help you need. The specific error you're seeing is because a sql script is trying to create a view based on a table that doesn't exist. Since the earlier scripts succeeded I'd

RE: creating a project property from dependency details

2013-09-16 Thread Richard Sand
re wrong and how your approach is more obvious, less hacky and leads to a simpler overall build once encapsulated in an appropriate plugin(s) / build extension(s) / packaging lifecycle(s) The stuff you describe is *screaming* hack layered on hack layered on hack... Which is an anti pattern to my mind On

creating a project property from dependency details

2013-09-16 Thread Richard Sand
Hi all, I’ve a project where I’m creating an assembly from a zipped up app server and a war file pre-deployed. The war file may be one of several different versions and (optionally) classifiers, which I provide via build properties: com.idfconne

list of available properties

2013-09-11 Thread Richard Sand
Can someone point me to the page that has the complete list of all of the default properties available for use in a pom/plugin? My google powers are failing me. Is there a dynamic property created for each resolved artifact? I’m trying to get a property containing the full file name of a given a

RE: need filesystem-level operations in assembly plugin

2013-09-11 Thread Richard Sand
Richard Sand: > Hi all - I'm using maven-assembly-plugin to create zip distributions > of our web application. It takes in the Apache Tomcat zip artifact, > and the war artifact for the app, and creates an assembly. > > There are a couple of file operations I haven't figured

need filesystem-level operations in assembly plugin

2013-09-10 Thread Richard Sand
Hi all - I'm using maven-assembly-plugin to create zip distributions of our web application. It takes in the Apache Tomcat zip artifact, and the war artifact for the app, and creates an assembly. There are a couple of file operations I haven't figured out how to do yet. For example, Tomcat unzips

RE: shade plugin usage

2013-09-04 Thread Richard Sand
rate coordinate would be to have a separate pom with reduced deps. This indicates that you plan on use the pom to get the dependencies and in that case you should try to stick with the original jar instead and work with the proper set of deps. /Anders On Wed, Sep 4, 2013 at 7:42 AM, Richard Sand w

shade plugin usage

2013-09-03 Thread Richard Sand
I've a project that uses shade to create an uberjar - since I want that uberjar artifact to be available for use in other projects, does it make sense to *not* attach the artifact in shade, but rather have shade create the uberjar and dependency-reduced-pom, and then use install:install-file to gra

RE: using a plugin twice?

2013-09-03 Thread Richard Sand
different id On Tuesday, 3 September 2013, Richard Sand wrote: > I've a feeling I know the answer at this point, but: > > Is it possible to use the same plugin twice in the same maven session? E.g. > if I want to use maven-assembly-plugin to create two different assemblies? > Or i

using a plugin twice?

2013-09-03 Thread Richard Sand
I've a feeling I know the answer at this point, but: Is it possible to use the same plugin twice in the same maven session? E.g. if I want to use maven-assembly-plugin to create two different assemblies? Or if I wanted the maven-shade-plugin to create a zip and a tarball but with slightly differen

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-28 Thread Richard Sand
Hi all, Wayne, thanks for the feedback. I understand where you're coming from. I've written out here a concrete example of what I want to do with these plugins, and with maven in general wrt passing generated artifacts between plugins. Hopefully others will weigh in on whether this approach is

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-27 Thread Richard Sand
sday, August 27, 2013 3:32 AM To: Maven Users List Subject: Re: artifact attached by plugin not appearing in subsequent plugins On Tuesday, 27 August 2013, Barrie Treloar wrote: > On 21 August 2013 00:42, Richard Sand > > wrote: > > Is there any merit to the idea of having a configu

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-26 Thread Richard Sand
Hi Wayne - that seems a very inefficient approach, having 5 or 6 separate modules to manage to achieve a single assembly. The point is that maven does have phases, goals, lifecycles - why not use them? The MavenProject object already provides the mechanism for one plugin to see the attachments f

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-26 Thread Richard Sand
Sorry just correcting myself, I was referring to the maven shade plugin not mojo shade plugin. -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Monday, August 26, 2013 4:54 PM To: 'Maven Users List'; 'Maven Developers List' S

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-26 Thread Richard Sand
n Maven modules of their own. Regards Mirko -- Sent from my mobile On Aug 20, 2013 5:13 PM, "Richard Sand" wrote: > Is there any merit to the idea of having a configuration option in > maven-war-plugin to include attached artifacts in the webapp in the > same way it includes

finished 1.0 of my IDFC obfuscation plugin

2013-08-22 Thread Richard Sand
Hey all - just wanted to let the list know that I completed the 1.0 release of my obfuscation maven plugin and its available on the central repo. The full artifact is "com.idfconnect.devtools:idfc-proguard-maven-plugin:1.0.0". I got some very helpful answers from the list - mainly I was stuck on t

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-20 Thread Richard Sand
42 AM, "Richard Sand" wrote: > I concluded that this was a missing feature of maven-war-plugin, where > it simply wasn't looking to see if there were attached resources. > > I supplied a simple patch to the handleArtifacts() method to have that > method also handle a

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-20 Thread Richard Sand
d in a war? You should probably create a separate module project, which creates the jar and just include this jar as runtime dependency in your war project. Regards Mirko -- Sent from my mobile On Aug 20, 2013 7:42 AM, "Richard Sand" wrote: > I concluded that this was a missing feat

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-19 Thread Richard Sand
https://jira.codehaus.org/browse/MWAR-304 -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Monday, August 19, 2013 6:19 PM To: 'Maven Users List' Subject: artifact attached by plugin not appearing in subsequent plugins Hi all - I've been stuck for a wh

artifact attached by plugin not appearing in subsequent plugins

2013-08-19 Thread Richard Sand
Hi all - I've been stuck for a while trying to get an artifact injected by a plugin to apply to subsequent plugins/goals in a project. I have a project which generates a web application. My use case here is the obfuscator plugin which I wrote, which creates a jar file called "-small.jar". The plug

RE: Difference between Eclipse build errors and Maven build dependencies

2013-08-19 Thread Richard Sand
and causes no grief or extra work as you work. Ron On 19/08/2013 11:54 AM, Richard Sand wrote: > Hi TenLeftFingers - I've struggled with this a lot in the past few > months - here's what I've learned: > > When you have everything set up right, there should neither be

RE: Difference between Eclipse build errors and Maven build dependencies

2013-08-19 Thread Richard Sand
Hi TenLeftFingers - I've struggled with this a lot in the past few months - here's what I've learned: When you have everything set up right, there should neither be eclipse errors nor maven errors. When an eclipse project is a maven project, m2e (the eclipse-maven integration) will automatically

how to get rid of the "repository will be blacklisted" warnings?

2013-08-16 Thread Richard Sand
I want these warnings to go away and leave me be :-) They seem benign, or at least I haven't seen their negative effects yet... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: us

RE: [DISCUSS] Should the Maven PMC be an example of how we want the Maven Community to behave (was Re: svn commit: r1506778 - /maven/site/trunk/content/markdown/project-roles.md)

2013-07-26 Thread Richard Sand
"Sometimes groupthink does not reach the best conclusion and an individual effort may be required to move the state of the art. OTOH, the majority should not be held up by a person with ideas that the majority does not want to pursue. " So what you're saying is, the needs of the many outweigh th

RE: API to resolve an artifact in Maven3

2013-07-22 Thread Richard Sand
examples for you to base on. If you have question, you can post it here at user group, there are plenty of dev folks here always trying to help out -D On Mon, Jul 22, 2013 at 2:55 PM, Richard Sand wrote: > Ok good points, thanks Ron. I'll try what you suggested, and see if I > c

RE: API to resolve an artifact in Maven3

2013-07-22 Thread Richard Sand
think there are plenty of examples for you to base on. If you have > > question, you can post it here at user group, there are plenty of > > dev > folks > > here always trying to help out > > > > -D > > > > > > On Mon, Jul 22, 2013 at 2:55 PM, Richa

RE: API to resolve an artifact in Maven3

2013-07-22 Thread Richard Sand
om: Ron Wheeler [mailto:rwhee...@artifact-software.com] Sent: Monday, July 22, 2013 5:06 PM To: Richard Sand Cc: 'Maven Users List' Subject: Re: API to resolve an artifact in Maven3 My point is that most of the people here are users and not interested in plug-in development or knowledgeable about pl

RE: API to resolve an artifact in Maven3

2013-07-22 Thread Richard Sand
ll need information that is of no use to anyone else. It appears that you are trying to extend Maven in a way that is outside what Maven likes to do so you can expect that some information will be hard to find outside the code. Ron On 22/07/2013 2:54 PM, Richard Sand wrote: > Hey Russell -

RE: API to resolve an artifact in Maven3

2013-07-22 Thread Richard Sand
's easier, I may consider revising my approach. Thanks, Russ On Jul 22, 2013, at 1:53 AM, Richard Sand wrote: > Hi Russel - > > The use case is simple - I've written a plug-in which takes in as > input a list of dependencies, just like any other plugin or the pom > i

FW: how to properly propagate plugin results into subsequent phases

2013-07-21 Thread Richard Sand
r, but I want to skip the classes and other 3 dependent artifacts that went into the optimizer. What is the best way to do this, in keeping with maven architecture? Appreciate any help! -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Saturday, July 13,

RE: API to resolve an artifact in Maven3

2013-07-21 Thread Richard Sand
ly.us] Sent: Sunday, July 21, 2013 7:52 AM To: Maven Users List Subject: Re: API to resolve an artifact in Maven3 Hi Richard, Can you be more specific? What exactly is your goal? - Russ On Jul 20, 2013, at 11:02 PM, Richard Sand wrote: > Can someone please share the secret of how to do de

RE: API to resolve an artifact in Maven3

2013-07-21 Thread Richard Sand
en Users List Subject: RE: API to resolve an artifact in Maven3 See http://svn.codehaus.org/mojo/trunk/mojo/extra-enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/EnforceBytecodeVersion.javaand the dependency builder part. Cheers Le 21 juil. 2013 05:03, "Richard Sand" a écri

RE: API to resolve an artifact in Maven3

2013-07-21 Thread Richard Sand
you can access without restriction to the sources. Give us more details on what you want to do? 2013/7/21 Richard Sand : > Can someone please share the secret of how to do dependency resolution > in Maven3? And specifically in 3.1? > > -Richard > > -----Original Message

RE: API to resolve an artifact in Maven3

2013-07-20 Thread Richard Sand
Can someone please share the secret of how to do dependency resolution in Maven3? And specifically in 3.1? -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Friday, July 19, 2013 3:45 PM To: 'Maven Users List' Subject: RE: API to resolve an a

RE: API to resolve an artifact in Maven3

2013-07-19 Thread Richard Sand
> bc22e9-32c5-44f6-bdb3-117414907...@gmail.com%3e > It should helps you > > On Jul 19, 2013, at 9:39 PM, "Richard Sand" wrote: > > > Quick Q- what's the proper way to resolve an artifact in a Maven3 > plug-in, e.g. where the artifact isn't already a man

API to resolve an artifact in Maven3

2013-07-19 Thread Richard Sand
Quick Q- what's the proper way to resolve an artifact in a Maven3 plug-in, e.g. where the artifact isn't already a managed dependency in the project. I found the Mojo Developer Cookbook (http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook) but it gives the Maven2 technique, and t

bad request return code from Sonatype doing release:perform

2013-07-19 Thread Richard Sand
Hi all - trying to get my first plugin released into Maven Central. The snapshot is there, and release:prepare executed fine. When I run release:perform, I'm getting a 400-Bad Request error when maven tries to download something from the Sonatype parent when I do the release. Has anyone seen this

RE: executing release:prepare with release-sign-artifacts

2013-07-18 Thread Richard Sand
stick and not permanently connected to the machine it seems an acceptable trade-off from my PoV On 17 July 2013 23:02, Richard Sand wrote: > Hi all, > > Trying to move this obfuscation plugin along. I have the snapshot in > the OSS Sonatype snapshot repository now: > > >

RE: executing release:prepare with release-sign-artifacts

2013-07-18 Thread Richard Sand
different key get selected. I do worry about the passphrase being in clear text... but as my GPG keys for signing are on a USB stick and not permanently connected to the machine it seems an acceptable trade-off from my PoV On 17 July 2013 23:02, Richard Sand wrote: > Hi all, > >

RE: generating plugin project index page via site plugin

2013-07-18 Thread Richard Sand
site plugin That is not generated, but manually added text. /Anders (mobile) Den 18 jul 2013 07:30 skrev "Richard Sand" : > Hi Anders- thanks, I definitely needed that plugin report to get the > goal usage reports I needed. But I still don't know how to get the > goal sum

RE: how to properly propagate plugin results into subsequent phases

2013-07-17 Thread Richard Sand
help! -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Saturday, July 13, 2013 11:36 AM To: 'Maven Users List' Subject: how to properly propagate plugin results into subsequent phases Hi all, I'm having trouble getting the output jar fro

RE: generating plugin project index page via site plugin

2013-07-17 Thread Richard Sand
ou're asking about, read [2]. [1] http://maven.apache.org/plugin-tools/maven-plugin-plugin/ [2] http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/generate-r eport.html /Anders On Wed, Jul 17, 2013 at 5:50 AM, Richard Sand wrote: > Hi all - on the Apache Maven website, th

executing release:prepare with release-sign-artifacts

2013-07-17 Thread Richard Sand
Hi all, Trying to move this obfuscation plugin along. I have the snapshot in the OSS Sonatype snapshot repository now: https://oss.sonatype.org/content/repositories/snapshots/com/idfconnect/devto ols/idfc-proguard-maven-plugin/0.8.0-SNAPSHOT/ Now I'm trying to release 0.8.0, however when I run m

RE: maven:war 2.4?

2013-07-16 Thread Richard Sand
here. I've tried several different syntax, e.g. WEB-INF/classes/**/*.class, WEB-INF/classes/**.class etc, none worked. Any suggestions? I hope I'm just doing something wrong... -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Saturday, June

generating plugin project index page via site plugin

2013-07-16 Thread Richard Sand
Hi all - on the Apache Maven website, the index pages for the various plugin projects have the "Goals Overview" section, and each goal has a link to a -mojo.html file. How do I get the site plugin to generate this for my plugin project? The index page for the obfuscator plugin is missing this and I

RE: input artifacts to plugin

2013-07-16 Thread Richard Sand
) 2. Specify a parameter configured to receive project.compileClassElements /** * Compile classpath of the maven project. */ @Parameter(defaultValue = "${project.compileClasspathElements}") private List projectCompileClasspathElements; On Jul 12, 2013, at 12:45 PM, Richard Sand w

RE: Plugin name is "idfc-maven-proguard-plugin" (was re: introducing maven-proguard-plugin)

2013-07-15 Thread Richard Sand
te that we actively protect our marks when > > inappropriate use is brought to our attention... So ease don't refer > > to > it > > as a "maven plugin" again. > > > > Thank you for developing your plugin and growing our community, BTW > >

RE: introducing maven-proguard-plugin

2013-07-15 Thread Richard Sand
any people unknowingly violate this convention. I wish it was mentioned in all the main plugin-howto's Hopefully someone else will complement this info Alejandro Endo | Software Designer/Concepteur de logiciels From: "Richard Sand" To: "'Maven Users List'

introducing maven-proguard-plugin

2013-07-15 Thread Richard Sand
Hi all, I've published version 0.8 of my obfuscation plugin, which can be used to invoke ProGuard to obfuscate Maven artifacts. It is a Maven3 plugin and requires Java6. I've tried to integrate it as well as possible into the maven world to minimize the amount of configuration needed for it to aut

maven-docck-plugin?

2013-07-14 Thread Richard Sand
Does anyone use maven-docck-plugin or has maven-site-plugin made it obsolete? From the plugin website it doesn't look like its being worked on. -Richard - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additiona

how to properly propagate plugin results into subsequent phases

2013-07-13 Thread Richard Sand
sses, or if my plugin is running after the packaging phase and I've got ./target/myproject-1.0.0.jar, how do I exclude these after I successfully include ./target/myproject-1.0.0-obfuscated.jar? Appreciate any help here. Thanks! Richard Sand | CEO IDF Connect, Inc. 2207 Concord Ave, #359 Wilmington

input artifacts to plugin

2013-07-12 Thread Richard Sand
ring representation of an artifact, and then look through mavenProject.getArtifacts() to find a match. That just seems a hack to require two different formats for specifying artifacts, but if it's the only way, so be it. Thanks for any input! Richard Sand | CEO IDF Connect, Inc. 2207 Conc

RE: opinion on obfuscator plugin default execution phase?

2013-07-12 Thread Richard Sand
ng. Can that flow be wired together in the pom.xml or is there something programmatic I can do in the plug-in (along with some configuration parameters) to tell maven to re-execute the testing with the new/updated artifacts from the plug-in? Thanks for the feedback! Richard Sand | CEO IDF Connect

simple questions - where to put unpackaged config files?

2013-07-10 Thread Richard Sand
ectory} references "src/main/java" - it would seem to be a hack to use "../config" from there but it would work. Thanks! Richard Sand | CEO IDF Connect, Inc. 2207 Concord Ave, #359 Wilmington | Delaware 19803 | USA Office: +1 302 425 0516 | Fax: +1 856 866 1899 Mobile: +

opinion on obfuscator plugin default execution phase?

2013-07-10 Thread Richard Sand
all"). If it runs at the pre-packaging phase, I'd have it start processing on the output folder from the compile phase. Any thoughts? I'll have it configurable in any case, so it's the default behavior I'm trying to reason out. Which makes more sense from a lifecycle pers

RE: How to get an instance of MavenProjectHelper in a Maven3.0 plugin?

2013-07-09 Thread Richard Sand
* @parameter expression="${component.org.codehaus.plexus.archiver.Archiver#jar}" I tried using just @Component as well as @Component(role = org.codehaus.plexus.archiver.jar.JarArchiver.class) Any clues? Thanks again! Richard Sand | CEO IDF Connect, Inc. 2207 Concord Ave, #359 Wilmingt

How to get an instance of MavenProjectHelper in a Maven3.0 plugin?

2013-07-09 Thread Richard Sand
error: ERROR] 1) No implementation for org.apache.maven.project.DefaultMavenProjectHelper was bound. Any advice? Thanks! Richard Sand | CEO IDF Connect, Inc. 2207 Concord Ave, #359 Wilmington | Delaware 19803 | USA Office: +1 302 425 0516 | Fax: +1 856 866 189

RE: [ANN] Apache Maven War Plugin 2.4 Released

2013-07-09 Thread Richard Sand
Thanks Olivier! I can confirm that 192 is fixed, I can now build WAR artifacts with "resolve workspace dependencies" checked. Best regards, Richard Sand | CEO IDF Connect, Inc. 2207 Concord Ave, #359 Wilmington | Delaware 19803 | USA Office: +1 302 425 0516 | Fax: +1 856 866 1899

RE: maven:war 2.4?

2013-06-29 Thread Richard Sand
Awesome, thanks Olivier! I'll test it as soon as its released and confirm that the fix took. Best regards, Richard Sand | CEO IDF Connect, Inc. 2207 Concord Ave, #359 Wilmington | Delaware 19803 | USA Office: +1 302 425 0516 | Fax: +1 856 866 1899 Mobile: +1 267 984 3651 -Ori

maven:war 2.4?

2013-06-28 Thread Richard Sand
Hi - does anyone know when the next version (2.4) of maven:war is supposed to be released? There's an important bugfix in it for Eclipse integration with multiple Eclipse projects are also maven dependencies of the war archive. Richard Sand | CEO <http://www.idfconnect.com/> IDF C