Uploading external libraries to the central repository without being the owner

2012-04-03 Thread Patrick Arnold
Hi, we want to make one of our maven projects Open Source. This project uses various libraries (external projects) from the central maven repository, yet 3 libraries (JGraphT 0.8.1, alignapi and org.semanticweb) are not in the repository. I was asked to put these 3 projects into the central

Re: eclipse plugin for maven using jdk 1.3

2012-04-03 Thread sarmahdi
Thanks for the reply Thorsten Heit, the problem is that on my machine i commented out the compiler plugin part but it was still using 1.6 and i thought copying the pom.xml from my workspace to other workspace would work. but it did not, so i uncommented my compiler plugin entry and it worked

RE: Avoiding duplicate POM code: profiles, inheritance, properties

2012-04-03 Thread Gillet Thomas (2)
Hello all, thanks for all those long replies. Ron, I would be happy to follow any good practice and to comply to the way maven does things. But in this particular case, I wasn't able to find anything to comply to. I am indeed describing the usage of a parent POM, but with the exception that

Re: Different behavior when building a project as a module or stand-alone

2012-04-03 Thread Philippe Lagardère
Are you using a Maven repo such as Nexus? Can you not give your corporate libraries GAV designations that are controlled so the version numbers are monotonically increasing? We do use a Maven repo, although we had to abandon Nexus in favor of Artifactory. Originally, we used versions when

Re: Adding Eclipse JAR and source files

2012-04-03 Thread Mariusz Plucinski
Wiadomość napisana przez mike digioia w dniu 3 kwi 2012, o godz. 00:38: [INFO] skip non existing resourceDirectory /home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/main/resources I am getting this message during successful builds, so I suppose this is not

Re: Uploading external libraries to the central repository without being the owner

2012-04-03 Thread Anders Hammar
You best option is to convince the owners of these 3rd party libraries to have them make the artifacts available in the central repo. There are different options for them to do that. /Anders On Tue, Apr 3, 2012 at 09:17, Patrick Arnold arn...@informatik.uni-leipzig.de wrote: Hi, we want to

Pom files organization / best practice

2012-04-03 Thread Bata Degen
Hi list, I have set up a Java Enterprise project with Maven in Netbeans. The pom.xml files are organized hierarchically. I have poms for the entire project, for the ejb, the web and the assembly (ear) part of the project. I don't know in which of these many pom files to place my repository

Re: Pom files organization / best practice

2012-04-03 Thread Stephen Connolly
best practice is *never* to put repository in your pom. best practice is to run a Maven Repository Manager (there are 3 good ones: [in alphabetical order] archivia, artifactory, nexus) best practice is to have those present a virtual repository that is an aggregate of all the repositories you

Re: Pom files organization / best practice

2012-04-03 Thread Ansgar Konermann
Am 03.04.2012 12:55 schrieb Bata Degen bat...@arcor.de: Hi list, I have set up a Java Enterprise project with Maven in Netbeans. The pom.xml files are organized hierarchically. I have poms for the entire project, for the ejb, the web and the assembly (ear) part of the project. I don't know

Re: Pom files organization / best practice

2012-04-03 Thread Bata Degen
On 04/03/2012 01:02 PM, Stephen Connolly wrote: best practice is *never* to putrepository in your pom. best practice is to run a Maven Repository Manager (there are 3 good ones: [in alphabetical order] archivia, artifactory, nexus) best practice is to have those present a virtual repository

Re: Pom files organization / best practice

2012-04-03 Thread Bata Degen
On 04/03/2012 01:05 PM, Ansgar Konermann wrote: I don't know in which of these many pom files to place myrepository elements. Nowhere in your poms. Use a repository manager, configure the repositories you would like to use as proxy repositories in the repo manager and set the repo mgr as

Re: configuration plugin

2012-04-03 Thread martin.eisengardt
Profiles appear to be magic but it is black magic. Nice wording ;-) I already use profiles to manage our hudson build of the maven plugin. And yes: You are able to brake your projects if you do not know what to do. My lvl85 gnome mage is able to create a greater-flux-compensation-knife that will

Re: Uploading external libraries to the central repository without being the owner

2012-04-03 Thread Mark H. Wood
https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+The+Central+Repository But I agree that the best outcome would be to convince the owners of the code to publish it to Central themselves and maintain it there. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu

maven-android: core-classes related error during dx

2012-04-03 Thread Mariusz Plucinski
Hi all, I have another problem with Maven: Android plugins seems to call javac and/or dx incorrectly. After adding Android platform as dependency to Maven project, I am getting long message from dx that I am trying to provide own implementation for core libraries, and that I should not do it.

Re: maven-android: core-classes related error during dx

2012-04-03 Thread Manfred Moser
You probably forget to give the android jar the provided scope. In general I would suggest to ask Android/Maven related questions on the Maven Android Developers mailing list and read the documentation for the Android Maven Plugin in the book Maven: The Complete Reference and on the website In

Re: configuration plugin

2012-04-03 Thread Wayne Fay
I am looking for a configuration plugin or (if it does not exist) some brainstorming related to the maven-way of configuration. First let me say that the configuration task is relevant for our php-maven projects If you don't get the level of discussion and answers you seek here, you may find a

Re: configuration plugin

2012-04-03 Thread Wayne Fay
Have a look at the assembly plug-in or shade. These are safe and will not hurt you. The assemblies are targeted for building packages that are used outside maven? Or did I understand it wrong? More or less. The plugin documentation has more info about its intended purpose and audience:

Re: configuration plugin

2012-04-03 Thread Ron Wheeler
On 03/04/2012 7:49 AM, martin.eisengardt wrote: Profiles appear to be magic but it is black magic. Nice wording ;-) I already use profiles to manage our hudson build of the maven plugin. And yes: You are able to brake your projects if you do not know what to do. My lvl85 gnome mage is able to

Annotation processing?

2012-04-03 Thread Russell Gold
Does anybody have a working example of custom annotation processing in Maven that they could share? I'm finding the documentation on this to be frustratingly sparse. I can find a page claiming to describe a plugin for annotation processing, but it doesn't actually give examples of what it's

Re: Different behavior when building a project as a module or stand-alone

2012-04-03 Thread Wayne Fay
looked at a couple of third party plugins (this one, for instance : http://mojo.codehaus.org/versions-maven-plugin/), but I couldn't find what I I don't see why you would look to versioning things yourself. The artifact should be delivered with a version associated with it from the group

Re: Annotation processing?

2012-04-03 Thread Curtis Rueden
Hi Russ, Does anybody have a working example of custom annotation processing in Maven that they could share? I'm finding the documentation on this to be frustratingly sparse. I can find a page claiming to describe a plugin for annotation processing, but it doesn't actually give examples of

Re: Annotation processing?

2012-04-03 Thread Wayne Fay
Does anybody have a working example of custom annotation processing in Maven that they could share? I'm finding the documentation on this to I will assume that Curtis' reply was sufficient information. If not, please provide more specific information about what you are looking for. Also, how

Re: installing non-maven jars before compile

2012-04-03 Thread Wayne Fay
These jars don't get installed.  I thought that if I call mvn compile, all phases before it will also get called (e.g. validate, initialize, generate-sources, process-sources, generate-resources, process-resources). Why is this not happening? Works for me. I just copied and pasted your

Re: Pom files organization / best practice

2012-04-03 Thread mike digioia
I don't have any settings.xml files anywhere. Were can it be created? Is any of this documented anywhere or your new idea? On Tue, Apr 3, 2012 at 4:48 AM, Bata Degen bat...@arcor.de wrote: On 04/03/2012 01:05 PM, Ansgar Konermann wrote: I don't know in which of these many pom files to

Re: Pom files organization / best practice

2012-04-03 Thread Wayne Fay
I don't have any settings.xml files anywhere. Were can it be created? Is any of this documented anywhere or your new idea? This is all documented on the Maven site: http://maven.apache.org/settings.html Wayne - To

Re: Annotation processing?

2012-04-03 Thread Russell Gold
Mostly, I'm trying to figure out why my implementation - which conforms to the documentation I'd found - does not appear to be detected by the compiler. I get that I'm doing something wrong; I just don't know what. I'll examine the code Curtis pointed out and see if it gives me clues. On Apr

Re: Adding Eclipse JAR and source files

2012-04-03 Thread mike digioia
Oh I see your build works fine. Yes I get many more messages related to not finding the new JAR file I added with the new POM file automatically created. This is what it looks like here - [INFO] skip non existing resourceDirectory

Re: Adding Eclipse JAR and source files

2012-04-03 Thread Wayne Fay
package R does not exist Generally I point people looking for help with Maven + Android to the following site: http://code.google.com/p/maven-android-plugin/ And corresponding mailing list: http://groups.google.com/group/maven-android-developers You should have good luck getting your problems

Re: Annotation processing?

2012-04-03 Thread Wayne Fay
Mostly, I'm trying to figure out why my implementation - which conforms to the documentation I'd found - does not appear to be detected by the compiler. I get that I'm doing something wrong; I just don't know what.  I'll examine the code Curtis pointed out and see if it gives me clues. The

Re: configuration plugin

2012-04-03 Thread martin.eisengardt
Hmmm. I did not mean to get a php solution. I am trying to find a solution for maven (if it exists). Hoping that in java or any other language anyone did have a similar problem. Or let me say a similar vision. Ok, there are three solutions: assembly, shade, creating productional artifact

[ANNOUNCE] Maven Fluido Skin 1.2.1 is out!

2012-04-03 Thread Simone Tripodi
Hi all, the Apache Maven team is happy to announce the release of Apache Maven Fluido Skin 1.2.1 The Apache Maven Fluido Skin is an Apache Maven site skin built on top of Twitter's bootstrap and other nice widgets. Follow below the list of resolved issues: Bugs [MSKINS-21] - Invalid text

[ANN] Appassembler Maven Plugin 1.2.1 Released

2012-04-03 Thread Karl Heinz Marbaise
Hi to all, I'm proudly announce the availability of the version 1.2.1 of the appassembler-maven-plugin which is mostly a bug fix release. The Application Assembler Plugin is a Maven plugin for generating scripts for starting java applications. All dependencies and the artifact of the

resource filtering on dependencies

2012-04-03 Thread Ryan Wexler
I have a project that creates a generic package which is then used in several other nearly identical sibling projects. These projects pull this client-generic package in as a dependency and create an almost identical package other than the difference in these configuration files. This looks

Re: resource filtering on dependencies

2012-04-03 Thread Wayne Fay
I am using the maven-dependency-plugin unpack goal to unpack the client-generic dependency into these other projects.  Is there a way to apply resource filtering for the unpack goal so I can filter this property on the configuration file that is in the dependency? You should find complete

Re: resource filtering on dependencies

2012-04-03 Thread Ryan Wexler
That blog post seemed very self explanatory, but it didn't work. What I am getting from the blog is that if you bind a plugin to the generate-resources phase, then you can filter on the resulting files in project build directory. I did this, but no luck. The only difference between what I am

Archetype for flat structure

2012-04-03 Thread marc.schlegel
Hello everyone For a project I need to create some archetypes and so far it works quite well. The only big problem is that I need the archetype to create a flat project structure, but the archetype-generation will always look for the minimal POM at archetype-resource/pom.xml. In my case this

Re: Archetype for flat structure

2012-04-03 Thread Barrie Treloar
On Wed, Apr 4, 2012 at 1:34 AM, marc.schle...@accenture.com wrote: Hello everyone For a project I need to create some archetypes and so far it works quite well. The only big problem is that I need the archetype to create a flat project structure, but the archetype-generation will always

Re: Archetype for flat structure

2012-04-03 Thread Eric Kolotyluk
I am curious too. When using RTC I had to manually convert everything to a flat structure. Cheers, Eric On 2012-04-03 9:04 AM, marc.schle...@accenture.com wrote: Hello everyone For a project I need to create some archetypes and so far it works quite well. The only big problem is that I need

Re: resource filtering on dependencies

2012-04-03 Thread Ryan Wexler
I tried the unpack-dependencies but that didn't make a difference, still doesn't work as described. On Tue, Apr 3, 2012 at 3:34 PM, Ryan Wexler r...@iridiumsuite.com wrote: That blog post seemed very self explanatory, but it didn't work. What I am getting from the blog is that if you bind a

Re: installing non-maven jars before compile

2012-04-03 Thread Paul Rivera
Hi Wayne, That's strange. What version of maven are you running? I'm using 3.0.4 on windows 7. Best Regards, Paul On Wed, Apr 4, 2012 at 2:40 AM, Wayne Fay wayne...@gmail.com wrote: These jars don't get installed. I thought that if I call mvn compile, all phases before it will also get

Re: resource filtering on dependencies

2012-04-03 Thread Ryan Wexler
After further investigation, this method is working, just not at the point I thought it was. I am unpacking all the dependencies and resources into a directory. That directory is not filtered but it is repackaged as a jar and the resources are filtered in the jar. I thought it would apply the

create executable file in target/ directory

2012-04-03 Thread Radim Kolar
I need to create executable file in target/ directory. It is script which needs to be copied from src/ tree and then chmod +x. resource plugin can copy it but can not chmod +x it assembly plugin can make it executable but it is placed into tar archive any ideas?

Re: create executable file in target/ directory

2012-04-03 Thread Jesse Farinacci
Greetings, On Tue, Apr 3, 2012 at 8:02 PM, Radim Kolar h...@filez.com wrote: I need to create executable file in target/ directory. It is script which needs to be copied from src/ tree and then chmod +x. resource plugin can copy it but can not chmod +x it assembly plugin can make it

Re: installing non-maven jars before compile

2012-04-03 Thread mike digioia
I have similar problem, except the jar gets installed in its own separate directory from the local repository - .m2/repository/com/x/y/z/ name.jar and name.pom, since I asked to create a pom. But this jar never gets references in the compile since the source file that uses it has all undefined

Bug in Maven 3?

2012-04-03 Thread Jane Young
Hi Maven Gurus, Looks like Maven 3 always try to download the transitive dependencies even though it's available in the local repo. In the pom, I have the following dependency defined: dependency groupIdorg.glassfish.fighterfish/groupId artifactIdosgi-web-container/artifactId

Re: Bug in Maven 3?

2012-04-03 Thread Lyons, Roy
This sounds familiar. I recall that maven 3 does some sort of metadata thing with respect to the repository cache, which is different compared to maven 2. Either way I would recommend setting up a repository manager like nexus on your machine or local network, and use a repository group to