maven hanging

2010-01-26 Thread Douglas Ferguson
I am running my install script during pre-integration-test

And after my install script is done, as prints out its "Install Complete" 
message, maven hangs...

I'm using a wrapper and calling sudo so that the install runs as root.
I've commited out the call to my install and maven stops hanging.

So, there is something about my install script that is causing maven to hang 
even though the install script exits.

I've had tried using maven-exec plugin and ant-exec and they both do the same 
thing..

D/
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Code Coverage for integration tests

2010-01-27 Thread Douglas Ferguson
Is there anyway to get code coverage numbers for integration tests?

D/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



running tests in parallel

2010-01-28 Thread Douglas Ferguson
Can somebody elaborate on this?

1) This says TestNG allows you to... but it is a configuration for sure fire?
2) It also says "including JUnit tests" So I'm a bit confused..

I'd just like to know how to get my junit tests to run in parallel.


TestNG allows you to run your tests in parallel, including JUnit tests. To do 
this, you must set the parallel parameter, and may change the threadCount 
parameter if the default of 5 is not sufficient. For example:

[...]
  
org.apache.maven.plugins
maven-surefire-plugin
2.5

  methods
  10

  
[...]

This is particularly useful for slow tests that can have high concurrency, or 
to quickly and roughly assess the independance and thread safety of your tests 
and code.


Re: running tests in parallel

2010-01-28 Thread Douglas Ferguson
Also,

I just found this on somebodies blog, but I can't find anything on this 
configuration settings...

  
  maven-surefire-plugin
  2.5-SNAPSHOT
  
  classes
  true
  80
  true
  
  


On Jan 28, 2010, at 2:20 AM, Douglas Ferguson wrote:

> Can somebody elaborate on this?
> 
> 1) This says TestNG allows you to... but it is a configuration for sure fire?
> 2) It also says "including JUnit tests" So I'm a bit confused..
> 
> I'd just like to know how to get my junit tests to run in parallel.
> 
> 
> TestNG allows you to run your tests in parallel, including JUnit tests. To do 
> this, you must set the parallel parameter, and may change the threadCount 
> parameter if the default of 5 is not sufficient. For example:
> 
>[...]
>  
>org.apache.maven.plugins
>maven-surefire-plugin
>2.5
>
>  methods
>  10
>
>  
>[...]
> 
> This is particularly useful for slow tests that can have high concurrency, or 
> to quickly and roughly assess the independance and thread safety of your 
> tests and code.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



starting tomcat in pre-integrations-test haults build

2010-01-28 Thread Douglas Ferguson
If I start tomcat in the pre-integration-test the build hangs.

Why is this?

D/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: starting tomcat in pre-integrations-test haults build

2010-01-28 Thread Douglas Ferguson
I'm running the ant run plugin and in ant I'm using the exec target. 
I got the same results with the maven exec plugin.

Inside the ant task I exec a script that runs the installer for my app, which 
stops tomcat at the beginning and then starts it.

this causes maven to hang.

My work around is to call a wrapper script that runs the installer then stops 
tomcat.
Then i have a second ant task that start tomcat with spawn=true.

I will take some time later to set it back and run with -X option..

D/

On Jan 28, 2010, at 8:52 AM, Anders Hammar wrote:

> You have to provide more info, like log outputs etc., for us to help. What
> plugins are you using, what's your config?
> 
> First of all, try debugging by executing
> mvn install -X
> 
> /Anders
> 
> On Thu, Jan 28, 2010 at 15:24, Douglas Ferguson
> wrote:
> 
>> If I start tomcat in the pre-integration-test the build hangs.
>> 
>> Why is this?
>> 
>> D/
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: starting tomcat in pre-integrations-test haults build

2010-02-04 Thread Douglas Ferguson
I ran it with -X and got tons of debug output but I didn't see anything 
indicating that there might be blocking..

D/

On Jan 28, 2010, at 8:52 AM, Anders Hammar wrote:

> You have to provide more info, like log outputs etc., for us to help. What
> plugins are you using, what's your config?
> 
> First of all, try debugging by executing
> mvn install -X
> 
> /Anders
> 
> On Thu, Jan 28, 2010 at 15:24, Douglas Ferguson
> wrote:
> 
>> If I start tomcat in the pre-integration-test the build hangs.
>> 
>> Why is this?
>> 
>> D/
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



SureFire: "parallel" attribute

2010-02-10 Thread Douglas Ferguson
Can anybody shed light on this comment?

..

parallel

String  2.2 (TestNG only) When you use the parallel attribute, TestNG will 
try to run all your test methods in separate threads, except for methods  
that depend on each other, which will be run in the same thread in order to 
respect their order of execution.

   In JUnit 4.7 the values are classes/methods/both to run in separate threads, 
as controlled by threadCount.

.

I have junit test tests and when I set parallel = methods it runs everything 
synchronously, however when I set parallel = classes, it runs the classes in 
parallel. I haven't been able to find good documentation for this anywhere.. 
Does anybody know of any good resources? 

Also, assuming I can get methods to work, does it run all methods in parallel 
or does it run the methods in parallel by class? i.e. 1 class at a time but all 
the methods in that class are parallel?

Are there other gotchas or configuration settings I should be considering? I.E. 
I've read a little bit on ConfigurableParallelComputer but I'm not sure what 
it's all about..

Douglas Ferguson

mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim:   DaAmericanRuse

-

http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/

Join my mailing list: distilleryrecords-subscr...@yahoogroups.com


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: SureFire: "parallel" attribute

2010-02-11 Thread Douglas Ferguson
Anybody?

On Feb 10, 2010, at 6:10 PM, Douglas Ferguson wrote:

> Can anybody shed light on this comment?
> 
> ..
> 
> parallel  
> 
> String2.2 (TestNG only) When you use the parallel attribute, 
> TestNG will try to run all your test methods in separate threads, except for 
> methods  that depend on each other, which will be run in the same thread 
> in order to respect their order of execution.
> 
>   In JUnit 4.7 the values are classes/methods/both to run in separate 
> threads, as controlled by threadCount.
> 
> .
> 
> I have junit test tests and when I set parallel = methods it runs everything 
> synchronously, however when I set parallel = classes, it runs the classes in 
> parallel. I haven't been able to find good documentation for this anywhere.. 
> Does anybody know of any good resources? 
> 
> Also, assuming I can get methods to work, does it run all methods in parallel 
> or does it run the methods in parallel by class? i.e. 1 class at a time but 
> all the methods in that class are parallel?
> 
> Are there other gotchas or configuration settings I should be considering? 
> I.E. I've read a little bit on ConfigurableParallelComputer but I'm not sure 
> what it's all about..
> 
> Douglas Ferguson
> 
> mobile: 512.293.7279
> office/fax: 512.462.0408
> skype: stillrecording
> aim:   DaAmericanRuse
> 
> -
> 
> http://www.linkedin.com/in/douglasferguson
> http://www.myspace.com/douglasferguson
> http://www.douglasferguson.us/
> http://www.distilleryrecords.com/
> http://www.stillrecording.com/
> 
> Join my mailing list: distilleryrecords-subscr...@yahoogroups.com
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



tomcat blocks maven

2010-02-21 Thread Douglas Ferguson
I have a pre-integration-test execution of the ant task plugin that installs my 
snapshot so that the integration tests can run against the new snapshot.

After my install script exits maven hangs. I tracked this down to the fact that 
my install script stops and starts tomcat.
If I stop tomcat at the end of my install script maven runs fine.

My work around is to call a wrapper script that calls install then stop tomcat.
Then start tomcat in a separate execution with "fork=true"

Even though I have a work around I'd like to get to the bottom of this for 2 
reasons

1) I can't for the life of me think of what tomcat/maven could be doing to 
cause this
2) It would be nice to test the real world install script and not one that 
restarts tomcat (i.e. what if I'm masking a bug)

D/



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: tomcat blocks maven

2010-02-22 Thread Douglas Ferguson
Because I'm doing integration testing and I want to test my application after 
doing a real install.

D/

On Feb 22, 2010, at 1:21 AM, Anders Hammar wrote:

> Why aren't you using a real maven plugin to start tomcat and to deploy to
> tomcat?
> http://mojo.codehaus.org/tomcat-maven-plugin/
> or
> http://cargo.codehaus.org/Maven2+plugin
> 
> /Anders
> 
> On Sun, Feb 21, 2010 at 17:33, Douglas Ferguson
> wrote:
> 
>> I have a pre-integration-test execution of the ant task plugin that
>> installs my snapshot so that the integration tests can run against the new
>> snapshot.
>> 
>> After my install script exits maven hangs. I tracked this down to the fact
>> that my install script stops and starts tomcat.
>> If I stop tomcat at the end of my install script maven runs fine.
>> 
>> My work around is to call a wrapper script that calls install then stop
>> tomcat.
>> Then start tomcat in a separate execution with "fork=true"
>> 
>> Even though I have a work around I'd like to get to the bottom of this for
>> 2 reasons
>> 
>> 1) I can't for the life of me think of what tomcat/maven could be doing to
>> cause this
>> 2) It would be nice to test the real world install script and not one that
>> restarts tomcat (i.e. what if I'm masking a bug)
>> 
>> D/
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
Is there a clean way to start up jetty for the testing and then stopping git 
afterwards?

I'd like to include my integration tests for my code coverage.

I'd like to set my code coverage profile to only start up jetty after cobertura 
has instrumented the classes 
then shut it down after the tests complete.

Could I just start up the jetty in process-test-classes and shut it down in 
prepare-package?

D/


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
I've been experimenting with this and have come to find out that the mvn jetty 
plugin is not compatible with projects that include jetty in their pom 
dependencies.

Now I need to figure out a different way to start up jetty. I have a Start.java 
class that could start up jetty but i would need to figure out how to stop it.

Also, I'm found some information online about a version cobertura plugin that 
had a seperate generate-report goal. Anybody know where I could locate this?

D/

On Mar 4, 2010, at 4:05 AM, Brett Porter wrote:

> On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote:
> 
>> Is there a clean way to start up jetty for the testing and then stopping git 
>> afterwards?
>> 
>> I'd like to include my integration tests for my code coverage.
>> 
>> I'd like to set my code coverage profile to only start up jetty after 
>> cobertura has instrumented the classes 
>> then shut it down after the tests complete.
>> 
>> Could I just start up the jetty in process-test-classes and shut it down in 
>> prepare-package?
> 
> Yep.
> 
> http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/selenium-tests/pom.xml
> 
> Bear in mind that if the tests fail, the "stop" won't be run, but normally 
> they will shut down properly when Maven does anyway.
> 
> - Brett
> 
> --
> Brett Porter
> br...@apache.org
> http://brettporter.wordpress.com/
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
Hmm.. But how would I start that and stop it with mvn? Looks like you'd need to 
have a reference to the instantiated JettyHelp in order to stop it.

D/

On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote:

> public final class JettyHelper {
> 
>private JettyHelper() {
>throw new IllegalAccessError("Utility class");
>}
> 
>public static Server createServer(int port, File warFile, String
> contextRoot) throws Exception {
> 
>Server server = new Server();
>Connector connector = new SelectChannelConnector();
>connector.setPort(port);
>server.addConnector(connector);
> 
>WebAppContext context = new WebAppContext(warFile.getAbsolutePath(),
> contextRoot);
> 
>context.setConfigurationClasses(new String[]{
>"org.mortbay.jetty.webapp.WebInfConfiguration",
>"org.mortbay.jetty.plus.webapp.EnvConfiguration",
>"org.mortbay.jetty.annotations.Configuration",
>"org.mortbay.jetty.webapp.JettyWebXmlConfiguration",
>"org.mortbay.jetty.webapp.TagLibConfiguration"
>});
> 
>context.setExtractWAR(false);
>context.setCopyWebDir(false);
>context.setParentLoaderPriority(true);
> 
>server.setHandler(context);
> 
>server.start();
> 
>return server;
>}
> 
>public static void destroyServer(Server server) throws Exception {
>    if (server == null) return;
>if (!server.isStopped()) {
>server.stop();
>server.join();
>}
>}
> }
> 
> 
> On 4 March 2010 11:58, Douglas Ferguson  wrote:
> 
>> I've been experimenting with this and have come to find out that the mvn
>> jetty plugin is not compatible with projects that include jetty in their pom
>> dependencies.
>> 
>> Now I need to figure out a different way to start up jetty. I have a
>> Start.java class that could start up jetty but i would need to figure out
>> how to stop it.
>> 
>> Also, I'm found some information online about a version cobertura plugin
>> that had a seperate generate-report goal. Anybody know where I could locate
>> this?
>> 
>> D/
>> 
>> On Mar 4, 2010, at 4:05 AM, Brett Porter wrote:
>> 
>>> On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote:
>>> 
>>>> Is there a clean way to start up jetty for the testing and then stopping
>> git afterwards?
>>>> 
>>>> I'd like to include my integration tests for my code coverage.
>>>> 
>>>> I'd like to set my code coverage profile to only start up jetty after
>> cobertura has instrumented the classes
>>>> then shut it down after the tests complete.
>>>> 
>>>> Could I just start up the jetty in process-test-classes and shut it down
>> in prepare-package?
>>> 
>>> Yep.
>>> 
>>> 
>> http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/selenium-tests/pom.xml
>>> 
>>> Bear in mind that if the tests fail, the "stop" won't be run, but
>> normally they will shut down properly when Maven does anyway.
>>> 
>>> - Brett
>>> 
>>> --
>>> Brett Porter
>>> br...@apache.org
>>> http://brettporter.wordpress.com/
>>> 
>>> 
>>> 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
I have 20 tests and the number is growing.

I don't want to start and stop jetty for every test, because hibernate and 
guice intialize actually take a little bit of time.
Which would slow down the entire suite..

D/


On Mar 4, 2010, at 12:17 PM, Kalle Korhonen wrote:

> Why would you insist on starting it with mvn? How do you run the the
> same test in your IDE? Wouldn't it be easier to just use JettyHelper
> in your test? For another example of the same concept, perhaps a bit
> more evolved, see
> http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-test/src/main/java/org/tynamo/test/AbstractContainerTest.java
> (http://tynamo.org)
> 
> Kalle
> 
> 
> On Thu, Mar 4, 2010 at 9:38 AM, Douglas Ferguson
>  wrote:
>> Hmm.. But how would I start that and stop it with mvn? Looks like you'd need 
>> to have a reference to the instantiated JettyHelp in order to stop it.
>> 
>> D/
>> 
>> On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote:
>> 
>>> public final class JettyHelper {
>>> 
>>>private JettyHelper() {
>>>throw new IllegalAccessError("Utility class");
>>>}
>>> 
>>>public static Server createServer(int port, File warFile, String
>>> contextRoot) throws Exception {
>>> 
>>>Server server = new Server();
>>>Connector connector = new SelectChannelConnector();
>>>connector.setPort(port);
>>>server.addConnector(connector);
>>> 
>>>WebAppContext context = new WebAppContext(warFile.getAbsolutePath(),
>>> contextRoot);
>>> 
>>>context.setConfigurationClasses(new String[]{
>>>"org.mortbay.jetty.webapp.WebInfConfiguration",
>>>"org.mortbay.jetty.plus.webapp.EnvConfiguration",
>>>"org.mortbay.jetty.annotations.Configuration",
>>>"org.mortbay.jetty.webapp.JettyWebXmlConfiguration",
>>>"org.mortbay.jetty.webapp.TagLibConfiguration"
>>>});
>>> 
>>>context.setExtractWAR(false);
>>>context.setCopyWebDir(false);
>>>context.setParentLoaderPriority(true);
>>> 
>>>server.setHandler(context);
>>> 
>>>server.start();
>>> 
>>>return server;
>>>}
>>> 
>>>public static void destroyServer(Server server) throws Exception {
>>>if (server == null) return;
>>>if (!server.isStopped()) {
>>>server.stop();
>>>server.join();
>>>}
>>>}
>>> }
>>> 
>>> 
>>> On 4 March 2010 11:58, Douglas Ferguson  wrote:
>>> 
>>>> I've been experimenting with this and have come to find out that the mvn
>>>> jetty plugin is not compatible with projects that include jetty in their 
>>>> pom
>>>> dependencies.
>>>> 
>>>> Now I need to figure out a different way to start up jetty. I have a
>>>> Start.java class that could start up jetty but i would need to figure out
>>>> how to stop it.
>>>> 
>>>> Also, I'm found some information online about a version cobertura plugin
>>>> that had a seperate generate-report goal. Anybody know where I could locate
>>>> this?
>>>> 
>>>> D/
>>>> 
>>>> On Mar 4, 2010, at 4:05 AM, Brett Porter wrote:
>>>> 
>>>>> On 04/03/2010, at 8:49 PM, Douglas Ferguson wrote:
>>>>> 
>>>>>> Is there a clean way to start up jetty for the testing and then stopping
>>>> git afterwards?
>>>>>> 
>>>>>> I'd like to include my integration tests for my code coverage.
>>>>>> 
>>>>>> I'd like to set my code coverage profile to only start up jetty after
>>>> cobertura has instrumented the classes
>>>>>> then shut it down after the tests complete.
>>>>>> 
>>>>>> Could I just start up the jetty in process-test-classes and shut it down
>>>> in prepare-package?
>>>>> 
>>>>> Yep.
>>>>> 
>>>>> 
>>>> http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/selenium-tests/pom.xml
>>>>> 
>>>>> Bear in mind that if th

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
So how does the server get stopped?

On Mar 4, 2010, at 12:46 PM, Kalle Korhonen wrote:

> If it takes a long time, why would you restart for each test? If you
> look at the link I sent, you'll see the instance is started only once
> per jvm by default.
> 
> Kalle
> 
> 
> On Thu, Mar 4, 2010 at 10:35 AM, Douglas Ferguson
>  wrote:
>> I have 20 tests and the number is growing.
>> 
>> I don't want to start and stop jetty for every test, because hibernate and 
>> guice intialize actually take a little bit of time.
>> Which would slow down the entire suite..
>> 
>> D/
>> 
>> 
>> On Mar 4, 2010, at 12:17 PM, Kalle Korhonen wrote:
>> 
>>> Why would you insist on starting it with mvn? How do you run the the
>>> same test in your IDE? Wouldn't it be easier to just use JettyHelper
>>> in your test? For another example of the same concept, perhaps a bit
>>> more evolved, see
>>> http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-test/src/main/java/org/tynamo/test/AbstractContainerTest.java
>>> (http://tynamo.org)
>>> 
>>> Kalle
>>> 
>>> 
>>> On Thu, Mar 4, 2010 at 9:38 AM, Douglas Ferguson
>>>  wrote:
>>>> Hmm.. But how would I start that and stop it with mvn? Looks like you'd 
>>>> need to have a reference to the instantiated JettyHelp in order to stop it.
>>>> 
>>>> D/
>>>> 
>>>> On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote:
>>>> 
>>>>> public final class JettyHelper {
>>>>> 
>>>>>private JettyHelper() {
>>>>>throw new IllegalAccessError("Utility class");
>>>>>}
>>>>> 
>>>>>public static Server createServer(int port, File warFile, String
>>>>> contextRoot) throws Exception {
>>>>> 
>>>>>Server server = new Server();
>>>>>Connector connector = new SelectChannelConnector();
>>>>>connector.setPort(port);
>>>>>server.addConnector(connector);
>>>>> 
>>>>>WebAppContext context = new 
>>>>> WebAppContext(warFile.getAbsolutePath(),
>>>>> contextRoot);
>>>>> 
>>>>>context.setConfigurationClasses(new String[]{
>>>>>"org.mortbay.jetty.webapp.WebInfConfiguration",
>>>>>"org.mortbay.jetty.plus.webapp.EnvConfiguration",
>>>>>"org.mortbay.jetty.annotations.Configuration",
>>>>>"org.mortbay.jetty.webapp.JettyWebXmlConfiguration",
>>>>>"org.mortbay.jetty.webapp.TagLibConfiguration"
>>>>>});
>>>>> 
>>>>>context.setExtractWAR(false);
>>>>>context.setCopyWebDir(false);
>>>>>context.setParentLoaderPriority(true);
>>>>> 
>>>>>server.setHandler(context);
>>>>> 
>>>>>server.start();
>>>>> 
>>>>>return server;
>>>>>}
>>>>> 
>>>>>public static void destroyServer(Server server) throws Exception {
>>>>>    if (server == null) return;
>>>>>if (!server.isStopped()) {
>>>>>server.stop();
>>>>>server.join();
>>>>>}
>>>>>}
>>>>> }
>>>>> 
>>>>> 
>>>>> On 4 March 2010 11:58, Douglas Ferguson  
>>>>> wrote:
>>>>> 
>>>>>> I've been experimenting with this and have come to find out that the mvn
>>>>>> jetty plugin is not compatible with projects that include jetty in their 
>>>>>> pom
>>>>>> dependencies.
>>>>>> 
>>>>>> Now I need to figure out a different way to start up jetty. I have a
>>>>>> Start.java class that could start up jetty but i would need to figure out
>>>>>> how to stop it.
>>>>>> 
>>>>>> Also, I'm found some information online about a version cobertura plugin
>>>>>> that had a seperate generate-report goal. Anybody know where I could 
>>>>>> locate
>>>>>> this?

Re: starting jetty during tests and stopping afterwards

2010-03-04 Thread Douglas Ferguson
Wierd.. I was not seing that happen. Could it be that we have thread pools 
running?

But i was testing it with eclipse.  I wrapped the call to start with a main() 
and ran that from eclipse and it kept running..

D//

On Mar 4, 2010, at 1:17 PM, Kalle Korhonen wrote:

> On Thu, Mar 4, 2010 at 11:03 AM, Douglas Ferguson
>  wrote:
>> So how does the server get stopped?
> 
> Up to you, but typically when the JVM exits.
> 
> Kalle
> 
> 
>> On Mar 4, 2010, at 12:46 PM, Kalle Korhonen wrote:
>> 
>>> If it takes a long time, why would you restart for each test? If you
>>> look at the link I sent, you'll see the instance is started only once
>>> per jvm by default.
>>> 
>>> Kalle
>>> 
>>> 
>>> On Thu, Mar 4, 2010 at 10:35 AM, Douglas Ferguson
>>>  wrote:
>>>> I have 20 tests and the number is growing.
>>>> 
>>>> I don't want to start and stop jetty for every test, because hibernate and 
>>>> guice intialize actually take a little bit of time.
>>>> Which would slow down the entire suite..
>>>> 
>>>> D/
>>>> 
>>>> 
>>>> On Mar 4, 2010, at 12:17 PM, Kalle Korhonen wrote:
>>>> 
>>>>> Why would you insist on starting it with mvn? How do you run the the
>>>>> same test in your IDE? Wouldn't it be easier to just use JettyHelper
>>>>> in your test? For another example of the same concept, perhaps a bit
>>>>> more evolved, see
>>>>> http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-test/src/main/java/org/tynamo/test/AbstractContainerTest.java
>>>>> (http://tynamo.org)
>>>>> 
>>>>> Kalle
>>>>> 
>>>>> 
>>>>> On Thu, Mar 4, 2010 at 9:38 AM, Douglas Ferguson
>>>>>  wrote:
>>>>>> Hmm.. But how would I start that and stop it with mvn? Looks like you'd 
>>>>>> need to have a reference to the instantiated JettyHelp in order to stop 
>>>>>> it.
>>>>>> 
>>>>>> D/
>>>>>> 
>>>>>> On Mar 4, 2010, at 6:07 AM, Stephen Connolly wrote:
>>>>>> 
>>>>>>> public final class JettyHelper {
>>>>>>> 
>>>>>>>private JettyHelper() {
>>>>>>>throw new IllegalAccessError("Utility class");
>>>>>>>}
>>>>>>> 
>>>>>>>public static Server createServer(int port, File warFile, String
>>>>>>> contextRoot) throws Exception {
>>>>>>> 
>>>>>>>Server server = new Server();
>>>>>>>Connector connector = new SelectChannelConnector();
>>>>>>>connector.setPort(port);
>>>>>>>server.addConnector(connector);
>>>>>>> 
>>>>>>>WebAppContext context = new 
>>>>>>> WebAppContext(warFile.getAbsolutePath(),
>>>>>>> contextRoot);
>>>>>>> 
>>>>>>>context.setConfigurationClasses(new String[]{
>>>>>>>"org.mortbay.jetty.webapp.WebInfConfiguration",
>>>>>>>"org.mortbay.jetty.plus.webapp.EnvConfiguration",
>>>>>>>"org.mortbay.jetty.annotations.Configuration",
>>>>>>>"org.mortbay.jetty.webapp.JettyWebXmlConfiguration",
>>>>>>>"org.mortbay.jetty.webapp.TagLibConfiguration"
>>>>>>>});
>>>>>>> 
>>>>>>>context.setExtractWAR(false);
>>>>>>>context.setCopyWebDir(false);
>>>>>>>context.setParentLoaderPriority(true);
>>>>>>> 
>>>>>>>server.setHandler(context);
>>>>>>> 
>>>>>>>server.start();
>>>>>>> 
>>>>>>>return server;
>>>>>>>}
>>>>>>> 
>>>>>>>public static void destroyServer(Server server) throws Exception {
>>>>>>>if (server == null) return;
>>>>>>>if (!server.isStopped()) {
>>>>>>>server.stop();
>>>>>>>server.

cobertura & jetty

2010-03-04 Thread Douglas Ferguson
So I finally got jetty starting from my test case, but it doesn't impact the 
code coverage.

My BasePage class is at 0% which is confusing.

The server is started from the test class which would make you think would be 
using the instrumented classes and jetty would inherit the same classpath.

What am I missing?

Douglas
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: cobertura & jetty

2010-03-05 Thread Douglas Ferguson
Actually switching to emma got things working..

I just start jetty from the base class of my selenium test.
I have a static field that prevents jetty from attempting to start twice.

Seems to work great.

D/

On Mar 4, 2010, at 11:23 PM, hanasaki wrote:

> most of what I have found points to using emma to get code coverage in 
> the integration phase using the failsafe plugin and embedded Jetty.
> 
>  Original Message 
> Subject: cobertura & jetty
> From: Douglas Ferguson 
> To: Maven Users List 
> Date: 03/04/2010 10:43 PM
> 
>> So I finally got jetty starting from my test case, but it doesn't
>> impact the code coverage.
>> 
>> My BasePage class is at 0% which is confusing.
>> 
>> The server is started from the test class which would make you think
>> would be using the instrumented classes and jetty would inherit the
>> same classpath.
>> 
>> What am I missing?
>> 
>> Douglas 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For
>> additional commands, e-mail: users-h...@maven.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: cobertura & jetty

2010-03-05 Thread Douglas Ferguson
Well cobertura's graphs in hudson are far superior.

We aren't even specifying a version so we should have had the latest.

org.codehaus.mojo
cobertura-maven-plugin



D/

On Mar 5, 2010, at 11:28 AM, Kalle Korhonen wrote:

> Glad to hear you got things working. Just a note on Cobertura though;
> we are running our cove coverage for unit and container-based
> integration tests with Cobertura so it's not the tool per se. Could
> have been an issue with the version of Cobertura you were using or the
> configuration but if Emma is working for you and you are happy with
> it, I wouldn't switch.
> 
> Kalle
> 
> 
> On Fri, Mar 5, 2010 at 1:05 AM, Douglas Ferguson
>  wrote:
>> Actually switching to emma got things working..
>> 
>> I just start jetty from the base class of my selenium test.
>> I have a static field that prevents jetty from attempting to start twice.
>> 
>> Seems to work great.
>> 
>> D/
>> 
>> On Mar 4, 2010, at 11:23 PM, hanasaki wrote:
>> 
>>> most of what I have found points to using emma to get code coverage in
>>> the integration phase using the failsafe plugin and embedded Jetty.
>>> 
>>>  Original Message 
>>> Subject: cobertura & jetty
>>> From: Douglas Ferguson 
>>> To: Maven Users List 
>>> Date: 03/04/2010 10:43 PM
>>> 
>>>> So I finally got jetty starting from my test case, but it doesn't
>>>> impact the code coverage.
>>>> 
>>>> My BasePage class is at 0% which is confusing.
>>>> 
>>>> The server is started from the test class which would make you think
>>>> would be using the instrumented classes and jetty would inherit the
>>>> same classpath.
>>>> 
>>>> What am I missing?
>>>> 
>>>> Douglas
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For
>>>> additional commands, e-mail: users-h...@maven.apache.org
>>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Newbie

2006-08-03 Thread Douglas Ferguson
I am new to maven and have recently been tasked with migrating a project to
maven. 

 

The project is a bit strange and has grown organically over time. There are
quite a few things about how it is maintained a built that make it a bit
perplexing when trying to map it into the maven world.

 

I have a few concerns/questions if anybody out there has seen anything
similar or has thoughts, I'd love the help/support.

 

1)   I am curious about deploying modules separately. The project
contains many modules that are interrelated and are developed in tandem,
however the project would rarely need to be built as a whole. In performing
some testing/proof of concept work I was able to build a sub module fine,
however when I went to release that sub module it complained about the
parent not being released. Is there a way to release the parent pom without
have to build all the children? I wouldn't mind doing this once but it could
be an ordeal if you had to do it every time a dependency was added to the
parent. In short, can a parent pom be released in isolation of it's members?

2)   The product in question has grown organically over time. Initially
it was just one-off website for clients and using a "standard" jar file that
grew with each website and wasn't version very well. Now that we are trying
to productize the solution we have 1 repository that contains section with
client specific code. Our ant script will build the application and overlay
client specific files and configuration to produce a war file. 

As part of the migration to maven, I want to split this into 2 distinct
steps.  The first step would be an application build. Then second step would
be the client specific class files, jsp files, and resources. The first step
is pretty straight forward with maven. I would generate a war artifact with
a bunch of standard files & resources. However when it comes to merging in
the client code I become a bit stumped. Here are a few of my concerns &
questions:

a.   Can I use uberwar to merge this local client files into a publish
platform war?

b.   Can I dynamically set the artifactId? If not then I would need 1
POM per client which probably wouldn't scale. In this event I may need to
consider using ant for this step. Has anybody had to deal with this before?

3)   Another issue that I face is that the operations team expects us to
give them war files that have the client requested context name as the name
of the war file. This is a hinderance because it means we can't have the
version # or artifactId in the file name. I have thought about generating
composite artifacts, i.e. a jar or zip (if possible) that would contain two
war files (production_context.war & demo_context.war). This "composite
artifact" could have the version and artifactid in it.

Does anybody have any examples of how you'd go about creating an artifact
like this? I.E. Kick off a war process, then zip it up? If not zip, then
jar? I'd also need to be able to control what stuff actually made it into
the generated artifact.

 

D-

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Newbie

2006-08-03 Thread Douglas Ferguson
Thanks, this was really helpful.

Assembly definitely looks like the ticket. I'm just curious if a zip file
that is created during assembly could be used as the actual artifact output
for a module.


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 03, 2006 2:50 PM
To: Maven Users List
Subject: Re: Newbie

Hi Doug,

Answered inline...

On 8/3/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
>
> parent not being released. Is there a way to release the parent pom
without
> have to build all the children? I wouldn't mind doing this once but it
could
> be an ordeal if you had to do it every time a dependency was added to the
> parent. In short, can a parent pom be released in isolation of it's
members?

mvn -N will keep Maven from traversing into the submodules, so you can
use mvn -N install to only install the parent pom without going into
all the children and building/installing them.


> a.   Can I use uberwar to merge this local client files into a publish
> platform war?

Uberwar does not exist for M2. Take a look at Assembly plugin or take
advantage of the ability of the WAR plugin to "overlay" wars.


> b.   Can I dynamically set the artifactId? If not then I would need 1
> POM per client which probably wouldn't scale. In this event I may need to
> consider using ant for this step. Has anybody had to deal with this
before?

You might be able to pass artifactId as a property that is passed from
command line or a profile file.


> Does anybody have any examples of how you'd go about creating an artifact
> like this? I.E. Kick off a war process, then zip it up? If not zip, then
> jar? I'd also need to be able to control what stuff actually made it into
> the generated artifact.

The assembly plugin is your friend. Or you could try doing this with
 instead, but I think assembly is the right answer.

Wayne

-
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] Need help: How to managing the version number in a multi-module

2006-08-04 Thread Douglas Ferguson
Why don't you create a local mirror of the repository?

-Original Message-
From: Jens Riboe [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 04, 2006 7:55 AM
To: Maven Users List
Subject: RE: [m2] Need help: How to managing the version number in a
multi-module

>> However we are using the M2 Release plugin to handle your 
>> maintenance problem.
AFAIK this plugin requires me to be online (access to SVN repo).
In my case I'm mostly on the move working off-line.

Regards,
/Jens


-Original Message-
From: Jorgen Fastrup [mailto:[EMAIL PROTECTED] 
Sent: 04 August 2006 14:47
To: users@maven.apache.org
Subject: Re: [m2] Need help: How to managing the version number in a
multi-module


Hi Jens

I'm not aware of what is considered best pratice on this matter. However
we
are using the M2 Release plugin to handle your maintenance problem. 

Eache single project included in our multiproject structure uses the
1.0-SNAPSHOT tag. Once we cut a new release for the
multiproject we execute the M2 Release plugin. The plugin - among other
things - assigns a new identical version tag to each POM located in the
multiproject structure and thus the version integrity of the entire
multiproject is preserved.  

Regards 
Jorgen



Regards 
Jorgen 
-- 
View this message in context:
http://www.nabble.com/-m2--Need-help%3A-How-to-managing-the-version-numb
er-in-a-multi-module-project-tf2050906.html#a5649632
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]



Assembly

2006-08-04 Thread Douglas Ferguson
Is anybody aware of any working examples of assembly in practice?

 

The docs make sense but I'd like to see an example of using it in an actual
project.

 

Specifically,

 

1)   What is the best way to kick it off? I was thinking perhaps this is
a pre-goal for package?

2)   How can I make the output of the assembly plugin be the actual
artifact for the module?
As far as I understand, running assembly during a build would generate the
assembly but then the package phase would then create whatever package type
was defined. i.e. you'd end up with a jar that contains your assembly.

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Assembly

2006-08-04 Thread Douglas Ferguson
I have a strange project here. Basically they are building custom for each
client. The build pulls custom jsp files & custom configuration into a war
file with the context name based on the the client context name.

What I want to do is move the custom stuff out of the main build and into
separate project. Then the app itself will get built using normal maven. The
client stuff can get merged in using assembly. 

I would actually like to figure out how to merge the client specific stuff
into the the platform war to generate a composite war. Then I'd like to take
that war and include some of the external config files and sql files into a
zip file. I'd like this zip file to be the output for the client specific
module. This is what would get released to the Web Hosting team.

D-


> 1)   What is the best way to kick it off? I was thinking perhaps this
is
> a pre-goal for package?

Separately, after you build the project.  If you're trying to make the
assembly part of a single build of all the modules + the assembly,
read this first:

http://www.nabble.com/Re%3A-building-assemblies-from-the-top-level-project-d
irectory-p4735063.html

> 2)   How can I make the output of the assembly plugin be the actual
> artifact for the module?
> As far as I understand, running assembly during a build would generate the
> assembly but then the package phase would then create whatever package
type
> was defined. i.e. you'd end up with a jar that contains your assembly.

What are you trying to accomplish?  Getting a .zip file
installed/deployed to a repository?

-- 
Wendy

-
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: Assembly

2006-08-04 Thread Douglas Ferguson
Yeah,

I was thinking that part would be easy. I am about to test it local here in
a few moments. It's the assembly part. The client specific files that need
to reside outside the war that's got be stumped.

I want to be able to restrict certain files (release notes, sql files,
external configs) from going into the war. Then I want to put those files
and the war into a zip file and have that be my artifact.

D-

-Original Message-
From: Matt Brozowski [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 04, 2006 11:05 AM
To: Maven Users List
Subject: Re: Assembly


On Aug 4, 2006, at 11:48 AM, Douglas Ferguson wrote:

> I have a strange project here. Basically they are building custom  
> for each
> client. The build pulls custom jsp files & custom configuration  
> into a war
> file with the context name based on the the client context name.
>
> What I want to do is move the custom stuff out of the main build  
> and into
> separate project. Then the app itself will get built using normal  
> maven. The
> client stuff can get merged in using assembly.
>
> I would actually like to figure out how to merge the client  
> specific stuff
> into the the platform war to generate a composite war. Then I'd  
> like to take
> that war and include some of the external config files and sql  
> files into a
> zip file. I'd like this zip file to be the output for the client  
> specific
> module. This is what would get released to the Web Hosting team.

I haven't played with this nearly as much as others here.  But I'm  
pretty sure that if you create a war packaged project with war dependencies, it will 'merge' in someway the dependencies with  
the code that is in the current project.

Hope that helps,
Matt


 
___
Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812
4984
The OpenNMS Group, Inc. Fax:+1
503 961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.com




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



RE: Assembly

2006-08-04 Thread Douglas Ferguson
Is there a way to release an assembly?

-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 04, 2006 11:14 AM
To: 'Maven Users List'
Subject: RE: Assembly

Yeah,

I was thinking that part would be easy. I am about to test it local here in
a few moments. It's the assembly part. The client specific files that need
to reside outside the war that's got be stumped.

I want to be able to restrict certain files (release notes, sql files,
external configs) from going into the war. Then I want to put those files
and the war into a zip file and have that be my artifact.

D-

-Original Message-
From: Matt Brozowski [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 04, 2006 11:05 AM
To: Maven Users List
Subject: Re: Assembly


On Aug 4, 2006, at 11:48 AM, Douglas Ferguson wrote:

> I have a strange project here. Basically they are building custom  
> for each
> client. The build pulls custom jsp files & custom configuration  
> into a war
> file with the context name based on the the client context name.
>
> What I want to do is move the custom stuff out of the main build  
> and into
> separate project. Then the app itself will get built using normal  
> maven. The
> client stuff can get merged in using assembly.
>
> I would actually like to figure out how to merge the client  
> specific stuff
> into the the platform war to generate a composite war. Then I'd  
> like to take
> that war and include some of the external config files and sql  
> files into a
> zip file. I'd like this zip file to be the output for the client  
> specific
> module. This is what would get released to the Web Hosting team.

I haven't played with this nearly as much as others here.  But I'm  
pretty sure that if you create a war packaged project with war dependencies, it will 'merge' in someway the dependencies with  
the code that is in the current project.

Hope that helps,
Matt


 
___
Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812
4984
The OpenNMS Group, Inc. Fax:+1
503 961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.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: SV: Packaged webapp

2006-08-04 Thread Douglas Ferguson

Just curious how you ended up dealing with this issue.
-- 
View this message in context: 
http://www.nabble.com/Packaged-webapp-tf2012675.html#a5655794
Sent from the Maven - Users forum at Nabble.com.


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



Re: Packaged webapp

2006-08-04 Thread Douglas Ferguson

Sorry about the previous post. 

My First Nabble reply...

Just curious how Kevin solved this.


Kevin Menard-2 wrote:
> 
> Hi all,
> 
> I have a Web app project that builds to a WAR just fine.  What I'd like to
> do is also package it with a Tomcat bundle.  This way, I can provide a
> single ZIP with everything necessary to run the Web app.
> 
> Does anyone have any experience doing this with maven?  Any pointers for
> me?
> 
> Thanks,
> Kevin
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-- 
View this message in context: 
http://www.nabble.com/Packaged-webapp-tf2012675.html#a5656003
Sent from the Maven - Users forum at Nabble.com.


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



Deploying Output From Assembly

2006-08-07 Thread Douglas Ferguson
I would like to deploy a zip file that is output from my assembly process. 

 

Could I just treat this like a 3rd party deploy? Is there any reason to not
disable the POM creation?

 

I'd like to tie the assembly and deployment of the zip to the release of the
actual maven project?

 

 

Thanks,

 

Douglas

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Deploying Output From Assembly

2006-08-07 Thread Douglas Ferguson
If I understand you correctly, I would use this:


  
maven-assembly-plugin
2.0-beta-1

... Configuration Here ...


   
  package
   

  
 

However, I don't know if I follow your last comment.
When you say that the id of the assembly descriptor becomes the classifier
does that mean it automatically gets deployed?

Thanks,

Doug

-Original Message-
From: Edwin Punzalan [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 07, 2006 12:39 PM
To: Maven Users List
Subject: Re: Deploying Output From Assembly


You can just deploy it but have the assembly plugin run in the package 
phase.

The id of the assembly descriptor becomes the artifact classifier in 
case you want to use the one generated by the assembly.


Douglas Ferguson wrote:
> I would like to deploy a zip file that is output from my assembly process.

>
>  
>
> Could I just treat this like a 3rd party deploy? Is there any reason to
not
> disable the POM creation?
>
>  
>
> I'd like to tie the assembly and deployment of the zip to the release of
the
> actual maven project?
>
>  
>
>  
>
> Thanks,
>
>  
>
> Douglas
>
> __
>
>
> Douglas W. Ferguson
>
> EPSIIA - Another Fiserv Connection
>
> Development
>
> Office Phone: 512-329-0081 ext. 3309
>
> Dial Toll Free: 800-415-5946
>
> Mobile Phone: 512-293-7279
>
> Fax: 512-329-0086
>
> [EMAIL PROTECTED]
>
> www.epsiia.com <http://www.epsiia.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]



mvn & cygwin

2006-08-07 Thread Douglas Ferguson
Anybody using mvn & cygwin?

 

I just ran into this problem, where <> = my local path.

It seems like it is a cygwin path vs. windows path issue. 

 

svn: '/cygdrive/c/<>/c:/<> ' is not a
working copy

 

Anybody got a good work around?

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: mvn & cygwin

2006-08-08 Thread Douglas Ferguson
Jorg,

What's the best way to use the windows version from within cygwin?

-Original Message-
From: Jörg Schaible [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 07, 2006 3:03 PM
To: Maven Users List
Subject: Re: mvn & cygwin

Douglas Ferguson wrote:

> Anybody using mvn & cygwin?
> 
>  
> 
> I just ran into this problem, where <> = my local path.
> 
> It seems like it is a cygwin path vs. windows path issue.
> 
>  
> 
> svn: '/cygdrive/c/<>/c:/<> ' is not a
> working copy
> 
>  
> 
> Anybody got a good work around?

Use the Windows version of svn.

- Jörg

-
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: Assembly madness...

2006-08-08 Thread Douglas Ferguson
What are you currently doing for step 3?

I am working on something very similar. I still need to figure out how to
get assembly & deploy to happen when I build the pom. I'm thinking that I
would bind these 2 tasks to the release phase of that pom.

So far the actual assembly is working.

D-

-Original Message-
From: mike7 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 12:54 AM
To: users@maven.apache.org
Subject: Assembly madness...


I am trying to make an assembly out of many modules (.jar) installed in a
shared repository. Here is what I did so far with no success:
1- created a multi-module pom
2- installed each module in a local repository
3- tried to configure this assembly plugin to put all those modules into one
assembly

I'm stuck on step 3, I don't seem to find the right commands to do it.

Thanks for your help
-- 
View this message in context:
http://www.nabble.com/Assembly-madness...-tf2070731.html#a5700837
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: mvn & cygwin

2006-08-08 Thread Douglas Ferguson
When you say install the windows version, should I do that outside of cygwin
just using the svn download?

Also, what do you mean "keep your source on text mounts"?

-Original Message-
From: Jörg Schaible [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 10:24 AM
To: Maven Users List
Subject: RE: mvn & cygwin

Douglas Ferguson wrote on Tuesday, August 08, 2006 4:41 PM:

> Jorg,
> 
> What's the best way to use the windows version from within cygwin?

Uninstall the Cygwin version, install the Windows version and add it to your
path. Keep your source on text mounts though.

- Jörg

-
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: Assembly madness...

2006-08-08 Thread Douglas Ferguson
Hmm.. have you tried making your parent pom output a jar instead of a pom?

-Original Message-
From: mike7 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 2:02 PM
To: users@maven.apache.org
Subject: RE: Assembly madness...


Hi Douglas,

I am trying to have all .class build by maven and put into many module.jar
to be assemble into one big final-module.jar.
As replied earlier, I am also using classifiers for each module as I need to
build modules.jar for different VM.
Then, this final-module.jar is shrinked/obfuscated.

Thanks.
-- 
View this message in context:
http://www.nabble.com/Assembly-madness...-tf2070731.html#a5712896
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: Assembly madness...

2006-08-08 Thread Douglas Ferguson
Hmm.. What's an aggregator project?

D-

-Original Message-
From: mike7 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 2:25 PM
To: users@maven.apache.org
Subject: RE: Assembly madness...


But Maven would say: Aggregator projects require 'pom' as packaging.
-- 
View this message in context:
http://www.nabble.com/Assembly-madness...-tf2070731.html#a5713307
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]



Executing Assembly during build

2006-08-08 Thread Douglas Ferguson
I tried to bind assembly to the package phase and I get this error.

[INFO] Mojo: 'assembly' requires direct invocation. It cannot be used as
part of the lifecycle (it was included via the POM).

First off... why not?

Secondly, is there another alternative?


-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 3:05 PM
To: Maven Users List
Subject: Re: Assembly madness...

Okay, so what I'm reading from this conversation is that you want to:

a. have a multimodule build
b. wrap the  up in an assembly

First question: why not do the build and assembly all in one step? Why
install the modules to a repository first? When the assembly descriptor
references a  it's talking about a set of  entries in
the current POM. If it's including binaries of those modules, they will have
to be built.

If you're not doing a true multimodule build here, why not use a
dependencySet instead? Dependencies are resolved from the repository, not
modules.

Finally: When you perform this multimodule build targeting different JVMs,
how do you specify the classifiers to use in tagging the output jars? Is
this - and the compiler configuration that I assume you're changing too -
injected into the build(s) via profile, or...?

-john

On 8/8/06, mike7 <[EMAIL PROTECTED]> wrote:
>
>
> Aggregator project = parent pom that refers to modules to be built.
> Are you using maven 2
> --
> View this message in context:
> http://www.nabble.com/Assembly-madness...-tf2070731.html#a5713721
> 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]



Plugin Versions

2006-08-08 Thread Douglas Ferguson
Howdy,

 

Anybody have a good method of keeping track of plugin versions. I.E. I am
using the assembly plugin and all the docs have examples with 2.0-beta-1 but
2.1 is out.

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



Optional Goals & Dependencies

2006-08-09 Thread Douglas Ferguson
I am trying to figure out a way to define optional goals and/or
dependencies. Is there a way to do this?

 

I am looking for something similar to the ability in ant to only do a
certain task if a certain property is set.

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Optional Goals & Dependencies

2006-08-10 Thread Douglas Ferguson
I was just reading those pages. Hopefully I can get it to do what I want.

The problem I see right now is that you can only do certain things within
the pom file. 

For instance, I specifically need the developer to be able to designate the
version for dependencies.

Currently each client (there are hundreds) gets a custom build of the entire
application. In an attempt to make a step to something more sane, I want to
break this out into 2 steps, 1) platform build, 2) client build. The client
build would need to depend on the appropriate platform build. 

My initial thought was that the client specific code & configs would all be
1 module, broken down by client. Each client would have properties
indicating the version of the platform to be dependent on, etc. 

The only way I can think of doing is this is using system properties, since
dependencies must be defined the POM file and profiles can't define
properties that the POM file can read. BTW: What are those properties used
for?

If I did use system properties, is it possible to load properties into the
POM from a file? If not, it seems like my only answer it to provide a
wrapper script for mvn that passes parameters.

-Original Message-
From: Chris Hilton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 5:29 PM
To: Maven Users List
Subject: RE: Optional Goals & Dependencies

Then you probably want to become familiar with the wonderful world of
profiles.

http://maven.apache.org/guides/introduction/introduction-to-profiles.htm
l

Chris

> -Original Message-
> From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 09 August, 2006 17:25
> To: 'Maven Users List'
> Subject: Optional Goals & Dependencies
> 
> I am trying to figure out a way to define optional goals 
> and/or dependencies. Is there a way to do this?
> 
>  
> 
> I am looking for something similar to the ability in ant to 
> only do a certain task if a certain property is set.
> 
> __
> 
> 
> Douglas W. Ferguson
> 
> EPSIIA - Another Fiserv Connection
> 
> Development
> 
> Office Phone: 512-329-0081 ext. 3309
> 
> Dial Toll Free: 800-415-5946
> 
> Mobile Phone: 512-293-7279
> 
> Fax: 512-329-0086
> 
> [EMAIL PROTECTED]
> 
> www.epsiia.com <http://www.epsiia.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]



BaseDir Equivalent

2006-08-10 Thread Douglas Ferguson
 Is there a maven equivalent to Ant's basedir?

 

With this project that I've talking about that has 100s of custom builds,
I'd like to use 1 POM file that uses a dynamic basedir that is set via a
property or profile.

 

Any thoughts?

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Optional Goals & Dependencies

2006-08-11 Thread Douglas Ferguson
I've gotten some of this behavior to work using profiles, however I still
need to be able to have compile/test compile/test/jar/assemble all use a
subdirectory based on a property. I could override the configurations for
all these plugins, but I was curious if there is anyway to set ${basedir}
which all these plugins base their default values on.

D-

-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 11:19 AM
To: 'Maven Users List'
Subject: RE: Optional Goals & Dependencies

I was just reading those pages. Hopefully I can get it to do what I want.

The problem I see right now is that you can only do certain things within
the pom file. 

For instance, I specifically need the developer to be able to designate the
version for dependencies.

Currently each client (there are hundreds) gets a custom build of the entire
application. In an attempt to make a step to something more sane, I want to
break this out into 2 steps, 1) platform build, 2) client build. The client
build would need to depend on the appropriate platform build. 

My initial thought was that the client specific code & configs would all be
1 module, broken down by client. Each client would have properties
indicating the version of the platform to be dependent on, etc. 

The only way I can think of doing is this is using system properties, since
dependencies must be defined the POM file and profiles can't define
properties that the POM file can read. BTW: What are those properties used
for?

If I did use system properties, is it possible to load properties into the
POM from a file? If not, it seems like my only answer it to provide a
wrapper script for mvn that passes parameters.

-Original Message-
From: Chris Hilton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 5:29 PM
To: Maven Users List
Subject: RE: Optional Goals & Dependencies

Then you probably want to become familiar with the wonderful world of
profiles.

http://maven.apache.org/guides/introduction/introduction-to-profiles.htm
l

Chris

> -Original Message-
> From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 09 August, 2006 17:25
> To: 'Maven Users List'
> Subject: Optional Goals & Dependencies
> 
> I am trying to figure out a way to define optional goals 
> and/or dependencies. Is there a way to do this?
> 
>  
> 
> I am looking for something similar to the ability in ant to 
> only do a certain task if a certain property is set.
> 
> __
> 
> 
> Douglas W. Ferguson
> 
> EPSIIA - Another Fiserv Connection
> 
> Development
> 
> Office Phone: 512-329-0081 ext. 3309
> 
> Dial Toll Free: 800-415-5946
> 
> Mobile Phone: 512-293-7279
> 
> Fax: 512-329-0086
> 
> [EMAIL PROTECTED]
> 
> www.epsiia.com <http://www.epsiia.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]



Resource Plugin

2006-08-11 Thread Douglas Ferguson
I can't find any documentation on how to change the default location of the
resources plugin.

 

I checked out the code and it declares ${project.resources}.
But this is a list of resource objects. I'd like to just change the
directory from ${basedir}/src/main/resources ->
${basedir}/${someotherdir}/src/main/resources

 

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



Codehaus

2006-08-11 Thread Douglas Ferguson
Where can I find documentation on the codehaus plugins?

 

I stumbled upon the codehaus dependency plugin when the apache one didn't
seem to work.

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



BuildDate/Time

2006-08-11 Thread Douglas Ferguson
Is there an alternative to using this
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html?

 

It's all I could find and it seems a bit "clunky".

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Optional Goals & Dependencies

2006-08-14 Thread Douglas Ferguson
I agree, however I don't want to create 100 poms. 
That just isn't manageable, especially since they all need similar assemply
logic.

D-

-Original Message-
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 12, 2006 2:52 AM
To: users@maven.apache.org
Subject: RE: Optional Goals & Dependencies


> I still need to be able to have compile/test compile/test/jar/assemble 
> all use a subdirectory based on a property. 

I think the "maven" way to do this might be to make your subdirectories into
separate projects with their own pom and artifact.
-- 
View this message in context:
http://www.nabble.com/Optional-Goals---Dependencies-tf2081628.html#a5773604
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: Resource Plugin

2006-08-14 Thread Douglas Ferguson
Hey,

I wasn't so much knocking the documentation. I ended up finding this info in
the pom model. I found it kind of difficult to find actually. 

D-

-Original Message-
From: franz see [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 12, 2006 4:23 AM
To: users@maven.apache.org
Subject: Re: Resource Plugin




Douglas Ferguson wrote:
> 
> I can't find any documentation on how to change the default location of
> the
> resources plugin.
> 
>  
> 
> I checked out the code and it declares ${project.resources}.
> But this is a list of resource objects. I'd like to just change the
> directory from ${basedir}/src/main/resources ->
> ${basedir}/${someotherdir}/src/main/resources
> 
>  
> 
>  
> 
> __
> 
> 
> Douglas W. Ferguson
> 
> EPSIIA - Another Fiserv Connection
> 
> Development
> 
> Office Phone: 512-329-0081 ext. 3309
> 
> Dial Toll Free: 800-415-5946
> 
> Mobile Phone: 512-293-7279
> 
> Fax: 512-329-0086
> 
> [EMAIL PROTECTED]
> 
> www.epsiia.com <http://www.epsiia.com/> 
> 
> __
> 
>  
> 
> 
> 


Good day to you Douglas,

You can try out [1] for more info regarding maven-resources-plugin. That
documentation is still being reviewed and is still not final, but it's good
enough (i think).

Anyway, to answer your question add the following to your pom:


  [...]
  

  [..a resource directory...]
  [..another resource directory...]

  
  [...]


Also, if you have some comments regarding the documentation, it would be
greatly appreciated ^_^ 

Thanks a bunch and goodluck to you
- Franz

Ref:
[1] http://people.apache.org/~aramirez/maven-resources-plugin/
-- 
View this message in context:
http://www.nabble.com/Resource-Plugin-tf2092205.html#a5774084
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: Optional Goals & Dependencies

2006-08-14 Thread Douglas Ferguson
Correct me if I'm wrong but I need to support goal customization in the
parent pom.

I am defining custom assembly, custom ant tasks, etc. 

D-

-Original Message-
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 11:01 AM
To: users@maven.apache.org
Subject: RE: Optional Goals & Dependencies


> I agree, however I don't want to create 100 poms. 
> That just isn't manageable, especially since they all need similar
> assemply
> logic.

That's where project inheritance is truly useful.  You can put all the
common logic in one parent pom, and have your tiddlers all define only local
things (e.g. just the artifactId, and a reference to the parent).  I don't
have 100 dependencies to manage this way, but I do have 20 (and climbing). 
It's pretty sweet when you get your head round it.

One thing I find very useful is to be able to specify the extra meta data
(url, name, description) for the artifacts that I am installing / deploying
- it makes the dependency report of my main project much more readable.
-- 
View this message in context:
http://www.nabble.com/Optional-Goals---Dependencies-tf2081628.html#a5799178
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: Optional Goals & Dependencies

2006-08-14 Thread Douglas Ferguson
Wow.. I just tried it and the goals are inherieted too. This is really cool.

However, now I only really need those goals to execute on the children. Is
there a way to bind & configure the goals in the parent but only have them
execute in the children?  

D-

-Original Message-
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 11:01 AM
To: users@maven.apache.org
Subject: RE: Optional Goals & Dependencies


> I agree, however I don't want to create 100 poms. 
> That just isn't manageable, especially since they all need similar
> assemply
> logic.

That's where project inheritance is truly useful.  You can put all the
common logic in one parent pom, and have your tiddlers all define only local
things (e.g. just the artifactId, and a reference to the parent).  I don't
have 100 dependencies to manage this way, but I do have 20 (and climbing). 
It's pretty sweet when you get your head round it.

One thing I find very useful is to be able to specify the extra meta data
(url, name, description) for the artifacts that I am installing / deploying
- it makes the dependency report of my main project much more readable.
-- 
View this message in context:
http://www.nabble.com/Optional-Goals---Dependencies-tf2081628.html#a5799178
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]



Profile Inheritance

2006-08-14 Thread Douglas Ferguson
Are profiles inherited from the parent pom?

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Profile Inheritance

2006-08-14 Thread Douglas Ferguson
I think this may explain what I was seeing..

I have a parent pom.xml which defines 2 profiles. When I run mvn
help:active-profiles for the child, I couldn't get it to say that either
profile was active.

So perhaps the profile is active in the parent but not in the child?



-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 3:20 PM
To: Maven Users List
Subject: Re: Profile Inheritance

Actually, profiles themselves are NOT inherited as such. Instead, they are
triggered when the parent POM delcaring them is loaded, and applied to that
parent POM. Then, the effects of the profile are inherited via normal parent
inheritance calculation.

It's a small difference in most cases, but it can be important to
understand.

-john

On 8/14/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
> On 8/14/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
> >
> > Are profiles inherited from the parent pom?
>
>
> They are supposed to be, although there have been a few issues here and
> there.  The one that bit us (Shale project) was MNG-2221[1], which looks
> like it's been fixed for 2.0.5 when that is released.
>
> Craig
>
> [1] http://jira.codehaus.org/browse/MNG-2221
>
>
> __
> >
> >
> > Douglas W. Ferguson
> >
> > EPSIIA - Another Fiserv Connection
> >
> > Development
> >
> > Office Phone: 512-329-0081 ext. 3309
> >
> > Dial Toll Free: 800-415-5946
> >
> > Mobile Phone: 512-293-7279
> >
> > Fax: 512-329-0086
> >
> > [EMAIL PROTECTED]
> >
> > www.epsiia.com <http://www.epsiia.com/>
> >
> > __
> >
> >
> >
> >
> >
>
>


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



RE: Profile Inheritance

2006-08-14 Thread Douglas Ferguson
I'm only running this build from each child.
I'm using the parent for inheritance.
The parent doesn't even define the children as there are 100s.

If I have:

2 poms: pom a & pom b
Pom b declare pom a as it's parent.
Pom a has 2 profiles decared in it.
I run mvn -Pprofile1 from pom b's directory will profile1 activate for the
loading of pom a?

When I run mvn -Pprofile1 help:active-profiles it doesn't show. 

D-

-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 4:25 PM
To: Maven Users List
Subject: Re: Profile Inheritance

right. if you ran from the parent, and the parent specified these child POMs
as modules (or sub-modules), then you'd get a listing of all POMs in the
build, and the profiles which are active for each.

On 8/14/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
>
> I think this may explain what I was seeing..
>
> I have a parent pom.xml which defines 2 profiles. When I run mvn
> help:active-profiles for the child, I couldn't get it to say that either
> profile was active.
>
> So perhaps the profile is active in the parent but not in the child?
>
>
>
> -Original Message-
> From: John Casey [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 14, 2006 3:20 PM
> To: Maven Users List
> Subject: Re: Profile Inheritance
>
> Actually, profiles themselves are NOT inherited as such. Instead, they are
> triggered when the parent POM delcaring them is loaded, and applied to
> that
> parent POM. Then, the effects of the profile are inherited via normal
> parent
> inheritance calculation.
>
> It's a small difference in most cases, but it can be important to
> understand.
>
> -john
>
> On 8/14/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> >
> > On 8/14/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
> > >
> > > Are profiles inherited from the parent pom?
> >
> >
> > They are supposed to be, although there have been a few issues here and
> > there.  The one that bit us (Shale project) was MNG-2221[1], which looks
> > like it's been fixed for 2.0.5 when that is released.
> >
> > Craig
> >
> > [1] http://jira.codehaus.org/browse/MNG-2221
> >
> >
> > __
> > >
> > >
> > > Douglas W. Ferguson
> > >
> > > EPSIIA - Another Fiserv Connection
> > >
> > > Development
> > >
> > > Office Phone: 512-329-0081 ext. 3309
> > >
> > > Dial Toll Free: 800-415-5946
> > >
> > > Mobile Phone: 512-293-7279
> > >
> > > Fax: 512-329-0086
> > >
> > > [EMAIL PROTECTED]
> > >
> > > www.epsiia.com <http://www.epsiia.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]



eclipse

2006-08-15 Thread Douglas Ferguson
When using eclipse for multi-module projects:

 

If I am working on 2 modules at the same time, is there anyway to have
eclipse resolve dependencies without having to install them to the maven
repository?

 

When using the m2 plugin, is there an easy way to add a local
dependency/parent/or submodule?

 

When using the m2 plugin, do I have to configure all the goals I need to run
per module? Since the basedir has to be set it seems like you have to
configure all your modules and all the goals you want to run.

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



eclipse part 2

2006-08-15 Thread Douglas Ferguson
I'm also having weird compile issues.

If I run the m2 plugin with the compile goal everything works fine.
But the eclipse auto builder complains about a class from my other module
that I am depend on. The strange thing is that even though it shows up in
the errors, the class still seems to get built and appears in the target
directory.



-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 15, 2006 5:47 PM
To: 'Maven Users List'
Subject: eclipse

When using eclipse for multi-module projects:

 

If I am working on 2 modules at the same time, is there anyway to have
eclipse resolve dependencies without having to install them to the maven
repository?

 

When using the m2 plugin, is there an easy way to add a local
dependency/parent/or submodule?

 

When using the m2 plugin, do I have to configure all the goals I need to run
per module? Since the basedir has to be set it seems like you have to
configure all your modules and all the goals you want to run.

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com <http://www.epsiia.com/> 

__

 



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



RE: eclipse

2006-08-16 Thread Douglas Ferguson
I did this and when I first opened the projects I noticed that there was a
now a project dependency and everything is compile.

However, I just checked again and the dependency isn't showing up but it is
still compiling? What could make the project dependency disappear.

I did try the "update src directory" in the m2 plugin trying to figure out
what that did.

BTW: I am still curious if you can add local dependencies. With the add
dependency it seems like it just searches central.

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 15, 2006 6:51 PM
To: Maven Users List
Subject: Re: eclipse

If you run 'mvn eclipse:eclipse' from the top level of your project (as 
opposed to running it individually for each module), the  maven eclipse 
plugin will create "project dependencies" rather than dependencies on 
the jar files in the repository.

I would start by checking to see if you currently have "project 
dependencies" or if you have dependencies on jars.

-Max

Douglas Ferguson wrote:
> When using eclipse for multi-module projects:
> 
>  
> 
> If I am working on 2 modules at the same time, is there anyway to have
> eclipse resolve dependencies without having to install them to the maven
> repository?
> 
>  
> 
> When using the m2 plugin, is there an easy way to add a local
> dependency/parent/or submodule?
> 
>  
> 
> When using the m2 plugin, do I have to configure all the goals I need to
run
> per module? Since the basedir has to be set it seems like you have to
> configure all your modules and all the goals you want to run.
> 
>  
> 
> __
> 
> 
> Douglas W. Ferguson
> 
> EPSIIA - Another Fiserv Connection
> 
> Development
> 
> Office Phone: 512-329-0081 ext. 3309
> 
> Dial Toll Free: 800-415-5946
> 
> Mobile Phone: 512-293-7279
> 
> Fax: 512-329-0086
> 
> [EMAIL PROTECTED]
> 
> www.epsiia.com <http://www.epsiia.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]



Nested Projects

2006-08-16 Thread Douglas Ferguson
I have a bunch of projects and would like to try and organize them into
different directories.


I read that there are problems with eclipse when doing this, however the
example they gave was one where the parent actually built an artifact.

In my case, I am interested in having a hierarchy like this.

 

Parent pom / sub module1

Parent pom / sub pom / sub module 2

Parent pom / sub pom / sub module 3

 

 

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: [m2] eclipse:eclipse and eclipse 3.2 projects within a project support.

2006-08-16 Thread Douglas Ferguson
Does anybody have any experience switching between project dependencies and
jar dependencies?

I assume that if you are working on multiple modules at the same time the
project dependencies would be necessary, but then when you are working on 1
specific module that may use an older version (non trunk) or another module,
then jar dependencies would be needed. 

Do you have to keep using mvn eclipse:eclipse all the time? 


-Original Message-
From: Barrie Treloar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 5:50 PM
To: Maven Users List
Subject: Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project
support.

On 8/17/06, Max Cooper <[EMAIL PROTECTED]> wrote:
> I, too, have been anxiously awaiting hierarchical project support in
> Eclipse. And I thought that it was going to be available in Eclipse 3.2.
>
> But this feature was omitted from the Eclipse 3.2 release. The feature
> is not available yet.

You can do it, I was able to manually create another project pointing
to one that was already in the workspace and a subdirectory of that
project.

i.e

project_root/
- module1
- module2

I was able to have in Eclipse a project for "project_root" as well as
create one manually for module1 and module2 so that they appear in the
project list.

But I can't figure out what Eclipse does under the covers for that,
there are no docs that I could find in the help or googling, and I
can't see in the source code of the eclipse:eclipse plugin whether it
is attempting 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]



Eclipse Plugin

2006-08-17 Thread Douglas Ferguson
Something happened recently that is preventing me from adding dependcies
from the plugin. It says that a file index/local/segments is missing.

I created the file but then it complains that about it being empty.




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



including classes from a dependent jar

2006-08-17 Thread Douglas Ferguson
I have a module that needs to build a jar file from a subset of classes from
other modules.

 

Any suggestions on a clean way to do this?

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: including classes from a dependent jar

2006-08-17 Thread Douglas Ferguson
I just came up with a plan of attack:

1) Use the dependency:unpack goal.
2) Then update the jar plugin config to use the unpack dir.

-Original Message-
From: Donald Ness [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:40 PM
To: Maven Users List
Subject: RE: including classes from a dependent jar

You could try using the ant plugin:

  
maven-antrun-plugin

  
package

  


  


  run

  

  

I'm not sure how well this will work for you, since you need to pull
classes from other modules, but you may be able to tweak this to suit
your needs. You could add several more jar tasks with basedirs pointing
to your other modules, keeping destfile the same and update set to true.

--Don

-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:24 PM
To: 'Maven Users List'
Subject: including classes from a dependent jar

I have a module that needs to build a jar file from a subset of classes
from
other modules.

 

Any suggestions on a clean way to do this?

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com <http://www.epsiia.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: including classes from a dependent jar

2006-08-17 Thread Douglas Ferguson
This works but I can't control the files that get put into the jar, because
the jar plugin includes everything.

I could probably use the assembly plugin or maybe call and ant task to
delete unneeded files.

If I use the assembly plugin can I disable the normal jar that gets created?

-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:43 PM
To: 'Maven Users List'
Subject: RE: including classes from a dependent jar

I just came up with a plan of attack:

1) Use the dependency:unpack goal.
2) Then update the jar plugin config to use the unpack dir.

-Original Message-
From: Donald Ness [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:40 PM
To: Maven Users List
Subject: RE: including classes from a dependent jar

You could try using the ant plugin:

  
maven-antrun-plugin

  
package

  


  


  run

  

  

I'm not sure how well this will work for you, since you need to pull
classes from other modules, but you may be able to tweak this to suit
your needs. You could add several more jar tasks with basedirs pointing
to your other modules, keeping destfile the same and update set to true.

--Don

-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:24 PM
To: 'Maven Users List'
Subject: including classes from a dependent jar

I have a module that needs to build a jar file from a subset of classes
from
other modules.

 

Any suggestions on a clean way to do this?

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com <http://www.epsiia.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: including classes from a dependent jar

2006-08-17 Thread Douglas Ferguson
I set the packaging for the project to pom to prevent the jar creation. Then
I used the assembly to build my jar. Does this sound sane?

D-

-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 5:08 PM
To: 'Maven Users List'
Subject: RE: including classes from a dependent jar

This works but I can't control the files that get put into the jar, because
the jar plugin includes everything.

I could probably use the assembly plugin or maybe call and ant task to
delete unneeded files.

If I use the assembly plugin can I disable the normal jar that gets created?

-Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:43 PM
To: 'Maven Users List'
Subject: RE: including classes from a dependent jar

I just came up with a plan of attack:

1) Use the dependency:unpack goal.
2) Then update the jar plugin config to use the unpack dir.

-Original Message-
From: Donald Ness [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:40 PM
To: Maven Users List
Subject: RE: including classes from a dependent jar

You could try using the ant plugin:

  
maven-antrun-plugin

  
package

  


  


  run

  

  

I'm not sure how well this will work for you, since you need to pull
classes from other modules, but you may be able to tweak this to suit
your needs. You could add several more jar tasks with basedirs pointing
to your other modules, keeping destfile the same and update set to true.

--Don

-----Original Message-
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 17, 2006 4:24 PM
To: 'Maven Users List'
Subject: including classes from a dependent jar

I have a module that needs to build a jar file from a subset of classes
from
other modules.

 

Any suggestions on a clean way to do this?

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com <http://www.epsiia.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]



el-ri & el-api

2006-08-18 Thread Douglas Ferguson
I am converting a project that is using these jars but I can't find any
version info. Does anybody know how I can find this?

 

I found a connection to glassfish but couldn't find any version information
there.

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



Repositories

2006-08-18 Thread Douglas Ferguson
Does anybody have a list of alternative repositories?

 

Ibiblio seems to not have some things, i.e. latest myfaces.

 

I did find this which is pretty cool.
https://maven2-repository.dev.java.net/

 

__


Douglas W. Ferguson

EPSIIA - Another Fiserv Connection

Development

Office Phone: 512-329-0081 ext. 3309

Dial Toll Free: 800-415-5946

Mobile Phone: 512-293-7279

Fax: 512-329-0086

[EMAIL PROTECTED]

www.epsiia.com  

__

 



RE: Repositories

2006-08-18 Thread Douglas Ferguson
Where can I get the snapshot?

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 5:04 PM
To: Maven Users List
Subject: Re: Repositories

On 8/18/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:

> Does anybody have a list of alternative repositories?
>
> Ibiblio seems to not have some things, i.e. latest myfaces.

Sorry about that.  As I understand it, 1.1.3 has a problem that
prevented wider distribution.  If you need it, it's in a staging repo.
 See this page:
  http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven

But at this point, I'd advise using 1.1.4-SNAPSHOT.  We're working to
get MyFaces Core 1.1.4 released, and it will be available on ibiblio.

> I did find this which is pretty cool.
> https://maven2-repository.dev.java.net/

I seem to recall hearing that they were going to sync a java.net repo
with ibiblio... is there anything in that one that is not in ibiblio?

-- 
Wendy

-
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: Use System Properties in Settings.xml?

2006-08-22 Thread Douglas Ferguson
Do variables defined in the pom work too? 

Which xml files can use variables like this? 

I remember trying a variable inside of a profile.xml and it didn't work. But
I think the varaiable was defined in the pom and not and environment
variable.

-Original Message-
From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 8:15 PM
To: 'Maven Users List'
Subject: RE: Use System Properties in Settings.xml?

Yes, this works like below, where MAVEN_HOME is a environment
variable :

${MAVEN_HOME}/repository


-Original Message-
From: SingleShot [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 10:53 PM
To: users@maven.apache.org
Subject: Use System Properties in Settings.xml?


Is it possible to use system properties in the settings.xml? From playing
around it appears it is not possible, but I thought I would ask. I would
like to do something like this:

$MAVEN_HOME/../../repository

Thanks,

Mike
-- 
View this message in context:
http://www.nabble.com/Use-System-Properties-in-Settings.xml--tf2128523.html#
a5874009
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]



Jar With Dependencies

2006-08-22 Thread Douglas Ferguson
Does anybody have a suggestion for creating a jar with dependencies that has 
all the dependencies exploded?

We have a module that is a composite of a bunch our other modules, the purpose 
of this is for our client who are using java integration rather than web 
integration. 

If I send them a jar with dependencies, then they would have to crack the jar 
open, because the classloader won't read a jar within a jar.

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



RE: Assembly plugin issues

2006-08-22 Thread Douglas Ferguson
When using the dependencySet, can you exclude individual class files or are you 
limited to excluding specific artifacts. 
 
- Original Message -
From: Barrie Treloar 
Sent: Tue, 8/22/2006 7:03pm
To: Maven Users List 
Subject: Re: Assembly plugin issues 
 
 
On 8/22/06, Owen Jacobson <[EMAIL PROTECTED]> wrote:
> > However I have one last thing to try:
> > I notice that you have two moduleSet declarations.
> > Can you not collapse them into one? which contains both the source and
> > the binary sections?
> >
> > I suspect that might be the problem.
>
> Just for grins I tried this anyways.  It still duplicated the
> foo-1.3-SNAPSHOT part of the assembly-relative path.

As I mentioned I don't use moduleSets.
I use dependencySets and I have a module whose sole job is to pull all
the dependencies I want together to form a super-archive.

You might want to look into that instead.

Also look at the source plugin
http://maven.apache.org/plugins/maven-source-plugin/ which will build
a source archive and attach it as part of your build process.  Then in
your assembly you pull in the dependency with the source classifier.

See
http://www.nabble.com/forum/ViewPost.jtp?post=5496323&framed=y

I can't find any more appropriate posts, so I'll include some more details:

My project layout is:
ROOT/
- pom.xml
- module1
- moduleN
- -build
  - pom.xml

In -build/pom.xml I have:


my.group
module1Artifact
1.0-SNAPSHOT
zip


my.group
module2Artifact
1.0-SNAPSHOT
bin
zip


my.group
module3Artifact
1.0-SNAPSHOT
bin
zip


my.group
module4Artifact
1.0-SNAPSHOT
ear



So my main build collects 4 artifacts:
- a client side eclipse RCP (artifact1) as a zip
- 2 standalone applications (artifact2, artifact3) as binary builds
(these are the attached binary assemblies created when you install
artifact2 and artifact3)
- an ear file (artifact4)

My assembly in -build/src/main/assembly/bin.xml:

bin


zip

true


  false
  
${artifactId}-${baseVersion}.${extension}
  

commons-beanutils:commons-beanutils

  commons-beanutils:commons-beanutils-bean-collections
commons-beanutils:commons-beanutils-core
commons-collections:commons-collections
commons-configuration:commons-configuration
commons-digester:commons-digester
commons-lang:commons-lang
commons-logging:commons-logging
easyconf:easyconf
log4j:log4j
weblogic:weblogic
xstream:xstream
  




You need all those excludes because you dependency on the binary
artifact also depends upon the jars which get included even though
those same jars have already been included in the binary assembly.


So, by using the source jar which will install an artifact with
classified "sources" you should be able to use the above information
to craft your own assemblies to pull in the source version of your
artifact you want.

-
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: Assembly plugin issues

2006-08-23 Thread Douglas Ferguson
I am not sure I follow, dependencySet is in the assembly.xml. 
 
Can you give an example tag you'd need to add the the xml below to get it to 
exclude 1 class file that is picked up from the dependencySet below? 
 
- Original Message -
From: Barrie Treloar 
Sent: Tue, 8/22/2006 11:54pm
To: Maven Users List 
Subject: Re: Assembly plugin issues 
 
 
On 8/23/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
> When using the dependencySet, can you exclude individual class files or are 
> you limited to excluding specific artifacts.

dependency set excludes specific dependencies.

When you create your assembly that is the place to exclude any files
that you don't want in your assembly.

-
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: Jar With Dependencies

2006-08-23 Thread Douglas Ferguson
Sure, I'd love to see that script. 
 
- Original Message -
From: Arnaud Bailly 
Sent: Wed, 8/23/2006 2:01am
To: Maven Users List 
Subject: Re: Jar With Dependencies 
 
 
Douglas Ferguson <[EMAIL PROTECTED]> writes:

> Does anybody have a suggestion for creating a jar with dependencies
> that has all the dependencies exploded?

There is an  tag in assembly descriptor that does this.
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

>
> If I send them a jar with dependencies, then they would have to crack
> the jar open, because the classloader won't read a jar within a jar.
>

I think that classworlds can do this. You could also write a simple
wrapper classloader that launches your application. I did this once to
ensure platform-independent classpath resolution as I could not write
a script in windows that would add a list of jars in one lib to
classpath (not an expert rin windows scripting obviously). 
If you are interested by this small snippet, I can send you.

BTW, IBM released recently a tool for doing just that kind of things
(loading jars from jars). Lost references to it.

regards

-- 
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.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: Building ear, war without including resources (Maven 2.0)

2006-08-23 Thread Douglas Ferguson
Could you set the scope on the dependency to compile?

D-

-Original Message-
From: Jim Stafford [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 23, 2006 12:11 PM
To: Maven Users List
Subject: Re: Building ear, war without including resources (Maven 2.0)

This post shows a code-snippet of how one might do it. I wish I knew of 
a better way to refer to a specific dependency jar file within Ant so 
that I didn't need the crude use of fileset. Of course, I also wish the 
assmebly plugin had direct support for this use case as well.

http://www.nabble.com/Maven-2.0---Common-resource-problem-tf2146290.html#a5926085


Marco Mistroni wrote:

> Hi,
>  have same situation in my company.
> the quick fix i did was to use the maven-antrun-plugin to copy the 
> content
> of those 'resource's directories int he target\ directory of my project
>
> that was my quick fix, i m sure some maven guru on the list will have a
> better solution
>
> hth
> marco
>
> On 8/23/06, daniele pirola <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>> I am novice in Maven.
>> I try to investigate if my company projects could be migrated to Maven
>> and I have a question.
>> We have building many projects creating ear files or war files without
>> the corresponding resources,
>> that is for example we deploy an application with an ear file and a
>> separate directory called 'etc' with the
>> application resources (the directory of course is in the CLASSPATH of
>> the server).
>> This is done principally to permit changing a property value without to
>> have to redeploy the application
>> (the application refresh the configuration at intervals).
>>
>> So the question is:
>> can we do this type of build with Maven in an easy way?
>> Or we have to write for example our own compile plugin or call an Ant
>> task to perform the splitting?
>>
>> (Also notice that the resources we have to bundle must be filtered and
>> not only copied).
>>
>> Thanks.
>>
>> -- 
>> Daniele Pirola
>> ICTeam S.p.A
>>
>>
>> -
>> 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: Building MyEclipse project with Maven2

2006-08-23 Thread Douglas Ferguson
Just curious what the plugin does to specifically deal with wtp?

Also, what does update sources do?

D-

-Original Message-
From: Denis Cabasson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 23, 2006 8:48 AM
To: users@maven.apache.org
Subject: Re: Building MyEclipse project with Maven2




Konstantin Bartchenkov wrote:
> 
> Hi Guys,
> 
> I'm having a problem building myEclipse project using m2.
> The main issue is that it's not in default maven file structure.
> 

I don't know exactly what myEclipse is, but your porject looks a lot like a
WTP project to me.

In this case, I'd advocate for the maven file structure, with the
maven-eclipse-plugin being able to generate correct eclipse settings so that
WTP can correctly recognize your project structure.

See:
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html

Cheers!

Denis
-- 
View this message in context: 
http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810
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: Jar With Dependencies

2006-08-23 Thread Douglas Ferguson
Ah.. that's nifty.

However, this is not a console app. These are our java apis that we are sending 
the client. They need to add this jar to their classpath.

Here's a simplified example what we have:

Common.jar
Persistence.jar
WSA.jar
Client.jar

Where Client.jar is just a composite module with dependencies on Common, 
Persistence, WSA.

I think the trick is to use the assembly plug and set unpack to true.
However, if someone else knows another trick.

D-



-Original Message-
From: Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 23, 2006 8:38 AM
To: Maven Users List
Subject: Re: Jar With Dependencies

Douglas Ferguson <[EMAIL PROTECTED]> writes:

> Sure, I'd love to see that script. 

import java.io.File;
import java.io.FileFilter;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class Lanceur implements Runnable {

private static final Log LOG = LogFactory.getLog(Lanceur.class);

/*
 * the command line arguments array
 */
private String[] arguments;

/*
 * the exit status
 * 
 */
private int status = 0;

/*
 * class loader constructed by this lanceur
 */
private URLClassLoader loader;

public static void main(String[] argv) {
if(argv.length == 0)
   System.exit(1); 
/* first argument is real lanucher class */
String real = argv[0];
Class realC = Class.forName(real);
/* shift les arguments */
String[] nargs = new String[argv.length - 1];
if (nargs.length != 0) {
System.arraycopy(arguments, 1, nargs, 0, nargs.length);
}   
Lanceur l = (Lanceur)realC.newInstance();
l.setArguments(argv);
l.run();
}

public void run() {
/* extraction du repertoire */
String libdir = System.getProperty("libdir","..\\lib");
if (libdir == null) {
LOG.error("Definir le repertoire contenant les 
bibliotheques : -Dlibdir=");
setStatus(1);
return;
}
/* verifications */
File f = new File(libdir);
if (!f.exists()) {
LOG.error("Le repertoire" + libdir + " n'existe pas");
setStatus(2);
return;
}
if (!f.isDirectory()) {
LOG.error(libdir + " n'est pas un repertoire");
setStatus(2);
return;
}
if (!f.canRead()) {
LOG.error("Le contenu de " + libdir + " ne peut etre 
lu");
setStatus(2);
return;
}
/* extraction du nom de la classe principale */
String clname = System.getProperty("main","Main");
if (clname == null)
clname = "Main";
/* construction du classpath */
File[] jars = f.listFiles(new FileFilter() {

public boolean accept(File pathname) {
return pathname.getName().endsWith(".jar")
|| 
pathname.getName().endsWith(".zip");
}

});
int ln = jars.length;
URL[] urls = new URL[ln + 1];
/* ajout du repertoire courant par defaut*/
try {
urls[0] = new URL("file://.");
} catch (MalformedURLException e) {
LOG.error("Impossible d'ajouter . au classpath : "
+ e.getLocalizedMessage());
}
for (int i = 0; i < ln; i++)
try {
handleJar(jars[i]);
urls[i] = new URL("file://" + 
jars[i].getPath());
} catch (MalformedURLException e) {
LOG.error("Impossible d'ajouter . au classpath 
: "
+ e.getLocalizedMessage());
}
/* chargement */
loader = new URLClassLoader

Cargo & Tomcat

2006-08-23 Thread Douglas Ferguson
Anybody using cargo with tomcat?

 

I’m curious about how you deal with quick dev cycle changes where you
might want to push 1 file but don’t want to do an entire build to do so.

 

D-




RE: Cargo & Tomcat

2006-08-23 Thread Douglas Ferguson
I just located tomcat-maven-plugin at codehaus and cargo doesn’t seem to be 
listed. Is tomcat-maven-plugin the cargo replacement?

Also, in the maven book, I read about a continuous deploy for jetty. Is there 
anything like that available for tomcat?

-Original Message-
From: Douglas Ferguson 
Sent: Wednesday, August 23, 2006 3:44 PM
To: users
Subject: Cargo & Tomcat

Anybody using cargo with tomcat?

 

I’m curious about how you deal with quick dev cycle changes where you
might want to push 1 file but don’t want to do an entire build to do so.

 

D-




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



RE: Cargo & Tomcat

2006-08-23 Thread Douglas Ferguson
Where can I find the cargo docs?

Also, do you ever do any "file deploys". I.E. After updating just 1 jsp...

-Original Message-
From: Heck, Joe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 23, 2006 4:11 PM
To: Maven Users List
Subject: RE: Cargo & Tomcat

We've been using Cargo to deploy out WARs to instances of tomcat on
local dev boxes beautifully.

The relevant stanza we're using:


  org.codehaus.cargo
  cargo-maven2-plugin
  

  tomcat5x
  c:/apps/stock-tomcat-5.0.28


  c:/apps/stock-tomcat-5.0.28

  


Although there's a lot more information on the cargo plugin site for
options and how-to.

-joe

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Douglas Ferguson
Sent: Wednesday, August 23, 2006 1:59 PM
To: users
Subject: RE: Cargo & Tomcat

I just located tomcat-maven-plugin at codehaus and cargo doesn't seem to
be listed. Is tomcat-maven-plugin the cargo replacement?

Also, in the maven book, I read about a continuous deploy for jetty. Is
there anything like that available for tomcat?

-----Original Message-
From: Douglas Ferguson 
Sent: Wednesday, August 23, 2006 3:44 PM
To: users
Subject: Cargo & Tomcat

Anybody using cargo with tomcat?

 

I'm curious about how you deal with quick dev cycle changes where you
might want to push 1 file but don't want to do an entire build to do so.

 

D-




-
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]



Distribution Management

2006-08-24 Thread Douglas Ferguson
I am looking into setting up an internal repository which would be used
for retrieving artifacts built by other members of the team and also
other 3rd party libs that aren’t available at ibiblio. 

 

If I am reading correctly, I have to define this in 4 places.

 

1)   server defined in settings.xml to setup the user/pass for ssh

2)   distribution management in the parent pom file 

3)   repository section in settings.xml

4)   pluginRepository section in settings.xml

 

I noticed that all of these locations have id, name, & url. Can I just
put the name and url I nthe server setting then reference id in the
other 3 places?

 

D-




RE: Distribution Management

2006-08-24 Thread Douglas Ferguson
Distribution Management has to be in the pom right? 
 
- Original Message -
From: Eric Redmond 
Sent: Thu, 8/24/2006 6:06pm
To: Maven Users List 
Subject: Re: Distribution Management 
 
 
Nope, but you can create a property, and re-use it!

On 8/24/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
>
> I am looking into setting up an internal repository which would be used
> for retrieving artifacts built by other members of the team and also
> other 3rd party libs that aren't available at ibiblio.
>
>
>
> If I am reading correctly, I have to define this in 4 places.
>
>
>
> 1)   server defined in settings.xml to setup the user/pass for ssh
>
> 2)   distribution management in the parent pom file
>
> 3)   repository section in settings.xml
>
> 4)   pluginRepository section in settings.xml
>
>
>
> I noticed that all of these locations have id, name, & url. Can I just
> put the name and url I nthe server setting then reference id in the
> other 3 places?
>
>
>
> D-
>
>
>
>


-- 
Eric Redmond
http://codehaus.org/~eredmond

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



RE: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo

2006-08-25 Thread Douglas Ferguson
I also am using hierarchial projects. I got 3 levels deep and it works fine. It 
only creates project files for the leaf nodes. The parent poms (packaging=pom) 
will not get project files.

I am having 1 problem with eclipse:eclipse. I have a parent pom that isn't 
intended to be portable. It uses variables that prevent it from validating, 
however, I need it so my 100s of sub poms don't have to define the same stuff 
over and over. Anyway, eclipse:eclipse is barfing on some paths, just curious 
if there is a way to get it to be "less strict" or something.

-Original Message-
From: Barrie Treloar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 3:16 AM
To: Maven Users List
Subject: Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project 
suppo

On 8/25/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
> > Eclipse does not support hierarchical project  structures.
> >
> i thought eclipse 3.2 just introduced this new feature ...

Yes it does.
Hence my original post wondering how to get it to work.
The notes I posted worked for me.

Try to get it working manually to prove to yourself that it can be done.
Just checkout a multi-module project and then try to import the
modules as existing projects.
If you can't get that to work you may have other problems.

Then its just a matter of running mvn eclipse:eclipse from the root,
delete the root/.project file and doing the same steps again.

-
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]



Distribution Management

2006-08-25 Thread Douglas Ferguson
If I define a repository in distribution management so that it deploys
to an internal repository.

 

Do I also have to define it as a repository a profile if I want team
mates to resolve dependences from that internal repository rather than
building source, or does having the distribution management add it for
dependence resolution?

 

Thanks,


D-




SCP Deploy

2006-08-25 Thread Douglas Ferguson
I just starting trying to do an SCP based deploy and for some reason it
is attempting to use my current user rather than the user I have set in
the settings.xml under server.

 



  



  internal

  user

  pass 



  



 

  

  

 

internal

Internal Repository

scp://vm2003e/repository/releases



 

internal

Internal Repository

scp://vm2003e/web-dev/repository/snapshots







  




m2eclipse & eclipse:eclipse

2006-08-25 Thread Douglas Ferguson
I have a few questsion about m2eclipse:
 
1) When configuring the external tool how do you specify a profile?
2) What settings.xml will get read? I am not sure that either my 
maven_install_dir/settings.xml or ~/.m2/settings.xml are getting read.
3) Can someone explain what update source directies does?

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



RE: m2eclipse & eclipse:eclipse

2006-08-28 Thread Douglas Ferguson
Yeah, I sorta came to the same conclusion, which makes the m2 external tool 
feature pretty useless to me.

I just started configuring eclipse to run mvn as an external tool and that 
works really well...

D-

-Original Message-
From: Chris Hilton [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 12:17 PM
To: Maven Users List
Subject: RE: m2eclipse & eclipse:eclipse


> -Original Message-
> From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 25 August, 2006 17:53
> To: Maven Users List
> Subject: m2eclipse & eclipse:eclipse
> 
> I have a few questsion about m2eclipse:
>  
> 1) When configuring the external tool how do you specify a profile?

Currently, I don't think you can. There's a bug open on it.
http://jira.codehaus.org/browse/MNGECLIPSE-173

> 2) What settings.xml will get read? I am not sure that either 
> my maven_install_dir/settings.xml or ~/.m2/settings.xml are 
> getting read.

At this point, neither is being read. Another bug.
http://jira.codehaus.org/browse/MNGECLIPSE-29

> 3) Can someone explain what update source directies does?

Sorry, don't know about this one.

Chris

-
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]



Tomcat Deploy

2006-08-28 Thread Douglas Ferguson
We just made the ant to maven switch and we lost our ability to do “file
deploy”. Which just amounted to copying the files into the context
directory. Cargo doesn’t appear to support this, does anybody have an
elegant solution? I could just write an ant script but I wanted to
piggyback based on the contextName which is already defined with our
cargo plugin…

 

Is it possible to define a custom goal without writing a plugin? I.E.
could I tie an ant run to a custom goal name?




RE: Tomcat Deploy

2006-08-28 Thread Douglas Ferguson
Maven 2.

I just saw that I could setup an specific execution in a profile, this would 
let me use the ant plugin. 

Any other ideas?

-Original Message-
From: Jeff Jensen [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 3:46 PM
To: 'Maven Users List'
Subject: RE: Tomcat Deploy

Maven 1 or 2?
 

-Original Message-----
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 3:45 PM
To: users
Subject: Tomcat Deploy

We just made the ant to maven switch and we lost our ability to do "file
deploy". Which just amounted to copying the files into the context
directory. Cargo doesn't appear to support this, does anybody have an
elegant solution? I could just write an ant script but I wanted to piggyback
based on the contextName which is already defined with our cargo plugin.

 

Is it possible to define a custom goal without writing a plugin? I.E.
could I tie an ant run to a custom goal name?




-
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: Ad: RE: Tomcat Deploy

2006-08-29 Thread Douglas Ferguson
Ah.. 
 
Just use this instead of cargo?
 
What's the benefit of Cargo if you can use this directly?
 
- Original Message -
From: Stefan Magnus Landrø 
Sent: Tue, 8/29/2006 1:48am
To: Maven Users List 
Subject: Ad: RE: Tomcat Deploy 
 
 
Hey Douglas, 

Try this plugin: http://mojo.codehaus.org/tomcat-maven-plugin/ 
There is a similar one for maven 1

"Jeff Jensen" <[EMAIL PROTECTED]> skrev 28.08.2006 
22:46:24:

> Maven 1 or 2?
> 
> 
> -----Original Message-
> From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 28, 2006 3:45 PM
> To: users
> Subject: Tomcat Deploy
> 
> We just made the ant to maven switch and we lost our ability to do "file
> deploy". Which just amounted to copying the files into the context
> directory. Cargo doesn't appear to support this, does anybody have an
> elegant solution? I could just write an ant script but I wanted to 
piggyback
> based on the contextName which is already defined with our cargo plugin.
> 
> 
> 
> Is it possible to define a custom goal without writing a plugin? I.E.
> could I tie an ant run to a custom goal name?
> 
> 
> 
> 
> -
> 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]



war:inplace

2006-08-29 Thread Douglas Ferguson
I found this task when looking into ways to just deploy static file
changes to tomcat rather than building a war and having tomcat rebuild
the context, etc. 

 

The only problem I have is that it generates files (WEB-INF & META-INF)
in my src directory. Is there a way to avoid this? 

Anybody using this feature or doing something different?

 

D-




RE: war:inplace

2006-08-29 Thread Douglas Ferguson
Hmm

Is there a turtorial somewhere?

D-

-Original Message-
From: Stefan Magnus Landrø [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 8:29 AM
To: Maven Users List
Subject: Re: war:inplace

Hi there,

Why don't you just use the eclipse WTP features? with wtp you can set up 
tomcat in eclipse, and deploy automatically on code changes

Douglas Ferguson <[EMAIL PROTECTED]> skrev 29.08.2006 15:26:36:

> I found this task when looking into ways to just deploy static file
> changes to tomcat rather than building a war and having tomcat rebuild
> the context, etc. 
> 
> 
> 
> The only problem I have is that it generates files (WEB-INF & META-INF)
> in my src directory. Is there a way to avoid this? 
> 
> Anybody using this feature or doing something different?
> 
> 
> 
> D-
> 
> 


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



Releasing Software

2006-08-29 Thread Douglas Ferguson
I have been playing with the release plugin and it is really cool. 

 

However, I am curious about how folks are applying process on top of the
tool.

 

If you are developing a snapshot and you are ready to release the new
version, then you run the release plugin.

What happens when qa finds a defect and now you have to re-release the
same version?

 

Here are some thoughts:

 

1)   QA could test snap shot builds, but how do you perform a
release since snapshot aren’t tagged and it could be difficult to know
you are releasing the same thing as a snapshot

2)   Perhaps use a qualifier i.e. RC in the version when you
release? This way you can manually increment as you build. Can
qualifiers still be present with –SNAPSHOT? Or is snapshot a specially
qualifier?

3)   Just release the software and if it needs to be re-released,
then release it again or release it with a new build number? 




RE: Releasing Software

2006-08-29 Thread Douglas Ferguson
When I referred to SNAPSHOT, I was talking about the actual module that you are 
building..

Say you have:

1.0-SNAPSHOT

And you go to release

Then release plugin prompts 1.0 
You change to 1.0RC1
Then release plugin promts 1.1-SNAPSHOT for the next version..

However could you do this..

1.0RC1-SNASHOT

Then release plugin prompts 1.0RC1?
But then I'm not sure if it will increment properly...

d-

-Original Message-
From: Riegel, Holger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 9:36 AM
To: Maven Users List
Subject: RE: Releasing Software

This is how I do it:

1. Create a release branch in your version control system (e.g.
Subversion or CVS).
2. Checkout the branch and use release:prepare and release:perform. The
tag name is some kind of x.yRCn, where n is the number of the relese
candidate. Just do bug fixing on the release branch, implement new
features on the trunk only.
3. Let QA do its work. Fix the reported bugs, release a new release
candidate.
4. If there are no more bugs found, rerelease the last release candidate
with the version number x.y. 

My advice: don' use snapshots for releases. The release plugin warns
you, if there are still snapshot dependencies in your poms. The reason
is that builds that use poms with snapshots cannot be reproduced: they
may yield another result when rebuilt later. 

Cheers, Holger

-Original Message-----
From: Douglas Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 4:15 PM
To: users
Subject: Releasing Software


I have been playing with the release plugin and it is really cool. 

 

However, I am curious about how folks are applying process on top of the
tool.

 

If you are developing a snapshot and you are ready to release the new
version, then you run the release plugin.

What happens when qa finds a defect and now you have to re-release the
same version?

 

Here are some thoughts:

 

1)   QA could test snap shot builds, but how do you perform a
release since snapshot aren't tagged and it could be difficult to know
you are releasing the same thing as a snapshot

2)   Perhaps use a qualifier i.e. RC in the version when you
release? This way you can manually increment as you build. Can
qualifiers still be present with -SNAPSHOT? Or is snapshot a specially
qualifier?

3)   Just release the software and if it needs to be re-released,
then release it again or release it with a new build number? 



-
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]



eclipse:eclipse - path problem

2006-08-29 Thread Douglas Ferguson
I am running into this problem.

 

http://jira.codehaus.org/browse/MECLIPSE-99

 

I am not sure I follow the last comment. It says to use
${pom.build.output.directory}.

Is this talking about a development fix?

 

Does anybody have a work around? Should I try to use the 2.3 snapshot?

 

 

 

D-

 




RE: Releasing Software

2006-08-29 Thread Douglas Ferguson
I've read that, but I must be missing something.

The incrementing happens if you use the deploy for a snapshot.

If you use the release plugin, you tell it the version to release.

-Original Message-
From: Barrie Treloar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 29, 2006 4:42 PM
To: Maven Users List
Subject: Re: Releasing Software

Read Better Builds with Maven.

It has a section on version numbering.
If you follow that standard Maven should be able to increment the
numbers for you.

And as someone rightly pointed out, you never re-release the same version.
Any changes made implies a new version, which would increment the RC number.

On 8/30/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
> When I referred to SNAPSHOT, I was talking about the actual module that you 
> are building..
>
> Say you have:
>
> 1.0-SNAPSHOT
>
> And you go to release
>
> Then release plugin prompts 1.0
> You change to 1.0RC1
> Then release plugin promts 1.1-SNAPSHOT for the next version..
>
> However could you do this..
>
> 1.0RC1-SNASHOT
>
> Then release plugin prompts 1.0RC1?
> But then I'm not sure if it will increment properly...
>
> d-
>
> -Original Message-
> From: Riegel, Holger [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 29, 2006 9:36 AM
> To: Maven Users List
> Subject: RE: Releasing Software
>
> This is how I do it:
>
> 1. Create a release branch in your version control system (e.g.
> Subversion or CVS).
> 2. Checkout the branch and use release:prepare and release:perform. The
> tag name is some kind of x.yRCn, where n is the number of the relese
> candidate. Just do bug fixing on the release branch, implement new
> features on the trunk only.
> 3. Let QA do its work. Fix the reported bugs, release a new release
> candidate.
> 4. If there are no more bugs found, rerelease the last release candidate
> with the version number x.y.
>
> My advice: don' use snapshots for releases. The release plugin warns
> you, if there are still snapshot dependencies in your poms. The reason
> is that builds that use poms with snapshots cannot be reproduced: they
> may yield another result when rebuilt later.
>
> Cheers, Holger
>
> -Original Message-
> From: Douglas Ferguson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 29, 2006 4:15 PM
> To: users
> Subject: Releasing Software
>
>
> I have been playing with the release plugin and it is really cool.
>
>
>
> However, I am curious about how folks are applying process on top of the
> tool.
>
>
>
> If you are developing a snapshot and you are ready to release the new
> version, then you run the release plugin.
>
> What happens when qa finds a defect and now you have to re-release the
> same version?
>
>
>
> Here are some thoughts:
>
>
>
> 1)   QA could test snap shot builds, but how do you perform a
> release since snapshot aren't tagged and it could be difficult to know
> you are releasing the same thing as a snapshot
>
> 2)   Perhaps use a qualifier i.e. RC in the version when you
> release? This way you can manually increment as you build. Can
> qualifiers still be present with -SNAPSHOT? Or is snapshot a specially
> qualifier?
>
> 3)   Just release the software and if it needs to be re-released,
> then release it again or release it with a new build number?
>
>
>
> -
> 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]



Cargo Goal

2006-08-29 Thread Douglas Ferguson
Cargo was working for me and suddenly it just stopped working and
starting giving this error:

 

The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist

 

 

The thing that is confuse is that is says 

 

Org.apache.maven.plugisn & maven-cargo-plugin

 

When I have:

 

  org.codehaus.cargo

  cargo-maven2-plugin

 

In my pom file.

 

D-




eclipse:eclipse war dependencies

2006-08-29 Thread Douglas Ferguson
Not sure if this is a bug or not, but it seems like eclipse:eclipse
ignores any dependencies on a war file.

 

D-




RE: eclipse:eclipse war dependencies

2006-08-29 Thread Douglas Ferguson
Just thought I would attempt to be more clear.
 
When I run eclipse:eclipse on a project that depends on jar files, the jar as 
well as any transitive dependencies are included in my .classpath file.
 
However, when I depend on a war file, I don't get any of my dependencies 
included in the .classpath file. Is this a known issue or expected behavior? Is 
it possible that my war file got deployed incorrectly?
 
D- 
 
- Original Message -
From: [EMAIL PROTECTED]
Sent: Tue, 8/29/2006 6:00pm
To: users 
Subject: eclipse:eclipse war dependencies 
 
 
Not sure if this is a bug or not, but it seems like eclipse:eclipse
ignores any dependencies on a war file.



D-

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



Can't release due to SNAPSHOT dependencies

2006-08-30 Thread Douglas Ferguson
I am using some snapshot plugins so it won’t let me release. 

 

I can understand not wanting to release because of a dependency on code
or library snapshots, but for I don’t have any issues with releasing
something that is dependent on a snapshot of a tool, like cargo. 

 

Is there a way around this?




eclipse:eclipse & wtp

2006-08-30 Thread Douglas Ferguson
BTW: I noticed that it actually supports 1.5.

 

But when I did so I got this error in my project. Not sure what it
means…

 

Severity and Description Path Resource  Location
Creation TimeId

Java compiler level does not match the version of the installed Java
project facet.framework Unknown
1156948862132 20524

 

  _  

From: Stefan Magnus Landrø [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:10 AM
To: Douglas Ferguson
Subject: Ad: wtp

 


Hi Douglas, 

just came across this in one of my poms. This is probably the best
solution. 

 
 
 
 
org.apache.maven.plugins 
 
maven-eclipse-plugin 
 
1.0 
 
 
 
 

Douglas Ferguson <[EMAIL PROTECTED]> skrev 29.08.2006
16:34:19:

> Hey, 
>   
> I was doing some reading and found some good info, but when I 
> configure a server and try to add projects to it, the available 
> projects list is empty. What am I missing? 
>   
> D-




RE: Can't release due to SNAPSHOT dependencies

2006-08-30 Thread Douglas Ferguson
Thanks.

That makes a lot of sense...

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:12 AM
To: Maven Users List
Subject: Re: Can't release due to SNAPSHOT dependencies

We've talked about this before on the list, and this is the generally
suggested approach...

Download the code for the plugin(s) from SVN/CVS.
Increment the version number to a fixed/released number, build,
install locally and deploy to your corporate repo (if you have one) or
provide it to your coworkers some other way.
Update your pom to reflect the new plugin version number.

Generally I would suggest you incorporate a timestamp into the build
number ie maven-war-plugin 2.1.20060830 just to keep it clear that
this is not necessarily a real release.

Make sure you understand the artifact version system before picking a
build number, or else you could easily end up with a situation where
the "official" plugin releases a new version but your internal plugin
is still considered "newer" ie if a plugin last released 2.0.5 and is
currently releasing 2.1-SNAPSHOT, you might want to tag yours as 2.0.6
or 2.0.5.1 -- if you tag it as 2.1, then you won't get the "real" 2.1
release when it is final. (Of course, if the plugin release 2.0.6 then
you'll get a collision there too...)

Wayne

On 8/30/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote:
> I am using some snapshot plugins so it won't let me release.
>
>
>
> I can understand not wanting to release because of a dependency on code
> or library snapshots, but for I don't have any issues with releasing
> something that is dependent on a snapshot of a tool, like cargo.
>
>
>
> Is there a way around 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]



pom files not validating

2006-08-30 Thread Douglas Ferguson
I have some 3rd party library dependencies that aren’t in central so I
deployed them to our internal repository.

 

Whenever I build a project that depends on one of these libraries I get
the following message.

 

What can I do to get stop this?



[WARNING] POM for 'uk.co.demon.windsong:crypt:pom:0.0.1:provided' is
invalid. It will be ignored for

 artifact resolution. Reason: Failed to validate POM

 

I tried deleting the pom but then it tries to go out and find it. I’d
like to speed up the build by have the poms available.

 

D-




  1   2   >