Transactional Behaviour Maven Modules

2010-01-13 Thread Poyan Gerami
Hello, I have an maven project with 3 modules. Each module deploy an jar archive file to my application server. I whant to get an transactional behvaiour when i deploy my 3 modules, i mean I whant eather none or all 3 modules get deployed. Today it can be like module 1 and 2 deploys to the s

what it does? Maven Project's getCollectedProjects() method

2010-01-13 Thread amaresh mourya
Hi All, In org.apache.maven.project.MavenProject class, what does it mean by method public List getCollectedProjects() { return collectedProjects; } I suppose this is related to modules of any Maven Project. I have a pom.xml with modules and after the creation of maven project(A

Re : Transactional Behaviour Maven Modules

2010-01-13 Thread Julien HENRY
Hi, I have recently opened a wish [1] that is related (even if the title of the wish is not generic enough). In my proposal I called it an "atomic deploy process for multimodule". But this is only a wish and I don't think such a feature exists (even in Maven 3). As a workaround, see the answe

RE: Configure compiler plugin to compile at integration-test phase??

2010-01-13 Thread subir.sasikumar
Thanks for the clue. I reordered the logic of execution phase by phase, such that I do all the required things before test-compile phase. I was trying to do everything in pre-integration-test phase, and running into those problems. Thanks Subir -Original Message- From: Stephen Connolly

package org.springframework.osgi.service.importer does not exist

2010-01-13 Thread Alcaan
Hi! I'm using Ubuntu 8.04, Maven 2.2.1 and Eclipse with m2eclipse and I'm having this error: [ERROR] Mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile FAILED for project: com.realth:adaptadorUDP:bundle:0.0.1 Reason: /root/workspace/adaptadorWeb/src/main/java/com/r

Re: Maven compile puts javax.servlet.* in target/classes

2010-01-13 Thread Ryan Stewart
Wayne Fay wrote: > > This is a fun "bug" that we see on this list a couple times a year. > > It happens when you've got the javax.servlet.* source files in one of > your dependency jars. Its not a Maven error -- this is simply the > behavior of the java compiler. I'm pretty sure you're using GW

generated sources/resources path conventions

2010-01-13 Thread lukewpatterson
It seems like ${project.build.directory}/generated-sources/ and ${project.build.directory}/generated-resources/ have been mentioned [1][2], but I wonder if something like this ${project.build.directory}/generated/ is more consistent. With ${project.build.directory}/generated/, I could hav

how to specify the children module POM file name

2010-01-13 Thread TAN YUNSHI
Hi all, Do you know how to specify the children module POM file name? My structure is like this, Project | module 1 ||--pom.xml | module 2 ||--pom.xml ||--pom_init.xml | pom.xml In the parent POM, I like to add the 'pom_init.xml' as the P

Maven surefire plugin - recursive?

2010-01-13 Thread Steve Cohen
Given a project structure that has a parent pom, which itself has a parent (grandparent), I would like to define system properties such that any properties defined in the grandparent are also visible in the parent and to any children of the parent. But it appears that if the parent has a tag, it

Missing dependency on attached tests when -Dmaven.test.skip=true

2010-01-13 Thread Andreas Sewe
Hi all, I have three Maven projects example:A:1.0, example:B:1.0, and example:C:1.0. The former aggregates the two latter projects. Now project example:B:1.0 attaches a test-jar to is primary artifact (as per ). Project C has a

Re: how to specify the children module POM file name

2010-01-13 Thread Wayne Fay
> In the parent POM, I like to add the 'pom_init.xml' as the POM file for > module 2. The reason is complicate, the dev team creat the pom.xml and I > have not the right to touch it and I have to use the 'pom_init.xml' as > the POM file. Did you try module2/pom_init.xml? I'm not sure if it will wo

Embedded error: Unable to download the artifact from any repository

2010-01-13 Thread Christopher Styles
Hi, I'm running a maven release build from Hudson and when trying to download an artifact from a remote repository it fails with the error below... Does anyone has any pointers on how to resolve this issue...??? I'd really appreciate your help... FYI, I also added a snippet from my pom.xml, which

Re: Embedded error: Unable to download the artifact from any repository

2010-01-13 Thread Wayne Fay
> I'm running a maven release build from Hudson and when trying to download an > artifact from a remote repository it fails with the error below... Does > anyone has any pointers on how to resolve this issue...??? I'd really > appreciate your help... FYI, I also added a snippet from my pom.xml, whi

Re: Embedded error: Unable to download the artifact from any repository

2010-01-13 Thread Justin Edelson
1) Is the artifact actually there? 2) Do you have Archiva configured to require authentication and, if so, are the credentials properly configured in Hudson's settings.xml file? Due to MNG-3477, authentication failures aren't reported as such. Justin On Wed, Jan 13, 2010 at 11:50 AM, Christopher

Re: package org.springframework.osgi.service.importer does not exist

2010-01-13 Thread Wayne Fay
> I had no problems compiling this project before, and one day started to fail > without doing nothing special. The same project, in my PC with windows XP > and Maven 2.0.10, compiles well. I have tried everything! > And I know the problem is in the maven-compiler-plugin. Doing some stuff I highly

Re: Embedded error: Unable to download the artifact from any repository

2010-01-13 Thread Christopher Styles
Yes, the artifact is there... Yes, Archiva requies authentication... No, I don't have any crenditials configured in the hudson settings.xml... I know this isn't a hudson users group, but how would I specify that...??? On Wed, Jan 13, 2010 at 12:02 PM, Justin Edelson wrote: > 1) Is the artifact

Re: Embedded error: Unable to download the artifact from any repository

2010-01-13 Thread Justin Edelson
Same way you would for any user: ~/.m2/settings.xml Justin On Wed, Jan 13, 2010 at 12:29 PM, Christopher Styles wrote: > Yes, the artifact is there... Yes, Archiva requies authentication... No, I > don't have any crenditials configured in the hudson settings.xml... I know > this isn't a hudson u

Filtering problems with assembly plugin called from parent POM

2010-01-13 Thread adamd1234
Hi all, I have a most peculiar case within my compilation that is causing my assembly plug-in to not filter certain files. First of all I bound my assembly phase to the package phase for ease of assembling artefacts. The POM is defined as so: org.apache.maven.plugin

Re: package org.springframework.osgi.service.importer does not exist

2010-01-13 Thread Alcaan
Now I managed to compile it. I'm adding this to the POM: org.springframework.osgi spring-osgi-core 1.1.0 This artifact contains the package not found. But still don't understand why in Windows (and sometimes in Linux) compiles without thi

Re: package org.springframework.osgi.service.importer does not exist

2010-01-13 Thread Wayne Fay
> But still don't understand why in Windows (and sometimes in Linux) compiles > without this piece of code. It's a nonsense to me. Any idea why this > happens? Absolutely no clue, nor do I have any ability to find out. Same JDK on both? Maybe one environment has extra classes in the jre endorsed l

How to package jar containing .dll files in a webstart war file using maven webstart plugin

2010-01-13 Thread Agrawal, Sandeep (IS Consultant)
Hi, Does anybody ever packaged jar files in two different directory using maven webstart plugin? Below is snapshot jnlp file. Here I want to put jars containing dll files in the nativelib directory separate from lib directory which contains other kind of jars. Please let me know if anybody has i

Generating an XPI file from maven2?

2010-01-13 Thread Andrew Robinson
I have looked over Google, and I have not seen a satisfactory answer to this extremely simple requirement. I am trying to produce an XPI file for a firefox extension. An XPI file is simply a zip file with a different extension. I have looked at the maven-jar-plugin and the maven-assembly-plugin a

Re: Generating an XPI file from maven2?

2010-01-13 Thread Olivier Lamy
Hi, You can create you custom packaging xpi. Have a look at this sources[1] which create a zip packaginf HTH, -- Olivier [1] : http://svn.apache.org/repos/asf/maven/sandbox/trunk/plugins/maven-zip-plugin/ 2010/1/13 Andrew Robinson : > I have looked over Google, and I have not seen a satisfactory

Re: Generating an XPI file from maven2?

2010-01-13 Thread Wayne Fay
Check out this thread: http://markmail.org/message/qixvhtloug5rlmkz There are other similar posts in the User Archives if you search for "custom file extension". Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: package org.springframework.osgi.service.importer does not exist

2010-01-13 Thread Alcaan
Yes I know that there are a lot of posibilities. I changed the maven, the jdk in linux many times, but in the end it doesn't compile. The problem is that in the begining compiled. And another thing, Eclipse doesn't complain about the class (in both Windows and Linux, Eclipse is aware of the class)

Re: Generating an XPI file from maven2?

2010-01-13 Thread Mirko Friedenhagen
Am 13.01.2010 um 21:26 schrieb Andrew Robinson: > I have looked over Google, and I have not seen a satisfactory answer > to this extremely simple requirement. > > I am trying to produce an XPI file for a firefox extension. An XPI > file is simply a zip file with a different extension. Hello, I u

Re: m2eclipse plugin does not resolve properties from settings.xml

2010-01-13 Thread Maruf Aytekin
Hi Jeff Thanks for your help on this. I think I let the plugin manage the project. Separate eclipse project for multi module maven project is better than having one eclipse project with about 80 modules. I worked around system scoped dependencies. If somebody else is having the same problem here

How to disable war uploading?

2010-01-13 Thread rrrrutdk
Each time I run 'mvn clean deploy' on my web project, Maven uploads the generated war file into my public repository. Is there any way to disable war file uploading? I tried to use this segment: maven-deploy-plugin true but it cancelled uploading another artifact with a classifie

RE: how to specify the children module POM file name

2010-01-13 Thread subir.sasikumar
There is only one POM per maven module to my knowledge. Why not add your configuration as a profile in the pom.xml of module 2. Yes, you will have to touch pom for that :-) /Subir -Original Message- From: TAN YUNSHI [mailto:yunshi@alcatel-lucent.com] Sent: Wednesday, January 13, 201

Maven Android SDK Deployer supports SDK 2.1

2010-01-13 Thread Manfred Moser
Hi! I just released version 0.5 of the Maven Android SDK deployer. It now supports the 2.1 release of the SDK as well as selective deployment of specific levels of the platform. The Maven Android SDK Deployer is a helper maven project that can be used to install the libraries necessary to bui

Re: How to disable war uploading?

2010-01-13 Thread Anders Hammar
mvn clean install /Anders On Thu, Jan 14, 2010 at 03:18, utdk wrote: > > Each time I run 'mvn clean deploy' on my web project, Maven uploads the > generated war file into my public repository. > > Is there any way to disable war file uploading? > > I tried to use this segment: > > > maven

Re: How to disable war uploading?

2010-01-13 Thread Stephen Connolly
That's because the war is an attached artifact. in fact it is most likely the primary artifact of that module. If you refactor your build so that the webapp module only produces one artifact, then you can use the trick you tried. Best practice in maven is one artifact per module. -Stephen 2010

Re: Missing dependency on attached tests when -Dmaven.test.skip=true

2010-01-13 Thread Jörg Schaible
Hi Andreas, Andreas Sewe wrote at Mittwoch, 13. Januar 2010 17:12: > Hi all, > > I have three Maven projects example:A:1.0, example:B:1.0, and > example:C:1.0. The former aggregates the two latter projects. > > Now project example:B:1.0 attaches a test-jar to is primary artifact (as > per

Re: Missing dependency on attached tests when -Dmaven.test.skip=true

2010-01-13 Thread Dan Tran
mvn install -DskipTests=true may work too On Wed, Jan 13, 2010 at 11:37 PM, Jörg Schaible wrote: > Hi Andreas, > > Andreas Sewe wrote at Mittwoch, 13. Januar 2010 17:12: > >> Hi all, >> >> I have three Maven projects example:A:1.0, example:B:1.0, and >> example:C:1.0. The former aggregates the tw