Using the Eclipse compiler under maven

2006-04-08 Thread gdub
I see messages that suggest that I can use the Eclipse compiler instead of the Sun compiler from within Maven. Is this true? Is there a con- figuration page somewhere? I can't seem to find it. I have run across a situation where the Eclipse compiler compiles my 1.5 code but the Sun compiler won't

Re: [m2] Parent poms and relativePath

2006-04-08 Thread Wendy Smoak
On 4/8/06, Brett Porter <[EMAIL PROTECTED]> wrote: > Do the versions match? The order is > 1) running in the reactor > 2) relativePath (default ../pom.xml) > 3) local repository > 4) remote repository > > However, the ids and version all must match. Yes, the versions match: http://svn.apache.or

Re: [m2] Releases and test builds

2006-04-08 Thread Wendy Smoak
On 4/8/06, Brett Porter <[EMAIL PROTECTED]> wrote: > I think you should have your test repository somewhere as the default > in the distributionManagement and deploy there, and when you decide to > promote it, check out the tag, modify the pom, and deploy it again. > This will rebuild the artifact

Re: [m2] Parent poms and relativePath

2006-04-08 Thread dan tran
http://jira.codehaus.org/browse/MNG-740 related? On 4/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Hmmm maybe not, I think I'm thinking about another pom > path/interpolation issue, can probably ignore this comment... > > Wayne > > On 4/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Give this a

Re: [m2] Parent poms and relativePath

2006-04-08 Thread Wayne Fay
Hmmm maybe not, I think I'm thinking about another pom path/interpolation issue, can probably ignore this comment... Wayne On 4/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > Give this a try with 2.0.2 and the 2.0.4 RC... I believe this was a > regression bug in 2.0.3. ;-) > > Wayne > > On 4/8/06,

Re: [m2] Releases and test builds

2006-04-08 Thread Brett Porter
Unfortunately the support for this is not going to be great. We don't have any type of repository promotion (yet) for something already released. I'd suggest using profiles, but distributionManagement can't currently be in a profile. I think you should have your test repository somewhere as the d

Re: [m2] Parent poms and relativePath

2006-04-08 Thread Wayne Fay
Give this a try with 2.0.2 and the 2.0.4 RC... I believe this was a regression bug in 2.0.3. ;-) Wayne On 4/8/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: > Can someone explain exactly how / works? > > I thought that Maven would use relativePath first, before looking in > the local repository, but

Re: [m2] Parent poms and relativePath

2006-04-08 Thread Brett Porter
Do the versions match? The order is 1) running in the reactor 2) relativePath (default ../pom.xml) 3) local repository 4) remote repository However, the ids and version all must match. - Brett On 4/9/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: > Can someone explain exactly how / works? > > I thou

[m2] Parent poms and relativePath

2006-04-08 Thread Wendy Smoak
Can someone explain exactly how / works? I thought that Maven would use relativePath first, before looking in the local repository, but that's not what happens. With this structure: struts/current/pom/ <-- struts-parent struts/current/action <-- struts-action-parent An attempt to build

[m2] Releases and test builds

2006-04-08 Thread Wendy Smoak
In another thread about Maven 1 [1] the idea of httpd- and Tomcat-style releases came up, where a build is produced and numbered x.x.x, and then it is later graded. Struts has also adopted this style of test-build/release. And we're in the process of converting the Struts Action 1 build to Maven

Re: [m1.1] djUnit plugin at SF

2006-04-08 Thread Lukas Theussl
Jeff, I have just been promoted admin on the sourceforge project, if you send me your sf id, I will give you developper status. :) Cheers, Lukas Jeff Jensen wrote: Hello, I made this RFE and patch in January, and am having no luck getting it applied. Either no one is monitoring the SF plu

Re: Can I activate a profile based on module type?

2006-04-08 Thread Tim Kettler
The problem is that the profile activation gets only evaluated once when the parent pom is parsed (just tried it) so all approaches based on the evaluation of some criteria in a subproject will fail (including the properties, packaging and marker file approaches). We do it like Wim and have a p

Re: Can I activate a profile based on module type?

2006-04-08 Thread Eric Redmond
I know this is also not a super-elegant solution, however, what about activating profiles on the existance of files? Such as, web.xml for a war, or application.xml for an EAR? As I said, not the best, but it should save you from messing up your POM hierarchy. Eric On 4/8/06, Wim Deblauwe <[EMAI

Re: Can I activate a profile based on module type?

2006-04-08 Thread Wim Deblauwe
Yep, We are using it like that in m1 (no profiles there, so no other choice). When doing the conversion to m2, I created a "build project" with build-base, build-jar, build-war, build-dll, ... all using pom packaging. The conversion is still going on, but that is a different story :) You don't nee

Re: m2 is it possible to add custom classpathentries using maven eclipse plugin

2006-04-08 Thread Alexandre Poitras
>From what I know it is only possible to add classpathContainer entry. Check out : http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html On 4/8/06, Gautham Pamu <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > mvn eclipse:eclipse generates the .classpath and .project but for ejb, we

m2 Is it possible to add exported=true attribute for classpathentry

2006-04-08 Thread Gautham Pamu
Hi Everyone, Is it possible to customize eclipse plugin to add exported=true attribute for dependencies that need to packaged in lib directory for web projects.

m2 is it possible to add custom classpathentries using maven eclipse plugin

2006-04-08 Thread Gautham Pamu
Hi Everyone, mvn eclipse:eclipse generates the .classpath and .project but for ejb, web projects, it does not add runtime variable like these to the .classpath. Is it possible to customize the plugin in pom.xml so that it adds these entries. -- -Gautham Pamu

Re: Can I activate a profile based on module type?

2006-04-08 Thread Wayne Fay
An interesting thought... So you'd have: project/pom.xml (packaging pom; modules jar, war, ear; parent ../pom.xml) project/jar/pom.xml (packaging pom; module jar; parent ../pom.xml) project/jar/jar/pom.xml (packaging jar; parent ../pom.xml) project/war/pom.xml (packaging pom; module war; parent ..

Re: [M2] Is it possible to create an assembly w/o assembly.xml?

2006-04-08 Thread Gautham Pamu
HiJakub, I tried this mvn assembly:assembly -DdescriptorId=bin with mvn 2.0.3 version and I getting this error.. do we need to specify something in my pom.xmlfiles... I don't have any assembly configuration in my pom [INFO] [assembly:assembly] [INFO] -

Re: maven.format

2006-04-08 Thread Lukas Theussl
Hi, It takes the same values as the "type" argument of ant's junit task formatter element [1], ie, either xml, plain, or brief. I will add a note to the docs (as I'm actually working on a new release right now :) ). -Lukas [1] http://ant.apache.org/manual/OptionalTasks/junit.html Elliotte

Re: maven.format

2006-04-08 Thread Brett Porter
The only other valid value in maven 1.x is "plain", and the output can be controlled by usefile. The same parameters are available in maven 2.x - but this sounds like a good thing to implement in our formatters there. I've updated the docs in SVN. Cheers, Brett On 4/9/06, Elliotte Harold <[EMAIL

maven.format

2006-04-08 Thread Elliotte Harold
What values are allowed for maven.junit.format beisdes "brief"? In particular, 1. Is there something that only prints output for failing tests, or prints no output at all? 2. Could someone please document this in the maven junit properties doc? -- Elliotte Rusty Harold [EMAIL PROTECTED] XM

[m1.1] djUnit plugin at SF

2006-04-08 Thread Jeff Jensen
Hello, I made this RFE and patch in January, and am having no luck getting it applied. Either no one is monitoring the SF plugins anymore or it doesn't matter enough to anyone to work with me on it! :-( http://sourceforge.net/tracker/index.php?func=detail&aid=1406821&group_id=61 626&atid=497856

Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-08 Thread Alexandre Poitras
Yeah but he wouldn't get the library at compile time. On 4/8/06, Konstantin Polyzois <[EMAIL PROTECTED]> wrote: > there is a exclusion element you could use as well. > from memory: > > > hibernate > hibernate > 3.1 > > >cglib >cglib > > > ... > > /Konstantin

Re: Internal (intranet) repositories

2006-04-08 Thread Gunther Popp
I´m by far any expert in the Maven source code, but as far as I understand the implementation the repos defined in your pom will be checked first. If your pom contains no repo with the id "central", the default repos defined in the "Super-POM" pom-4.0.0.xml will be searched next. Then all repos

Re: m2 unable to build on linux with maven-compiler-plugin 2.0.1 version

2006-04-08 Thread Gautham Pamu
Hi Carlos, I now remove the /home/gpamu/.m2/repository/org/codehaus/plexus/plexus-compiler/1.5.2/plexus- compiler-1.5.2.pom but now it is failing with javac pom file. [INFO] [antrun:run] [INFO] Executing tasks [INFO] Executed tasks [INFO] [resources:resources] [INFO] Using default encoding to cop

Re: Can I activate a profile based on module type?

2006-04-08 Thread Wim Deblauwe
another solution is to use different parent poms. Have a parent pom defining all you need for that certain type. Each type refers to the proper parent pom. You can even have a master parent pom above those parent pom for things that are equal for all types. regards, Wim 2006/4/7, Wayne Fay <[EMA

Re: [m2] How to exclude a jar in WEB-INF/lib

2006-04-08 Thread Konstantin Polyzois
there is a exclusion element you could use as well. from memory: hibernate hibernate 3.1 cglib cglib ... /Konstantin On 4/6/06, Wesslan <[EMAIL PROTECTED]> wrote: > > > That's "exactly" how my pom looks like and I'm actually glad that Maven is > complaining.

Re: PROBLEM SOLVED : Line too long error when I try to fork the compiler for jdk1.3

2006-04-08 Thread David J. M. Karlsen
Sanjay Choudhary skrev: Finally I was able to resolve this issue On DOS if number of source files or classpath entries are too many we get an error "Line too Long" and this breaks compiling using jdk1.3 using fork. To shorten the options and source files to javac command we can use javac @opt

Re: [m2] Weblogic J2EE Plugin

2006-04-08 Thread Konstantin Polyzois
Are you sure the plugin is for maven 2? /Konstantin On 4/6/06, mjohnsonaz74 <[EMAIL PROTECTED]> wrote: > > > I am trying to convert an existing and convoluted project at work to Maven > 2 > from an existing Ant build script. I'm starting to get the hang of > breaking > one large project into mult