Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
Actually, I already had this in my settings.xml nexus * http://nexus:8081/nexus/content/groups/public so I must have been battling some other configuration problem. Fortunately things seem to be working right now, and my mojo is working. Cheers, Eric On 2011-08-29 12:45 PM, Ansgar Konerma

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
Ahh... Well, things seem to be working now, maven is finding my mojo, and I have not changed the settings.xml file. Sometimes when you fiddle with enough settings things start working, but I'm not sure what the magic sauce was in this case. Cheers, Eric On 2011-08-29 12:16 PM, Ron Wheeler

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
Yes, I can definitely see it in the local repository at those coordinates. Actually, it seems to be looking in the local repository now, so I can just use "mvn clean install" before testing it. Not sure what I did to get it working, but doing a "clean" seems to have helped. Thanks for all the

Re: Newbie writing a mojo

2011-08-29 Thread Ansgar Konermann
Am 29.08.2011 22:13 schrieb "Eric Kolotyluk" : > > OK, "mvn clean install" helps, but I actually need to use "mvn clean deploy" > > For some reason it does not seem to look in the local repository, it seems to be in love with Nexus. The reason is: maven cached "plugin not found" fact. See my previ

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
OK, "mvn clean install" helps, but I actually need to use "mvn clean deploy" For some reason it does not seem to look in the local repository, it seems to be in love with Nexus. At any rate I can actually see my mojo running via the log - wha-hoo! Now if I can only figure out an easy way to u

Re: Newbie writing a mojo

2011-08-29 Thread Ansgar Konermann
Am 29.08.2011 17:45 schrieb "Eric Kolotyluk" : > > On the command line in in the project with the POM I showed I use > > P:\Intersystem\main\platform.Java\intersystem-jni4net>mvn validate > [INFO] Scanning for projects... > [INFO] > [INFO] ---

Re: Newbie writing a mojo

2011-08-29 Thread Ansgar Konermann
Am 29.08.2011 17:25 schrieb "Eric Kolotyluk" : > > OK, this is what I have in my settings.xml > > > nexus > > > > > central > http://central > true > true > > > > > central > http://central > true > true > > > > > Do I need to configure something else? Yes. The URL you configured for

Re: Newbie writing a mojo

2011-08-29 Thread Ron Wheeler
Read what you promised Maven... central http://central true true Plug-in are found at "central" Ron On 29/08/2011 11:24 AM, Eric Kolotyluk wrote: OK, this is what I have in my settings.xml nexus central http://central true true central http://central true true Do I need to con

Set read-only flag on unpacked dependencies

2011-08-29 Thread Phillip Hellewell
When using dependency:unpack-dependencies, I would like to flag all the unpacked files as read-only. I don't see a parameter to do that. Is there a separate plugin out there that I could use? So after unpacking it would flag all files below target\dependency as read-only. Well, if worst comes t

Re: Newbie writing a mojo

2011-08-29 Thread Andy Glick
Let me ask you a very simple question. Has the plugin that you have created been successfully installed in your local repository at the proper coordinates? Forget about Nexus for a bit. Do the following 2 files exist? $[maven-repo}/com/kodak/jni4net/jni4net-maven-plugin/0.0.1-SNAPSHOT/jni4net-

Re: Newbie writing a mojo

2011-08-29 Thread Hilco Wijbenga
On 29 August 2011 10:22, Eric Kolotyluk wrote: > That's interesting because it was m2e that created the project from the > maven-plugin archetype. I'm just going by [1]. I guess it doesn't matter. > Anyway, I made the change to the POM, but I still get exactly the same error > messages - can't f

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
That's interesting because it was m2e that created the project from the maven-plugin archetype. Anyway, I made the change to the POM, but I still get exactly the same error messages - can't find the POM for the plugin. Cheers, Eric On 2011-08-29 9:57 AM, Hilco Wijbenga wrote: On 29 August 2

Re: maven 3, deploy:deploy-file and dav:http

2011-08-29 Thread Jason van Zyl
Go for it. I won't be using the maven site plugin anytime soon. On Aug 29, 2011, at 12:30 PM, Stephen Connolly wrote: > Jason. it would be great if we had this documented somewhere in the maven > site. > > - Stephen > > --- > Sent from my Android phone, so random spelling mistakes, random nonse

Re: maven project with xml packaging

2011-08-29 Thread Benson Margulies
Use packaging=pom and then use the build helper plugin to attach the XML file. On Mon, Aug 29, 2011 at 11:17 AM, Andy Glick wrote: > You have asked about "XML packaging". In Maven parlance packaging refers to > the type of the artifact that the current Maven "module" will produce. > Normally pack

Re: Newbie writing a mojo

2011-08-29 Thread Hilco Wijbenga
On 29 August 2011 09:41, Eric Kolotyluk wrote: > OK, here is the POM from my plugin project > > 4.0.0 > > com.kodak.jni4net > jni4net-maven-plugin > 0.0.1-SNAPSHOT > maven-plugin > > jni4net-maven-plugin Maven Plugin > http://maven.apache.org > > > UTF-8 > > > > http://nexus:8081/nexus/content/

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
OK, here is the POM from my plugin project 4.0.0 com.kodak.jni4net jni4net-maven-plugin 0.0.1-SNAPSHOT maven-plugin jni4net-maven-plugin Maven Plugin http://maven.apache.org UTF-8 http://nexus:8081/nexus/content/groups/public false nexus Kodak Release Repository http://nexus:8081/nexus/co

Re: maven 3, deploy:deploy-file and dav:http

2011-08-29 Thread Stephen Connolly
Jason. it would be great if we had this documented somewhere in the maven site. - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 29 Aug 2011 08:30, "Jason van Zyl" wrote: >

Re: Newbie writing a mojo

2011-08-29 Thread Hilco Wijbenga
On 29 August 2011 08:45, Eric Kolotyluk wrote: > On the command line in in the project with the POM I showed I use > > P:\Intersystem\main\platform.Java\intersystem-jni4net>mvn validate > [INFO] Scanning for projects... > [INFO] > [INFO] > --

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
On the command line in in the project with the POM I showed I use P:\Intersystem\main\platform.Java\intersystem-jni4net>mvn validate [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building intersystem-jni4net 0.0.2-S

Re: Newbie writing a mojo

2011-08-29 Thread Jason van Zyl
If you want it to be open source put the plugin in Github and then we can see the whole project and try it. Trying to deduce what's wrong by looking at partial snippets is really hard. If I can built and run easily, it's a lot easier to help. Maven will always look locally first. Most likely is

Re: maven 3, deploy:deploy-file and dav:http

2011-08-29 Thread Jason van Zyl
You can either use the ext/ directory in the Maven installation, or use the extension classpath property so that the scp wagon will load. I created a little recipe with an example of each method: https://github.com/jvanzyl/maven-recipes/tree/master/deploy-with-scp-extension On Aug 29, 2011, at

Re: Newbie writing a mojo

2011-08-29 Thread Hilco Wijbenga
On 29 August 2011 07:32, Eric Kolotyluk wrote: > OK, I'm trying to get my first mojo working. > > I created a project with the maven-plugin archetype and used the default > mojo that is there, but I cannot seem to get it to run. > > The first time I tried to run it maven complained it could not fi

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
OK, this is what I have in my settings.xml nexus central http://central true true central http://central true true Do I need to configure something else? Cheers, Eric On 2011-08-29 7:53 AM, Ron Wheeler wrote: I am not sure but I think that you are deploying to the SNAPSHOT repo bu

Re: maven project with xml packaging

2011-08-29 Thread Andy Glick
You have asked about "XML packaging". In Maven parlance packaging refers to the type of the artifact that the current Maven "module" will produce. Normally packaging is a kind of Java archive, of which jar, war, ear and osgi bundle are a partial enumeration. The other common value for packaging

Re: maven 3, deploy:deploy-file and dav:http

2011-08-29 Thread Stephen Connolly
Just create a pom.xml with dummy coords and run from the directory with that pom using deploy:deploy-file 4.0.0 localdomain.localhost dummy 1-SNAPSHOT mvn deploy:deploy-file -DgroupId=my.groupId -DartifactId=my-artifact -Dversion=62.65 -Dfile=... -Dpackaging=... -

Re: how to get the list of artifacts id and group id from maven repository?

2011-08-29 Thread Brian Fox
If this is an external repo: If the repository publishes an index, use that. Otherwise, what you're doing would likely be perceived as scraping and get you banned from remote repositories. If this is an internal repo, then use the maven-indexer to produce an index for you. On Mon, Aug 29, 2011 at

Re: Newbie writing a mojo

2011-08-29 Thread Ron Wheeler
I am not sure but I think that you are deploying to the SNAPSHOT repo but maven is looking for plugins in the repo that you have defined as your plug-in repo. Check your settings.xml to see where you tell Maven to find plugins. Ron On 29/08/2011 10:44 AM, Eric Kolotyluk wrote: This is what I

Re: Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
This is what I have in my POM http://nexus:8081/nexus/content/groups/public false nexus Kodak Release Repository http://nexus:8081/nexus/content/repositories/releases default nexus Kodak Snapshot Repository http://nexus:8081/nexus/content/repositories/snapshots default Is there something e

Re: maven project with xml packaging

2011-08-29 Thread Antonio Petrelli
2011/8/29 frank vestris > I would like to have a maven project where the packaging is "xml" (or > another file type). > Is it possible ? > What do you mean by "xml" packaging? Did you write a plugin to manage it? Antonio

Re: Newbie writing a mojo

2011-08-29 Thread Ron Wheeler
Just a wild guess until someone smarter comes along. Do you have your settings looking for plugins in your SNAPSHOT repo? I think that the plugin repo is defined separately from the artifact repos. Only a guess. Ron On 29/08/2011 10:32 AM, Eric Kolotyluk wrote: OK, I'm trying to get my first m

Newbie writing a mojo

2011-08-29 Thread Eric Kolotyluk
OK, I'm trying to get my first mojo working. I created a project with the maven-plugin archetype and used the default mojo that is there, but I cannot seem to get it to run. The first time I tried to run it maven complained it could not find the plugin. So then I ran a maven install, but it s

maven project with xml packaging

2011-08-29 Thread frank vestris
Hi, I would like to have a maven project where the packaging is "xml" (or another file type). Is it possible ? in my pom: xml but Eclipse don't want to: Description ResourcePathLocationType Project build error: 'packaging' with value 'xml' is invalid. Aggregator project

No project.prerequisites.maven expansion?

2011-08-29 Thread Laird Nelson
http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.htmlindicates that any JavaBean property available in the Modelclass is available in a pom.xml file for property expansion

Re: maven 3, deploy:deploy-file and dav:http

2011-08-29 Thread mihxil
Maxime Gréau wrote: > > In all cases (I mean if you have an existing pom.xml or not), there will > be > a pom.xml with the artifact in the remote repository. > > If you want to deploy an existing file (jar, war...) in a remote > repository, > you have 2 choices : > - use deploy:deploy-file goal,

Re: maven 3, deploy:deploy-file and dav:http

2011-08-29 Thread Maxime Gréau
In all cases (I mean if you have an existing pom.xml or not), there will be a pom.xml with the artifact in the remote repository. If you want to deploy an existing file (jar, war...) in a remote repository, you have 2 choices : - use deploy:deploy-file goal, this goal can be execute with or withou

how to get the list of artifacts id and group id from maven repository?

2011-08-29 Thread mumbaimuru
how to get the list of artifacts id and group id from maven repository? Not using any maven explore. As we are get the latest version for any dependency using LATEST in POM.xml. I need same kind of process to get the list of artifacts id and group id from maven repository. In single short/process