How to prevent renaming of third-party file?

2013-06-11 Thread Markus Karg
My project is dependent on a third-party JAR file which will be installed on the target machine by a mechanism other than Maven. Hence, I have no influence on its actual file name. As I want Maven to automatically build the MANIFEST's Class-Path entry, I have put the same third-party JAR into m

Re: Include maven dependencies inside jar file

2013-06-11 Thread Anders Hammar
If you want the deps extracted, you need to do a combination of [1] and [2]. If you want the dep jars included in the final jar, I think you best option is to use the maven-assembly-plugin [3]. You also need to make the final jar executable in this case. [1] http://maven.apache.org/plugins/maven-

Re: For Android project how do I get maven to pickup all libraries in lib directory including .so files?

2013-06-11 Thread Manfred Moser
You should not do it this way Stephen wrote it all up nicely. http://developer-blog.cloudbees.com/2013/03/playing-trade-offs-with-maven.html > 0 down vote favorite > > I have project that compiles and links fine when using Eclipse IDE. > This project uses some external jar files and also us

Include maven dependencies inside jar file

2013-06-11 Thread Jorge Infante Osorio
Hi all. I´m newbie in maven. I have a Maven project and I need to build a jar file with the maven dependencies inside, like I do with export jar as runnable in Eclipse to execute the functionality from the command line. What plugin can I use for this with what config? Thanks. Saludos, Ing. Jor

For Android project how do I get maven to pickup all libraries in lib directory including .so files?

2013-06-11 Thread Subodh Nijsure
0 down vote favorite I have project that compiles and links fine when using Eclipse IDE. This project uses some external jar files and also uses some of JNI ( .so ) libraries. They are all located in the libs/ directory of my project. How should my pom.xml file look like in order for all the jar

Re: Newbie trying to understand how to use some plugins

2013-06-11 Thread Greg Trasuk
Re: "Local" access crossing different EAR files: That isn't Maven related, but I happened to be discussing this with some folks in my company just this morning. Basically it's a classloading issue. An Enterprise Application (ear file) has its own classloader. So the client in ear file B, tryin

Re: Downloading a file for shipping in an artifact

2013-06-11 Thread Stephen Connolly
On 11 June 2013 22:27, Stephen Connolly wrote: > On 11 June 2013 22:03, James Green wrote: > >> If you search for maven-download-plugin you should reach a project on >> GitHub. > > > Please advise them to rename their plugin as the current name is in > violation of the permitted usages of the ASF

Re: Newbie trying to understand how to use some plugins

2013-06-11 Thread Wayne Fay
> I think that I'd like to deploy to JBoss AS 7 with an EAR containing the EJB > jar, and two > separate wars that use the services of the beans packaged in the EAR. I'm a > little > concerned though because I read that if I go this route, the web tier will be > forced to use > the remote interf

Re: Using Maven to produce an EAR

2013-06-11 Thread Laird Nelson
On Tue, Jun 11, 2013 at 1:26 PM, rdiddly wrote: > I found that if I didn't use the jarModule in the configuration, > thirdparty.jar was put into the root directory of the ear instead of in the > lib folder (which is where I believe I want it), so I added the jarModule > block to specify that the

Re: Downloading a file for shipping in an artifact

2013-06-11 Thread Wayne Fay
> If you search for maven-download-plugin you should reach a project on > GitHub. There is another problem with this plugin in our case - it caches Yes, I found it, but don't plan to do much more at this time. > I'll take a look it only to be more familiar with them. I'll look at the > dependency

Re: Downloading a file for shipping in an artifact

2013-06-11 Thread Stephen Connolly
On 11 June 2013 22:03, James Green wrote: > See responses inline. > > > On 11 June 2013 21:47, Wayne Fay wrote: > > > > Nexus is used to host the .exe file. As the exe originates from a > > separate > > > Maven project, and it needs to live somewhere, I folded the exe > > generation > > > into a

Re: Downloading a file for shipping in an artifact

2013-06-11 Thread James Green
See responses inline. On 11 June 2013 21:47, Wayne Fay wrote: > > Nexus is used to host the .exe file. As the exe originates from a > separate > > Maven project, and it needs to live somewhere, I folded the exe > generation > > into an ant task as part of that maven project. Now I have versione

Re: Downloading a file for shipping in an artifact

2013-06-11 Thread Wayne Fay
> Nexus is used to host the .exe file. As the exe originates from a separate > Maven project, and it needs to live somewhere, I folded the exe generation > into an ant task as part of that maven project. Now I have versioned > hosting of the exe. I'm still confused about why you are having this pr

Re: Using Maven to produce an EAR

2013-06-11 Thread Wayne Fay
> I can build all of the sub-modules without any problems. Here's my pom to > build the ear (missing the open/close tags from XML, using ':' to separate > opening tag from content): Don't bother with this next time. Just post the XML. (Why did you feel the need to strip the tags? Nabble fixed thei

Re: Downloading a file for shipping in an artifact

2013-06-11 Thread James Green
Nexus is used to host the .exe file. As the exe originates from a separate Maven project, and it needs to live somewhere, I folded the exe generation into an ant task as part of that maven project. Now I have versioned hosting of the exe. But our customers are trapped behind a strict firewall. We

Using Maven to produce an EAR

2013-06-11 Thread rdiddly
Hello Maven mavens, Forgive me if this is a duplicate. I sent it by email, but didn't see it show up on the Nabble site, so I don't know if sending it to the list via email works or not. Good documentation on the maven ear plugin is not easy to find. Most posts are from 2005. I've got a multi-mo

RE: Release not creating source and javadoc jars

2013-06-11 Thread Timothy I. McGinnis
Well I finally got the chance to try a release from the command line and it worked. Therefore I would assume MyEclipse is modifying the normal behavior in some manner. I will post the question on the MyEclipse forums. Thank you for your replies and sorry for not trying the command line before

Re: Downloading a file for shipping in an artifact

2013-06-11 Thread Wayne Fay
> We have a maven project that results in a web archive. We want to ship a > file (a .exe) within this for simple download by customers. ... > So I am left wondering how I can ask that a web archive can be built that > ships with a file downloaded from our Nexus installation? This doesn't > sound l

Downloading a file for shipping in an artifact

2013-06-11 Thread James Green
We have a maven project that results in a web archive. We want to ship a file (a .exe) within this for simple download by customers. I've looked at the wagon plugin ( http://mojo.codehaus.org/wagon-maven-plugin/download-mojo.html) but this requires the target URL to be a directory from which a rel

Re: [ANN] Mojo's Tidy Maven Plugin 1.0-alpha-1 Released

2013-06-11 Thread Stephen Connolly
tabs are evil ;-) On 11 June 2013 16:45, Curtis Rueden wrote: > Hi Stephen, > > > The Mojo team is pleased to announce the release of Mojo's Tidy Maven > > Plugin version 1.0-alpha-1. > > Thanks, I think this is a good idea for a plugin! However, when I gave it a > spin on my project, it munged

Re: [ANN] Mojo's Tidy Maven Plugin 1.0-alpha-1 Released

2013-06-11 Thread Curtis Rueden
Hi Anders, > Even better, file a ticket: I knew someone was going to say that. ;-) https://jira.codehaus.org/browse/MOJO-1942 Regards, Curtis On Tue, Jun 11, 2013 at 11:04 AM, Anders Hammar wrote: > Even better, file a ticket: > http://mojo.codehaus.org/tidy-maven-plugin/issue-tracking.html

Re: [ANN] Mojo's Tidy Maven Plugin 1.0-alpha-1 Released

2013-06-11 Thread Anders Hammar
Even better, file a ticket: http://mojo.codehaus.org/tidy-maven-plugin/issue-tracking.html I also think there has been some work wrt spaces/tabs on trunk. /Anders On Tue, Jun 11, 2013 at 5:45 PM, Curtis Rueden wrote: > Hi Stephen, > > > The Mojo team is pleased to announce the release of Mojo

Re: [ANN] Mojo's Tidy Maven Plugin 1.0-alpha-1 Released

2013-06-11 Thread Curtis Rueden
Hi Stephen, > The Mojo team is pleased to announce the release of Mojo's Tidy Maven > Plugin version 1.0-alpha-1. Thanks, I think this is a good idea for a plugin! However, when I gave it a spin on my project, it munged the leading whitespace for each major section, replacing a single leading tab

Re: Newbie trying to understand how to use some plugins

2013-06-11 Thread RICHARD DOUST
Wayne, Thanks for your response. I don't really need to make the EJB jar work standalone. I was trying to divide and conquer. In 4.2.2 I deployed the EJB jar as part of an EAR with 2 WARs. I think that I'd like to deploy to JBoss AS 7 with an EAR containing the EJB jar, and two separate wars t

Re: Converting preformatted APT to PDF

2013-06-11 Thread Peter Lord
On 11/06/13 14:35, Lukas Theussl wrote: Peter Lord wrote: > On 11/01/13 11:26, Lukas Theussl wrote: >> Peter Lord wrote: >> > On 11/01/13 08:14, Lukas Theussl wrote: >> >> My question was: is the wrapping different in the apt source and the >> >> pdf/html output? Pre-formatted text preserves line

Re: Converting preformatted APT to PDF

2013-06-11 Thread Lukas Theussl
Peter Lord wrote: On 11/01/13 11:26, Lukas Theussl wrote: Peter Lord wrote: > On 11/01/13 08:14, Lukas Theussl wrote: >> My question was: is the wrapping different in the apt source and the >> pdf/html output? Pre-formatted text preserves line-breaks, so you would >> have to adjust the apt sou

Re: Converting preformatted APT to PDF

2013-06-11 Thread Peter Lord
On 11/01/13 11:26, Lukas Theussl wrote: Peter Lord wrote: > On 11/01/13 08:14, Lukas Theussl wrote: >> My question was: is the wrapping different in the apt source and the >> pdf/html output? Pre-formatted text preserves line-breaks, so you would >> have to adjust the apt source to fit your needs

Re: antrun plugin 404

2013-06-11 Thread Stephen Connolly
r1491738 fixes the broken link. I need to investigate how to fix the site without releasing the plugin. The correct link is http://ant.apache.org/manual/Tasks/ant.html On 11 June 2013 10:31, James Green wrote: > I'm reading from http://maven.apache.org/plugins/maven-antrun-plugin/ that > I shou

Re: antrun plugin 404

2013-06-11 Thread James Green
Thanks for this, my point was more that the web site should work instead of people asking for help in the list. But I appreciate your time! 2013/6/11 Martin Gainty > James- > > you can use ant antfile attribute to specify the exact location of > build.xml > here basedir is the current working

RE: antrun plugin 404

2013-06-11 Thread Martin Gainty
James- you can use ant antfile attribute to specify the exact location of build.xml here basedir is the current working directory where maven-antrun-plugin is executed ...more stuff... http://maven.apache.org/plugins/mave

antrun plugin 404

2013-06-11 Thread James Green
I'm reading from http://maven.apache.org/plugins/maven-antrun-plugin/ that I should write a build.xml and call it using the task. Trouble is, the link to the documentation comes back 404 Not Found. Is this stuff therefore still valid? James