Re: maven download the dependency of a error version?

2010-01-29 Thread maven apache
2010/1/29 Anders Hammar and...@hammar.net Well, this is the good thing about m2eclipse. It uses the pom as master. A repo manager (Nexus for example) will solve your network problems. Nexus is to be used for building private maven repository, and I just make some mirrors (for example ,create a

Re: maven download the dependency of a error version?

2010-01-29 Thread Anders Hammar
The Nexus book talks about all these questions: http://www.sonatype.com/books/nexus-book/reference/ /Anders On Fri, Jan 29, 2010 at 09:17, maven apache apachemav...@gmail.com wrote: 2010/1/29 Anders Hammar and...@hammar.net Well, this is the good thing about m2eclipse. It uses the pom as

Maven execution element and dependencies

2010-01-29 Thread radomirz
Hi List, I would like to generate two artifacts within one maven project (one with a classifier). I can do this by executing the compiler plugin (flexmojos in my case) twice, once with the classifier. The only problem is that the compilations should have different scopes on some dependencies. Is

Non-plexus Components in maven

2010-01-29 Thread daition
Hi, I'm new to maven plugin(mojo). I know there are some shared plexus components in maven. Besides them,I also found there are some other components in maven, such as MavenFileFilter in maven-filtering, MavenProjectHelper in maven-project, etc. I hope to know how to use these components in

Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Eduardo M KALINOWSKI
Is there a way to configure Maven to ignore source files that present errors during compilation, and compile everything that is possible (that is, has no error)? I've set maven-compiler-plugin's failOnError option to false, and the build is considered successful despite the errors.

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Christoph Kutzinski
The obvious counter question is: Why do you want to do this? Why not just fix the compile errors? Eduardo M KALINOWSKI schrieb: Is there a way to configure Maven to ignore source files that present errors during compilation, and compile everything that is possible (that is, has no error)?

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Siegfried Goeschl
Hi Eduardo, a solution would be +) create a project in the IDE of your choice +) fix the errors incrementally Cheers, Siegfried Goeschl Eduardo M KALINOWSKI wrote: Is there a way to configure Maven to ignore source files that present errors during compilation, and compile everything that is

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Antonio Petrelli
2010/1/29 Eduardo M KALINOWSKI edua...@kalinowski.com.br: One possible way to solve the problem would be to manually list the files to be excluded, and remove them from the list as they get fixed. But this is tedious and error-prone, so I wonder if there is a better way. Sure, complain with

Re: maven download the dependency of a error version?

2010-01-29 Thread maven apache
2010/1/29 Anders Hammar and...@hammar.net The Nexus book talks about all these questions: http://www.sonatype.com/books/nexus-book/reference/ Thanks, I have tried the nexus, in fact I have heard it before, and I use it this afternoon. You said it can solve the speed problem in the IDE for

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Eduardo M KALINOWSKI
On Sex, 29 Jan 2010, Christoph Kutzinski wrote: The obvious counter question is: Why do you want to do this? Why not just fix the compile errors? To make a long story short: we received this project from another company, and we have to fix it and complete the parts that are missing. We are

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Christoph Kutzinski
Sounds to me like you should modularize the application, make a multi-module project of it (if not already) and then add only those modules on which you're working currently to the modules section of the parent POM and leave out all the others for the moment. Just a quick idea from the top of

Re: maven download the dependency of a error version?

2010-01-29 Thread Anders Hammar
Nexus has to connect for the first download of a specific artifact. But it's going to be much faster for the second access (for that artifact). A Maven repo manager is a normal part of a maven infrastructure nowadays. Or at least should be. /Anders On Fri, Jan 29, 2010 at 13:27, maven apache

Re: Maven execution element and dependencies

2010-01-29 Thread Anders Hammar
The obvious question is why you don't make it two projects? The problem you're running into is because there is just one pom. Even if you solve your compilation problem, you're going to cause problems for anyone consuming the artifact (as the pom will list the wrong deps). /Anders On Fri, Jan

Access to server settings from settings.xml

2010-01-29 Thread Ben Tatham
Hi, Is it possible to access a server username/password (even/especially when encrypted) from an Ant Mojo and/or antrun script? If you know how to do it from a Java Mojo, I would take that too. I would like to be able to use it to ssh to other servers where we have some cross-compilers

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Eduardo M KALINOWSKI
On Sex, 29 Jan 2010, Christoph Kutzinski wrote: Sounds to me like you should modularize the application, make a multi-module project of it (if not already) and then add only those modules on which you're working currently to the modules section of the parent POM and leave out all the others

Re: Access to server settings from settings.xml

2010-01-29 Thread Ben Tatham
To answer my own question for groovy, I found this: http://weblogs.java.net/blog/2009/08/10/getting-most-out-maven-settingsxml-file which explains doing this: def server = settings.servers.find{ it.id.equals('dbserver') } But does anyone know how to do it in ant? Thanks, Ben - Ben

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Antonio Petrelli
2010/1/29 Eduardo M KALINOWSKI edua...@kalinowski.com.br: For example, a method name may be changed. This will break everywhere that calls the method. Refactoring anyone? Or deprecations? - To unsubscribe, e-mail:

RE: Upload snapshot on nexus

2010-01-29 Thread Qureshi,Shahzad [Ontario]
Http didn't work for me in the past so I didn't try that, I just did, providing it with the 'deployment' user credentials and it worked and I was able to upload the snapshot Thanks Anders Shahzad Qureshi Systems Analyst/Programmer Applications

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Justin Edelson
Eduardo- AFAIK, the behavior you are seeing is the behavior of javac, not Maven. As you note, the Eclipse compiler does something different, so if that's the behavior you want, use the Eclipse compiler. Justin On Fri, Jan 29, 2010 at 8:21 AM, Eduardo M KALINOWSKI edua...@kalinowski.com.br

Eear libraries classpath

2010-01-29 Thread Maruf Aytekin
Hi All We are creatign an ear as a result artifact of a maven project. In the ear file we package all libraries with the final names without verison numbers. Maven creates classpaths for those libraries with the names+versions. Example: We have an EAR package contains Module A and B Module A

Re: Eear libraries classpath

2010-01-29 Thread Wayne Fay
Is this a problem; having ModuleB as ModuleB.jar in ear package? Can ModuleA fsee ModuleB on the classpath? When you tested this EAR with your target Java EE app server, what happened? Did things deploy and work properly, or no? If the answer is no, how do I addd dependencies to the

Re: Compile what can be compiled, ignore sources with errors

2010-01-29 Thread Mark H. Wood
On Fri, Jan 29, 2010 at 12:31:06PM +0100, Christoph Kutzinski wrote: Why do you want to do this? Why not just fix the compile errors? Likely the same reason that compiler writers have spent so much time studying error recovery in parsers: to discover as many errors as possible in one iteration.

Re: Plugin executions vs. POM inheritance

2010-01-29 Thread Wayne Fay
If this is the way it should work, is there a way to achieve what I want? I.e. define some utility executions in parent that can be called in child modules, but independent of other executions. Did you consider profiles for this purpose? Wayne

automating maven release plugin tag label

2010-01-29 Thread JS Bournival
Hi maven people, We have projects we want to release using the maven-release-plugin. Moreover, we want to perform our releases in Hudson, with the help of the M2release (hudson) plugin. This is a dream come true: perform a release on a single push of a button (actually, more of a link).

FW: Errors after upgrade to 2.2.1

2010-01-29 Thread Thomas Harris
I also found this JIRA ticket entered against a project named Maven Evangelism. Nice project name. :) http://jira.codehaus.org/browse/MEV-649 However, switching down to log4j 1.2.14 changed nothing as far as these errors go. Perhaps some other library(s) also have this issue? If so, is there

RE: Errors after upgrade to 2.2.1

2010-01-29 Thread Thomas Harris
I put this into my settings.xml: mirrors mirror idexternal-redirect/id nameRedirect of external refs to local/name urlhttp://our.local.server.host/repository/url mirrorOfexternal:*/mirrorOf /mirror /mirrors Same errors occur in the log regardless of this

Re: automating maven release plugin tag label

2010-01-29 Thread Kalle Korhonen
Are you not using standard SVN directory layout or no SVN at all? We do fully automated releases with mvn -B release:prepare release:perform and it gets the tagname etc. right without any special configuration. As a sidenote, pom.version is deprecated, use project.version instead. Kalle On Fri,

RE: Errors after upgrade to 2.2.1

2010-01-29 Thread Thomas Harris
I think I may know what's happening: http://n2.nabble.com/Suck-cannot-build-repository-down-td3432724.html#a3432724 Since I'm using the maven-project-info-reports-plugin:dependencies report, it does completely bypass the normal repository mechanism and thus Nexus. This sounds like a defect in

Re: Errors after upgrade to 2.2.1

2010-01-29 Thread Wayne Fay
and thus Nexus. This sounds like a defect in the dependencies report portion of the codehaus mojo maven-project-info-reports-plugin. I agree. Check Jira to see if it is already filed. Does anyone know a workaround for this? Stop using this report for now, until it is fixed. If you have the

Re: Plugin executions vs. POM inheritance

2010-01-29 Thread Lóránt Pintér
How could this be achieved with profiles? Lóránt On Fri, Jan 29, 2010 at 21:13, Wayne Fay wayne...@gmail.com wrote: If this is the way it should work, is there a way to achieve what I want? I.e. define some utility executions in parent that can be called in child modules, but independent of

Re: Plugin executions vs. POM inheritance

2010-01-29 Thread Alexander
You could insert this utility executions in profile. e.g. profiles profile idwhatever/id build plugins plugin ... /plugin /plugins /build /profile

Re: automating maven release plugin tag label

2010-01-29 Thread JS
ok but what if you want to override the default tag label? The default one is ${project.artifactId}-release version. is there a way in the pom to retrieve the release version as set by the maven-release-plugin? -- JS. -- Le 2010-01-29 à 17:05, Kalle Korhonen

pom without artifacts?

2010-01-29 Thread tbee
I have uploaded a swing look-and-feel to our internal repository. The LaF contains a main jar plus a separate jar for each skin. In order to minimize the end result, each skin is uploaded separately with its own pom referring to the main jar. But sometimes I want it all skins, so I figured I