Re: [m2] assembly from parent

2006-05-30 Thread Deane Morrow

Some observations...

I've created a scratch project with four modules to try and understand
what is going on here.

I am configuring the assembly plugin in two different ways:
1. via the parent POM [1]
2. via the command line [2]

The two configuration methods are producing the same result [3] (a
good thing!) but they take different paths to get there (a confusing
thing :).

Method 1 seems to be binding the assembly to the package phase of the
parent project only. That is, Maven runs package at the parent level
and then runs the assembly without descending into the modules.

Method 2 seems to be binding the assembly to the package phase of the
parent project after packaging the entire reactor. That is, Maven
descends into each module, runs package and then attempts to run the
assembly from the parent.

Method 2 makes sense as assembly:assembly is bound to the package phase.

Method 1 kinda makes sense as I am specifically binding the assembly
to the package phase in the parent POM. Shouldn't the entire reactor
be packaged also though?

Anyway, should these two configuration methods behave in the same manner?

Apart from that, what is the cause of the assembly plugin exception?
In at least one case (Method 2) the module artifacts are definitely
created.

I can forward debug traces of each Maven run if anyone is interested.
They are quite long however.

Thanks

Listing 1: assembly plugin POM configuration

 
   
 
   maven-assembly-plugin
   
 
   package-all
   package
   
 attached
   
   false
   
 
   src/main/assembly/package-all.xml
 
   
 
   
 
   
 

Listing 2: assembly plugin command line configuration (plugin
configuration removed from POM)

$ mvn -X assembly:assembly -Ddescriptor=src/main/assembly/package-all.xml

Listing 3: assembly plugin exception

Caused by: org.apache.maven.plugin.MojoExecutionException: Included
module: com.scratch:scratch-moduleA:jar:1.0-SNAPSHOT does not have an
artifact with a file.
Please ensure the package phase is run before the assembly is generated.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven2 with JAXB 2.0

2006-05-30 Thread Jonathan Johnson
Greetings Franz,

Sorry for the delayed reply.  To answer some of your questions.

- I’m not getting the script error with my IE6.  Noone else has reported a
problem.  Are your still getting this error?

- Thank you for the pom dependency and groupid standards guidelines.  I’ll
see if the java.net/JAXB/Sun folks can update them.  Kohsuke and all are
back from their break and he is seeing these messages.

- If you see a way to slim the dependency definitions please let me know.
Especially in the instructions where I would really like to shorten and keep
simple.

Has the plugin helped you?  Any questions?

- Jonathan



-Original Message-
From: Franz Fehringer [mailto:[EMAIL PROTECTED]
Sent: Friday, May 19, 2006 3:06 AM
To: [EMAIL PROTECTED]
Cc: Maven Users List
Subject: Re: Maven2 with JAXB 2.0

Hello Jonathan,

I have still a few points,
*   If i access http://jaxb.dev.java.net/jaxb-maven2-plugin/ with IE6 
(latest
patches applied) i get (free translation from the original german error
message) line 316 object required.
The M$ script debugger shows the line
for( n=dd.parentNode.previousSibling; n!=null; n=n.previousSibling ) {
with
n=dd.parentNode.previousSibling
highlighted.
*   According to [EMAIL PROTECTED]
  citing
http://www.mavenregistry.com/search/artifacts?hl=en&q=jsr173&btnG=Search+Reg
istry
  javax.xml.bind should be only javax.xml and com.sun.xml.bind should
be only com.sun.xml (but this would not match your directory names??).
*   On http://jaxb.dev.java.net/jaxb-maven2-plugin/ you still have
jaxb
jaxb-impl
2.0-SNAPSHOT
Why not
com.sun.xml.bind
jaxb-impl
2.0
??
*   The jaxb dependencies shown on
http://jaxb.dev.java.net/jaxb-maven2-plugin/ are also in the pom from the
downloaded zip
https://jaxb.dev.java.net/jaxb-maven2-plugin/maven-jaxb-plugin-1.0.zip.
Why list them twice; or the other way round: can i omit them from my
pom.xml?
Greetings

Franz

Jonathan Johnson schrieb:
Kohsuke – The pom here
https://maven-repository.dev.java.net/repository/com.sun.xml.bind/poms/jaxb-
impl-2.0.pom needs the activation.jar version to be change from 1.0.2 to
1.1.
Franz – your comments were helpful, I have cleaned up the instructions.  The
instructions for using the JAXB Maven 2 plugin are here
http://jaxb.dev.java.net/jaxb-maven2-plugin/
You also asked why this plugin is dependent on ant.  This plugin depends on
the jars ant since it delegates to the com.sun.tools.xjc.XJC2Task which
requires the ant jar (currently 1.6.5).
You also mentioned
>> I sit behind a proxy and have difficulties accessing https sites with
Maven2 (http works perfect).
>> Also, why not reorganize the repository making  obsolete?
Kohsuke Kawaguchi and the folks at Sun are working on updating the java.net
Maven 2 repository.  He should be seeing this request.   See Kohsuke’s
comments in his blog http://weblogs.java.net/blog/kohsuke/



[m2] Using Maven 1 SNAPSHOTS as a Maven 2 dependency

2006-05-30 Thread Mark Chaimungkalanont

Hi all,

Is is possible to use Maven 1 SNAPSHOTS, deployed via:

maven clean jar:deploy-snapshot

as a dependency in a Maven 2 project? In my current set up, the Maven 2 project never 
seems to update the Maven 1 jar, even if I pass the -U tag.


My current setup follows:


atlassian-config (Maven2 project, partial POM)
--

  
  


  atlassian-core
  atlassian-core
  SNAPSHOT



  

  
...

  atlassian-m1-repository
  Atlassian Maven 1.x Repository
  http://repository.atlassian.com
  legacy
  
true
  

  

So that atlassian-core (Maven 1 project), gets deployed correctly as a 
atlassian-core-SNAPSHOT in the m1 repo. However, when I build atlassian-config the first 
time, atlassian-core-SNAPSHOT.jar gets locally cached and is never refreshed again.


Any ideas on how (or if it's possible) to get this working?

Many thanks!

Mark C
--
-
ATLASSIAN - http://www.atlassian.com
Australia's Fastest Growing Software Company 2002-05 [BRW Magazine]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Defining a new package tpye

2006-05-30 Thread anita kulshreshtha
Raphaël,
 Thanks! @requiresDependencyResolution Compile does the trick!

Thanks
Anita

--- anita kulshreshtha <[EMAIL PROTECTED]> wrote:

> Raphaël,
> Thanks. I do not use dependency resolution in mojo. I want maven
> to
> download dependencies (dep1 in the example below). If I replace the
> packaging type with 'jar' maven downloads dep1 and its dependencies.
> 
> Thanks
> Anita
> 
> 
> Hello Anita,
> 
> are the mojos you bind to your new packaging using the javadoc class
> tag
> that enable the dependency resolution ?
> For more information about the dependency resolution in mojos, please
> check
> the maven book from mergere.
> 
> Hope this helps.
> 
> Raphaël
> 
> 2006/5/30, anita kulshreshtha <[EMAIL PROTECTED] >:
> >
> > Hi,
> > I am writing a plugin that defines a new package type (say
> 'xar')
> > using these instructions -
> >
> >
>
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> > I use this plugin in a project as :
> >
> >
> > ...
> > xar
> > ..
> > ..
> > 
> >   
> >   
> >  
> >   
> > 
> > 
> >   
> > <>dep1<...>
> > ..
> >   
> > ..
> > 
> >
> > When I build the project, the dependencies are not searched
> for.
> If
> > the packaging was jar all the dependencies are searched and loaded,
> if
> > found. Am I missing something or is this the expected behavior? How
> can
> > I ensure that foo.xar behaves just like a foo.jar as far as
> dependency
> > resolution is concerned.
> >
> > Thanks in Advance
> > Anita 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: changelog site problems

2006-05-30 Thread Edwin Punzalan


This is probably the same as http://jira.codehaus.org/browse/MCHANGELOG-37

But yours have more info, so I'll try and hopefully I would be able 
reproduce it this time.


Thanks.


Julian Wood wrote:
I'm having an issue with the maven-changelog-plugin, which seems to 
have just crept up over the past few days, after working fine. I'm 
building it from svn, creating 2.0-SNAPSHOT, using rev. 410386.


Is it working for other people? It seems the reports section of the 
plugin is somehow screwing things up - if I omit it, there are no 
errors (but also no reports). Here's the relevant portion of my pom:



org.apache.maven.plugins
maven-changelog-plugin
2.0-SNAPSHOT


scm-changes

range
30
${basedir}/src
-MM-dd HH:mm:ss


changelog
file-activity
dev-activity





Can't understand why I suddenly get this error, but maybe someone can 
shed some light on it? Is plexus really trying to instantiate List 
(which is abstract)? This is mvn 2.0.4, happens with all my projects 
which previously worked, and the cmd is simply 'mvn site'. Other 
plugins with a reports list work fine, so I'm somewhat baffled. 
Haven't looked at plexus yet.


[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-changelog-plugin:2.0-SNAPSHOT




Cause: Class 'java.util.List' cannot be instantiated
[INFO] 


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error getting 
reports from the plugin 'org.apache.maven.plugins:maven-changelog-plugin'
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:694) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:645) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:512) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) 


at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Error 
configuring: org.apache.maven.plugins:maven-changelog-plugin. Reason: 
Unable to parse the created DOM for plugin configuration
at 
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1036) 

at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:576) 

at 
org.apache.maven.plugin.DefaultPluginManager.getReport(DefaultPluginManager.java:462) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:678) 


... 18 more
Caused by: 
org.codehaus.plexus.component.configurator.ComponentConfigurationException: 
Class 'java.util.List' cannot be instantiated
at 
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.instantiateObject(AbstractConfigurationConverter.java:121) 

at 
org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:73) 

at 
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(Co

Re: maven Website - I'm struggling getting the information I seek

2006-05-30 Thread Pete Marvin King


  hello, try to download the maven book at www.mergere.com. There's a
link on the
  mid-right for the book,  "Better Builds With Maven".  There's a lot of
information
  there that you might find useful.

   hope this helps...=)


cheers,
pete marvin


Stefan Arentz wrote:
> On 5/30/06, Marc Weber <[EMAIL PROTECTED]> wrote:
>> Hello I'm using mvn for 2 month now and I'm till struggling finding the
>> finding the documentation on the maven.apache.org website.
>
> Same here. I started using Maven 2 about a month ago. It has been
> *extremely* painful because of the complete chaos that is called
> documentation. Figuring out how plugins work is impossible because the
> documentation is either missing or halve-baked. I have more success
> with asking things on the list here, or searching the list archives.
> Or even reading source code of plugins.
>
> It is a pleasure to use Maven for my project, but it was all but a
> simple start.
>
> I think the Maven team should set some standards for documentation and
> simply ask every plugin developer to take care of it or else simply
> drop the plugin.
>
> S.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problems with eclipse plugin?

2006-05-30 Thread Dan Adams
I've got 2 questions about the plugin for eclipse:
- How come on the site there is no 0.0.9 version listed but it is listed
in the update manager?
- How come v0.0.9 doesn't seem to work? For instance, you can an error
if you try to do Maven > Enable on a project.
- How come v0.0.7 isn't in the update manager?

-- 
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] assembly from parent

2006-05-30 Thread Deane Morrow

Hi,

On 5/31/06, Barrie Treloar <[EMAIL PROTECTED]> wrote:

> Now Maven is calling the assembly plugin in each module. It then fails
> because there is no
> package-all.xml in the module src tree (package-all.xml lives in the
> parent src).
>
> Is this the expected behaviour?

Probably, because your modules all specify this pom as the parent right?
So it gets inherited.


I've set false in the parent POM for the assembly plugin.

According to the POM descriptor this indicates "Whether any
configuration should be propagated to child POMs" so I would expect
this to not be used by any child modules.

Running help:effective-pom in a child module however shows the
assembly plugin to be configured here from the parent. Is this a bug
or is my understanding of the 'inherited' configuration option
incorrect?


You probably want to move the packaging stuff out into its own project
so that the parent pom does not have inherited values and local
values.


The only trouble with this is that I then have to specifically include
each module to be packaged. I would like to get this automagically
from the parent's module list. If this is not possible I'd appreciate
a definitive answer so I can move on to a different solution.

I guess my fundamental question is: Is it possible to create an
assembly of child module artifacts from the parent project?

If so, what specific assembly plugin configuration elements are
required in the parent POM?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Defining a new package tpye

2006-05-30 Thread anita kulshreshtha
Raphaël,
Thanks. I do not use dependency resolution in mojo. I want maven to
download dependencies (dep1 in the example below). If I replace the
packaging type with 'jar' maven downloads dep1 and its dependencies.

Thanks
Anita


Hello Anita,

are the mojos you bind to your new packaging using the javadoc class
tag
that enable the dependency resolution ?
For more information about the dependency resolution in mojos, please
check
the maven book from mergere.

Hope this helps.

Raphaël

2006/5/30, anita kulshreshtha <[EMAIL PROTECTED] >:
>
> Hi,
> I am writing a plugin that defines a new package type (say 'xar')
> using these instructions -
>
>
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> I use this plugin in a project as :
>
>
> ...
> xar
> ..
> ..
> 
>   
>   
>  
>   
> 
> 
>   
> <>dep1<...>
> ..
>   
> ..
> 
>
> When I build the project, the dependencies are not searched for.
If
> the packaging was jar all the dependencies are searched and loaded,
if
> found. Am I missing something or is this the expected behavior? How
can
> I ensure that foo.xar behaves just like a foo.jar as far as
dependency
> resolution is concerned.
>
> Thanks in Advance
> Anita 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] assembly from parent

2006-05-30 Thread Barrie Treloar

Now Maven is calling the assembly plugin in each module. It then fails
because there is no
package-all.xml in the module src tree (package-all.xml lives in the
parent src).

Is this the expected behaviour?


Probably, because your modules all specify this pom as the parent right?
So it gets inherited.

You probably want to move the packaging stuff out into its own project
so that the parent pom does not have inherited values and local
values.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: changelog site problems

2006-05-30 Thread Ole-Martin Mørk

I got the same error last week when building from svn as well. I
wasn't sure if it was suppose to work, so I didn't bother wasting too
much time on it..

On 5/31/06, Julian Wood <[EMAIL PROTECTED]> wrote:

I'm having an issue with the maven-changelog-plugin, which seems to
have just crept up over the past few days, after working fine. I'm
building it from svn, creating 2.0-SNAPSHOT, using rev. 410386.

Is it working for other people? It seems the reports section of the
plugin is somehow screwing things up - if I omit it, there are no
errors (but also no reports). Here's the relevant portion of my pom:

 
 org.apache.maven.plugins
 maven-changelog-plugin
 2.0-SNAPSHOT
 
 
 scm-changes
 
 range
 30
 ${basedir}/src
 -MM-dd HH:mm:ss
 
 
 changelog
 file-activity
 dev-activity
 
 
 
 

Can't understand why I suddenly get this error, but maybe someone can
shed some light on it? Is plexus really trying to instantiate List
(which is abstract)? This is mvn 2.0.4, happens with all my projects
which previously worked, and the cmd is simply 'mvn site'. Other
plugins with a reports list work fine, so I'm somewhat baffled.
Haven't looked at plexus yet.

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-changelog-plugin:2.0-SNAPSHOT



Cause: Class 'java.util.List' cannot be instantiated
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error getting
reports from the plugin 'org.apache.maven.plugins:maven-changelog-
plugin'
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports
(DefaultLifecycleExecutor.java:694)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports
(DefaultLifecycleExecutor.java:645)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:512)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:488)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:458)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:140)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
322)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.codehaus.classworlds.Launcher.launchEnhanced
(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException:
Error configuring: org.apache.maven.plugins:maven-changelog-plugin.
Reason: Unable to parse the created DOM for plugin configuration
 at
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields
(DefaultPluginManager.java:1036)
 at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo
(DefaultPluginManager.java:576)
 at org.apache.maven.plugin.DefaultPluginManager.getReport
(DefaultPluginManager.java:462)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports
(DefaultLifecycleExecutor.java:678)
 ... 18 more
Caused by:
org.codehaus.plexus.component.configurator.ComponentConfigurationExcepti
on: Class 'java.util.List' cannot be instantiated
 at
org.codehaus.plexus.component.configurator.converters.AbstractConfigurat
ionConverter.instantiateObject(AbstractConfigurationConverter.java:121)
 at
org.codehaus.plexus.component.configurator.converters.composite.Collecti
onConverter.fromConfiguration(CollectionConverter.java:73)
 at
org.codehaus.plexus.component.configurator.converters.ComponentValueSett
er.configure(Compo

Re: Site plugin changes?

2006-05-30 Thread Brett Porter

The default index page went to the project-info-reports-plugin - so
you should be using 2.0 of that.

The images all went to skins. It's possible some got trimmed. Either
those images need to be added to tall skins, or the report should be
copying them into the project itself. Since the changes ones are a bit
more specialised, I'd suggest they get copied in themselves. There's
an open issue to determine a better way to make report graphics
skinnable.

- Brett

On 31/05/06, Julian Wood <[EMAIL PROTECTED]> wrote:

I've noticed the site plugin has changed somewhat, though I can't
find the list of changes, or when exactly this happened, or even if
it has happened. I'm using 2.0-beta-5, which in my repo was added May
16, so that's about consistent with when things were working okay.
Funny thing is, specifying 2.0-beta-4 of maven-site-plugin doesn't
solve these issues, so I'm confused as to how they are occurring.

First, I like the site:stage goal. Not sure if I just missed that
before or not, but it works well for multimodule projects, linking
them together, where previously I was doing that manually.

I've noticed that there is no default index.html created anymore,
which was previously built using ${project.description} as content,
and linked automatically as "About ${project.name}" in the side bar
under "Project Documentation". You need to provide your own index.apt
in the site/apt folder and link it yourself in site/site.xml. Fair
enough.

I've also noticed that the number of images in the site/images folder
has been reduced drastically. I'm not sure how this worked
previously, but a consequence of this is that the maven-changes-
plugin report page now has broken images to all of it's icons. Is
maven-changes-plugin responsible? Or maven-site-plugin?

I'm also wondering if these putative changes to maven-site-plugin are
related to the problem I'm seeing in the maven-changelog plugin,
which I wrote about in another message.

Thanks for any insights.

J

--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Site plugin changes?

2006-05-30 Thread Julian Wood
I've noticed the site plugin has changed somewhat, though I can't  
find the list of changes, or when exactly this happened, or even if  
it has happened. I'm using 2.0-beta-5, which in my repo was added May  
16, so that's about consistent with when things were working okay.  
Funny thing is, specifying 2.0-beta-4 of maven-site-plugin doesn't  
solve these issues, so I'm confused as to how they are occurring.


First, I like the site:stage goal. Not sure if I just missed that  
before or not, but it works well for multimodule projects, linking  
them together, where previously I was doing that manually.


I've noticed that there is no default index.html created anymore,  
which was previously built using ${project.description} as content,  
and linked automatically as "About ${project.name}" in the side bar  
under "Project Documentation". You need to provide your own index.apt  
in the site/apt folder and link it yourself in site/site.xml. Fair  
enough.


I've also noticed that the number of images in the site/images folder  
has been reduced drastically. I'm not sure how this worked  
previously, but a consequence of this is that the maven-changes- 
plugin report page now has broken images to all of it's icons. Is  
maven-changes-plugin responsible? Or maven-site-plugin?


I'm also wondering if these putative changes to maven-site-plugin are  
related to the problem I'm seeing in the maven-changelog plugin,  
which I wrote about in another message.


Thanks for any insights.

J

--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



changelog site problems

2006-05-30 Thread Julian Wood
I'm having an issue with the maven-changelog-plugin, which seems to  
have just crept up over the past few days, after working fine. I'm  
building it from svn, creating 2.0-SNAPSHOT, using rev. 410386.


Is it working for other people? It seems the reports section of the  
plugin is somehow screwing things up - if I omit it, there are no  
errors (but also no reports). Here's the relevant portion of my pom:



org.apache.maven.plugins
maven-changelog-plugin
2.0-SNAPSHOT


scm-changes

range
30
${basedir}/src
-MM-dd HH:mm:ss


changelog
file-activity
dev-activity





Can't understand why I suddenly get this error, but maybe someone can  
shed some light on it? Is plexus really trying to instantiate List  
(which is abstract)? This is mvn 2.0.4, happens with all my projects  
which previously worked, and the cmd is simply 'mvn site'. Other  
plugins with a reports list work fine, so I'm somewhat baffled.  
Haven't looked at plexus yet.


[ERROR] BUILD ERROR
[INFO]  

[INFO] Failed to configure plugin parameters for:  
org.apache.maven.plugins:maven-changelog-plugin:2.0-SNAPSHOT




Cause: Class 'java.util.List' cannot be instantiated
[INFO]  


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error getting  
reports from the plugin 'org.apache.maven.plugins:maven-changelog- 
plugin'
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports 
(DefaultLifecycleExecutor.java:694)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports 
(DefaultLifecycleExecutor.java:645)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:512)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa 
l(DefaultLifecycleExecutor.java:488)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:458)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle 
Failures(DefaultLifecycleExecutor.java:306)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( 
DefaultLifecycleExecutor.java:273)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
322)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced 
(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode 
(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException:  
Error configuring: org.apache.maven.plugins:maven-changelog-plugin.  
Reason: Unable to parse the created DOM for plugin configuration
at  
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields 
(DefaultPluginManager.java:1036)
at  
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo 
(DefaultPluginManager.java:576)
at org.apache.maven.plugin.DefaultPluginManager.getReport 
(DefaultPluginManager.java:462)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports 
(DefaultLifecycleExecutor.java:678)

... 18 more
Caused by:  
org.codehaus.plexus.component.configurator.ComponentConfigurationExcepti 
on: Class 'java.util.List' cannot be instantiated
at  
org.codehaus.plexus.component.configurator.converters.AbstractConfigurat 
ionConverter.instantiateObject(AbstractConfigurationConverter.java:121)
at  
org.codehaus.plexus.component.configurator.converters.composite.Collecti 
onConverter.fromConfiguration(CollectionConverter.java:73)
at  
org.codehaus.plexus.component.configurator.converters.ComponentValueSett 
er.configure(ComponentValueSetter.java:247)
at  
org.codehaus.plexus.component.configurator.converters.composite.ObjectWi 
thFieldsConverter.processConfiguration(ObjectWithF

Re: [m2]How to get files into test classpath?

2006-05-30 Thread hamdard

Thanks Trygve 

The workaround works! Here's my configuration that binds the generated
sources and the test sources to the compiler plugin. This way maven compiles
them and put the .classes to the executable (target) directory. 

.
.


org.apache.maven.plugins
maven-compiler-plugin

1.5
1.5

dod/deployments/src/java/**/*.java


src/test/java/**/*.java 




--
View this message in context: 
http://www.nabble.com/-m2-How+to+get+files+into+test+classpath--t987507.html#a4635367
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: date in manifest

2006-05-30 Thread Julian Wood

You can use the maven-buildNumber-plugin.

http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

Near the bottom it tells you how to use a timestamp.

There was some talk of making the build date a more globally  
available property (negating the need for this plugin), but I don't  
know what it is, or if it was done.


J

On 30-May-06, at 2:03 PM, [EMAIL PROTECTED] wrote:


Hi  All

If i want to make entry of build date to mani-fest files how do i  
do that?


i know how to make entry to mani-fest but don't know what maven  
variable

has the value for date ??

Anyone knows  it , please advise?





Thanks,
Raghu


--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple source directories (again)

2006-05-30 Thread hamdard

I think where you have to do:

.

you also have to specify the same for testSourceDirectory, e.g.:

.

and then rest is same...


--
View this message in context: 
http://www.nabble.com/Multiple+source+directories+%28again%29-t501592.html#a4635171
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hammurapi plugin?

2006-05-30 Thread Wayne Fay

Never seen/heard of any such plugin for M2, but if you get inspired,
please contribute it back for the benefit of others!

Wayne

On 5/30/06, Henrik Mejlgaard <[EMAIL PROTECTED]> wrote:

Does anyone have a Hammurapi plugin for Maven 2?

Regards,

Henrik




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hammurapi plugin?

2006-05-30 Thread Henrik Mejlgaard

Does anyone have a Hammurapi plugin for Maven 2?

Regards,

Henrik


Re: [M2] Dashboard functionality

2006-05-30 Thread Rik Bosman

Vincent,

Thanks for the answer (and the link). So it will be a feature for the
future.
I'm happy with the work the maven team has done on the core projects. More
important of course!

I'll try to create "something" on my own. If time allows...

Rik


date in manifest

2006-05-30 Thread raghurajan . x . gurunathan
Hi  All

If i want to make entry of build date to mani-fest files how do i do that?

i know how to make entry to mani-fest but don't know what maven variable 
has the value for date ??

Anyone knows  it , please advise?





Thanks,
Raghu 


Re: [M2] Problem deploying with maven 2 and Ant

2006-05-30 Thread Wayne Fay

I'm really not sure why you can't have a "maven solution" to the
problem and an "ant solution" to the problem that both work but don't
depend on one another.

They are different "products" -- yes you can call Ant from Maven but
obviously its not perfect.

I would give up this "pointless" goal and just write a build.xml
"solution" and a pom.xml "solution" and just keep them separate,
personally. But I prefer to be pragmatic as much as possible.

Wayne

On 5/30/06, Roland Asmann <[EMAIL PROTECTED]> wrote:

Or just forget about the ant-part and use the jboss-maven-plugin! (See also 
this thread: Unable to locate local repo in Mac-OSX(how to call ant from maven))


   org.codehaus.mojo
   jboss-maven-plugin
   
   /path/to/jboss
   


And then run one of its goals (deploy / harddeploy)


Roland



On Tuesday 30 May 2006 21:14, Wayne Fay wrote:
> 1. Does it work in ant only ie "ant buildDeploy"? Until this works,
> there's really no need to test in Maven.
>
> 2. Is the command "scp" available on the command line, in your system
> path? Type "scp" and make sure it works.
>
> Wayne
>
> On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:
> > Hi all!
> > I´m using Jboss4.0.2  and i still get an errorcan you help how can i
> > configure my build.xml.
> > I followed what a maven list fellow said about packing with maven and
> > deploy with ant, and just worry how maven works with ant.
> > I get that, but i have a problem in my build.xml, i saw many examples and
> > i couldn´t success yet...
> > Can anyone help me saying what´s wrong to my .xml´s 
> > Here are my pom.xml and my build.xml
> >
> > pom.xml
> > ...
> > 
> > maven-antrun-plugin
> > 
> >   
> > compile
> > 
> >   
> >  
> >   > inheritAll="true"/>
> >  
> >
> >   
> > 
> > 
> >   run
> > 
> >   
> > 
> >
> >  
> >
> >
> > my build.xml
> >
> > 
> >   
> > 
> > 
> >  > value="C:/Projects/App/ear/target/EAR-1.0.ear "/>
> > 
> >
> > 
> >   
> >   
> > 
> >
> >
> > The Exception i received:
> > ...
> >
> > [INFO] [antrun:run {execution: default}]
> > [INFO] Executing tasks
> >  [echo] Efetuando o deploy...
> >
> > deploy-live:
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] Error executing ant tasks
> >
> > Embedded error: The following error occurred while executing this line:
> > C:\Projetos\ReportPronim4\ear\build.xml:6: Execute failed:
> > java.io.IOException:
> > CreateProcess: scp scp
> > C:/Projetos/ReportPronim4/ear/target/PPAEAR-1.0.earcetil
> > @ptplinux:/opt/jboss-4.0.1sp1/server/default/deploy/PPAEAR-1.0.ear
> > error=2 [INFO]
> > 
> > ...
> >
> > what Am i doing wrong
> >
> > Regards,
> >
> > Leo
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Problem deploying with maven 2 and Ant

2006-05-30 Thread Leo L

But, for a remote deploy is also that configuration like local

/path/to/jboss  

... and the protocol, user, server ???

Regards,
Leo





2006/5/30, Roland Asmann <[EMAIL PROTECTED]>:


Or just forget about the ant-part and use the jboss-maven-plugin! (See
also this thread: Unable to locate local repo in Mac-OSX(how to call ant
from maven))


   org.codehaus.mojo
   jboss-maven-plugin
   
   /path/to/jboss
   


And then run one of its goals (deploy / harddeploy)


Roland



On Tuesday 30 May 2006 21:14, Wayne Fay wrote:
> 1. Does it work in ant only ie "ant buildDeploy"? Until this works,
> there's really no need to test in Maven.
>
> 2. Is the command "scp" available on the command line, in your system
> path? Type "scp" and make sure it works.
>
> Wayne
>
> On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:
> > Hi all!
> > I´m using Jboss4.0.2  and i still get an errorcan you help how can i
> > configure my build.xml.
> > I followed what a maven list fellow said about packing with maven and
> > deploy with ant, and just worry how maven works with ant.
> > I get that, but i have a problem in my build.xml, i saw many examples
and
> > i couldn´t success yet...
> > Can anyone help me saying what´s wrong to my .xml´s 
> > Here are my pom.xml and my build.xml
> >
> > pom.xml
> > ...
> > 
> > maven-antrun-plugin
> > 
> >   
> > compile
> > 
> >   
> >  
> >   > inheritAll="true"/>
> >  
> >
> >   
> > 
> > 
> >   run
> > 
> >   
> > 
> >
> >  
> >
> >
> > my build.xml
> >
> > 
> >   
> > 
> > 
> >  > value="C:/Projects/App/ear/target/EAR-1.0.ear "/>
> > 
> >
> > 
> >   
> >   
> > 
> >
> >
> > The Exception i received:
> > ...
> >
> > [INFO] [antrun:run {execution: default}]
> > [INFO] Executing tasks
> >  [echo] Efetuando o deploy...
> >
> > deploy-live:
> > [INFO]
> >

> > [ERROR] BUILD ERROR
> > [INFO]
> >

> > [INFO] Error executing ant tasks
> >
> > Embedded error: The following error occurred while executing this
line:
> > C:\Projetos\ReportPronim4\ear\build.xml:6: Execute failed:
> > java.io.IOException:
> > CreateProcess: scp scp
> > C:/Projetos/ReportPronim4/ear/target/PPAEAR-1.0.earcetil
> > @ptplinux:/opt/jboss-4.0.1sp1/server/default/deploy/PPAEAR-1.0.ear
> > error=2 [INFO]
> >

> > ...
> >
> > what Am i doing wrong
> >
> > Regards,
> >
> > Leo
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Bypass compliation error

2006-05-30 Thread ben short

Easy solution: Stop writing code that doesn't compile. ;-)

Hehe

Yes that was my other thought.

Ben

On 5/30/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

Easy solution: Stop writing code that doesn't compile. ;-)

How in the world did you manage to get in this situation, with
multiple files that just don't compile for some reason or another at
any given time in a project?

Wayne

On 5/30/06, RobJac <[EMAIL PROTECTED]> wrote:
>
> i have checked it out, the exclude parameter tries to remove that file from
> the build and thus avoid compiling that file. This leads to more
> maintainance of the pom xml since i need to keep adding files to the pom xml
> which are not compilable and then remove it once it becomes compilable.
> --
> View this message in context: 
http://www.nabble.com/Bypass+compliation+error-t1705845.html#a4631357
> Sent from the Maven - Users forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Problem deploying with maven 2 and Ant

2006-05-30 Thread Roland Asmann
Or just forget about the ant-part and use the jboss-maven-plugin! (See also 
this thread: Unable to locate local repo in Mac-OSX(how to call ant from maven))


org.codehaus.mojo
jboss-maven-plugin

/path/to/jboss



And then run one of its goals (deploy / harddeploy)


Roland



On Tuesday 30 May 2006 21:14, Wayne Fay wrote:
> 1. Does it work in ant only ie "ant buildDeploy"? Until this works,
> there's really no need to test in Maven.
>
> 2. Is the command "scp" available on the command line, in your system
> path? Type "scp" and make sure it works.
>
> Wayne
>
> On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:
> > Hi all!
> > I´m using Jboss4.0.2  and i still get an errorcan you help how can i
> > configure my build.xml.
> > I followed what a maven list fellow said about packing with maven and
> > deploy with ant, and just worry how maven works with ant.
> > I get that, but i have a problem in my build.xml, i saw many examples and
> > i couldn´t success yet...
> > Can anyone help me saying what´s wrong to my .xml´s 
> > Here are my pom.xml and my build.xml
> >
> > pom.xml
> > ...
> > 
> > maven-antrun-plugin
> > 
> >   
> > compile
> > 
> >   
> >  
> >   > inheritAll="true"/>
> >  
> >
> >   
> > 
> > 
> >   run
> > 
> >   
> > 
> >
> >  
> >
> >
> > my build.xml
> >
> > 
> >   
> > 
> > 
> >  > value="C:/Projects/App/ear/target/EAR-1.0.ear "/>
> > 
> >
> > 
> >   
> >   
> > 
> >
> >
> > The Exception i received:
> > ...
> >
> > [INFO] [antrun:run {execution: default}]
> > [INFO] Executing tasks
> >  [echo] Efetuando o deploy...
> >
> > deploy-live:
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] Error executing ant tasks
> >
> > Embedded error: The following error occurred while executing this line:
> > C:\Projetos\ReportPronim4\ear\build.xml:6: Execute failed:
> > java.io.IOException:
> > CreateProcess: scp scp
> > C:/Projetos/ReportPronim4/ear/target/PPAEAR-1.0.earcetil
> > @ptplinux:/opt/jboss-4.0.1sp1/server/default/deploy/PPAEAR-1.0.ear
> > error=2 [INFO]
> > 
> > ...
> >
> > what Am i doing wrong
> >
> > Regards,
> >
> > Leo
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

2006-05-30 Thread Roland Asmann
You could try using the jboss-maven-plugin, like this:


org.codehaus.mojo
jboss-maven-plugin

/path/to/jboss



And then run one of its goals (deploy / harddeploy)

Roland



On Tuesday 30 May 2006 21:02, Wayne Fay wrote:
> Unfortunately I don't use JBoss, so I'm not much help. My OC4J samples
> won't give you any useful info!
>
> Wayne
>
> On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:
> > Hi Wayne!
> > I´m using Jboss4.0.2  can you help how can i configure my build.xml.
> > I followed what you said abou packing with maven and deploy with and
> > worried how maven works with ant.
> > I get that, but i have a problem in my build.xml, i saw many examples and
> > i couldn´t success yet...
> > Can you help me send me a build.xml example 
> > my pom.xml and my build.xml
> >
> > pom.xml
> > ...
> >
> > maven-antrun-plugin
> > 
> >   
> > compile
> > 
> >   
> >  
> >   > inheritAll="true"/>
> >  
> >   
> > 
> > 
> >   run
> > 
> >   
> > 
> >
> > 
> >
> >
> > my build.xml
> >
> > 
> >
> > 
> > 
> > 
> >
> >
> > what Am i doing wrong
> >
> > Regards,
> >
> > Leo
> >
> > 2006/5/30, Wayne Fay <[EMAIL PROTECTED]>:
> > > I don't know what app servers you guys are running, but we have
> > > discussed most of them on this list at some point I'm sure, esp JBoss,
> > > Tomcat, etc.
> > >
> > > Search the Maven User list archive at Nabble for "deploy  > > server here>" and you're bound to find examples.
> > >
> > > Wayne
> > >
> > > On 5/30/06, Leo L < [EMAIL PROTECTED]> wrote:
> > > > Hi Chandrika and Kennye!
> > > >
> > > > I have the same problem and your conversation helps a lot, but any of
> > >
> > > you
> > >
> > > > has a build.xml and a pom.xml configuration to deploy an
> > > > application
> > > >
> > > >
> > > > So i can see how to deploy my app..
> > > >
> > > > Regards,
> > > > Leo
> > > >
> > > > 2006/5/30, Chandrika <[EMAIL PROTECTED]>:
> > > > > Thanks for your reply...
> > > > > I m able to invoke ant form maven:)))
> > > > > --
> > > > > View this message in context:
> > >
> > > http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t169
> > >8478.html#a4625037
> > >
> > > > > Sent from the Maven - Users forum at Nabble.com
> > > > > .
> > > > >
> > > > >
> > > > > ---
> > > > >-- To unsubscribe, e-mail: [EMAIL PROTECTED] For
> > > > > additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bypass compliation error

2006-05-30 Thread Wayne Fay

Easy solution: Stop writing code that doesn't compile. ;-)

How in the world did you manage to get in this situation, with
multiple files that just don't compile for some reason or another at
any given time in a project?

Wayne

On 5/30/06, RobJac <[EMAIL PROTECTED]> wrote:


i have checked it out, the exclude parameter tries to remove that file from
the build and thus avoid compiling that file. This leads to more
maintainance of the pom xml since i need to keep adding files to the pom xml
which are not compilable and then remove it once it becomes compilable.
--
View this message in context: 
http://www.nabble.com/Bypass+compliation+error-t1705845.html#a4631357
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Problem deploying with maven 2 and Ant

2006-05-30 Thread Wayne Fay

1. Does it work in ant only ie "ant buildDeploy"? Until this works,
there's really no need to test in Maven.

2. Is the command "scp" available on the command line, in your system
path? Type "scp" and make sure it works.

Wayne

On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:

Hi all!
I´m using Jboss4.0.2  and i still get an errorcan you help how can i
configure my build.xml.
I followed what a maven list fellow said about packing with maven and deploy
with ant, and just worry how maven works with ant.
I get that, but i have a problem in my build.xml, i saw many examples and i
couldn´t success yet...
Can anyone help me saying what´s wrong to my .xml´s 
Here are my pom.xml and my build.xml

pom.xml
...

maven-antrun-plugin

  
compile

  
 
 
 

  


  run

  

   
 


my build.xml


  




   

  
  



The Exception i received:
...

[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
 [echo] Efetuando o deploy...

deploy-live:
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
C:\Projetos\ReportPronim4\ear\build.xml:6: Execute failed:
java.io.IOException:
CreateProcess: scp scp C:/Projetos/ReportPronim4/ear/target/PPAEAR-1.0.earcetil
@ptplinux:/opt/jboss-4.0.1sp1/server/default/deploy/PPAEAR-1.0.ear error=2
[INFO]

...

what Am i doing wrong

Regards,

Leo




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[M2] Problem deploying with maven 2 and Ant

2006-05-30 Thread Leo L

Hi all!
I´m using Jboss4.0.2  and i still get an errorcan you help how can i
configure my build.xml.
I followed what a maven list fellow said about packing with maven and deploy
with ant, and just worry how maven works with ant.
I get that, but i have a problem in my build.xml, i saw many examples and i
couldn´t success yet...
Can anyone help me saying what´s wrong to my .xml´s 
Here are my pom.xml and my build.xml

pom.xml
...
   
   maven-antrun-plugin
   
 
   compile
   
 




 
   
   
 run
   
 
   
  



my build.xml


 
   
   
   
   
  
   
 
 



The Exception i received:
...

[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[echo] Efetuando o deploy...

deploy-live:
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
C:\Projetos\ReportPronim4\ear\build.xml:6: Execute failed:
java.io.IOException:
CreateProcess: scp scp C:/Projetos/ReportPronim4/ear/target/PPAEAR-1.0.earcetil
@ptplinux:/opt/jboss-4.0.1sp1/server/default/deploy/PPAEAR-1.0.ear error=2
[INFO]

...

what Am i doing wrong

Regards,

Leo


Re: How to get all the tests run even if an error occur in a maven multiproject

2006-05-30 Thread emerson cargnin

Yes, I noticed :)
does anyone know how to do that with maven 1.0.2???

On 30/05/06, Marcel Schutte <[EMAIL PROTECTED]> wrote:

Sorry, I missed the maven version you're using. This info is for M2.

--- Marcel Schutte <[EMAIL PROTECTED]> wrote:

> Try 'mvn -fae test'\, I think that is what you need. For a complete
> list of options see 'mvn -h'.
>
> Marcel
>
> --- emerson cargnin <[EMAIL PROTECTED]> wrote:
>
> > I know I can use it (and maven.test.error.ignore), the problem is
> > that
> > the build doens't fail at the end...
> >
> >
> > On 30/05/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> > > Use '-Dmaven.test.failure.ignore=true'.
> > >
> > > Roland
> > >
> > >
> > >
> > > On Tuesday 30 May 2006 19:09, emerson cargnin wrote:
> > > > How do i get a maven multiproject to run all tests, even in
> case
> > of a
> > > > failure or error?
> > > > A multiproject stops in the project that failed, and I want all
> > the
> > > > projects to runm to get all the errors/failures in
> > cruisecontrol.I
> > > > know I could use maven.test.failure.ignore and the error
> > > > correspondent, but that would make the build to be successful,
> > even if
> > > > an error happens.
> > > >
> > > > Im using maven 1.0.2 and cruisecontrol 2.5.
> > > >
> > > >
> > > > Emerson Cargnin
> > > >
> > > >
> >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

2006-05-30 Thread Wayne Fay

Unfortunately I don't use JBoss, so I'm not much help. My OC4J samples
won't give you any useful info!

Wayne

On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:

Hi Wayne!
I´m using Jboss4.0.2  can you help how can i configure my build.xml.
I followed what you said abou packing with maven and deploy with and worried
how maven works with ant.
I get that, but i have a problem in my build.xml, i saw many examples and i
couldn´t success yet...
Can you help me send me a build.xml example 
my pom.xml and my build.xml

pom.xml
...
   
maven-antrun-plugin

  
compile

  
 
 
 
  


  run

  

   



my build.xml


   





what Am i doing wrong

Regards,

Leo



2006/5/30, Wayne Fay <[EMAIL PROTECTED]>:
>
> I don't know what app servers you guys are running, but we have
> discussed most of them on this list at some point I'm sure, esp JBoss,
> Tomcat, etc.
>
> Search the Maven User list archive at Nabble for "deploy  server here>" and you're bound to find examples.
>
> Wayne
>
> On 5/30/06, Leo L < [EMAIL PROTECTED]> wrote:
> > Hi Chandrika and Kennye!
> >
> > I have the same problem and your conversation helps a lot, but any of
> you
> > has a build.xml and a pom.xml configuration to deploy an application
>
> >
> > So i can see how to deploy my app..
> >
> > Regards,
> > Leo
> >
> >
> > 2006/5/30, Chandrika <[EMAIL PROTECTED]>:
> > >
> > >
> > > Thanks for your reply...
> > > I m able to invoke ant form maven:)))
> > > --
> > > View this message in context:
> > >
> 
http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
> > > Sent from the Maven - Users forum at Nabble.com .
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Defining a new package tpye

2006-05-30 Thread Piéroni Raphaël

Hello Anita,

are the mojos you bind to your new packaging using the javadoc class tag
that enable the dependency resolution ?
For more information about the dependency resolution in mojos, please check
the maven book from mergere.

Hope this helps.

Raphaël

2006/5/30, anita kulshreshtha <[EMAIL PROTECTED] >:


Hi,
I am writing a plugin that defines a new package type (say 'xar')
using these instructions -

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
I use this plugin in a project as :


...
xar
..
..

  
  
 
  


  
<>dep1<...>
..
  
..


When I build the project, the dependencies are not searched for. If
the packaging was jar all the dependencies are searched and loaded, if
found. Am I missing something or is this the expected behavior? How can
I ensure that foo.xar behaves just like a foo.jar as far as dependency
resolution is concerned.

Thanks in Advance
Anita



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




releasing modules with SNAPSHOT build plugins

2006-05-30 Thread Mike Perham
I have a SNAPSHOT of the war plugin that I built and deployed to fix a
blocker for us that has not been released.  In my POM, I refer to it
like this:


  

  maven-war-plugin
  2.0.1-20060525.222101-1

I did this specifically so the release plugin would not think it was a
SNAPSHOT so I could release the module.  But when I do try to release, I
get this error:

[INFO] Can't release project due to non released dependencies :
 
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.0.1-SNAPSHOT:ru
ntime
in project 'UDDI WAR'
(com.webify.fabric:fabric-uddi-web:war:1.1.0-SNAPSHOT)

In that version of the war plugin's plugin.xml there's a number of
references to 2.0.1-SNAPSHOT rather than the explicit version I
deployed.  For example:


  Maven Plugins
  org.apache.maven.plugins
  maven-war-plugin
  2.0.1-SNAPSHOT

So it looks like that even though the plugin's POM has a specific
version, the plugin.xml still has the snapshot suffix and this causes
the release to fail.  Am I not doing something correctly?  Is there a
workaround for this behavior?

mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get all the tests run even if an error occur in a maven multiproject

2006-05-30 Thread Marcel Schutte
Sorry, I missed the maven version you're using. This info is for M2.

--- Marcel Schutte <[EMAIL PROTECTED]> wrote:

> Try 'mvn -fae test'\, I think that is what you need. For a complete
> list of options see 'mvn -h'.
> 
> Marcel
> 
> --- emerson cargnin <[EMAIL PROTECTED]> wrote:
> 
> > I know I can use it (and maven.test.error.ignore), the problem is
> > that
> > the build doens't fail at the end...
> > 
> > 
> > On 30/05/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> > > Use '-Dmaven.test.failure.ignore=true'.
> > >
> > > Roland
> > >
> > >
> > >
> > > On Tuesday 30 May 2006 19:09, emerson cargnin wrote:
> > > > How do i get a maven multiproject to run all tests, even in
> case
> > of a
> > > > failure or error?
> > > > A multiproject stops in the project that failed, and I want all
> > the
> > > > projects to runm to get all the errors/failures in
> > cruisecontrol.I
> > > > know I could use maven.test.failure.ignore and the error
> > > > correspondent, but that would make the build to be successful,
> > even if
> > > > an error happens.
> > > >
> > > > Im using maven 1.0.2 and cruisecontrol 2.5.
> > > >
> > > >
> > > > Emerson Cargnin
> > > >
> > > >
> >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get all the tests run even if an error occur in a maven multiproject

2006-05-30 Thread Marcel Schutte
Try 'mvn -fae test'\, I think that is what you need. For a complete
list of options see 'mvn -h'.

Marcel

--- emerson cargnin <[EMAIL PROTECTED]> wrote:

> I know I can use it (and maven.test.error.ignore), the problem is
> that
> the build doens't fail at the end...
> 
> 
> On 30/05/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> > Use '-Dmaven.test.failure.ignore=true'.
> >
> > Roland
> >
> >
> >
> > On Tuesday 30 May 2006 19:09, emerson cargnin wrote:
> > > How do i get a maven multiproject to run all tests, even in case
> of a
> > > failure or error?
> > > A multiproject stops in the project that failed, and I want all
> the
> > > projects to runm to get all the errors/failures in
> cruisecontrol.I
> > > know I could use maven.test.failure.ignore and the error
> > > correspondent, but that would make the build to be successful,
> even if
> > > an error happens.
> > >
> > > Im using maven 1.0.2 and cruisecontrol 2.5.
> > >
> > >
> > > Emerson Cargnin
> > >
> > >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven Website - I'm struggling getting the information I seek

2006-05-30 Thread Stefan Arentz

On 5/30/06, Marc Weber <[EMAIL PROTECTED]> wrote:

Hello I'm using mvn for 2 month now and I'm till struggling finding the
finding the documentation on the maven.apache.org website.


Same here. I started using Maven 2 about a month ago. It has been
*extremely* painful because of the complete chaos that is called
documentation. Figuring out how plugins work is impossible because the
documentation is either missing or halve-baked. I have more success
with asking things on the list here, or searching the list archives.
Or even reading source code of plugins.

It is a pleasure to use Maven for my project, but it was all but a simple start.

I think the Maven team should set some standards for documentation and
simply ask every plugin developer to take care of it or else simply
drop the plugin.

S.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: building twice - version 1.0.3

2006-05-30 Thread josh . steele
Hi all,
   Thanks for the responses.  I actually avoid using "refresh" to keep this 
from happening - I instead, as you mentioned, click the Show Proejcts link to 
get an update on the status.  However, this isn't my problem.  

   Even from a freshly setup continuum project, if I click on the "Build Now" 
icon, continuum builds 2 builds, one after the other.   For this example, I'm 
simply running "java:compile" (I'm using M1.1-beta2), and in the first build, 
it prepares the filesystem, and compiles the files (takes in total 10 seconds). 
 The second build right after that only takes 2 seconds to complete, since no 
changes have taken place, so it essentially does nothing.


   Looking at the console output for Continuum, there seems to be 2 "enqueings" 
of the project from the moment I hit the build now button.  I do nothing from 
the time I press the button until the console stops generating output.  

   Any thoughts for this?

Thanks,
Josh



-Original Message---
Yes, actually, if you refresh a page generated just after a form, the form is 
resended when
you 
refresh the page. You can click on Show Project link in menu instead.

We'll fix this problem in 1.1

Emmanuel

Rick Riemer a �crit :
> Joshua,
> 
> I've seen the same thing recently. In my case what happened is that I
> refreshed the status page to see if the build was actually started, but with
> doing that I was giving another command to start a build.
> 
> Once I stopped refreshing no more builds happened.
> 
> Rick
> 
> -Original Message-
> From: Joshua Steele [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 25, 2006 2:35
> To: continuum-users@maven.apache.org
> Subject: building twice - version 1.0.3
> 
> All,
>   I'm having an issue with Continuum 1.0.3 where it is building a  
> project twice, one immediately after the other.  I've scanned JIRA  
> and can't find a report.  Is this something that is known?  Any  
> details are appreciated.
> 
> Thanks,
> Josh
> 
> 
> 
> 
> 
> 
> 
> 


Defining a new package tpye

2006-05-30 Thread anita kulshreshtha
Hi,
I am writing a plugin that defines a new package type (say 'xar')
using these instructions - 
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
I use this plugin in a project as :


 ...
 xar  
..
..

  
  
 
  


  
<>dep1<...>
..
  
..


When I build the project, the dependencies are not searched for. If
the packaging was jar all the dependencies are searched and loaded, if
found. Am I missing something or is this the expected behavior? How can
I ensure that foo.xar behaves just like a foo.jar as far as dependency
resolution is concerned. 

Thanks in Advance
Anita

 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiproject Site

2006-05-30 Thread Aaron Freeman

It is Maven 2.0, so the muliproject:site command just gets

"The plugin 'org.apache.maven.plugins:maven-multiproject-plugin' does
not exist or no valid version could be found"

On 5/30/06, Pauquette, Bryan <[EMAIL PROTECTED]> wrote:

If its not 2.0 > then the command is maven multiproject:site


-Original Message-
From: Pauquette, Bryan
Sent: Tuesday, May 30, 2006 11:15 AM
To: Maven Users List
Subject: RE: Multiproject Site

What version of maven are you using?


-Original Message-
From: Aaron Freeman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 30, 2006 10:59 AM
To: Maven
Subject: Multiproject Site

I have a multi-module project that I am trying to deploy the site for.
When I run the site-deploy command it generates all the project sites
and looks like it is copying all the sites out the the web server, but
it actually only copies the parent project site and none of the
sub-project sites. It there some other command I need to run to get it
to do this?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bypass compliation error

2006-05-30 Thread RobJac

i have checked it out, the exclude parameter tries to remove that file from
the build and thus avoid compiling that file. This leads to more
maintainance of the pom xml since i need to keep adding files to the pom xml
which are not compilable and then remove it once it becomes compilable.
--
View this message in context: 
http://www.nabble.com/Bypass+compliation+error-t1705845.html#a4631357
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get all the tests run even if an error occur in a maven multiproject

2006-05-30 Thread emerson cargnin

I know I can use it (and maven.test.error.ignore), the problem is that
the build doens't fail at the end...


On 30/05/06, Roland Asmann <[EMAIL PROTECTED]> wrote:

Use '-Dmaven.test.failure.ignore=true'.

Roland



On Tuesday 30 May 2006 19:09, emerson cargnin wrote:
> How do i get a maven multiproject to run all tests, even in case of a
> failure or error?
> A multiproject stops in the project that failed, and I want all the
> projects to runm to get all the errors/failures in cruisecontrol.I
> know I could use maven.test.failure.ignore and the error
> correspondent, but that would make the build to be successful, even if
> an error happens.
>
> Im using maven 1.0.2 and cruisecontrol 2.5.
>
>
> Emerson Cargnin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get all the tests run even if an error occur in a maven multiproject

2006-05-30 Thread Roland Asmann
Use '-Dmaven.test.failure.ignore=true'.

Roland



On Tuesday 30 May 2006 19:09, emerson cargnin wrote:
> How do i get a maven multiproject to run all tests, even in case of a
> failure or error?
> A multiproject stops in the project that failed, and I want all the
> projects to runm to get all the errors/failures in cruisecontrol.I
> know I could use maven.test.failure.ignore and the error
> correspondent, but that would make the build to be successful, even if
> an error happens.
>
> Im using maven 1.0.2 and cruisecontrol 2.5.
>
>
> Emerson Cargnin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to get all the tests run even if an error occur in a maven multiproject

2006-05-30 Thread emerson cargnin

How do i get a maven multiproject to run all tests, even in case of a
failure or error?
A multiproject stops in the project that failed, and I want all the
projects to runm to get all the errors/failures in cruisecontrol.I
know I could use maven.test.failure.ignore and the error
correspondent, but that would make the build to be successful, even if
an error happens.

Im using maven 1.0.2 and cruisecontrol 2.5.


Emerson Cargnin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bypass compliation error

2006-05-30 Thread ben short

Have a look at the compiler plugin. there is a excludes parameter for
the plugin. But I dont know how to use it.

Maybe comment out the source code that makes the classes fail? Or if
the files are checked into source control remove them from your local
machine. Neither are good sloutions.

Ben

http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html

On 5/30/06, RobJac <[EMAIL PROTECTED]> wrote:


I am not able to build a project since there are some uncompilable class
files in my project. How do I by pass compilation failures in my project and
let maven compile the other java files in my project that are actually
compilable and build a project for me with the compiled files alone?
--
View this message in context: 
http://www.nabble.com/Bypass+compliation+error-t1705845.html#a4630601
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Bypass compliation error

2006-05-30 Thread RobJac

I am not able to build a project since there are some uncompilable class
files in my project. How do I by pass compilation failures in my project and
let maven compile the other java files in my project that are actually
compilable and build a project for me with the compiled files alone?
--
View this message in context: 
http://www.nabble.com/Bypass+compliation+error-t1705845.html#a4630601
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] questions about migrating to maven

2006-05-30 Thread Carlos Sanchez

On 5/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Carlos,

-->  re FILTERING PROPERTIES FILES FOR ENVIRONMENTS
My suggestion is to externalie that configuration options in a way
that your artifact is always the same, and only configuration changes.
You can do reading your config files from the classpath or better
using JNDI.



Sorry to harp on this, but I think I am having trouble thinking beyond
the way I have used ant the past few years.

100% of the differences between the developer workstation,
pre-production and production builds on my various projects are isolated
into properties files.  These are then pulled into Spring as classpath
resources.

If I understand you correctly, you are suggesting that the project
artifacts, wars and jars alike, should not include these properties
files.  These files should either:

- be accessed as classpath resource.  Presumably some other
build/release process would deposit them on the classpath, or they would
be added to the container's classpath at startup.
- accessed via JNDI.  The JNDI entries would either be name/value pairs,
the properties files themselves or a combo.  When the war is deployed,
part of the deployment process would be to configure the JNDI tree.

Is this correct?



Yes, that way you don't need different artifacts for each environment,
reducing the risks.

If you still want to do that you can use profiles to include/exclude
properties files in the jar, chnging the finalName so they are named
differently. I encourage the other option, but still you can do it
this way.




--> re INTER-PROJECT DEPENDENCIES

--> With maven the best way is not to rebuild all your dependencies
every
time, but to depend on the binaries generated by the other projects as
SNAPSHOTs.

If I can get past the environment configuration step - then I suspect
that this would no longer be an issue.  Each artifact would be generic
and just as relevant on a developers workstation as it will be in
production.

Carlos

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Sunday, May 28, 2006 2:09 PM
To: Maven Users List
Subject: Re: [M2] questions about migrating to maven

Hi Carlos,

re FILTERING PROPERTIES FILES FOR ENVIRONMENTS

I usually don't like this approach for the inconvinients you mention,
you need to rebuild your artifacts for each environments, which is
usually prone to errors, you test x-dev in your machine, and then
build x-prod for production, with no guarantees that it's the same
stuff you tested.

My suggestion is to externalie that configuration options in a way
that your artifact is always the same, and only configuration changes.
You can do reading your config files from the classpath or better
using JNDI. You can also have dev config as default so your developers
don't have to setup anything and you do it only in prod or preprod.


re INTER-PROJECT DEPENDENCIES

With maven the best way is not to rebuild all your dependencies every
time, but to depend on the binaries generated by the other projects as
SNAPSHOTs. You can ensure the repo has the latest snapshot by setting
up continuum to deploy everytime somebody changes the project. That
way developers don't have to go through the extra time consuming
process of building the dependencies.

Regards

Carlos


On 5/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> I am pretty sure that I am over thinking this ;)  However, I am having
> trouble thinking how best to migrate our ant based build process to
> maven.  Principally:
>
> - Filtering properties files for environments, and
> - Inter-project dependencies
>
> FILTERING PROPERTIES FILES FOR ENVIRONMENTS
> As with most projects, our apps use properties files for configuring a
> host of settings.  Many of these (e.g. db settings, log4j settings,
web
> service host:port etc) are environment specific.  Our projects have
> properties files for various target environments, such as production,
> pre-production, cruisecontrol.  Each developer also has a local props
> file that they can tailor for their particular needs (e.g. for
debugging
> you may want to log springframework as DEBUG and suppress all others).
> Ant uses these files to filter the application properties.  The result
> is a build tailored for a particular environment.  Since all
environment
> specific properties, beside the local, are source controlled we have a
> high degree of confidence in consistent and reproducible builds to our
> shared infrastructure.
>
> In maven I have been able to reproduce this behavior with profiles.
> However, I am not sure what to do with the resulting artifacts.  Each
> artifact is "tainted" with environment specific properties.
>
> Should artifacts generated with "local" only be installed in each
> developers local repository?  What about the artifacts for the testing
> and production environments?  Should the internal repository only be
> used to store "production" artifacts?  Shou

Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

2006-05-30 Thread Leo L

Hi Wayne!
I´m using Jboss4.0.2  can you help how can i configure my build.xml.
I followed what you said abou packing with maven and deploy with and worried
how maven works with ant.
I get that, but i have a problem in my build.xml, i saw many examples and i
couldn´t success yet...
Can you help me send me a build.xml example 
my pom.xml and my build.xml

pom.xml
...
  
   maven-antrun-plugin
   
 
   compile
   
 



 
   
   
 run
   
 
   
  



my build.xml


  
   
   



what Am i doing wrong

Regards,

Leo



2006/5/30, Wayne Fay <[EMAIL PROTECTED]>:


I don't know what app servers you guys are running, but we have
discussed most of them on this list at some point I'm sure, esp JBoss,
Tomcat, etc.

Search the Maven User list archive at Nabble for "deploy " and you're bound to find examples.

Wayne

On 5/30/06, Leo L < [EMAIL PROTECTED]> wrote:
> Hi Chandrika and Kennye!
>
> I have the same problem and your conversation helps a lot, but any of
you
> has a build.xml and a pom.xml configuration to deploy an application

>
> So i can see how to deploy my app..
>
> Regards,
> Leo
>
>
> 2006/5/30, Chandrika <[EMAIL PROTECTED]>:
> >
> >
> > Thanks for your reply...
> > I m able to invoke ant form maven:)))
> > --
> > View this message in context:
> >
http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
> > Sent from the Maven - Users forum at Nabble.com .
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: JUG in Europe

2006-05-30 Thread Emmanuel Venisse

Hi,

I think you'll have one (perhaps two) event at Paris and one interview for http://www.tv4it.net/ by 
Didier Girard.


Emmanuel

Jason van Zyl a écrit :

Hi,

If anyone belongs to a JUG in Europe I will be in the area from June  
19th to July 14th. So far it looks like there will be presentations  in 
London, Dublin, Torino, Oslo and Paris. If you belong to a JUG and  
would like a presentation on Maven I'd be happy to oblige :-) Just  
contact me privately to set something up.


Jason van Zyl
[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [maven2] Generating several artifacts per project ?

2006-05-30 Thread Chris Hilton
I didn't see the "right" answer go by for this (or what I thought was right), 
so I hope I'm not repeating something.

In one of my projects that needs a secondary jar with a subset of classes, I've 
done the following:

   

  
maven-antrun-plugin

  
package

  



  


  run

  

  
 
org.codehaus.mojo
build-helper-maven-plugin

  
attach-artifacts
package

  attach-artifact



  

${project.build.directory}/${project.name}-${project.version}-client.jar
jar
client
  


  

  

   

I've created the secondary jar with a small Ant script bound to the package 
phase, but obviously there are a number of other ways you could do it. Then you 
just use the build-helper plugin to attach your jar as another artifact with a 
classifier to distinguish it from the primary artifact. You'll also need that 
classifier when referring to the secondary artifact as a dependency.

Chris Hilton

> -Original Message-
> From: sol myr [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 26 May, 2006 17:50
> To: users@maven.apache.org
> Subject: [maven2] Generating several artifacts per project ?
> 
> Hi,
>
>   Newbie question:
>   Is it possible to generate several artifacts (jars) from 
> the same project ?
>   I have a single project (single POM, with no sub-projects). 
> I'd like to make it so that when I call 'mvn package', it 
> will create 3 different jars  (say, "client.jar", 
> "server.jar", and "util.jar"), and place them all under 'target'.
>
>   I *know* this goes agains the recommendations & phylosophy 
> of Maven2... 
>   But we really must limit ourselves to a single POM, due to 
> limitations of my company's IDE and version control.
>
>   Thanks.
> 
>   
> -
> Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls 
> using Yahoo! Messenger with Voice.
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 1.0.2 Junit problem

2006-05-30 Thread Lukas Theussl
Hmm, sorry, it seems like the class 
org/apache/tools/ant/util/TeeOutputStream is only available in ant 1.6. 
Maven 1.0.2 uses ant 1.5.3 so I guess that won't work for you. Any 
chance you can try a 1.1-beta? [1]


Cheers,
-Lukas

[1] http://people.apache.org/~aheritier/maven/1.X/snapshots/


Matt Campbell wrote:
which version  of ant optional should i be using. The most recent 
version in

ibibio is 1.5

On 5/30/06, Lukas Theussl <[EMAIL PROTECTED]> wrote:



You need to add ant-optional to your dependencies.

HTH,
-Lukas

Matt Campbell wrote:
> When running maven test goal, i receive the following errors.
> Has anyone had this problem or know how to solve this problem.
> The tests work fine when ran from ant 1.6.5.
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Rar Plugin and dependencies - (MVN 2.0.4)

2006-05-30 Thread Roland Asmann
Set the scope to provided ONLY on the rar-projects, NOT on the EAR.



On Tuesday 30 May 2006 18:02, Carsten Karkola wrote:
> If I use "provided" the dependencies will never be included, my problem is
> 1. projects:
>   rar1: dependency to my-jar
>   rar2: dependency to my-jar
>   ejb1: dependency to my-jar
>   ear: dependency to rar1, rar2
> 2. inside the ear:
> ejb1.jar
> rar1.rar
> rar2.rar
> lib/my-jar.jar
> 3. This works fine for packaging=ejb - the my-jar.jar gets copied to the
> lib dir during build of the ear. But the same jar gets also packaged in the
> rar1 and in the rar2 archive. So I have it three times instead only having
> the entries in MANFIFEST.MF/Class-Path and the jar only once in the lib
> subdir.
> The Manifest entries are not the problem, to get the jar not packaged in
> the rars is my problem.
>
> regards, carsten
>
> On 30 May 2006 at 10:24, Wayne Fay wrote:
> > I can't tell if you're running M2 or M1...
> >
> > But in M2, to exclude a dependency from being included in a package,
> > we use the provided tag to override the default
> > "compile" scope. Provided tells the packager that this
> > dependency/artifact/library will be provided by the app server etc,
> > and so it does not need to be included in the archive/package.
> >
> > Wayne
> >
> > On 5/30/06, Carsten Karkola <[EMAIL PROTECTED]> wrote:
> > > Hallo,
> > >
> > > I have some subprojects with rar specified.
> > > There are some dependencies specified, that need to be included in the
> > > ear. I'd like to include these dependencies (like axis) only once in
> > > the ear and not in every rar archive.
> > > This way works fine with ejb archives. But with rar archives I get
> > > these depend jars always included in the rar itself.
> > > false doesn't help.
> > >
> > > regards, carsten
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUG in Europe

2006-05-30 Thread Peter Pilgrim

Jason van Zyl wrote:

Hi,

If anyone belongs to a JUG in Europe I will be in the area from June 
19th to July 14th. So far it looks like there will be presentations in 
London, Dublin, Torino, Oslo and Paris. If you belong to a JUG and would 
like a presentation on Maven I'd be happy to oblige :-) Just contact me 
privately to set something up.





Well that might something useful in the mid Summer, July Xth

Founder of the Java Web User Group [ http://jroller.com/page/javawug ]

--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )
   __ _ _ _
  / //__  // ___// ___/   +  Serverside Java
 / /___/ // /__ / /__ +  Struts
/ // ___// ___// ___/ +  Expresso Committer
 __/ // /__ / /__ / /__   +  Independent Contractor
/___///////   +  Intrinsic Motivation
On Line Resume
   ||
   \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Rar Plugin and dependencies - (MVN 2.0.4)

2006-05-30 Thread Carsten Karkola
If I use "provided" the dependencies will never be included, my problem is
1. projects:
  rar1: dependency to my-jar
  rar2: dependency to my-jar
  ejb1: dependency to my-jar
  ear: dependency to rar1, rar2
2. inside the ear:
ejb1.jar
rar1.rar
rar2.rar
lib/my-jar.jar
3. This works fine for packaging=ejb - the my-jar.jar gets copied to the lib 
dir during build of 
the ear. But the same jar gets also packaged in the rar1 and in the rar2 
archive. So I have it 
three times instead only having the entries in MANFIFEST.MF/Class-Path and the 
jar only 
once in the lib subdir.
The Manifest entries are not the problem, to get the jar not packaged in the 
rars is my 
problem.

regards, carsten

On 30 May 2006 at 10:24, Wayne Fay wrote:

> I can't tell if you're running M2 or M1...
> 
> But in M2, to exclude a dependency from being included in a package,
> we use the provided tag to override the default
> "compile" scope. Provided tells the packager that this
> dependency/artifact/library will be provided by the app server etc,
> and so it does not need to be included in the archive/package.
> 
> Wayne
> 
> On 5/30/06, Carsten Karkola <[EMAIL PROTECTED]> wrote:
> > Hallo,
> >
> > I have some subprojects with rar specified. There
> > are some dependencies specified, that need to be included in the ear. I'd
> > like to include these dependencies (like axis) only once in the ear and not 
> > in
> > every rar archive.
> > This way works fine with ejb archives. But with rar archives I get these
> > depend jars always included in the rar itself. 
> > false
> > doesn't help.
> >
> > regards, carsten
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 1.0.2 Junit problem

2006-05-30 Thread Matt Campbell

which version  of ant optional should i be using. The most recent version in
ibibio is 1.5

On 5/30/06, Lukas Theussl <[EMAIL PROTECTED]> wrote:


You need to add ant-optional to your dependencies.

HTH,
-Lukas

Matt Campbell wrote:
> When running maven test goal, i receive the following errors.
> Has anyone had this problem or know how to solve this problem.
> The tests work fine when ran from ant 1.6.5.
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [M2] questions about migrating to maven

2006-05-30 Thread Craig McDaniel

On 5/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Carlos,

-->  re FILTERING PROPERTIES FILES FOR ENVIRONMENTS
My suggestion is to externalie that configuration options in a way
that your artifact is always the same, and only configuration changes.
You can do reading your config files from the classpath or better
using JNDI.



Sorry to harp on this, but I think I am having trouble thinking beyond
the way I have used ant the past few years.

100% of the differences between the developer workstation,
pre-production and production builds on my various projects are isolated
into properties files.  These are then pulled into Spring as classpath
resources.

If I understand you correctly, you are suggesting that the project
artifacts, wars and jars alike, should not include these properties
files.  These files should either:

- be accessed as classpath resource.  Presumably some other
build/release process would deposit them on the classpath, or they would
be added to the container's classpath at startup.
- accessed via JNDI.  The JNDI entries would either be name/value pairs,
the properties files themselves or a combo.  When the war is deployed,
part of the deployment process would be to configure the JNDI tree.

Is this correct?


You could use the assembly plugin and create different assemblies for
each deployment environment. I'm not sure if there is a way to filter
the properties files during assembly, but if you don't have a lot of
properties and you are not adding properties or changing the names of
properties on a regular basis, then it wouldn't hurt to keep separate
files for assembly.

--
Craig McDaniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [M2] questions about migrating to maven

2006-05-30 Thread Carlos.Fernandez
Carlos,

-->  re FILTERING PROPERTIES FILES FOR ENVIRONMENTS
My suggestion is to externalie that configuration options in a way
that your artifact is always the same, and only configuration changes.
You can do reading your config files from the classpath or better
using JNDI.



Sorry to harp on this, but I think I am having trouble thinking beyond
the way I have used ant the past few years.

100% of the differences between the developer workstation,
pre-production and production builds on my various projects are isolated
into properties files.  These are then pulled into Spring as classpath
resources.

If I understand you correctly, you are suggesting that the project
artifacts, wars and jars alike, should not include these properties
files.  These files should either:

- be accessed as classpath resource.  Presumably some other
build/release process would deposit them on the classpath, or they would
be added to the container's classpath at startup.
- accessed via JNDI.  The JNDI entries would either be name/value pairs,
the properties files themselves or a combo.  When the war is deployed,
part of the deployment process would be to configure the JNDI tree.

Is this correct?

--> re INTER-PROJECT DEPENDENCIES

--> With maven the best way is not to rebuild all your dependencies
every
time, but to depend on the binaries generated by the other projects as
SNAPSHOTs.

If I can get past the environment configuration step - then I suspect
that this would no longer be an issue.  Each artifact would be generic
and just as relevant on a developers workstation as it will be in
production. 

Carlos

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Sunday, May 28, 2006 2:09 PM
To: Maven Users List
Subject: Re: [M2] questions about migrating to maven

Hi Carlos,

re FILTERING PROPERTIES FILES FOR ENVIRONMENTS

I usually don't like this approach for the inconvinients you mention,
you need to rebuild your artifacts for each environments, which is
usually prone to errors, you test x-dev in your machine, and then
build x-prod for production, with no guarantees that it's the same
stuff you tested.

My suggestion is to externalie that configuration options in a way
that your artifact is always the same, and only configuration changes.
You can do reading your config files from the classpath or better
using JNDI. You can also have dev config as default so your developers
don't have to setup anything and you do it only in prod or preprod.


re INTER-PROJECT DEPENDENCIES

With maven the best way is not to rebuild all your dependencies every
time, but to depend on the binaries generated by the other projects as
SNAPSHOTs. You can ensure the repo has the latest snapshot by setting
up continuum to deploy everytime somebody changes the project. That
way developers don't have to go through the extra time consuming
process of building the dependencies.

Regards

Carlos


On 5/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> I am pretty sure that I am over thinking this ;)  However, I am having
> trouble thinking how best to migrate our ant based build process to
> maven.  Principally:
>
> - Filtering properties files for environments, and
> - Inter-project dependencies
>
> FILTERING PROPERTIES FILES FOR ENVIRONMENTS
> As with most projects, our apps use properties files for configuring a
> host of settings.  Many of these (e.g. db settings, log4j settings,
web
> service host:port etc) are environment specific.  Our projects have
> properties files for various target environments, such as production,
> pre-production, cruisecontrol.  Each developer also has a local props
> file that they can tailor for their particular needs (e.g. for
debugging
> you may want to log springframework as DEBUG and suppress all others).
> Ant uses these files to filter the application properties.  The result
> is a build tailored for a particular environment.  Since all
environment
> specific properties, beside the local, are source controlled we have a
> high degree of confidence in consistent and reproducible builds to our
> shared infrastructure.
>
> In maven I have been able to reproduce this behavior with profiles.
> However, I am not sure what to do with the resulting artifacts.  Each
> artifact is "tainted" with environment specific properties.
>
> Should artifacts generated with "local" only be installed in each
> developers local repository?  What about the artifacts for the testing
> and production environments?  Should the internal repository only be
> used to store "production" artifacts?  Should there be multiple shared
> internal repositories, one for production and one for pre-prod?
>
> INTER-PROJECT DEPENDENCIES
> Currently we have a web based application broken out into four
projects:
>
> 1 - user-presentation-layer
> 2 - admin-presentation-layer
> 3 - web-service-layer
> 4 - common-utils
>
> Each project generates a primary artifact, and the web-servic

RE: Multiproject Site

2006-05-30 Thread Pauquette, Bryan
If its not 2.0 > then the command is maven multiproject:site 


-Original Message-
From: Pauquette, Bryan 
Sent: Tuesday, May 30, 2006 11:15 AM
To: Maven Users List
Subject: RE: Multiproject Site

What version of maven are you using?


-Original Message-
From: Aaron Freeman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 30, 2006 10:59 AM
To: Maven
Subject: Multiproject Site

I have a multi-module project that I am trying to deploy the site for.
When I run the site-deploy command it generates all the project sites
and looks like it is copying all the sites out the the web server, but
it actually only copies the parent project site and none of the
sub-project sites. It there some other command I need to run to get it
to do this?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 1.0.2 Junit problem

2006-05-30 Thread Lukas Theussl

You need to add ant-optional to your dependencies.

HTH,
-Lukas

Matt Campbell wrote:

When running maven test goal, i receive the following errors.
Has anyone had this problem or know how to solve this problem.
The tests work fine when ran from ant 1.6.5.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiproject Site

2006-05-30 Thread Aaron Freeman

I'm using Maven 2. I saw that there was a multiproject:site-deploy for
Maven 1, but I didn't see a similar thing for Maven 2.

On 5/30/06, Pauquette, Bryan <[EMAIL PROTECTED]> wrote:

What version of maven are you using?


-Original Message-
From: Aaron Freeman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 30, 2006 10:59 AM
To: Maven
Subject: Multiproject Site

I have a multi-module project that I am trying to deploy the site for.
When I run the site-deploy command it generates all the project sites
and looks like it is copying all the sites out the the web server, but
it actually only copies the parent project site and none of the
sub-project sites. It there some other command I need to run to get it
to do this?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Rar Plugin and dependencies

2006-05-30 Thread Wayne Fay

I can't tell if you're running M2 or M1...

But in M2, to exclude a dependency from being included in a package,
we use the provided tag to override the default
"compile" scope. Provided tells the packager that this
dependency/artifact/library will be provided by the app server etc,
and so it does not need to be included in the archive/package.

Wayne

On 5/30/06, Carsten Karkola <[EMAIL PROTECTED]> wrote:

Hallo,

I have some subprojects with rar specified. There
are some dependencies specified, that need to be included in the ear. I'd
like to include these dependencies (like axis) only once in the ear and not in
every rar archive.
This way works fine with ejb archives. But with rar archives I get these
depend jars always included in the rar itself. false
doesn't help.

regards, carsten


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default goals with maven 2

2006-05-30 Thread Richard Wallace
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Emmanuel Venisse wrote:
> I'm agree with Andreas, but if you want to change it, you'll need to do
> it in each project in project screen.
> 
> Emmanuel
> 
> Andreas Guther a écrit :
>> I am not so sure if having a "clean deploy" in an automated build is a
>> good idea, unless you are planning to deploy snapshots.  If you are
>> updating with each build the version number, it might make sense in some
>> way, but I still think a deployment should be a well thought decision
>> and nothing left to an automated process.
>>

The deployments would only be snapshots.  To me, it doesn't seem that
bad to deploy a new snapshot from your continuous integration system if
all your tests pass.  I guess I just don't see the problem with that.
If your automated tests don't give you enough confidence that your
system is in a working state (at least good enough for deploying a
snapshot), that would indicate to me that you need more tests.

>> I cannot answer your question but I think having "clean install" as
>> default is in my eyes the best decision.
>>

And it's fine as a default, but not being able to change a default is a
problem.

>>
>>
>>
>> -Original Message-
>> From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent:
>> Friday, May 26, 2006 9:15 AM
>> To: continuum-users@maven.apache.org
>> Subject: Default goals with maven 2
>>
> Hello,
> 
> I'm trying to figure out how to change the default goals that continuum
> will use in the build definitions when a maven 2 project is added.
> Right now the default seems to be "clean install" but I'd like "clean
> deploy".  How can I change that?
> 
> Rich
>>
>>
>>

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEfGIe+1f2E3rXfFARArPOAJ9vKEKLQMQXkQ6c+MH8wJv79TX1cwCg119v
ZeeSfwAGxc4QKGKSbx8Gx94=
=qXY3
-END PGP SIGNATURE-


RE: Multiproject Site

2006-05-30 Thread Pauquette, Bryan
What version of maven are you using?


-Original Message-
From: Aaron Freeman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 30, 2006 10:59 AM
To: Maven
Subject: Multiproject Site

I have a multi-module project that I am trying to deploy the site for.
When I run the site-deploy command it generates all the project sites
and looks like it is copying all the sites out the the web server, but
it actually only copies the parent project site and none of the
sub-project sites. It there some other command I need to run to get it
to do this?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

2006-05-30 Thread Wayne Fay

I don't know what app servers you guys are running, but we have
discussed most of them on this list at some point I'm sure, esp JBoss,
Tomcat, etc.

Search the Maven User list archive at Nabble for "deploy " and you're bound to find examples.

Wayne

On 5/30/06, Leo L <[EMAIL PROTECTED]> wrote:

Hi Chandrika and Kennye!

I have the same problem and your conversation helps a lot, but any of you
has a build.xml and a pom.xml configuration to deploy an application

So i can see how to deploy my app..

Regards,
Leo


2006/5/30, Chandrika <[EMAIL PROTECTED]>:
>
>
> Thanks for your reply...
> I m able to invoke ant form maven:)))
> --
> View this message in context:
> 
http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
> Sent from the Maven - Users forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 - Including custom application.xml in EAR file

2006-05-30 Thread Wayne Fay

Hi GB,

Here's how my EAR is configured; the application.xml is properly included.

File located here:
ProjectEAR\src\main\resources\META-INF\application.xml

pom.xml:
 
   org.apache.maven.plugins
   maven-ear-plugin
   
 
   
 true
   
 
   
 

Give that a try.

Wayne

On 5/30/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:

Hi all,

Since Maven 2.0 doesn't support application.xml generation for the J2EE 1.2 
specification (I understand, this is 2006 after all), I'm trying to include a 
custom-built application.xml file in my EAR but with no success.

I'm using a project with multiple modules following a flat directory structure.  The EAR 
module contains both pom.xml file and application.xml (custom-built) files.  Executing 
"mvn package" produces the following error message:

[INFO] Including custom application.xml[application.xml]
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error copying EAR sources

Embedded error: File application.xml does not exist

My pom.xml in the EAR project contains the following configuration:

  

  
org.apache.maven.plugins
maven-ear-plugin

  application.xml

  

  

What am I doing wrong?  Where should I place my application.xml file, and using 
what path should I reference it in the pom.xml?  Is this at all necessary - is 
there support for the 1.2 spec now?

Thanks a bunch,
GB





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Wayne Fay

Search user list for systemPath and you're bound to find numerous
examples of system scoped dependency declarations from pom files.

Wayne

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Which xml tag contains the absolute path i.e. what have i to substitute in

C:\Programme\Saxon\saxon8.jar

for xmltag?

Greetings

Franz

Milos Kleint schrieb:
> 2 option there then:
>
> 1. use the install:install-file goal to upload the file to the local
> repository
> 2. declare the dependency with scope system and put the absolute path
> to the jar there..
>
> both have impact on reproducibility of your build though..
>
> Milos
>
> On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>> Perhaps my question was a bit misleading, what i meant is this:
>> I do not want to disregard the dependencies or the repository, i only
>> want to add some jars not in the repository to my compile classpath.
>>
>> Greetings
>>
>> Franz
>>
>> Milos Kleint schrieb:
>> > "you don't" could be a short answer.
>> >
>> > maven is based round dependencies and repositories, if you don't see a
>> > point in using them, you probably don't want to use maven.
>> >
>> > regards.
>> >
>> > Milos Kleint
>> >
>> > On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>> >> Hello,
>> >>
>> >> How do i set the classpath used during compile without using
>> >> dependencies (which in my understanding involves copying the jars
>> to the
>> >> local repository, writing poms ...)?
>> >> As an example lets say my sources use functionality from
>> >> C:\Programme\Saxon\saxon8.jar.
>> >>
>> >> Thanks for help
>> >>
>> >> Franz
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiproject Site

2006-05-30 Thread Aaron Freeman

I have a multi-module project that I am trying to deploy the site for.
When I run the site-deploy command it generates all the project sites
and looks like it is copying all the sites out the the web server, but
it actually only copies the parent project site and none of the
sub-project sites. It there some other command I need to run to get it
to do this?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven Website - I'm struggling getting the information I seek

2006-05-30 Thread Marc Weber
Hello I'm using mvn for 2 month now and I'm till struggling finding the
finding the documentation on the maven.apache.org website. An example:

I was looking for the filename of the user profile setting file
(settings.xml) ..  I got this two pages using google and menu:

http://maven.apache.org/maven-settings/settings.html#class_settings
http://maven.apache.org/ref/current/maven-settings/settings.html

Both look very similar except that the one contains the settings.xml
filename but the other does't.. At the first glance I didn't realize
this..

On the main download page there is no hint where to get the source..
You have to go to the FAQ or to "How to help".. I would never have
looked here an first place..

On the left there is a BIG header "Project Documentation"...
but no link to click on the next link shows information about
mailinglists... You can find it under "Quick Links"

When trying to find a the meaning of a tag? Where to go?
Quick Links -> Documentation -> Scroll to the bottom to find *reference* 
Here it needs some endurance to ignore the guides and introdictions..

At the beginning I was confused wether I was at maven 1 or 2 docs..
It took me some time to finde the maven 1x and 2x links on top..

But perhaps I'm just not used to this site..

Greetings
Marc Weber

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven2, AspectJ and Clover

2006-05-30 Thread Roland Asmann
Hi Vincent,

Indeed running AspectJ AFTER Clover works. I'm using that for now, so that I at 
least have SOME Clover data.
The thing I would like though, is to run AspectJ BEFORE Clover runs, so I also 
have Clover data on the AspectJ-sources!
As I see it, there are 2 ways to do this:

1) AspectJ weaves his new files and writes them out as sources so Clover can 
work on them. The problem here will be that
Clover can't show the reports on AspectJ-files, but rather on the weaved files. 
It's a solution, but what would be really great
is:
2) Clover examines the AspectJ sources and adds his statements to those files. 
Then AspectJ can do his normal thing and
Clover's reports should show the coverage in the correct files and calculate 
the EXACT amount of times the statements have
been called.

Unfortunately I already heard from Cenqua that atm Clover doesn't know how to 
handle AspectJ sources... So I think that the
plugin will have the same problems...

Thanks anyway,

Roland



On Tuesday 30 May 2006 16:19, you wrote:
> Hi Roland,
>
> I don't see a problem unless you're using aspectj on bytecode and you wish
> to have the aspectified code to be under Clover. This won't be possible as
> Clover works on source code.
>
> The Clover plugin will automatically generate a parallel build tree and
> modify the maven source path so that it points to the clovered sources.
> Thus applying AspectJ after the Clover plugin should work.
>
> For the other way around, I can't tell as I haven't checked how the AspectJ
> plugin for m2 works.
>
> Thanks
> -Vincent
>
> > -Original Message-
> > From: Roland Asmann [mailto:[EMAIL PROTECTED]
> > Sent: lundi 22 mai 2006 17:46
> > To: Maven Users List
> > Subject: Maven2, AspectJ and Clover
> >
> > Hi,
> >
> > Could anybody tell if it is possible (and how) to have maven clover the
> > aspects that
> > aspectj will use to make closures?
> > I am working on an application that builds on aspectj in some of the key-
> > moments
> > and I would like to know the code coverage on those places.
> >
> > Thanks,
> >
> > Roladn
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ___
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
> interface révolutionnaire. http://fr.mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Franz Fehringer




Thanks

Franz

Roland Asmann schrieb:

  Is it a .jar-file? Then make it 'jar'! :-)



On Tuesday 30 May 2006 16:23, Franz Fehringer wrote:
  
  
Thanks for advice.
What is meant by packaging i.e. what would be a sensible setting in
-Dpackaging= ?

Greetings

Franz

ben short schrieb:


  You should add the jars to your local repos.

http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
  
  
Perhaps my question was a bit misleading, what i meant is this:
I do not want to disregard the dependencies or the repository, i only
want to add some jars not in the repository to my compile classpath.

Greetings

Franz

Milos Kleint schrieb:


  "you don't" could be a short answer.

maven is based round dependencies and repositories, if you don't see a
point in using them, you probably don't want to use maven.

regards.

Milos Kleint

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
  
  
Hello,

How do i set the classpath used during compile without using
dependencies (which in my understanding involves copying the jars

  

to the



  
local repository, writing poms ...)?
As an example lets say my sources use functionality from
C:\Programme\Saxon\saxon8.jar.

Thanks for help

Franz






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  

  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Roland Asmann
Is it a .jar-file? Then make it 'jar'! :-)



On Tuesday 30 May 2006 16:23, Franz Fehringer wrote:
> Thanks for advice.
> What is meant by packaging i.e. what would be a sensible setting in
> -Dpackaging= ?
>
> Greetings
>
> Franz
>
> ben short schrieb:
> > You should add the jars to your local repos.
> >
> > http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
> >
> > On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
> >> Perhaps my question was a bit misleading, what i meant is this:
> >> I do not want to disregard the dependencies or the repository, i only
> >> want to add some jars not in the repository to my compile classpath.
> >>
> >> Greetings
> >>
> >> Franz
> >>
> >> Milos Kleint schrieb:
> >> > "you don't" could be a short answer.
> >> >
> >> > maven is based round dependencies and repositories, if you don't see a
> >> > point in using them, you probably don't want to use maven.
> >> >
> >> > regards.
> >> >
> >> > Milos Kleint
> >> >
> >> > On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
> >> >> Hello,
> >> >>
> >> >> How do i set the classpath used during compile without using
> >> >> dependencies (which in my understanding involves copying the jars
> >>
> >> to the
> >>
> >> >> local repository, writing poms ...)?
> >> >> As an example lets say my sources use functionality from
> >> >> C:\Programme\Saxon\saxon8.jar.
> >> >>
> >> >> Thanks for help
> >> >>
> >> >> Franz
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting Started / Problem with plugin

2006-05-30 Thread ben short

François,

Take a look at you settings.xml, there should be a bit in there that
you need to uncomment and configure to make maven use a proxy.


 optional
 true
 http
 proxyuser
 proxypass
 proxy.host.net
 80
 local.net,some.host.com
   

Ben

On 5/30/06, Francois Vandewalle <[EMAIL PROTECTED]> wrote:


Hello Ben,

first of all, thank you for helping me!

I am behind a proxy and I am not able to open the link in my browser.

When I try the line you suggest, I get the following:
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exi
st or no valid version could be found
[INFO]

[INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The
plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or
no valid version could be found at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1517) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:381) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:135)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
val
id version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:158)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1252)
... 14 more
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Tue May 30 16:05:03 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO]


I am completly new to maven, so I have only and stricly done what is in the
Tutorial.

Regards,

François
--
View this message in context: 
http://www.nabble.com/Getting+Started+-+Problem+with+plugin-t1704376.html#a4627611
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Franz Fehringer

Thanks for advice.
What is meant by packaging i.e. what would be a sensible setting in
-Dpackaging= ?

Greetings

Franz

ben short schrieb:

You should add the jars to your local repos.

http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Perhaps my question was a bit misleading, what i meant is this:
I do not want to disregard the dependencies or the repository, i only
want to add some jars not in the repository to my compile classpath.

Greetings

Franz

Milos Kleint schrieb:
> "you don't" could be a short answer.
>
> maven is based round dependencies and repositories, if you don't see a
> point in using them, you probably don't want to use maven.
>
> regards.
>
> Milos Kleint
>
> On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> How do i set the classpath used during compile without using
>> dependencies (which in my understanding involves copying the jars 
to the

>> local repository, writing poms ...)?
>> As an example lets say my sources use functionality from
>> C:\Programme\Saxon\saxon8.jar.
>>
>> Thanks for help
>>
>> Franz
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: attach mojo plugin to the build lifecycle

2006-05-30 Thread cristal

Very nice, Edwin.

It works in the way I wanted. This is the answer I've been looking for.

Thanks very much.

--
View this message in context: 
http://www.nabble.com/attach+mojo+plugin+to+the+build+lifecycle-t1682566.html#a4627843
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Franz Fehringer

Which xml tag contains the absolute path i.e. what have i to substitute in

C:\Programme\Saxon\saxon8.jar

for xmltag?

Greetings

Franz

Milos Kleint schrieb:

2 option there then:

1. use the install:install-file goal to upload the file to the local 
repository

2. declare the dependency with scope system and put the absolute path
to the jar there..

both have impact on reproducibility of your build though..

Milos

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Perhaps my question was a bit misleading, what i meant is this:
I do not want to disregard the dependencies or the repository, i only
want to add some jars not in the repository to my compile classpath.

Greetings

Franz

Milos Kleint schrieb:
> "you don't" could be a short answer.
>
> maven is based round dependencies and repositories, if you don't see a
> point in using them, you probably don't want to use maven.
>
> regards.
>
> Milos Kleint
>
> On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> How do i set the classpath used during compile without using
>> dependencies (which in my understanding involves copying the jars 
to the

>> local repository, writing poms ...)?
>> As an example lets say my sources use functionality from
>> C:\Programme\Saxon\saxon8.jar.
>>
>> Thanks for help
>>
>> Franz
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Maven2, AspectJ and Clover

2006-05-30 Thread Vincent Massol
Hi Roland,

I don't see a problem unless you're using aspectj on bytecode and you wish
to have the aspectified code to be under Clover. This won't be possible as
Clover works on source code.

The Clover plugin will automatically generate a parallel build tree and
modify the maven source path so that it points to the clovered sources. Thus
applying AspectJ after the Clover plugin should work.

For the other way around, I can't tell as I haven't checked how the AspectJ
plugin for m2 works.

Thanks
-Vincent

> -Original Message-
> From: Roland Asmann [mailto:[EMAIL PROTECTED]
> Sent: lundi 22 mai 2006 17:46
> To: Maven Users List
> Subject: Maven2, AspectJ and Clover
> 
> Hi,
> 
> Could anybody tell if it is possible (and how) to have maven clover the
> aspects that
> aspectj will use to make closures?
> I am working on an application that builds on aspectj in some of the key-
> moments
> and I would like to know the code coverage on those places.
> 
> Thanks,
> 
> Roladn
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Piéroni Raphaël

The option 1 is the better as you can also use deploy:deploy-file (or
similar) on your internal (enterprise) repository

Raphaël

2006/5/30, Milos Kleint <[EMAIL PROTECTED]>:


2 option there then:

1. use the install:install-file goal to upload the file to the local
repository
2. declare the dependency with scope system and put the absolute path
to the jar there..

both have impact on reproducibility of your build though..

Milos

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
> Perhaps my question was a bit misleading, what i meant is this:
> I do not want to disregard the dependencies or the repository, i only
> want to add some jars not in the repository to my compile classpath.
>
> Greetings
>
> Franz
>
> Milos Kleint schrieb:
> > "you don't" could be a short answer.
> >
> > maven is based round dependencies and repositories, if you don't see a
> > point in using them, you probably don't want to use maven.
> >
> > regards.
> >
> > Milos Kleint
> >
> > On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
> >> Hello,
> >>
> >> How do i set the classpath used during compile without using
> >> dependencies (which in my understanding involves copying the jars to
the
> >> local repository, writing poms ...)?
> >> As an example lets say my sources use functionality from
> >> C:\Programme\Saxon\saxon8.jar.
> >>
> >> Thanks for help
> >>
> >> Franz
> >>
> >>
> >>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Getting Started / Problem with plugin

2006-05-30 Thread ben short

I should of mentioned that the -e will print stack traces. this might
help you diagnose the problem.

Ben

On 5/30/06, ben short <[EMAIL PROTECTED]> wrote:

Hi,

I just tried it and to works ok for me.

Try mvn -e archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

Also, are you behind a proxy?

Can you see http://repo.mergere.com/maven2/ in your browser?

Ben

On 5/30/06, Francois Vandewalle <[EMAIL PROTECTED]> wrote:
>
> I am using the "Getting Started" tutorial and have a problem when I type the
> following:
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
> Can somebody help me?
> I get the following:
>
> [INFO] Scanning for projects...
> [INFO]
> -
> ---
> [INFO] Building Maven Default Project
> [INFO]task-segment: [install]
> [INFO]
> -
> ---
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from central
> [WARNING] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from
> repository: central due to an error: Error transferring file
> [INFO] Repository 'central' will be blacklisted
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
> exist or no valid version could be found
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 21 seconds
> [INFO] Finished at: Tue May 30 14:42:59 CEST 2006
> [INFO] Final Memory: 1M/2M
> [INFO]
> 
>
> --
> View this message in context: 
http://www.nabble.com/Getting+Started+-+Problem+with+plugin-t1704376.html#a4626293
> Sent from the Maven - Users forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting Started / Problem with plugin

2006-05-30 Thread Francois Vandewalle

Hello Ben,

first of all, thank you for helping me!

I am behind a proxy and I am not able to open the link in my browser.

When I try the line you suggest, I get the following:
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exi
st or no valid version could be found
[INFO]

[INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The
plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or
no valid version could be found at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1517) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:381) at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:135)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
val
id version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:158)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1252)
... 14 more
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Tue May 30 16:05:03 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO]


I am completly new to maven, so I have only and stricly done what is in the
Tutorial.

Regards,

François
--
View this message in context: 
http://www.nabble.com/Getting+Started+-+Problem+with+plugin-t1704376.html#a4627611
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Franz Fehringer

Thanks

Franz

Milos Kleint schrieb:

2 option there then:

1. use the install:install-file goal to upload the file to the local 
repository

2. declare the dependency with scope system and put the absolute path
to the jar there..

both have impact on reproducibility of your build though..

Milos

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Perhaps my question was a bit misleading, what i meant is this:
I do not want to disregard the dependencies or the repository, i only
want to add some jars not in the repository to my compile classpath.

Greetings

Franz

Milos Kleint schrieb:
> "you don't" could be a short answer.
>
> maven is based round dependencies and repositories, if you don't see a
> point in using them, you probably don't want to use maven.
>
> regards.
>
> Milos Kleint
>
> On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> How do i set the classpath used during compile without using
>> dependencies (which in my understanding involves copying the jars 
to the

>> local repository, writing poms ...)?
>> As an example lets say my sources use functionality from
>> C:\Programme\Saxon\saxon8.jar.
>>
>> Thanks for help
>>
>> Franz
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Rar Plugin and dependencies

2006-05-30 Thread Carsten Karkola
Hallo,

I have some subprojects with rar specified. There 
are some dependencies specified, that need to be included in the ear. I'd 
like to include these dependencies (like axis) only once in the ear and not in 
every rar archive.
This way works fine with ejb archives. But with rar archives I get these 
depend jars always included in the rar itself. false 
doesn't help.

regards, carsten


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread ben short

You should add the jars to your local repos.

http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Perhaps my question was a bit misleading, what i meant is this:
I do not want to disregard the dependencies or the repository, i only
want to add some jars not in the repository to my compile classpath.

Greetings

Franz

Milos Kleint schrieb:
> "you don't" could be a short answer.
>
> maven is based round dependencies and repositories, if you don't see a
> point in using them, you probably don't want to use maven.
>
> regards.
>
> Milos Kleint
>
> On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> How do i set the classpath used during compile without using
>> dependencies (which in my understanding involves copying the jars to the
>> local repository, writing poms ...)?
>> As an example lets say my sources use functionality from
>> C:\Programme\Saxon\saxon8.jar.
>>
>> Thanks for help
>>
>> Franz
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven 1.0.2 Junit problem

2006-05-30 Thread Matt Campbell

When running maven test goal, i receive the following errors.
Has anyone had this problem or know how to solve this problem.
The tests work fine when ran from ant 1.6.5.



 build:start:
console:
console:help:
java:prepare-filesystem:
java:compile:
[echo] Compiling to build/classes
java:jar-resources:
test:prepare-filesystem:
test:test-resources:
test:compile:
[javac] Compiling 3 source files to
C:\source\workspace\Infrastructure\build\test-classes
test:test:
[junit] Running AllTest
[junit] java.lang.NoClassDefFoundError:
org/apache/tools/ant/util/TeeOutputStream
[junit] Exception in thread "main"
[junit] [ERROR] TEST AllTest FAILED
[junit] Running ApplicationLevelDelegateTest
[junit] java.lang.NoClassDefFoundError:
org/apache/tools/ant/util/TeeOutputStream
[junit] Exception in thread "main"
[junit] [ERROR] TEST ApplicationLevelDelegateTest FAILED
[junit] Running ApplicationUserInfoDelegateTest
[junit] java.lang.NoClassDefFoundError:
org/apache/tools/ant/util/TeeOutputStream
[junit] Exception in thread "main"
[junit] [ERROR] TEST ApplicationUserInfoDelegateTest FAILED
*org.apache.commons.jelly.JellyTagException*: C:\data\dev\java\api\*maven*
-1.0.2\cache\maven-test-plugin-1.6.2\plugin.jelly:181:54:  There
were test failures.




the test-reports .txt output says


Testsuite: ApplicationLevelDelegateTest

Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

Null Test: Caused an ERROR

ApplicationLevelDelegateTest

java.lang.ClassNotFoundException: ApplicationLevelDelegateTest

at java.net.URLClassLoader$1.run(URLClassLoader.java:199)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)

at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:79)

at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:110)

at com.werken.werkz.Goal.fire(Goal.java:639)

at com.werken.werkz.Goal.attain(Goal.java:575)

at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)

at com.werken.werkz.Goal.attain(Goal.java:573)

at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)

at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(
MavenAttainGoalTag.java:127)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)

at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java
:145)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)

at org.apache.commons.jelly.tags.core.CatchTag.doTag(CatchTag.java:90)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)

at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java
:87)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)

at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)

at org.apache.commons.jelly.tags.core.WhileTag.doTag(WhileTag.java:108)

at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)

at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)

at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:79)

at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:110)

at com.werken.werkz.Goal.fire(Goal.java:639)

at com.werken.werkz.Goal.attain(Goal.java:575)

at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java
:671)

at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)

at org.apache.maven.cli.App.doMain(App.java:488)

at org.apache.maven.cli.App.main(Ap

Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Milos Kleint

2 option there then:

1. use the install:install-file goal to upload the file to the local repository
2. declare the dependency with scope system and put the absolute path
to the jar there..

both have impact on reproducibility of your build though..

Milos

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Perhaps my question was a bit misleading, what i meant is this:
I do not want to disregard the dependencies or the repository, i only
want to add some jars not in the repository to my compile classpath.

Greetings

Franz

Milos Kleint schrieb:
> "you don't" could be a short answer.
>
> maven is based round dependencies and repositories, if you don't see a
> point in using them, you probably don't want to use maven.
>
> regards.
>
> Milos Kleint
>
> On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> How do i set the classpath used during compile without using
>> dependencies (which in my understanding involves copying the jars to the
>> local repository, writing poms ...)?
>> As an example lets say my sources use functionality from
>> C:\Programme\Saxon\saxon8.jar.
>>
>> Thanks for help
>>
>> Franz
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Franz Fehringer

Perhaps my question was a bit misleading, what i meant is this:
I do not want to disregard the dependencies or the repository, i only 
want to add some jars not in the repository to my compile classpath.


Greetings

Franz

Milos Kleint schrieb:

"you don't" could be a short answer.

maven is based round dependencies and repositories, if you don't see a
point in using them, you probably don't want to use maven.

regards.

Milos Kleint

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Hello,

How do i set the classpath used during compile without using
dependencies (which in my understanding involves copying the jars to the
local repository, writing poms ...)?
As an example lets say my sources use functionality from
C:\Programme\Saxon\saxon8.jar.

Thanks for help

Franz






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

M2 - Including custom application.xml in EAR file

2006-05-30 Thread Guillaume Bilodeau
Hi all,

Since Maven 2.0 doesn't support application.xml generation for the J2EE 1.2 
specification (I understand, this is 2006 after all), I'm trying to include a 
custom-built application.xml file in my EAR but with no success.

I'm using a project with multiple modules following a flat directory structure. 
 The EAR module contains both pom.xml file and application.xml (custom-built) 
files.  Executing "mvn package" produces the following error message:

[INFO] Including custom application.xml[application.xml]
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error copying EAR sources

Embedded error: File application.xml does not exist

My pom.xml in the EAR project contains the following configuration:

  

  
org.apache.maven.plugins
maven-ear-plugin

  application.xml

  

  

What am I doing wrong?  Where should I place my application.xml file, and using 
what path should I reference it in the pom.xml?  Is this at all necessary - is 
there support for the 1.2 spec now?

Thanks a bunch,
GB



Re: M2 compile classpath (FAQ?)

2006-05-30 Thread Milos Kleint

"you don't" could be a short answer.

maven is based round dependencies and repositories, if you don't see a
point in using them, you probably don't want to use maven.

regards.

Milos Kleint

On 5/30/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:

Hello,

How do i set the classpath used during compile without using
dependencies (which in my understanding involves copying the jars to the
local repository, writing poms ...)?
As an example lets say my sources use functionality from
C:\Programme\Saxon\saxon8.jar.

Thanks for help

Franz






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Source/Javadoc Artifact?

2006-05-30 Thread Jamie Bisotti

On 5/30/06, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:


Jorg Heymans wrote:
> This works out of the box for the eclipse plugin, you just do
> mvn eclipse:eclipse -DdownloadSources=true , perhaps the idea plugin has
a
> similar switch ?

This should work for the latest IDEA plugin sources too, but I don't
remember right now it has been released.

--
Trygve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I don't have the link in front of me at the moment, but a JIRA issue was
filed a while back asking to have this functionality be made more generic;
not tied to any IDE.

--
Jamie Bisotti


M2 compile classpath (FAQ?)

2006-05-30 Thread Franz Fehringer

Hello,

How do i set the classpath used during compile without using 
dependencies (which in my understanding involves copying the jars to the 
local repository, writing poms ...)?
As an example lets say my sources use functionality from 
C:\Programme\Saxon\saxon8.jar.


Thanks for help

Franz




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

javadoc 2.0 plugin: doc-files/* not being copied!

2006-05-30 Thread Rob Dickens

Dear Maven Users,

I'm finding that they only get copied if the project involves  
modules, and aggregate is set to true.


Has anyone got this to work in a project which doesn't involve modules?

Thanks,

Rob

ps Have checked http://jira.codehaus.org/browse/MJAVADOC but no such  
issue has been reported.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting Started / Problem with plugin

2006-05-30 Thread ben short

Hi,

I just tried it and to works ok for me.

Try mvn -e archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

Also, are you behind a proxy?

Can you see http://repo.mergere.com/maven2/ in your browser?

Ben

On 5/30/06, Francois Vandewalle <[EMAIL PROTECTED]> wrote:


I am using the "Getting Started" tutorial and have a problem when I type the
following:

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

Can somebody help me?
I get the following:

[INFO] Scanning for projects...
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [install]
[INFO]
-
---
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
for updates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from
repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 21 seconds
[INFO] Finished at: Tue May 30 14:42:59 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO]


--
View this message in context: 
http://www.nabble.com/Getting+Started+-+Problem+with+plugin-t1704376.html#a4626293
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting Started / Problem with plugin

2006-05-30 Thread Francois Vandewalle

I am using the "Getting Started" tutorial and have a problem when I type the
following:

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

Can somebody help me?
I get the following:

[INFO] Scanning for projects...
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [install]
[INFO]
-
---
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
for updates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from
repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 21 seconds
[INFO] Finished at: Tue May 30 14:42:59 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO]


--
View this message in context: 
http://www.nabble.com/Getting+Started+-+Problem+with+plugin-t1704376.html#a4626293
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [M2] Dashboard functionality

2006-05-30 Thread Vincent Massol
Hi Rik,

We implemented this in the dashboard for maven1. However this does not exist
for m2 yet. There are some thought on this on
http://docs.codehaus.org/display/MAVEN/Maven+Dashboard (I've put a diagram
of how I would view an architecture for this). 

I don't think much work has been done on this and most of the m2 dev team
has focused on stabilizing/firming up the m2 core and core plugins.

-Vincent

> -Original Message-
> From: Rik Bosman [mailto:[EMAIL PROTECTED]
> Sent: mardi 30 mai 2006 11:08
> To: Maven Users List
> Subject: [M2] Dashboard functionality
> 
> To All,
> 
> My company is currently selecting a tool for comparing the various
> deliverables of the codebase for some projects delivered from India.
> Currently I run reports on the codebase of these projects using Maven,
> (pmd,
> simian, checkstyle, etc. ).
> 
> Might be very handy to compare the results using a dashboard tool.
> 
> Is such functionality planned for M2? When?
> 
> Kind regards,
> 
> Rik






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: confirm unsubscribe from users@maven.apache.org

2006-05-30 Thread viking
> Hi! This is the ezmlm program. I'm managing the
> users@maven.apache.org mailing list.
>
> I'm working for my owner, who can be reached
> at [EMAIL PROTECTED]
>
> To confirm that you would like
>
>[EMAIL PROTECTED]
>
> removed from the users mailing list, please send an empty reply
> to this address:
>
>[EMAIL PROTECTED]
>
> Usually, this happens when you just hit the "reply" button.
> If this does not work, simply copy the address and paste it into
> the "To:" field of a new message.
>
> or click here:
>   mailto:[EMAIL PROTECTED]
>
> I haven't checked whether your address is currently on the mailing list.
> To see what address you used to subscribe, look at the messages you are
> receiving from the mailing list. Each message has your address hidden
> inside its return path; for example, [EMAIL PROTECTED] receives messages
> with return path: [EMAIL PROTECTED]
>
> Some mail programs are broken and cannot handle long addresses. If you
> cannot reply to this request, instead send a message to
> <[EMAIL PROTECTED]> and put the entire address listed above
> into the "Subject:" line.
>
>
> --- Administrative commands for the users list ---
>
> I can handle administrative requests automatically. Please
> do not send them to the list address! Instead, send
> your message to the correct command address:
>
> To subscribe to the list, send a message to:
><[EMAIL PROTECTED]>
>
> To remove your address from the list, send a message to:
><[EMAIL PROTECTED]>
>
> Send mail to the following for info and FAQ for this list:
><[EMAIL PROTECTED]>
><[EMAIL PROTECTED]>
>
> Similar addresses exist for the digest list:
><[EMAIL PROTECTED]>
><[EMAIL PROTECTED]>
>
> To get messages 123 through 145 (a maximum of 100 per request), mail:
><[EMAIL PROTECTED]>
>
> To get an index with subject and author for messages 123-456 , mail:
><[EMAIL PROTECTED]>
>
> They are always returned as sets of 100, max 2000 per request,
> so you'll actually get 100-499.
>
> To receive all messages with the same subject as message 12345,
> send an empty message to:
><[EMAIL PROTECTED]>
>
> The messages do not really need to be empty, but I will ignore
> their content. Only the ADDRESS you send to is important.
>
> You can start a subscription for an alternate address,
> for example "[EMAIL PROTECTED]", just add a hyphen and your
> address (with '=' instead of '@') after the command word:
> <[EMAIL PROTECTED]>
>
> To stop subscription for this address, mail:
> <[EMAIL PROTECTED]>
>
> In both cases, I'll send a confirmation message to that address. When
> you receive it, simply reply to it to complete your subscription.
>
> If despite following these instructions, you do not get the
> desired results, please contact my owner at
> [EMAIL PROTECTED] Please be patient, my owner is a
> lot slower than I am ;-)
>
> --- Enclosed is a copy of the request I received.
>
> Return-Path: <[EMAIL PROTECTED]>
> Received: (qmail 81287 invoked by uid 99); 30 May 2006 12:21:28 -
> Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 05:21:28
> -0700
> X-ASF-Spam-Status: No, hits=3.4 required=10.0
>   tests=EMPTY_MESSAGE,MISSING_SUBJECT,NO_REAL_NAME
> X-Spam-Check-By: apache.org
> Received-SPF: neutral (asf.osuosl.org: local policy)
> Received: from [64.111.100.15] (HELO webmail3.sd.dreamhost.com)
> (64.111.100.15)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 05:21:26
> -0700
> Received: from email.bpfurtado.net (localhost [127.0.0.1])
>   by webmail3.sd.dreamhost.com (Postfix) with ESMTP id 0C98514168
>   for <[EMAIL PROTECTED]>; Tue, 30 May 2006 05:21:05 -0700
> (PDT)
> Received: from 200.183.0.130
> (SquirrelMail authenticated user [EMAIL PROTECTED])
> by email.bpfurtado.net with HTTP;
> Tue, 30 May 2006 05:21:05 -0700 (PDT)
> Message-ID: <[EMAIL PROTECTED]>
> Date: Tue, 30 May 2006 05:21:05 -0700 (PDT)
> Subject:
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> User-Agent: SquirrelMail/1.4.6
> MIME-Version: 1.0
> Content-Type: text/plain;charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
> X-Virus-Checked: Checked by ClamAV on apache.org
>
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

2006-05-30 Thread Leo L

Hi Chandrika and Kennye!

I have the same problem and your conversation helps a lot, but any of you
has a build.xml and a pom.xml configuration to deploy an application

So i can see how to deploy my app..

Regards,
Leo


2006/5/30, Chandrika <[EMAIL PROTECTED]>:



Thanks for your reply...
I m able to invoke ant form maven:)))
--
View this message in context:
http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: m2: renaming file before including in jar

2006-05-30 Thread Jacob Hoeflaken

Thanx all. I think I can get this working now.
--
View this message in context: 
http://www.nabble.com/m2%3A+renaming+file+before+including+in+jar-t1699650.html#a4625234
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

2006-05-30 Thread Chandrika

Thanks for your reply...
I m able to invoke ant form maven:)))
--
View this message in context: 
http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mail notification

2006-05-30 Thread Emmanuel Venisse
It isn't possible actually and I'm not sure it's a good idea to send a notification to latest 
committers because an error can be the result of a change in a dependency and not an error in the 
commit.


Emmanuel

-- jarl a écrit :

Did I miss out something, or isnt it possible to configure Maven/Continuum to
send notifications only to developers that have checked in something since
last successful build?


-jarl

--
View this message in context: 
http://www.nabble.com/Mail+notification-t1703634.html#a4624072
Sent from the Continuum - Users forum at Nabble.com.








Re: Source/Javadoc Artifact?

2006-05-30 Thread Trygve Laugstøl

Jorg Heymans wrote:

This works out of the box for the eclipse plugin, you just do
mvn eclipse:eclipse -DdownloadSources=true , perhaps the idea plugin has a
similar switch ?


This should work for the latest IDEA plugin sources too, but I don't 
remember right now it has been released.


--
Trygve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mail notification

2006-05-30 Thread -- jarl

Did I miss out something, or isnt it possible to configure Maven/Continuum to
send notifications only to developers that have checked in something since
last successful build?


-jarl

--
View this message in context: 
http://www.nabble.com/Mail+notification-t1703634.html#a4624072
Sent from the Continuum - Users forum at Nabble.com.



Re: Source/Javadoc Artifact?

2006-05-30 Thread Jorg Heymans

This works out of the box for the eclipse plugin, you just do
mvn eclipse:eclipse -DdownloadSources=true , perhaps the idea plugin has a
similar switch ?



On 5/30/06, Stefan Arentz <[EMAIL PROTECTED]> wrote:


Is there a standard for a source code or javadoc artifact?

The reason I'm asking is that I use the idea plugin to generate an
IDEA project. That works great, it nicely adds all the dependencies to
the IDEA project so you are ready to go without having to do any extra
configuration.

One thing that annoys me though; I always have to manually add source
and documentation locations to the IDEA project. And that also means I
have to keep local copies of the dependencies in sync on my
development machines.

It would be nice if there was some kind of standard for packaging and
publishing source and documentation artifacts so that the idea plugin
can also automatically configure that in the IDEA project.

S.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  1   2   >