How to build classes, WAR, EAR in one POM?

2008-12-08 Thread Shananin, Alexei
Dear All! I am new to Maven 2.0.9 and I am facing the following problem. We started migration from JDeveloper 10g towards Maven. Current JDeveloper project structure looks like that: 1) WebProject/src -- java sources, resources 2) WebProject/public_html -- web sources (jsp, html, libs,

Re: release ${properties} in pom.xml to make different sites

2008-12-08 Thread Anders Kristian Andersen
Hi again I am using the expresson language support like ${pom.artifactId} that is official called ${project.artifactId} as I have understood. And this does not solve the issue I am adressing here.. The issue is that the TRUNK or VV-SNAPSHOT version is located at url ...

Re: splitting apart a web app

2008-12-08 Thread Andy Law
Rusty Wright-2 wrote: I looked at that but they're not splitting it down to the level that I'm trying. snip / I was thinking of splitting my web app so that I have a cars-war project where in the scm it contains only things like the jsps, no java code. In its pom it will specify

Build fails for an empty test-jar with maven-jar-plugin 2.2

2008-12-08 Thread torsten . reinhard
Hi, I have a parent pom.xml with packaging pom and some child modules in the modules section, defining: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version

Re: How to add a local jar to the classpath of exec-maven-plugin

2008-12-08 Thread Jaikiran
Stephen Connolly-2 wrote: Options: 1. Add xyz to your repo (seriously, this is the easiest) 2. Add xyz as a dependency to the plugin using the system scope (not too difficult, but you'd be better off with 1 as once you start using the system scope, you'll incorrectly think it's the

getting 3rd party javadoc for deps into local repo

2008-12-08 Thread Adam Hardy
I'm using mvn dependency:source -Dclassifier=javadoc to try to get maven to retrieve the javadoc jars for all my dependencies from the central repo and put them into my local repo. It's not working though. In fact, it seems that the 'classifier' option is completely ignored. Maybe I'm

RE: Maven Repository

2008-12-08 Thread Stefan Prange
Hi, I had this problem, too. Here's my solution: 1. Simply run your build once on a machine that's connected to the network. Maven will fill the local repository on this machine with all plugins and libraries (artifacts) that your build needs. 2. Copy this local repository to your build machine.

expression language for project.groupId dots as slash

2008-12-08 Thread Anders Kristian Andersen
Hi When I refere URL's it could be usable to refere the ${project.groupId} like urlhttp://my-server/${project.groupId}/${project.artifactId}/ url This is just not possible because project.groupId == com.my- company.package1..n.my-group I mean this is dots not slashes that separates the

war-plugin and outputFileNameMapping

2008-12-08 Thread Marcin Kwapisz
Hi, I have problem with class-path in manifest file. My war-plugin configuration is as follows: plugin artifactIdmaven-war-plugin/artifactId version2.1-alpha-2/version configuration outputFileNameMapping@{artifactId}@@[EMAIL

Re: How to add a local jar to the classpath of exec-maven-plugin

2008-12-08 Thread Stephen Connolly
Options: 1. Add xyz to your repo (seriously, this is the easiest) 2. Add xyz as a dependency to the plugin using the system scope (not too difficult, but you'd be better off with 1 as once you start using the system scope, you'll incorrectly think it's the solution to all your problems and then

Version property in root POM multi-level dependency resolution

2008-12-08 Thread De Smet Ringo
Hello, I am busy creating an easy Maven2 setup for a 200+ module system, both targeted to an easier release and an easier development setup. It is a multi-level system, with common modules, service modules and presentation (web-ui) modules. I will use a simplification of this setup in this

Re: How to build classes, WAR, EAR in one POM?

2008-12-08 Thread Anders Kristian Andersen
Hi Alex One pom produces one artifact You can see it as a structure parent ear-artifact war-artifact It is not worth trying other things.. Maven assembly plugins can make attachments, but this is not good in your situation /Anders On 08/12/2008, at 09.10, Shananin,

Re: Does maven plugin configuration skip option is managed by the plugin?

2008-12-08 Thread Nick Stolwijk
On the other hand, you can create a profile, which includes this plugin. This way you can solve the skipping part from your pom, instead of the plugin. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Fri, Dec 5, 2008 at 10:00 PM, Wayne Fay

How to add a local jar to the classpath of exec-maven-plugin

2008-12-08 Thread Jaikiran
I am using Maven2 and trying to run a java class from Maven using the exec-maven-plugin. Here's how it looks like: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId version1.1-beta-1/version executions execution

Re: splitting apart a web app

2008-12-08 Thread Andy Law
Andy Law wrote: We do this currently - for exactly the reasons that you describe - and it works fine. Although picking up properties files etc. in DreamWeaver doesn't work. sigh / Later, Andy -- View this message in context:

Re: How to build classes, WAR, EAR in one POM?

2008-12-08 Thread Anders Kristian Andersen
I see it is still possible to make the three artifacts I describe You just have to change the source/build location a lot You can specify sources outside a project by ../../../here/there/ probably ugly, and probably hard to understand /Anders On 08/12/2008, at 11.13, Shananin, Alexei wrote: Hi

Re: Build fails for an empty test-jar with maven-jar-plugin 2.2

2008-12-08 Thread Stephen Connolly
afaik there is a parameter you can set to allow empty jars 2008/12/8 [EMAIL PROTECTED] Hi, I have a parent pom.xml with packaging pom and some child modules in the modules section, defining: build plugins plugin groupIdorg.apache.maven.plugins/groupId

maven jboss-aop plugin

2008-12-08 Thread miro
I am looking for maven jboss-aop plugin , I followed instruction from http://www.jboss.org/community/docs/DOC-10204 but my maven does not find any jbossaop plugin .Please help me with correct group or artifact for jboss aop plugin. -- View this message in context:

POM Private Inheritence

2008-12-08 Thread Todd Thiessen
From reading the POM documenation here: http://maven.apache.org/pom.html#Inheritance it sounds like only certain sections of the POM get inheritied. For instance, the SCM section is one section that is NOT mentioned as inherited. However, when I use m2e to show a pom's effective pom, it is

deploy-file authentication

2008-12-08 Thread solo1970
Hello All, I know that in the deploy-file, documentation it says to put the authentication to the repository in the settings file. However, I was wondering if there was another way to do it? By authenticating on the command-line??? It's a bit of a problem for us to have the unencrypted

source code for plexus-maven-plugin and plexus-cdc

2008-12-08 Thread Torsten Werner
Hi, my newest pom files tell me: http://svn.codehaus.org/plexus/plexus-maven-plugin/tags/plexus-maven-plugin-1.3.8 http://svn.codehaus.org/plexus/plexus-tools/tags/plexus-tools-1.0.10/plexus-cdc but I get error 404 in both cases. Does anybody know where the latest releases is available as

trouble configuring jboss aop plugin

2008-12-08 Thread miro
I am getting this error message 12/8/08 12:27:55 PM EST: Missing artifact org.jboss.maven.plugins:maven-jbossaop-plugin:jar:1.0.0:compile here is my pom.xml please help me fix this. project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Filtering web resources with values from settings.xml

2008-12-08 Thread Wim Deblauwe
Hi, is it possible to filter external web resources as explained here: http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html, but using the values from my settings.xml instead of values from an extra file? regards, Wim

Re: source code for plexus-maven-plugin and plexus-cdc

2008-12-08 Thread Dan Tran
the plugin 1.3.8 was deploy without source code http://repo2.maven.org/maven2/org/codehaus/plexus/plexus-maven-plugin/ -D On Mon, Dec 8, 2008 at 8:53 AM, Torsten Werner [EMAIL PROTECTED] wrote: Hi, my newest pom files tell me:

Re: source code for plexus-maven-plugin and plexus-cdc

2008-12-08 Thread Torsten Werner
Hi Dan, thanks. How can I find out who did deploy the artifact to ask him/her directly? Cheers, Torsten On Mon, Dec 8, 2008 at 6:56 PM, Dan Tran [EMAIL PROTECTED] wrote: the plugin 1.3.8 was deploy without source code http://repo2.maven.org/maven2/org/codehaus/plexus/plexus-maven-plugin/

Re: source code for plexus-maven-plugin and plexus-cdc

2008-12-08 Thread Dan Tran
You should file a bug against Plexus, and use the version that has deployed source -D On Mon, Dec 8, 2008 at 11:10 AM, Torsten Werner [EMAIL PROTECTED] wrote: Hi Dan, thanks. How can I find out who did deploy the artifact to ask him/her directly? Cheers, Torsten On Mon, Dec 8, 2008 at

Re: how to configure hibernate3-maven-plugin

2008-12-08 Thread Rusty Wright
I have a vague memory that the AppFuse archetypes use the hibernate plugin, but I can't swear to it; try this: http://appfuse.org/display/APF/AppFuse+QuickStart dahoffer wrote: Can someone point me to an example of how to use hibernate3-maven-plugin to: 1. Create hibernate mapping files

Can JNDI be configured in the Jetty plugin configuration/ section?

2008-12-08 Thread David C. Hicks
I'm switching my app to use JNDI to find its datasource, but I'd really rather not have to drop a jetty-env.xml file into my source tree. I figured I could put my configure/ for the JNDI resource into the maven-jetty-plugin's configuration/ section. Now that I've done that and altered my

Re: trouble configuring jboss aop plugin

2008-12-08 Thread Wayne Fay
12/8/08 12:27:55 PM EST: Missing artifact org.jboss.maven.plugins:maven-jbossaop-plugin:jar:1.0.0:compile This means Maven cannot find the plugin maven-jbossaop-plugin with the version 1.0.0. pluginRepository releases updatePolicynever/updatePolicy /releases

Re: How to build classes, WAR, EAR in one POM?

2008-12-08 Thread Walid jo Gedeon
Hello Anders, You actually need only 2 poms, the compile of classes and packaging into a war is one, and the packaging into a ear is another. If you are willing to add a second directory next to each one, say with name WebProject-ear, this project's pom would refer to the xml file that is

Reusing assembly descriptors aka. sharing them between projects

2008-12-08 Thread jaxzin
I've created a standard way for our projects to be bundled for deployment using an assembly descriptor. I'd like all our projects to use it unchanged without having to copy it into each project. Any suggestions? Off the top of my head the only viable idea I have is to deploy it in a zip to

Is there a way to also copy source jars using dependency plugin?

2008-12-08 Thread stug23
Our project has written a jar extractor that uses the dependency plugin to build a directory of jars from the Maven repository for a project. These jars are to be used by a non-Maven project (which eventually will be converted to Maven, only not yet). We would also like to include the source jars

Re: Is there a way to also copy source jars using dependency plugin?

2008-12-08 Thread Wendy Smoak
On Mon, Dec 8, 2008 at 6:30 PM, stug23 [EMAIL PROTECTED] wrote: Our project has written a jar extractor that uses the dependency plugin to build a directory of jars from the Maven repository for a project. These jars are to be used by a non-Maven project (which eventually will be converted to

Re: Reusing assembly descriptors aka. sharing them between projects

2008-12-08 Thread Wayne Fay
Off the top of my head the only viable idea I have is to deploy it in a zip to the Maven repo and use dependency plugin to resolve and unpack before assembly step. Any caveats to that idea? None that I am aware of. This is the approach generally used for sharing configurations for Checkstyle

maven jboss aop failing with access is denied to classes folder

2008-12-08 Thread miro
I am using maven2 eclipse project, also jboss maven plugin.I run the install , the jboss compile fails [INFO] [jbossaop:compile] [ERROR] Exception in thread main java.io.FileNotFoundException: C:\dev\audit\target\classes (Access is denied) , I checked the actual folder and i saw its readonly

Re: Reusing assembly descriptors aka. sharing them between projects

2008-12-08 Thread John Stoneham
Off the top of my head the only viable idea I have is to deploy it in a zip to the Maven repo and use dependency plugin to resolve and unpack before assembly step. Any caveats to that idea? None that I am aware of. This is the approach generally used for sharing configurations for

maven dashboard plugin problem

2008-12-08 Thread Durbha, Praveen (GE Healthcare)
Hi, I am trying to use the maven-dashboard-plugin to store and display build metrics on the dashboard application from an Oracle XE database..but the metrics are not getting stored in the OracleXE database.. Isn't the maven-dashboard-pulgin compatible with the Oracle XE database? The

Antwort: Re: Build fails for an empty test-jar with maven-jar-plugin 2.2

2008-12-08 Thread torsten . reinhard
...and what´s the parameters name and options? Thanx, Torsten Stephen Connolly [EMAIL PROTECTED] 08.12.2008 12:52 Bitte antworten an Maven Users List users@maven.apache.org An Maven Users List users@maven.apache.org Kopie Thema Re: Build fails for an empty test-jar with maven-jar-plugin

Creating a dependency pack jar

2008-12-08 Thread Lilianne E. Blaze
Hello, First, I'm still pretty new to Maven, so it's quite possible I'm missing something obvious here. I have the following scenario (simplified) : one project/POM for the application, AppPom, one project which doesn't contain any sources, just declares dependencies, DepsPom, and a number of 3rd