Re: Accessing an xsl in another project from a unit test case

2012-06-21 Thread tobias maslowski
By the call of Class.getClassLoader() before retrieving the resource-Stream you do navigate to the root of your classpath. Keeping that in mind, the call you described provided the parameter my.xsl should deliver the InputStream pointing to src/main/resources/my.xsl as wayne described of ANY jar

Expected file names in local repo when downloading unique snapshot artifacts?

2012-06-21 Thread Bernd.Vogt
Currently, I'm not sure about the expected behaviour of Maven when downloading unique snapshots, especially about the version format of the materialized files in the local repository. Case 1: * project that references the parent foo:bar:pom:1-SNAPSHOT * foo:bar:pom:1-SNAPSHOT can be resolved

Re: Naming of jar artifacts

2012-06-21 Thread org.apache.maven.user
On Thu, 21 Jun 2012 07:38:32 +0200 Anders Hammar and...@hammar.net wrote: Is there any way to get Maven to avoid appending version numbers to jar files without breaking package resolution, or requiring acrobatics on the part of someone wanting to use the package? No. Or to clarify, you

Re: Naming of jar artifacts

2012-06-21 Thread Anders Hammar
Yes, you use classifiers for that. Normally not a clean Maven solution though. Please do understand they will all have the same set of dependencies as they share one pom. /Anders (mobile) Den 21 jun 2012 16.51 skrev org.apache.maven.u...@io7m.com: On Thu, 21 Jun 2012 07:38:32 +0200 Anders

Re: Naming of jar artifacts

2012-06-21 Thread org.apache.maven.user
On Thu, 21 Jun 2012 17:27:18 +0200 Anders Hammar and...@hammar.net wrote: Yes, you use classifiers for that. Normally not a clean Maven solution though. Please do understand they will all have the same set of dependencies as they share one pom. Yes, the dependencies are fine. I'm aware this

Re: Can't read phase value from properties file...

2012-06-21 Thread sureshrk19
Thanks Aliaksei. Will try build-configurator* plugins.. -- View this message in context: http://maven.40175.n5.nabble.com/Can-t-read-phase-value-from-properties-file-tp5711621p5711729.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Fetching classified artifacts (was: Naming of jar artifacts)

2012-06-21 Thread org.apache.maven.user
On Thu, 21 Jun 2012 15:39:58 + org.apache.maven.u...@io7m.com wrote: On Thu, 21 Jun 2012 17:27:18 +0200 Anders Hammar and...@hammar.net wrote: Yes, you use classifiers for that. Normally not a clean Maven solution though. Please do understand they will all have the same set of

Re: Fetching classified artifacts (was: Naming of jar artifacts)

2012-06-21 Thread Wayne Fay
I sort of want to have the project depend on its own extra, classified artifacts, but I imagine that's considered a circular dependency and will drive some tools insane... Make yet another project called jogl.all.butseriouslythisiswhatyouwant and have it depend on the others, then they will

Re: Fetching classified artifacts (was: Naming of jar artifacts)

2012-06-21 Thread org.apache.maven.user
On Thu, 21 Jun 2012 12:07:03 -0500 Wayne Fay wayne...@gmail.com wrote: I sort of want to have the project depend on its own extra, classified artifacts, but I imagine that's considered a circular dependency and will drive some tools insane... Make yet another project called

Can not execute Sonar: Unable to determine structure of project.

2012-06-21 Thread hujirong
Hi I got this error from today in a RTC/Maven build. I can run mvn sonar:sonar from command line without any issue. /[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project CdiServicesParent: Can not execute Sonar: Unable to determine structure of

Re: Fetching classified artifacts (was: Naming of jar artifacts)

2012-06-21 Thread org.apache.maven.user
On Thu, 21 Jun 2012 17:18:22 + org.apache.maven.u...@io7m.com wrote: On Thu, 21 Jun 2012 12:07:03 -0500 Wayne Fay wayne...@gmail.com wrote: I sort of want to have the project depend on its own extra, classified artifacts, but I imagine that's considered a circular dependency and

Maven for Software Installation

2012-06-21 Thread Eric Kolotyluk
I have brought this notion up before, but I have been thinking about it a bit more. Would it make sense to use Maven technology for software deployment and installation as opposed to just builds? What I envision is something akin to the Global Assembly Cache in .NET, but for Maven

RE: Maven for Software Installation

2012-06-21 Thread Lyons, Roy
I have thought about this as well, but thinking that perhaps a pom with dependencies and then using the assembly plugin to create the final distribution would be good... but then I realized that it would be better in a corporate environment to provide them in a single tested archive or

We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread hujirong
[WARNING] We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class in C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar What does this mean? I deleted org/apache folder in C:\Users\Administrator\.m2\repository, still having this error. Thanks Jirong

Re: Maven for Software Installation

2012-06-21 Thread Pascal Rapicault
The approach you are describing is akin to what the Eclipse provisioning platform (aka p2) provides with its concept of bundle pool (equivalent of GAC). From experience, while this works in practice (for example a commercial distro of Eclipse called Yoxos ships like this (I'm not affiliated

Re: Fetching classified artifacts (was: Naming of jar artifacts)

2012-06-21 Thread Wayne Fay
But when building a project that depends on jogl-all-main-2.0-rc9, the jogl.all-2.0 jar and all of the native jars are conspicuously absent (despite being downloaded from the repository at the start of the build). Is there something I need to add to get them onto the classpath? I don't recall

Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread Wayne Fay
[WARNING] We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class in C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar What does this mean? I deleted  org/apache folder in C:\Users\Administrator\.m2\repository, still having this error. Did you

Re: Fetching classified artifacts (was: Naming of jar artifacts)

2012-06-21 Thread org.apache.maven.user
On Thu, 21 Jun 2012 19:46:45 + org.apache.maven.u...@io7m.com wrote: On Thu, 21 Jun 2012 17:18:22 + org.apache.maven.u...@io7m.com wrote: On Thu, 21 Jun 2012 12:07:03 -0500 Wayne Fay wayne...@gmail.com wrote: I sort of want to have the project depend on its own extra,

Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread Joseph
If u were using oracle jdk 1.5+,have a try with jvm param -xx:+TraceClassLoading ,this might helps a little 在 2012-6-22,8:26,hujirong jirong...@gmail.com 写道: [WARNING] We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class in

Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread hujirong
I opened the jar, don't see anything abnormal. But do find a new added project with shade in it: build plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread Wayne Fay
I opened the jar, don't see anything abnormal. But do find a new added project with shade in it: I don't understand what this has to do with anything else. It seems more explanation is required if you want a helpful answer. Wayne

Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread hujirong
You mentioned shade, I find the shade. What else you need? Thanks Jirong -- View this message in context: http://maven.40175.n5.nabble.com/We-have-a-duplicate-org-apache-log4j-varia-ExternallyRolledFileAppender-class-tp5711741p5711756.html Sent from the Maven - Users mailing list archive at

Re: Maven for Software Installation

2012-06-21 Thread Eric Kolotyluk
One of the things I have been doing is creating uber-jars. This is mighty nice in that that you can just do something like java -jar uber.jar and everything just starts, whether it be a client application (i.e. GUI) or a service. In my case, the application/service is also the installer. If

Re: Maven for Software Installation

2012-06-21 Thread Graham Leggett
On 21 Jun 2012, at 20:53, Eric Kolotyluk eric.koloty...@gmail.com wrote: I have brought this notion up before, but I have been thinking about it a bit more. Would it make sense to use Maven technology for software deployment and installation as opposed to just builds? It definitely makes

Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

2012-06-21 Thread hujirong
Here are the only two differences between a good and a bad build: https://lh4.googleusercontent.com/-S5iu0VTiKK4/T-OaSfWwwOI/F1A/GpLGVRiGTCY/s1110/shade.png https://lh4.googleusercontent.com/-EWf0MkoYqJc/T-OaSzzk0CI/F1A/6m_3paKLFlA/s1109/shade2.png -- View this message in

How to re-use download monitor

2012-06-21 Thread Mickael Istria
Hi all, In a Mojo, I'd like to reuse the download monitor that we see when using maven-dependency-plugin for instance. I could not find a piece of code or reference to a Plexus componentt ot do that. Can someone give me a hint? Cheers. -- Mickael Istria Eclipse developer at JBoss, by Red Hat

Want to upgrade to Sonar 3.1, but sonar-maven3-plugin.jar 3.1 is not there?

2012-06-21 Thread hujirong
http://mvnrepository.com/artifact/org.codehaus.sonar/sonar-maven3-plugin/3.1 Why the jar file is not there? Thanks Jirong -- View this message in context: http://maven.40175.n5.nabble.com/Want-to-upgrade-to-Sonar-3-1-but-sonar-maven3-plugin-jar-3-1-is-not-there-tp5711761.html Sent from the