Re: Rant (very long)

2006-05-26 Thread Wojciech Gdela
Hello,

Your first two points proves that Chas is right. Maven 2 is not stable
(and lacks documentation), I agree with this. But it is still a great
tool and I hope it will be improved in the near future.

> Chas, i feel your pains, so here a list of my own recommendations:
> 
>  1.  Get a maven-proxy in place, so when a central repo is down, you can
> switch to
>   a another mirror without user notice.  Set up maven-proxy is not that
> hard ;-)
>   check out archive list for all maven-proxy discussion.  Feel free to
> ping us for help
> 
>  2.  Dont use snapshot,  cut a release yourself.  I fetch the source and
> post fix the version
>   with svn revision number.  For example, if I need a feature/bug fix
> in maven-assembly-plugin
>   version 2.2-snapshot,  then I build 2.2-${svn.revision} and deploy to
> your
>   internal repository that can serve by maven-proxy.
> 
>  3.  Use pluginManagement to specify all plugins that used by your
> project'poms.
>   This get your team's build much faster since it does not have to go
> to maven-proxy to look
>   for daily update.
> 
> This settup will prevent most of maven's uncertainties that others and I
> have gone thru

-- 
Best regards,
Wojciech Gdela.


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



Re: [M2] - mavenide - Maven 2 compatibility ?

2006-05-12 Thread Wojciech Gdela
Hello,

> Is any one aware of Eclipse 3.1 IDE support by mavenide (Maven 2 -- eclipse
> IDE support plugin)  ?

http://maven.apache.org/eclipse-plugin.html

-- 
Best Regards,
Wojciech Gdela.


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



Re: [m2] mvn site without the reports

2006-05-12 Thread Wojciech Gdela
Hello,

> How do I generate the sites without the reports?
> That way I can quickly check if my APT/FML files render properly.
> 
> The m2 book doesn't mention this in 3.12 btw.

In the snapshot version of site plugin there is a site:run goal. This
starts web server, which renders your file when you request it in
browser typing i.e. http://localhost:8080/index.html. It's very usefull.

-- 
Best Regards,
Wojciech Gdela.



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



Workaround for files encoding problems

2006-05-10 Thread Wojciech Gdela

Hello,

Is there any workaround for problems with utf-8 file encoding in maven
(http://jira.codehaus.org/browse/MSITE-19)? Specificaly when I have
national characters in xdoc files the html oupput is corrupted. Can I
fix that?

--
Best regards,
Wojciech Gdela.


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



Problems when trying to use newest snapshot version of plugin

2006-05-10 Thread Wojciech Gdela

Hello,

I'm trying to use newest snapshot version of site plugin. So I set 
plugin configuration to use version 2.0-SNAPSHOT:


  
[...]

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

  UTF-8

  

[...]
  

And I set plugin snapshots repository:

  
[...]

  Maven Snapshots
  http://cvs.apache.org/maven-snapshot-repository
  
true
  
  
false
  

[...]
  

But after invoking mvn site I get this warning:

Downloading: 
http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-site-plugin/2.0-SNAPSHOT/maven-site-plugin-2.0-SNAPSHOT.jar
[WARNING] Unable to get resource from repository Maven Snapshots 
(http://cvs.apache.org/maven-snapshot-repository)


And It's correct - there is no maven-site-plugin-2.0-SNAPSHOT.jar, but 
shouldn't maven expand the SNAPSHOT suffix and try to download 
maven-site-plugin-2.0-20060418.011103-8.jar instead?


--
Best regards,
Wojciech Gdela.


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



Re: AW: Re: AW: AW: M2: Assembling modules in an ear

2006-04-21 Thread Wojciech Gdela

Hello,


But commons-lang is not a java client module in the j2ee sense, since it

> does not have a main classe to be executed as j2ee client. So it does not
> have to be listed in the application.xml (but just included in the ear
> - and this is what happens).

You are right, I should read j2ee tutorial more carefully. I've removed 
all javaModule entries from ear's pom.xml, and configured ejb's pom.xml 
as below. Now everything works fine. Thanks.


  
org.apache.maven.plugins
maven-ejb-plugin

  

  true

  

  

PS. I think that this should be default configuration of ejb plugin.

--
Best regards,
Wojciech Gdela.


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



Re: AW: AW: M2: Assembling modules in an ear

2006-04-20 Thread Wojciech Gdela

Hello,


2) jar in the dependency and
   

   winterthur.jackpot.sample
   sample-ejb-client


Add

  true



   
  where the java client module is not added to the generated application.xml


You see, this is false by default, another indication that this is not
the normal way to do things.. ;)


What if we will talk about a normal jar (not ejb-client), for example 
commons-lang. When I add commons-lang dependency to my ejb project's 
pom.xml, I have to remeber to add also commons-lang javaModule to ear 
project's pom.xml. Shouldn't this be handled by transitive dependencies?


--
Best regards,
Wojciech Gdela.


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



[m2] how to enable assertions

2006-04-14 Thread Wojciech Gdela

Hello,

How to enable assertions during execution of test cases?

I have MyClass with one method:

public static void foo() {
assert false;
}

And a test case for MyClass:

public void testFoo() {
MyClass.foo();
}

And I'd like to see java.lang.AssertionError throwed in a result of "mvn 
test" execution. How do I achieve that?


--
Best regards,
Wojciech Gdela.


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