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 
repository to make our project executable and available.


Thus, I created 3 tickets on Sonatype Nexus Maven Repository in order to 
upload the 3 libraries. I gave them the names of the external projects, 
e.g., org.semanticweb. However, two tickets were denied shortly after 
(alignapi is an invalid groupID or Do you or your organization own 
the domain semanticweb.org?).


I have, as matter of fact, no ownership about these projects and 
probably got the refusal for this reason. My question is now, how else 
can I get these 3 libraries to the central repository or make them in 
any way available so that users can set up and run our program. Do I 
have to contact the project owners to upload their libraries to the 
Maven repository? Would it be wiser to include the libraries in our open 
source project and tell the user to add them to their local Maven 
repository once the program is set up? I'm not very much acquainted with 
Maven so far, so I appreciate any ideas and suggestions to solve this 
problem.



Thanks in advance,
Patrick




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 fine. I was only surprised how. The
Effective POM does not have any source entry either to wind it up to 1.3\


but yes i added the same thing you said and it worked fine,

Thanks appreciate it
Syed... 



--
View this message in context: 
http://maven.40175.n5.nabble.com/eclipse-plugin-for-maven-using-jdk-1-3-tp5611951p5614453.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 only 
*one* parent POM is likely to be not enough for my purpose.

As pointed out by Curtis and Laird, my problem seems to boil down to a lack of 
multi-inheritance and/or include mechanism.
By the way, bravo guys, you used the exact words I was trying not to hear. More 
seriously, I didn't start by the simple explanation because I thought it was 
obviously leading to this issue, and I was hoping there was something else 
behind that which I had not been able to see. Well, seems there is not.

About transforming my graph into a tree as said Curtis, the only way I can 
think of is to group all different configurations in one POM, from which I can 
then inherit to add deployment information for each project.
And the only way to group configurations I know are profiles, but, as said in 
my first post, I already use profiles for another purpose so it's not working 
(missing an AND behavior in activations).
Besides, using profiles to produce an alternate artifact seems to be considered 
bad practice (read this in various place, here is the one I remember: 
http://java.dzone.com/articles/maven-profile-best-practices).

Anyway, I I'll use one of the dependency packaging methods given by Wayne and 
Laird, keep inheritance for the plugin configuration, and try something with 
the properties plugin for the deployment information.
I just found a properties plugin modification making possible to get the 
property file from a dependency, this way the file can be deployed. Could be a 
good way to make those deployment information available from any bundle (but 
I'll have to start writing plugins, not happy with that).

properties-ext-maven-plugin:

http://stackoverflow.com/questions/1231561/how-to-share-common-properties-among-several-maven-projects/1265428#1265428

A note: to follow Laird remark about POM inclusions, I always wondered what 
could be forbidding such includes, while it is already possible to merge 
several configurations through profiles.
Maybe it has just never been done (hence the future mixins).

Thanks again for all your valuable advices.

Regards,
Thomas GILLET

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


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 deploying those corporate libraries, but
we didn't know how to automate the whole thing (namely, upgrading the
version numbers). The easiest I could come up with was antrun + external
properties files. This was considered going overboard for a basic use case,
so we abandoned that idea, in favor of using a single version.

There must be simpler ways to do this out there, but I did not manage to
find them.
Since there are no SCM interactions, release plugin didn't seem to fit. I
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
was looking for. The solution might be right in front of me, but I can't
find it.

I'd appreciate a lot some pointers on this issue. The problem I
encountered would probably be void if I was doing things right.

 I want to be sure that I understand what you are saying here. The
 versions are DIFFERENT each time you run deploy-file, right? It is a
 basic premise of Maven and most sane build systems that that a given
 artifact with a particular version number must be immutable. Otherwise
 you have no idea if your file versioned 2.3.2 is the right one vs
 another file with version 2.3.2 that exists somewhere else. 

This is a problem we failed to take into consideration. We are effectively
using a single, fixed version, which means there is only one jar/pom for
each of the corporate libraries managed this way. We acknowledged that this
was definitely not the intended way of managing libraries, but we didn't see
that one problem you pointed out. 
It is somewhat lessened by the fact that only one person updates these
libraries, and that my project is the only one to resolve these dependencies
from our Maven repository, but clearly, this will become problematic at some
point.

As I mentionned above, these problem originate from the fact that I am not
managing these corporate libraries the way I should. I will revert to
manual, version enabled deployment for the time being, but I remain
extremely interested in automating the process (basically, how to
automatically increment the version using maven plugins, or something not
too far-fetched).

Any help on this matter will be greatly appreciated !


Philippe

--
View this message in context: 
http://maven.40175.n5.nabble.com/Different-behavior-when-building-a-project-as-a-module-or-stand-alone-tp5607081p5614606.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 
directly related to your problem. Isn't there any other message before build 
failure?

Best regards,
Mariusz Pluciński






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 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 repository
 to make our project executable and available.

 Thus, I created 3 tickets on Sonatype Nexus Maven Repository in order to
 upload the 3 libraries. I gave them the names of the external projects,
 e.g., org.semanticweb. However, two tickets were denied shortly after
 (alignapi is an invalid groupID or Do you or your organization own the
 domain semanticweb.org?).

 I have, as matter of fact, no ownership about these projects and probably
 got the refusal for this reason. My question is now, how else can I get
 these 3 libraries to the central repository or make them in any way
 available so that users can set up and run our program. Do I have to contact
 the project owners to upload their libraries to the Maven repository? Would
 it be wiser to include the libraries in our open source project and tell the
 user to add them to their local Maven repository once the program is set up?
 I'm not very much acquainted with Maven so far, so I appreciate any ideas
 and suggestions to solve this problem.


 Thanks in advance,
 Patrick



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 
elements.


Shall they be placed in the root pom or in the pom of the particular 
module where they are needed or does it make no difference? Is there a 
best practice for that?


Thanks for your advice!
Bata

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 need.

Then in your settings.xml you do

mirror
  idmy-mrm/id
  urlyour virtual repository/url
  mirrorOf*/mirrorOf
/mirror

Then Maven will only use your mirror. Fast builds, reliable builds,
reproducible builds, you have control over the infra.

Anything else is a path to folly

On 3 April 2012 11:55, Bata Degen bat...@arcor.de wrote:
 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
 elements.

 Shall they be placed in the root pom or in the pom of the particular module
 where they are needed or does it make no difference? Is there a best
 practice for that?

 Thanks for your advice!
 Bata

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 in which of these many pom files to place my repository
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 mirror in your settings.xml

Best regards,

Ansgar


 Shall they be placed in the root pom or in the pom of the particular
module where they are needed or does it make no difference? Is there a best
practice for that?

 Thanks for your advice!
 Bata

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



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 that is an
aggregate of all the repositories you need.

Then in your settings.xml you do

mirror
   idmy-mrm/id
   urlyour virtual repository/url
   mirrorOf*/mirrorOf
/mirror

Then Maven will only use your mirror. Fast builds, reliable builds,
reproducible builds, you have control over the infra.

Anything else is a path to folly



Thanks for pointing that out. That was the info I needed!

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 mirror in your settings.xml



Thank you as well for the info! This was what I needed to know.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 fix each maven profile.

Your answer is: The most people mess up with profiles. ok, understood.

 Configuration does not belong with software developers. It belongs to system
 administrators.
Yes and no. Developers always need to apply some local configuration
to be able to develop (test it).
You cannot always rely on a production test server to put your project
and test against.

And not all projects are that big that there is a system administrator
or hudson/jenkins. In smaller projects the developer is the system
administrator and he has only one computer for multiple roles.


 If possible, structure your Maven projects to produce a single artifact.
 Make a project that produces an artifact for development, another for your
 test environment.

 Have a look at the assembly plug-in or shade. These are safe and will not
 hurt you.
 They might be able to build the artifacts that you need.

The assemblies are targeted for building packages that are used
outside maven? Or did I understand it wrong?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
Asking whether markets are efficient is like asking whether people are smart.


pgpFs75lLHzC1.pgp
Description: PGP signature


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. 

[INFO] trouble processing java/nio/CharBuffer.class:
[INFO] 
[INFO] Ill-advised or mistaken usage of a core class (java.* or javax.*)
[INFO] when not building a core library. (…)

I have read that this message appears when one tries to pass android.jar to dx 
(instead of passing it just to javac). As workaround, I have removed dependency 
on Android, and added path to android.jar into maven-compiler-plugin 
configuration:
  compilerArguments

classpath${env.ANDROID_HOME}/platforms/android-8/android.jar/classpath
  /compilerArguments

This did the trick and allowed me to build working application. But today, 
another problem appeared: as I've probably completely overwritten -classpath 
parameter of javac, maven does not passing it paths to other dependencies. In 
result, I see lot of package (…) does not exist and can not find symbol (…) 
errors. They are saying about libraries which are defined as dependencies.

I was trying to extend classpath parameter by adding paths to my dependencies 
manually, but surprisingly, it does not work (and I prefer to force maven to do 
this). Removing classpath element make javac complaining that package 
os.android does not exists. And adding android to dependencies moves me to the 
beginning - dx complains about core classes.

Error message informs about --core-classes argument which may be passed to 
dx, but may result in pain, suffering, grief, and lamentation. I've checked 
that maven-android may be configured to pass it. Do you think this is safe to 
use it? I suppose this message should appear when using libraries incompatible 
with Android (as defining core classes is forbidden on this platform). If I use 
the --core-classes switch, I will not be informed about incompatible 
libraries, which may cause many troubles in the future.

I have no idea how to solve it. I was trying to compile with both android.jar 
from Maven Central repository, and with android.jar from SDK - both causes the 
same error.

Is there any other way to do it, instead of passing --core-classes argument?

Best regards,
Mariusz Pluciński





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 general you will NOT need the core classes argument... unless you are
really supplying another core class implementation (why would you do that?
.. if you need something in java.* or javax.* that is not part of
Android..) which in general should be avoid imho...

manfred
http://simpligility.com

http://code.google.com/p/maven-android-plugin/
http://groups.google.com/group/maven-android-developers
http://www.sonatype.com/books/mvnref-book/reference/android-dev.html

On Tue, April 3, 2012 7:19 am, Mariusz Plucinski wrote:
 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.

 [INFO] trouble processing java/nio/CharBuffer.class:
 [INFO]
 [INFO] Ill-advised or mistaken usage of a core class (java.* or javax.*)
 [INFO] when not building a core library. (…)

 I have read that this message appears when one tries to pass android.jar
 to dx (instead of passing it just to javac). As workaround, I have removed
 dependency on Android, and added path to android.jar into
 maven-compiler-plugin configuration:
   compilerArguments
   
 classpath${env.ANDROID_HOME}/platforms/android-8/android.jar/classpath
 /compilerArguments

 This did the trick and allowed me to build working application. But today,
 another problem appeared: as I've probably completely overwritten
 -classpath parameter of javac, maven does not passing it paths to other
 dependencies. In result, I see lot of package (…) does not exist and
 can not find symbol (…) errors. They are saying about libraries which
 are defined as dependencies.

 I was trying to extend classpath parameter by adding paths to my
 dependencies manually, but surprisingly, it does not work (and I prefer to
 force maven to do this). Removing classpath element make javac
 complaining that package os.android does not exists. And adding android
 to dependencies moves me to the beginning - dx complains about core
 classes.

 Error message informs about --core-classes argument which may be passed
 to dx, but may result in pain, suffering, grief, and lamentation. I've
 checked that maven-android may be configured to pass it. Do you think this
 is safe to use it? I suppose this message should appear when using
 libraries incompatible with Android (as defining core classes is forbidden
 on this platform). If I use the --core-classes switch, I will not be
 informed about incompatible libraries, which may cause many troubles in
 the future.

 I have no idea how to solve it. I was trying to compile with both
 android.jar from Maven Central repository, and with android.jar from SDK -
 both causes the same error.

 Is there any other way to do it, instead of passing --core-classes
 argument?

 Best regards,
 Mariusz Pluciñski





 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 more receptive audience in a PHP-oriented forum (where
the percentage of people using Maven is low but perhaps as high as
1-2%) vs here on this mailing list (where the percentage of people
using Maven to build PHP applications is probably on the order of
0.1%).

I'm afraid you're going to be blazing this trail more or less on your own.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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:
http://maven.apache.org/plugins/maven-assembly-plugin/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 create a
greater-flux-compensation-knife that will fix each maven profile.

Most people are not that well equipped.
You might come out unscathed or at least not fatally injured.

Good luck
Ron


Your answer is: The most people mess up with profiles. ok, understood.


Configuration does not belong with software developers. It belongs to system
administrators.

Yes and no. Developers always need to apply some local configuration
to be able to develop (test it).
You cannot always rely on a production test server to put your project
and test against.

And not all projects are that big that there is a system administrator
or hudson/jenkins. In smaller projects the developer is the system
administrator and he has only one computer for multiple roles.


If possible, structure your Maven projects to produce a single artifact.
Make a project that produces an artifact for development, another for your
test environment.

Have a look at the assembly plug-in or shade. These are safe and will not
hurt you.
They might be able to build the artifacts that you need.

The assemblies are targeted for building packages that are used
outside maven? Or did I understand it wrong?

As a general policy, I defer to Wayne Fay's superior knowledge of Maven.

We use the assembly plug-in to build executable jars that run as 
standalone batch jobs.
The question is not so much about inside Maven or outside Maven since it 
is a normal Maven plug-in.
It is more that the assembly plug-in is more flexible about inclusion of 
files and the type and structure of the resulting artifact than some 
other Maven plug-ins.
For example, the war plug-in which only builds war files and thinks that 
it knows what a war file looks like and expects the required files to be 
properly structured in your project.
The assembly plug-in requires more configuration but will build what you 
want and let you tell it where you have put the files that you want 
included.


There is also the shade plug-in that might be used instead of assembly. 
We do not use it but it does come up here very often as a way to make 
custom archives.


He is also very likely correct that you will find places with a better 
concentration of PHP/Maven users than here. Not that we are not inclined 
to help even when we do not know the whole story;-)




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

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 
supposed to do or how to use it.

Also, how do you search the mailing list archives? I had expected that to be a 
FAQ, but there doesn't appear to be a FAQ for this list.

Thanks in advance,
Russ
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 responsible for producing it.

 each of the corporate libraries managed this way. We acknowledged that this
 was definitely not the intended way of managing libraries, but we didn't see
 that one problem you pointed out.

Ah yes this one, tiny, problem was unforseen. ;-)

 As I mentioned above, these problem originate from the fact that I am not
 managing these corporate libraries the way I should. I will revert to

Somehow, you should force the party providing you these artifacts to
VERSION them. And ideally they could also DEPLOY them into your
Nexus/Artifactory instance so that you could merely depend on them in
your own projects.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 what it's
 supposed to do or how to use it.


I agree that documentation on custom annotation processing is hard to find.

My team uses a library called SezPoz (http://sezpoz.java.net/) which
provides a custom annotation processor, which operates at compile time
using Java6's Pluggable Annotation Processing API.

Since command-line Maven uses the installed system Java, which will usually
be either Oracle's Javac or the OpenJDK one, such custom annotation
processors will function as long as you are running at least Java6. (With
Java5 it is also possible, but you have to jump through some extra hoops.)

So for my team, our SezPoz-related annotations just work with no
additional configuration within Maven whatsoever.

If you need to write your own custom annotation processor, you could study
the SezPoz source code for a working example.

For further reading, you can check the Javadocs:

http://docs.oracle.com/javase/6/docs/api/javax/annotation/processing/Processor.html

If you meant some sort of Maven-specific custom annotation processing, then
I don't know of such a feature. But as I said, Maven (via Javac) should
invoke your annotation processors out of the box.

HTH,
Curtis

P.S. Beware of Eclipse: it does not run compile-time annotation processors
automatically, but must be specifically configured to do so:

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_apt_getting_started.htm
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280542

For our projects with SezPoz, we commit two key files to the VCS to force
Eclipse to behave properly immediately (rather than needing to dig around
in the Eclipse project settings UI):
https://github.com/imagej/imagej/blob/master/core/core/.factorypath

https://github.com/imagej/imagej/blob/master/core/core/.settings/org.eclipse.jdt.apt.core.prefs


On Tue, Apr 3, 2012 at 10:17 AM, Russell Gold russell.g...@oracle.comwrote:

 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
 supposed to do or how to use it.

 Also, how do you search the mailing list archives? I had expected that to
 be a FAQ, but there doesn't appear to be a FAQ for this list.

 Thanks in advance,
 Russ
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 do you search the mailing list archives? I had expected
 that to be a FAQ, but there doesn't appear to be a FAQ for this list.

Nabble.com provides a search interface for the mailing list:
http://maven.40175.n5.nabble.com/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 config into one of my own pom.xml files,
then put ojdbc6.jar in a lib subdir and ran mvn -X compile:
https://gist.github.com/2293464

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 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 mirror in your settings.xml


 Thank you as well for the info! This was what I needed to know.


 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 3, 2012, at 12:01 PM, Wayne Fay wrote:

 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 do you search the mailing list archives? I had expected
 that to be a FAQ, but there doesn't appear to be a FAQ for this list.
 
 Nabble.com provides a search interface for the mailing list:
 http://maven.40175.n5.nabble.com/
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/main/resources
[INFO] skip non existing resourceDirectory
/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/target/generated-sources/extracted-dependencies/src/main/resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 4 source files to
/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/target/classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[5,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[6,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[7,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[8,18]
package javax.jmdns does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[46,12]
cannot find symbol
symbol  : class JmDNS
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[47,12]
cannot find symbol
symbol  : class ServiceListener
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[48,12]
cannot find symbol
symbol  : class ServiceInfo
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[23,24]
package R does not exist

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[55,20]
cannot find symbol
symbol  : variable JmDNS
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[56,58]
cannot find symbol
symbol  : class ServiceListener
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[89,26]
cannot find symbol
symbol  : variable ServiceInfo
location: class com.huawei.cona.android.zeroconf.ServiceDiscovery

/home/conalab/MikesNewAndroidWork/workspace3/jxwhiteboard_ccn_gohuawei_dist/trunk/src/com/huawei/cona/android/zeroconf/ServiceDiscovery.java:[102,45]
package R does not exist


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Apr 02 12:46:38 PDT 2012
[INFO] Final Memory: 31M/273M



Any help thanks

On Tue, Apr 3, 2012 at 3:26 AM, Mariusz Plucinski 
plucinski.mari...@gmail.com wrote:

 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 directly related to your problem. Isn't there any other message before
 build failure?

 Best regards,
 Mariusz Pluciński







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 solved through those avenues.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 first step is always to make it work with plain jane javac
first... Then you should have no trouble making it work with Maven
since the compiler plugin just basically reaches out to your JDK to
perform the annotation and compilation steps. You simply need to
configure the plugin properly once you know (for sure!) it works with
javac.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 (composing the library and application artifacts).

I think we will write tutorials for those three solutions and the
developers should be able to choose their favorite way.

Thanks for your feedback. :-)

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[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 highlighting of license
[MSKINS-38] - Tables in Bootstrap-2.0 are not backwards compatible

Improvements

[MSKINS-37] - Add(name and) version of used skin as comment in the page-header

More details how to integrate the skin in your Apache projects can be
found on the skin homepage
http://maven.apache.org/skins/maven-fluido-skin/

Enjoy and have fun!
-Simo, on behalf of the Apache Maven team.

PS: sorry for the late message but I haven't had internet connection
for few days

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[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 project itself are placed in a generated Maven 
repository in a defined assemble directory. All artifacts (dependencies 
+ the artifact from the project) are added to the classpath in the 
generated bin scripts.


Project URL:
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/index.html

We solved 13 issues:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11780version=18320

The appassembler-maven-plugin is available under the following
coordinates via Maven-Central:

plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdappassembler-maven-plugin/artifactId
  version1.2.1/version
/plugin


Bug

[MAPPASM-95] - jvmSettings and daemons parameters
   to generate:daemons are not documented in the
goals section of site.
[MAPPASM-100] - Windows Batch file doesn't propagate
exit code properly
[MAPPASM-107] - No doc on the inside of daemons/
[MAPPASM-118] - system dependency on tools.jar not accounted for
[MAPPASM-147] - Unix shell script fails as softlink
[MAPPASM-149] - Chicken-egg problem with 'mvn test'
[MAPPASM-150] - Created JSW (wrapper.conf) contains wrong
location for the generated repository.
[MAPPASM-151] - Write shell script error echo to stderr

Improvement

[MAPPASM-145] - Wrong order of artifacts in generated classpath
[MAPPASM-148] - Property 'basedir' misleading

New Feature

[MAPPASM-98] -  need dependencies in system scope
[MAPPASM-155] - JSW - need to be able to configure
wrapper log directory

Task

[MAPPASM-143] - Why does the unit test fail with a new release?


The Mojo-Team
Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 like this where the client-generic is the dependency brought into
each of the other final client projects:
client
...client-generic
...client1
...client2
...client3

These clientx projects have some completely different files in them.  I use
the maven assembly plugin to bring these new files in.  However, the
clientx projects also have several configuration files that are identical
other than a property.  For instance, there is one configuration file which
is identical in all of them except for an IPAddress property.

Ideally, I would like to avoid duplicating this file in every clientx
project and instead put this configuration file in the client-generic
project with a property set:
value${IPAddress}/value
Then I would like for each clientx project to set the property accordingly.

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?

thanks


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 directions in this Sonatype blog post written
by Brian Fox:
http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 doing and
what the blog does is that the blog is using unpack-dependencies goal
while I am simply using the unpack goal.  I assume that shouldn't matter.

When you turn on filtering on a resource directory, does it apply
recursively?

On Tue, Apr 3, 2012 at 2:32 PM, Wayne Fay wayne...@gmail.com wrote:

  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 directions in this Sonatype blog post written
 by Brian Fox:

 http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 file is located in archetype-resources/parent/pom.xml
Is there some way I can configure the generate-goal to pick up the file at this 
location?

Before any questions arise...we have to use this layout because 
Rational-Team-Concert is not able to handle nested projects and this can result 
in a totally wrong repository state (error-prone). The safe way for our 
team-member is the flat structure.

Best regards
Marc


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.


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 look for the 
 minimal POM at archetype-resource/pom.xml.

 In my case this file is located in archetype-resources/parent/pom.xml
 Is there some way I can configure the generate-goal to pick up the file at 
 this location?

 Before any questions arise...we have to use this layout because 
 Rational-Team-Concert is not able to handle nested projects and this can 
 result in a totally wrong repository state (error-prone). The safe way for 
 our team-member is the flat structure.

My recollection is that the flat structure is no longer a recommended approach.
To get the flat structure to work you need to specify relativePath in
the parent declaration and this is a source of pain and then the
parent pom needs to declare its modules as ../module_name

I suspect that because of this, the archetypes don't allow you to
create a flat structure.
But that doesn't stop you from manually doing this.  Just move the
parent to be a sibling of the modules, make the changes specified
above, and off you go.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 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 file is located in archetype-resources/parent/pom.xml
Is there some way I can configure the generate-goal to pick up the file at this 
location?

Before any questions arise...we have to use this layout because 
Rational-Team-Concert is not able to handle nested projects and this can result 
in a totally wrong repository state (error-prone). The safe way for our 
team-member is the flat structure.

Best regards
Marc


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 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 doing and
 what the blog does is that the blog is using unpack-dependencies goal
 while I am simply using the unpack goal.  I assume that shouldn't matter.

 When you turn on filtering on a resource directory, does it apply
 recursively?


 On Tue, Apr 3, 2012 at 2:32 PM, Wayne Fay wayne...@gmail.com wrote:

  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 directions in this Sonatype blog post written
 by Brian Fox:

 http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org





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 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 config into one of my own pom.xml files,
 then put ojdbc6.jar in a lib subdir and ran mvn -X compile:
 https://gist.github.com/2293464

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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
resource filtering to the directory.

On Tue, Apr 3, 2012 at 4:11 PM, Ryan Wexler r...@iridiumsuite.com wrote:

 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 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 doing and
 what the blog does is that the blog is using unpack-dependencies goal
 while I am simply using the unpack goal.  I assume that shouldn't matter.

 When you turn on filtering on a resource directory, does it apply
 recursively?


 On Tue, Apr 3, 2012 at 2:32 PM, Wayne Fay wayne...@gmail.com wrote:

  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 directions in this Sonatype blog post written
 by Brian Fox:

 http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org






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?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 executable but it is placed into tar archive

 any ideas?

http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html
http://ant.apache.org/manual/Tasks/chmod.html

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 references for the classes inside the jar, as if it never was
used. I can not add anything to my main pom.xml to include the dependency
of this new jar, since all attempts get an error message using the wrong
pom for this project Like it knows this dependency is not allowed for some
reason.

The new Jar I added is from my eclipse project that is to run on my android
phone.

So now I am going to attempt to rebuilt everything over again and follow
the instructions, in hopes that this will correct it.

Anyone know why this is so broken when it comes to Android porting!!

On Tue, Apr 3, 2012 at 4:15 PM, Paul Rivera paulriver...@gmail.com wrote:

 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 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 config into one of my own pom.xml files,
  then put ojdbc6.jar in a lib subdir and ran mvn -X compile:
  https://gist.github.com/2293464
 
  Wayne
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 



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
version1.0.2/version
/dependency
This artifact is available in Maven central.  However, the transitive 
dependency org.eclipse.persistence:javax.persistence is not available 
in Maven central.  So I added the EclipseLink repo in settings.xml:

profile
ideclipse-repo/id
repositories
repository
ideclipselink.repository/id
nameEclipseLink Repo/name
releases
enabledtrue/enabled
/releases
snapshots
enabledfalse/enabled
/snapshots
urlhttp://download.eclipse.org/rt/eclipselink/maven.repo//url
layoutdefault/layout
/repository
/repositories
/profile
The build succeeded when I compiled with -Peclipse-repo profile since 
it was able to download the javax.persistence artifact from EclipseLink 
Maven repo.
The local maven repo is now populated with javax.persistence artifact.  
The second time I compiled w/o -Peclipse-repo profile, it failed with 
the following message:


[ERROR] Failed to execute goal on project test.maven3: Could not resolve 
dependencies for project test:test.maven3:jar:1.0-SNAPSHOT: Failure to 
find org.eclipse.persistence:javax.persistence:jar:2.0.3 in 
http://repo1.maven.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of 
maven-central has elapsed or updates are forced - [Help 1]


Why is Maven trying to download the artifact if it's available in the 
local maven repo?

This works in Maven 2 but not Maven 3.  Is this a bug in Maven 3?

Thanks,
Jane

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 aggregate proxy repos 
to all the sites you need.  Then your metadata should all be from the same url 
and repo Id and as an added bonus your builds should be a lot faster.


Sent from my Blackberry.

- Original Message -
From: Jane Young jane.yo...@oracle.com
To: users@maven.apache.org users@maven.apache.org
Cc: GRECOURT,ROMAIN romain.greco...@oracle.com; Sanjeeb Sahoo 
sanjeeb.sa...@oracle.com
Sent: Tue Apr 03 23:46:44 2012
Subject: Bug in Maven 3?

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
version1.0.2/version
/dependency
This artifact is available in Maven central.  However, the transitive 
dependency org.eclipse.persistence:javax.persistence is not available 
in Maven central.  So I added the EclipseLink repo in settings.xml:
profile
ideclipse-repo/id
repositories
repository
ideclipselink.repository/id
nameEclipseLink Repo/name
releases
enabledtrue/enabled
/releases
snapshots
enabledfalse/enabled
/snapshots
urlhttp://download.eclipse.org/rt/eclipselink/maven.repo//url
layoutdefault/layout
/repository
/repositories
/profile
The build succeeded when I compiled with -Peclipse-repo profile since 
it was able to download the javax.persistence artifact from EclipseLink 
Maven repo.
The local maven repo is now populated with javax.persistence artifact.  
The second time I compiled w/o -Peclipse-repo profile, it failed with 
the following message:

[ERROR] Failed to execute goal on project test.maven3: Could not resolve 
dependencies for project test:test.maven3:jar:1.0-SNAPSHOT: Failure to 
find org.eclipse.persistence:javax.persistence:jar:2.0.3 in 
http://repo1.maven.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of 
maven-central has elapsed or updates are forced - [Help 1]

Why is Maven trying to download the artifact if it's available in the 
local maven repo?
This works in Maven 2 but not Maven 3.  Is this a bug in Maven 3?

Thanks,
Jane

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org