Re: starting with maven

2008-08-22 Thread Wayne Fay
I believe you're looking for:
java -jar target/my-app-1.0-SNAPSHOT.jar

Wayne

On 8/21/08, Ben Jakbot [EMAIL PROTECTED] wrote:
 hi
 I try to start with maven and I'm sinking in tons of documentation.
 Docs are a good thing, but I somehow miss the very obvious.

 Right now I'm going through a the nice manual calling Better Builds
 with Maven. Basically I ran the following commands:

 $mvn archetype:create -DgroupId=com.mycompany.app \
 -DartifactId=my-app
 $ cd my-app
 $ mvn compile
 $ mvn test
 $ mvn test-compile
 $ mvn package
 $ mvn install

 which magically generated my a project structure a hello world kind of
 class and a test class for it. Then it compiled all the classes so
 that I now have

 $ ls target/
 classes maven-archiver  my-app-1.0-SNAPSHOT.jar 
 surefire-reportstest-classes

 So my super simple task is complete this little roundtrip by running
 the app my-app-1.0-SNAPSHOT.jar. And the question is how can I run
 it? Now I get the following error:

 $ java target/my-app-1.0-SNAPSHOT.jar
 Exception in thread main java.lang.NoClassDefFoundError:
 target/my-app-1/0-SNAPSHOT/jar

 I hoped not to have to mess around with classpathes. Could somebody
 help me with this?

 thanks in advance
 ben

 -
 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: where should I create this class file?

2008-08-22 Thread Tobias Gierke

Hi,

I suggest you post your java-related questions at 
http://www.javaranch.com , this is way off-topic.


Regards,

Tobias

P.S. The answer is

src
|
+ command
|  |
|  + CreateCustomer.java
|  |
|  + 
+ domain
  |
  + Order.java
  |
  + Customer.java

Hi,



Sorry I post a java question in this mailing list. I know you guys know the 
answer.




I want to create a classdomain.Customer, and domain.Order so that the 
other class can useimport statement to reference this 2 classes.


eg. import domain.Customer;

  import domain.Order;



Where in my windows directory create the class file Customer.java and 
Order.java file?


The following shown the project DBTest I have created in Eclipse (3.4).



d:\workspace\DBTestdir
 Volume in drive D has no label.
 Volume Serial Number is 401A-FB2E

 Directory of d:\workspace\DBTest

20/08/2008  09:58 PMDIR  .
20/08/2008  09:58 PMDIR  ..
20/08/2008  09:58 PM   618 .classpath
20/08/2008  09:58 PM 1,039 .project
20/08/2008  09:58 PMDIR  .settings
20/08/2008  09:58 PMDIR  build
21/08/2008  06:22 PMDIR  src
20/08/2008  09:58 PMDIR  WebContent
   2 File(s)  1,657 bytes
   6 Dir(s)  57,258,811,392 bytes free

d:\workspace\DBTest



I also created a package name call command inside the directory:

d:\workspace\DBTest\src\commanddir
 Volume in drive D has no label.
 Volume Serial Number is 401A-FB2E

 Directory of d:\workspace\DBTest\src\command

21/08/2008  06:22 PMDIR  .
21/08/2008  06:22 PMDIR  ..
21/08/2008  06:22 PM 1,687 CommandExecutor.java
21/08/2008  06:22 PM   815 CreateCustomer.java
21/08/2008  06:22 PM   799 CreateOrder.java
21/08/2008  06:22 PM   915 DatabaseCommand.java
21/08/2008  06:22 PM 1,027 ListCustomerOrders.java
21/08/2008  06:22 PM   915 ListCustomers.java
   6 File(s)  6,158 bytes
   2 Dir(s)  57,258,811,392 bytes free

d:\workspace\DBTest\src\command




From the file CreateCustomer.java and CreateOrder.java, I want to *import* 
domain.Customer and domain.Order.


Where in my windows directory should create the Customer.java and 
Order.java file?




Thanks

Sam

  



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



Re: newby: disk space consumption

2008-08-22 Thread wessie

Hi Alex-450,

Thanks for the quick response!

I've tried changing the maven goals to clean package. The problem is that
after each build it still archives the built ear and war files into the
'PROJECTX'/modules/ directory every single time the project is built.

Is it possible to get around this archiving?

Thanks again
Wessie!


Alex-450 wrote:
 
 Hi Wessie,
 
 why not simply upload the ear file to a location outside the cvs which 
 is accessible via web (or via scp)? By the way, I was glad when we 
 switched from CVS to SVN. I'm not an expert, but I have the impression 
 that SVN is much more stable. Nevertheless I wouldn't put constantly 
 changing binary files under a version control system.
 
 Cheers
 
 Alex
 
 wessie wrote:
 Hi all,
 
 I've been given the task of maintaining an exisiting Hudson/Maven setup.
 I
 think i've got an 'ok' understanding of whats going on but i'm still
 learning daily.
 
 The problem I have is this. I have a multi-module build that checksout a
 project from a cvs repository, builds the source, packages it into an ear
 file and then checks the ear back into the same cvs repository (just a
 slightly different location). The project is run with clean install
 goals.
 
 All of the above works fine BUT the ear file (and it's inner war file)
 gets
 copied into the 'PROJECTX'/modules/ directory every single time the
 project
 is built. The result is frequent calls from maintenance teams at really
 crappy hours.
 
 Writing a script the /modules/ directory periodically is a solution but
 i'd
 prefer to fix the problem and not one of its symptoms.
 
 I'd be happy to provide any poms if anyone is willing to help.
 
 Wessie!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/newby%3A-disk-space-consumption-tp19086120p19102282.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: starting with maven

2008-08-22 Thread Ben Aurel
Sorry to bother you with this, but I get a 'Failed to load error'


$ java -jar target/my-app-1.0-SNAPSHOT.jar
Failed to load Main-Class manifest attribute from
target/my-app-1.0-SNAPSHOT.jar



On Thu, Aug 21, 2008 at 11:11 PM, Wayne Fay [EMAIL PROTECTED] wrote:
 I believe you're looking for:
 java -jar target/my-app-1.0-SNAPSHOT.jar

 Wayne

 On 8/21/08, Ben Jakbot [EMAIL PROTECTED] wrote:
 hi
 I try to start with maven and I'm sinking in tons of documentation.
 Docs are a good thing, but I somehow miss the very obvious.

 Right now I'm going through a the nice manual calling Better Builds
 with Maven. Basically I ran the following commands:

 $mvn archetype:create -DgroupId=com.mycompany.app \
 -DartifactId=my-app
 $ cd my-app
 $ mvn compile
 $ mvn test
 $ mvn test-compile
 $ mvn package
 $ mvn install

 which magically generated my a project structure a hello world kind of
 class and a test class for it. Then it compiled all the classes so
 that I now have

 $ ls target/
 classes maven-archiver  my-app-1.0-SNAPSHOT.jar 
 surefire-reportstest-classes

 So my super simple task is complete this little roundtrip by running
 the app my-app-1.0-SNAPSHOT.jar. And the question is how can I run
 it? Now I get the following error:

 $ java target/my-app-1.0-SNAPSHOT.jar
 Exception in thread main java.lang.NoClassDefFoundError:
 target/my-app-1/0-SNAPSHOT/jar

 I hoped not to have to mess around with classpathes. Could somebody
 help me with this?

 thanks in advance
 ben

 -
 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: starting with maven

2008-08-22 Thread Ben Aurel
Alex, thank you. This is exactly what I was looking for. I got it running with

$ mvn exec:java -Dexec.mainClass=com.mycompany.app.App


On Thu, Aug 21, 2008 at 8:22 PM, Alex [EMAIL PROTECTED] wrote:
 See http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html


 Ben Jakbot wrote:

 hi
 I try to start with maven and I'm sinking in tons of documentation.
 Docs are a good thing, but I somehow miss the very obvious.

 Right now I'm going through a the nice manual calling Better Builds
 with Maven. Basically I ran the following commands:

 $mvn archetype:create -DgroupId=com.mycompany.app \
 -DartifactId=my-app
 $ cd my-app
 $ mvn compile
 $ mvn test
 $ mvn test-compile
 $ mvn package
 $ mvn install

 which magically generated my a project structure a hello world kind of
 class and a test class for it. Then it compiled all the classes so
 that I now have

 $ ls target/
 classes maven-archiver  my-app-1.0-SNAPSHOT.jar
 surefire-reportstest-classes

 So my super simple task is complete this little roundtrip by running
 the app my-app-1.0-SNAPSHOT.jar. And the question is how can I run
 it? Now I get the following error:

 $ java target/my-app-1.0-SNAPSHOT.jar
 Exception in thread main java.lang.NoClassDefFoundError:
 target/my-app-1/0-SNAPSHOT/jar

 I hoped not to have to mess around with classpathes. Could somebody
 help me with this?

 thanks in advance
 ben

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



Making the case for Maven to managment

2008-08-22 Thread Josh Long
Hi everyone,

I'm trying to make a case for Maven and I'm going to need to provide a
better reason than it's better than a kick in the face! to managment. I'm
at a bank, so everything is subject to heavy scrutiny. Essentially, our
project hardly compiles and is so untestable that upon check out no less
than 5 files need to change to get it to the point where we can compile it
(once we've created a working project in either IntelliJ or Eclipse, which
has hitherto never been too successful. Some of us just ant deploy every
change instead of iteratively deploying using our IDE's weblogic facilities.


So basically, I know I could solve the file issues with Maven profiles. I
know that using the Maven site plugin and reports like PMD and JUnit and so
on I could provide great dashboard like functionality into our
application. I know that I can solve the broken project descriptors, too.
All with Maven, but strictly speaking these are technically still process
enhancements, which come down as a liability.

In terms of shear resource hours, I should imagine 10 hours or so to get
our two projects moved over and acheive parity with our current Ant script
and even perhaps to solve all the Eclipse/IntelliJ nonsense and get decent,
default mvn site generation, and to change our existing production support
script which is Ant to interface with the ant script Maven will generate for
us. Basically, it won't take a lot. But that's not enough.

How do I make this case in the face of so hostile a mentality? Have you ever
had to make the case? Any insight on how to move forward would be
appreciated.

Thanks,
Joshua Long
Sun Certified Java Programmer
http://www.joshlong.com/


Problem of resolving eclipse swt linux library

2008-08-22 Thread Carfield Yim

I try to add eclipse swt linux library to my project. Thus, I add following
library to the pom.xml 
 
dependency 
groupIdorg.eclipse.swt/groupId 
artifactIdorg.eclipse.swt.gtk.linux.x86_64/artifactId 
version3.3.0-v3346/version 
scopeprovided/scope 
/dependency 
dependency 
groupIdorg.eclipse.swt/groupId 
artifactIdorg.eclipse.swt.gtk.linux.x86/artifactId 
version3.3.0-v3346/version 
scopeprovided/scope 
/dependency 
 
However, maven complaint cannot be find 
 
Missing: 
-- 
1) org.eclipse.swt:org.eclipse.swt.gtk.linux.x86:jar:3.3.0-v3346 
 
However, when I check maven repo, it is there -
http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/ Anyone know
what is the problem? I have tried to use version 3.30 as win32 does, but it
failed also, any idea?
-- 
View this message in context: 
http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19103219.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A few issues for which it's not worth inundating the list multiple times. Help appreciated

2008-08-22 Thread Josh Long
 Hi all,

I am working to convert a project and need to provide:
 - ClearCase Issue Management integration / reporting
 - Eclipse project descriptor generation for Workshop (this is the latest
version of Oracle Workshop, but it's still Eclipse 3.1 under the hood (I
think)!
 - It's not likely I'll get permission to setup an internal LAN repository,
so I need to be able to setup a file:// based repository and (blech) check
in the jars (as they'd lie in the repository) into CVS. Has anyone done
this? Any good, bad (I already see the ugly!)?
 - Finally, has any one done security checks with Fortify? And if so, have
you integrated it with Maven? I can't seem to find a plugin a la PMD/
FindBugz' integrations. I know there's an Ant task, has any one used that
via Maven?

Thanks all,

Josh Long
http://www.joshlong.com


Problem when using transitive dependencies

2008-08-22 Thread Christian_S

HI all
I have problems with usage of transitive dependencies.
As i know Maven should manage the buildorder on its own.
My Situation:

Using Maven2.0.9

L depends on C
C Depends on E
E depends on G

L and C are situated below folder A
E and G are situated below folder B

If i call a maven command from root everything is ok and the buildorder is
also correct.
We have a usecase where we only want to create specific plugins. e.g.: L and
G
So we create a helper pom.xml automatically and mention these two modules. 
e,g.:

...
packagingpom/packaging
modules
module../plugins/a/l/module
module../plugins/b/g/module
/modules
...

Because L depends on G (transitiv), G has to be built first and afterwards L
has to be built.
This is only done if the modules are also mentioned in this order in my
helper pom.xml.
We expected that maven always cares about correct build order and we don't
have to care about it.

My Question is:
Should this usecase be supported by maven?
Is there a property we can use that maven cares about it?

Thanks for your help

Christian


-- 
View this message in context: 
http://www.nabble.com/Problem-when-using-transitive-dependencies-tp19104002p19104002.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Problem when using transitive dependencies

2008-08-22 Thread Christian_S

HI all
I have problems with usage of transitive dependencies.
As i know Maven should manage the buildorder on its own.
My Situation:

Using Maven2.0.9

L depends on C
C Depends on E
E depends on G

L and C are situated below folder A
E and G are situated below folder B

If i call a maven command from root everything is ok and the buildorder is
also correct.
We have a usecase where we only want to create specific plugins. e.g.: L and
G
So we create a helper pom.xml automatically and mention these two modules. 
e,g.:

...
packagingpom/packaging
modules
module../plugins/a/l/module
module../plugins/b/g/module
/modules
...

Because L depends on G (transitiv), G has to be built first and afterwards L
has to be built.
This is only done if the modules are also mentioned in this order in my
helper pom.xml.
We expected that maven always cares about correct build order and we don't
have to care about it.

My Question is:
Should this usecase be supported by maven?
Is there a property we can use that maven cares about it?

Thanks for your help

Christian


-- 
View this message in context: 
http://www.nabble.com/Problem-when-using-transitive-dependencies-tp19104003p19104003.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



creating xdocs from javadocs comments

2008-08-22 Thread Stefano Bagnara

Hi all,

at Apache JAMES we have a product named Mailets.
It includes a lot of classes implementing the same interface that the 
user can configure in his deployment.


We currently document mailets using javadocs, but I would like to have a 
more fancy web page listing all of them and providing some information 
directly extracted from javadocs.


How would you approach a similar use case?

1st: if I find a way to generate xdocs from from an external tool, is 
there a folder for dynamically generated xdocs that will be took by the 
site plugin?


2nd: do you have any suggestion on how to generate xdocs based on src 
file contents (or javadocs)?


Stefano

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



Re: creating xdocs from javadocs comments

2008-08-22 Thread Stefano Bagnara

Stefano Bagnara ha scritto:

Hi all,

at Apache JAMES we have a product named Mailets.
It includes a lot of classes implementing the same interface that the 
user can configure in his deployment.


We currently document mailets using javadocs, but I would like to have a 
more fancy web page listing all of them and providing some information 
directly extracted from javadocs.


How would you approach a similar use case?

1st: if I find a way to generate xdocs from from an external tool, is 
there a folder for dynamically generated xdocs that will be took by the 
site plugin?


2nd: do you have any suggestion on how to generate xdocs based on src 
file contents (or javadocs)?


I just realized that what I want to do is somehow similar to what you do 
with maven plugins and the mojos documentation (Project Reports - 
Plugin documentation).


I guess this is automatically generated from plugin source content, 
right? Where can I look to understand how it works and if this can be 
reused for my use case?


Stefano

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



Re: Making the case for Maven to managment

2008-08-22 Thread Paulo Pinto
Hi,

having survived an Ant-Maven migration process, I would advise you to
really be sure that Maven supports out of the box all the things you are
already
doing with Ant.

Otherwise you might get some nasty surprises, that would fragile your
position.

Maven is a nice tool, but if it does not support out of the box something,
you might
have a huge task ahead.

Regards,
Paulo

On Fri, Aug 22, 2008 at 10:07 AM, Josh Long [EMAIL PROTECTED] wrote:

 Hi everyone,

 I'm trying to make a case for Maven and I'm going to need to provide a
 better reason than it's better than a kick in the face! to managment. I'm
 at a bank, so everything is subject to heavy scrutiny. Essentially, our
 project hardly compiles and is so untestable that upon check out no less
 than 5 files need to change to get it to the point where we can compile it
 (once we've created a working project in either IntelliJ or Eclipse, which
 has hitherto never been too successful. Some of us just ant deploy every
 change instead of iteratively deploying using our IDE's weblogic
 facilities.


 So basically, I know I could solve the file issues with Maven profiles. I
 know that using the Maven site plugin and reports like PMD and JUnit and so
 on I could provide great dashboard like functionality into our
 application. I know that I can solve the broken project descriptors, too.
 All with Maven, but strictly speaking these are technically still process
 enhancements, which come down as a liability.

 In terms of shear resource hours, I should imagine 10 hours or so to get
 our two projects moved over and acheive parity with our current Ant script
 and even perhaps to solve all the Eclipse/IntelliJ nonsense and get decent,
 default mvn site generation, and to change our existing production support
 script which is Ant to interface with the ant script Maven will generate
 for
 us. Basically, it won't take a lot. But that's not enough.

 How do I make this case in the face of so hostile a mentality? Have you
 ever
 had to make the case? Any insight on how to move forward would be
 appreciated.

 Thanks,
 Joshua Long
 Sun Certified Java Programmer
 http://www.joshlong.com/



Re: Making the case for Maven to managment

2008-08-22 Thread Piotr Oktaba
Hi,

There is maven-ant-plugin which allows you to do everything which you
can do in ant.
However, you shouldn't use it too much because it is inconsistent with
maven ideology :).

Cheers,
Piotr Oktaba

On Fri, 2008-08-22 at 14:25 +0200, Paulo Pinto wrote:

 Hi,
 
 having survived an Ant-Maven migration process, I would advise you to
 really be sure that Maven supports out of the box all the things you are
 already
 doing with Ant.
 
 Otherwise you might get some nasty surprises, that would fragile your
 position.
 
 Maven is a nice tool, but if it does not support out of the box something,
 you might
 have a huge task ahead.
 
 Regards,
 Paulo
 
 On Fri, Aug 22, 2008 at 10:07 AM, Josh Long [EMAIL PROTECTED] wrote:
 
  Hi everyone,
 
  I'm trying to make a case for Maven and I'm going to need to provide a
  better reason than it's better than a kick in the face! to managment. I'm
  at a bank, so everything is subject to heavy scrutiny. Essentially, our
  project hardly compiles and is so untestable that upon check out no less
  than 5 files need to change to get it to the point where we can compile it
  (once we've created a working project in either IntelliJ or Eclipse, which
  has hitherto never been too successful. Some of us just ant deploy every
  change instead of iteratively deploying using our IDE's weblogic
  facilities.
 
 
  So basically, I know I could solve the file issues with Maven profiles. I
  know that using the Maven site plugin and reports like PMD and JUnit and so
  on I could provide great dashboard like functionality into our
  application. I know that I can solve the broken project descriptors, too.
  All with Maven, but strictly speaking these are technically still process
  enhancements, which come down as a liability.
 
  In terms of shear resource hours, I should imagine 10 hours or so to get
  our two projects moved over and acheive parity with our current Ant script
  and even perhaps to solve all the Eclipse/IntelliJ nonsense and get decent,
  default mvn site generation, and to change our existing production support
  script which is Ant to interface with the ant script Maven will generate
  for
  us. Basically, it won't take a lot. But that's not enough.
 
  How do I make this case in the face of so hostile a mentality? Have you
  ever
  had to make the case? Any insight on how to move forward would be
  appreciated.
 
  Thanks,
  Joshua Long
  Sun Certified Java Programmer
  http://www.joshlong.com/
 


c++ maven project

2008-08-22 Thread Laura Lozano
Hello,

I would like to know if is possible to use maven for create and build a C++
project. In this case, is there any available tutorial or documentation
explaining how to proceed?

Thank you.


RE: c++ maven project

2008-08-22 Thread Martin Gainty

why not convert to java?

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Fri, 22 Aug 2008 14:45:25 +0200
 From: [EMAIL PROTECTED]
 To: users@maven.apache.org
 Subject: c++ maven project
 
 Hello,
 
 I would like to know if is possible to use maven for create and build a C++
 project. In this case, is there any available tutorial or documentation
 explaining how to proceed?
 
 Thank you.

_
Get ideas on sharing photos from people like you.  Find new ways to share.
http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008

RE: c++ maven project

2008-08-22 Thread Andreas Heinecke
Hi Laura,

I haven't done a Maven build within a C++ project. But I know there is
plugin which allows the integration of gcc.
Take a look here:
http://mojo.codehaus.org/maven-native/native-maven-plugin/index.html

Maybe this helps.

-Andreas.

-Original Message-
From: Laura Lozano [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2008 2:45 PM
To: users@maven.apache.org
Subject: c++ maven project

Hello,

I would like to know if is possible to use maven for create and build a C++
project. In this case, is there any available tutorial or documentation
explaining how to proceed?

Thank you.


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



RE: c++ maven project

2008-08-22 Thread Dhruva Reddy
My first response to the original question is...why?  Which of maven's
functionality would you like to take advantage of on your project?

I've never tried this, nor have I even thought about it.  Maven is
intended for Java projects.  I would think its theoretically possible to
do this, but that its not at all feasible.  Martin has a point here--the
effort required may very well be comparable to converting your
application to Java. 

Depending on what you need to do, I would think its more cost effective
to adapt automake/autoconf for your purposes.

Dhruva

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2008 8:50 AM
To: Maven Users List
Subject: RE: c++ maven project


why not convert to java?

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 


 Date: Fri, 22 Aug 2008 14:45:25 +0200
 From: [EMAIL PROTECTED]
 To: users@maven.apache.org
 Subject: c++ maven project
 
 Hello,
 
 I would like to know if is possible to use maven for create and build
a C++
 project. In this case, is there any available tutorial or
documentation
 explaining how to proceed?
 
 Thank you.

_
Get ideas on sharing photos from people like you.  Find new ways to
share.
http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_
Photo_Gallery_082008

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



Re: c++ maven project

2008-08-22 Thread Rodrigo Ruiz

Hi Laura,

Take a look at the FREEHEP NAR plugin:

http://java.freehep.org/freehep-nar-plugin/philosophy.html

It may be what you are looking for :-)

Best regards,
Rodrigo

Laura Lozano wrote:

Hello,

I would like to know if is possible to use maven for create and build a C++
project. In this case, is there any available tutorial or documentation
explaining how to proceed?

Thank you.



--
---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
---

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



Re: Problem of resolving eclipse swt linux library

2008-08-22 Thread lukewpatterson

These are in the repo

groupIdorg.eclipse.swt.gtk.linux/groupId
artifactIdx86_64/artifactId
[1]

groupIdorg.eclipse.swt.gtk.linux/groupId
artifactIdx86/artifactId
[2]

The (groupId/artifactId)s are different than what you had listed.



[1] -
http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/3.3.0-v3346/
[2] -
http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86/3.3.0-v3346/
-- 
View this message in context: 
http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19106859.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Making the case for Maven to managment

2008-08-22 Thread Geoffrey Wiseman
On Fri, Aug 22, 2008 at 4:07 AM, Josh Long [EMAIL PROTECTED] wrote:

 How do I make this case in the face of so hostile a mentality? Have you
 ever
 had to make the case? Any insight on how to move forward would be
 appreciated.


Well: you believe it'll solve some problems for you.  Look at those problems
and solutions and see if any of them matter to the people to whom you'll be
making the case, or if the ancillary effects (the time it takes to make a
change, the reliability of the software) might matter to them.

Secondarily, try and make yourself aware of the problems that they believe
they face, and whether or not Maven can help with those -- ultimately, if
you make your case in terms of the things they care about, that's where
you're most likely to make an impact.  It's hard for me to know, on the
outside, who those people are, what they care about, the problems for which
they'd like solutions, and so forth, so I can only give you the advice on
this generic level.

Ultimately, though, if you've already got Ant, I'd say that there aren't a
ton of problems that you can solve with Maven that you can't solve with Ant;
you might find the one or the other more to your liking, but if you can't
get through these issues with Ant, I'm not certain that you'll be able to do
so with Maven.  (There are a few areas where the capabilities Maven stands
out from Ant; things like metadata about dependencies that, if reliable, can
tell you the license of the project, and so forth, but I find those to be
the exception rather than the rule).

   - Geoffrey
-- 
Geoffrey Wiseman


RE: Maven and Eclipse Project

2008-08-22 Thread Lam Hayward
Thanks for the suggestion.

It does not work. No error reported. The build path still does not show
any project dependency. 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: August 21, 2008 3:40 PM
To: Maven Users List
Subject: Re: Maven and Eclipse Project

You need to configure the eclipse plugin as Arnaud said:
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html

It will be something like:
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
configuration
  workspace.../workspace
/configuration
  /plugin

Wayne

On 8/21/08, Lam Hayward [EMAIL PROTECTED] wrote:
 I tried setting the following properties in pom.xml or command line:

 workspace
 eclipse.workspace
 maven.eclipse.workspace

 The command does not report any error. However, the eclipse buildpath 
 of project B or project C still do not reference project A.

 Any idea?

 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
 Sent: August 21, 2008 1:55 PM
 To: Maven Users List
 Subject: Re: Maven and Eclipse Project

 using the workspace property the eclipse plugin can find references to

 others projects and link them.
 Otherwise without having an inheritence but a reactor pom with 3 
 modules will also link them together.

 On Thu, Aug 21, 2008 at 4:51 PM, Lam Hayward
 [EMAIL PROTECTED]wrote:

  Hi there,
 
  I have an issue with maven classpath generation (mvn
  eclipse:eclipse) for eclipse.
 
  I have 3 independent projects (say A, B and C) with no common root.
  Project A is the common project (jar) which project B and C will 
  include.
 
  In pom.xml in project B and project C, there is a dependency defined

  for A. However, in eclipse, I'd like to have project B and project C

  to include the project A as reference project instead of the jar.
 
  Is this possible without using the project hierarchy approach?
 
  HL
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 ..
 Arnaud HERITIER
 ..
 OCTO Technology - aheritier AT octo DOT com www.octo.com | 
 blog.octo.com
..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org
 ...

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



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


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



RE: Maven and Eclipse Project

2008-08-22 Thread Lam Hayward
I installed the eclipse plugin from
http://mvnlink.googlecode.com/svn/mvnlink-update-site/ and restarted
eclipse. According to the project page, some top level menu should have
MvnLink, there is no none. Is there some configuration I am missing? 

-Original Message-
From: Andrew Close [mailto:[EMAIL PROTECTED] 
Sent: August 21, 2008 4:29 PM
To: Maven Users List
Subject: Re: Maven and Eclipse Project

On Thu, Aug 21, 2008 at 9:51 AM, Lam Hayward [EMAIL PROTECTED]
wrote:
 Hi there,

 I have an issue with maven classpath generation (mvn 
 eclipse:eclipse) for eclipse.

 I have 3 independent projects (say A, B and C) with no common root.
 Project A is the common project (jar) which project B and C will 
 include.

 In pom.xml in project B and project C, there is a dependency defined 
 for A. However, in eclipse, I'd like to have project B and project C 
 to include the project A as reference project instead of the jar.

 Is this possible without using the project hierarchy approach?

maybe you want to look into this:  http://code.google.com/p/mvnlink/ it
sounds like it does what you're looking for.

--
Andrew Close

-
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: Making the case for Maven to managment

2008-08-22 Thread Mark H. Wood
Nah, we can drop ideology in the bitbucket.  It's a matter of using
the tool that best does the job.

Maven is really good at representing the structure of large, complex
projects simply, and pretty good at organizing the large-scale flow of
operations involved in realizing them.  Ant is rather good at giving
you very close control of how specific tasks are carried out, when you
are willing to do a lot of writing.  Together they make a good team.
You may find that specific step-by-step processing which is difficult
to express in Maven is easily accomplished in Ant, and that structures
which are overwhelmingly wordy in Ant become concise and natural in
Maven.

So, if you need both, use both.  But use each where it helps more than
it hurts.  If you can do 90% of the task faster and with fewer
mistakes in Maven, use it for that 90%.  If the last 10% won't go in
naturally, then use Ant for the 10% -- forcing the tool is one common
source of errors and delays.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is intuitive he
means the exact opposite.



pgpGoHZAJTjsh.pgp
Description: PGP signature


jdk version range is not checking with dashes?

2008-08-22 Thread Zemian Deng
Hi,

If I have the following config, which I think it should restrict JDK1.5 or
higher:
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-enforcer-plugin/artifactId
version1.0-alpha-2/version
executions
execution
goals
goalenforce-once/goal
/goals
configuration
rules
requireJavaVersion
!-- minimum version is 1.4.2, Java 5
and higher not allowed --
version[1.5.0)/version
/requireJavaVersion
/rules
/configuration
/execution
/executions
/plugin

But this failed on my MacOSX, which has jdk 6:

$ java -version
java version 1.6.0_01-dp
Java(TM) SE Runtime Environment (build 1.6.0_01-dp-b06-101)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-41-release, mixed mode)

I think the actual jdk version label is 1.6.0-1 and thus failed because of
the dash? So is this consider a bug for the plugin?

Thanks,
-Z
-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala


Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-22 Thread John Casey
Just to follow up on the list, this was a small bug in the way maven was 
being built. It's fixed, but in RC9 this will affect plugins that use 
jackrabbit, commons-codec, or slf4j. The fix will be included in the 
next RC.


-john

nicolas de loof wrote:

http://jira.codehaus.org/browse/MNG-3722 created for this, with a simple
demo project.

2008/8/19 nicolas de loof [EMAIL PROTECTED]


I get an issue with 2.0.10 RC9 and CXF plugin  -this works with 2.0.9 :


[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
19 ao¹t 2008 11:08:16 org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading plugin
jar:file:/D:/platina/repository/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/2.0.8/cxf-tools-ws
dlto-databinding-jaxb-2.0.8.jar!/META-INF/tools-plugin.xml
19 ao¹t 2008 11:08:17 org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Found 1 databindings in jaxb plugin.
19 ao¹t 2008 11:08:17 org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading jaxb databinding from jaxb plugin.
19 ao¹t 2008 11:08:17 org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading plugin
jar:file:/D:/platina/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.0.8/cxf-tools-wsdl
to-frontend-jaxws-2.0.8.jar!/META-INF/tools-plugin.xml
19 ao¹t 2008 11:08:17 org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Found 1 frontends in jaxws plugin.
19 ao¹t 2008 11:08:17 org.apache.cxf.tools.wsdlto.core.PluginLoader
loadPlugin
INFO: Loading jaxws frontend from jaxws plugin.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] trace

[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: trace
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:697)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:54
2)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:521)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:373)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:334)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:185)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: trace
at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:334)
at
org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:228)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:672)
... 16 more
Caused by: java.lang.NoSuchMethodError: trace
at org.apache.commons.logging.impl.SLF4JLog.trace(SLF4JLog.java:96)
at
org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(CollectionFactory.java:187)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.init(DefaultSingletonBeanRegistry.ja
va:82)


The CXF plugin seems to use my project dependencies (as I'm using slf4j)
for classpath during jaxb code generation

I ran the build with -X to compare dependency resolution trees but did not
found any change...
Maybe this is cause by some classloader conflict ?

What could I do to investigate more ?



2008/8/19 Martin Höller [EMAIL PROTECTED]

On Monday 18 August 2008 John Casey wrote:

Please, if you have the time, take 2.0.10-RC9 for a spin and tell us
what you think!

Works without any problems here.

- martin







--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/

-
To unsubscribe, e-mail: [EMAIL 

Re: Maven and Eclipse Project

2008-08-22 Thread Eugene Kuleshov


Michael McCallum-3 wrote:
 
 maybe you want to look into this:  http://code.google.com/p/mvnlink/
 it sounds like it does what you're looking for.
 use the m2eclipse.codehaus.org plugin and then run mvn eclipse:m2eclipse
 

If you are using m2eclipse, I wouldn't recommend using eclipse:m2eclipse.
Instead use one of the project import wizards provided by m2eclipse. They
allow to import multiple projects from local system, checkout from SCM or
import by Maven coordinates. See http://tinyurl.com/5qzyzx

  This way project interdependencies and configuration for other Eclipse
tools, such as AJDT or WTP will be done automatically. See for example WTP
howto. http://tinyurl.com/5zoawl


Michael McCallum-3 wrote:
 
 far better solution... there is one caveat make sure that maven and
 eclipse 
 have different output folders... eclipse generates class are not meant to
 be 
 packaged up...
 

  Because of several issues with option for using separate output folders
between Eclipse and Maven CLI, we had to remove it in m2eclipse 0.9.5. If
you are not jumping back and forth between Eclipse and command line it works
much better for the IDE and the only caveat is that you need to not forget
to perform Refresh and Project / Clean after you done something with the
project outside IDE.
  We are still looking at better solution for this issue. In a mean time, if
you prefer to use separate output folders, you can do that with a custom
profile. See more details at
http://tinyurl.com/373bkh#ProjectFAQ-outputFolders  

  regards,
  Eugene


-- 
View this message in context: 
http://www.nabble.com/Release-fails-during-SVN-commit-tp19084270p19108305.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Maven and Eclipse Project

2008-08-22 Thread Eugene Kuleshov


  Out of curiosity, why don't you give a try to m2eclipse?
http://m2eclipse.codehaus.org/

  among lot of other things, it would automatically handle project import
for you and will configure imported projects for other Eclipse tools.

  regards,
  Eugene



Lam Hayward wrote:
 
 Thanks for the suggestion.
 
 It does not work. No error reported. The build path still does not show
 any project dependency. 
 
 -Original Message-
 From: Wayne Fay 
 Sent: August 21, 2008 3:40 PM
 To: Maven Users List
 Subject: Re: Maven and Eclipse Project
 
 You need to configure the eclipse plugin as Arnaud said:
 http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html
 
 It will be something like:
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-eclipse-plugin/artifactId
 configuration
   workspace.../workspace
 /configuration
   /plugin
 
 Wayne
 

-- 
View this message in context: 
http://www.nabble.com/Release-fails-during-SVN-commit-tp19084270p19108349.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: starting with maven

2008-08-22 Thread Wim Deblauwe
An alternative is to turn your jar file into an executable jar file where
you put your main class in the manifest file.

project
  build
 plugins
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
archive
indextrue/index
manifest
mainClasscom.mycompany.app.App/mainClass
addClasspathtrue/addClasspath
/manifest
/archive
/configuration
/plugin
/plugins
/build

Now you can use the -jar option to start your application.

regards,

Wim


2008/8/22 Ben Aurel [EMAIL PROTECTED]

 Alex, thank you. This is exactly what I was looking for. I got it running
 with

 $ mvn exec:java -Dexec.mainClass=com.mycompany.app.App


 On Thu, Aug 21, 2008 at 8:22 PM, Alex [EMAIL PROTECTED] wrote:
  See http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html
 
 
  Ben Jakbot wrote:
 
  hi
  I try to start with maven and I'm sinking in tons of documentation.
  Docs are a good thing, but I somehow miss the very obvious.
 
  Right now I'm going through a the nice manual calling Better Builds
  with Maven. Basically I ran the following commands:
 
  $mvn archetype:create -DgroupId=com.mycompany.app \
  -DartifactId=my-app
  $ cd my-app
  $ mvn compile
  $ mvn test
  $ mvn test-compile
  $ mvn package
  $ mvn install
 
  which magically generated my a project structure a hello world kind of
  class and a test class for it. Then it compiled all the classes so
  that I now have
 
  $ ls target/
  classes maven-archiver  my-app-1.0-SNAPSHOT.jar
  surefire-reportstest-classes
 
  So my super simple task is complete this little roundtrip by running
  the app my-app-1.0-SNAPSHOT.jar. And the question is how can I run
  it? Now I get the following error:
 
  $ java target/my-app-1.0-SNAPSHOT.jar
  Exception in thread main java.lang.NoClassDefFoundError:
  target/my-app-1/0-SNAPSHOT/jar
 
  I hoped not to have to mess around with classpathes. Could somebody
  help me with this?
 
  thanks in advance
  ben
 
  -
  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: Problem of resolving eclipse swt linux library

2008-08-22 Thread Andrew Robinson
BTW, if you plan on using JFace, do not use the libraries from maven,
use your own from eclipse. The maven pom files for the uploaded SWT
and JFace jars are incompatible. I found it much easier to install my
own jars into my local repo than trying to fight the versions that are
in the central repositories.

On Fri, Aug 22, 2008 at 2:12 AM, Carfield Yim [EMAIL PROTECTED] wrote:

 I try to add eclipse swt linux library to my project. Thus, I add following
 library to the pom.xml

 dependency
 groupIdorg.eclipse.swt/groupId
 artifactIdorg.eclipse.swt.gtk.linux.x86_64/artifactId
 version3.3.0-v3346/version
 scopeprovided/scope
 /dependency
 dependency
 groupIdorg.eclipse.swt/groupId
 artifactIdorg.eclipse.swt.gtk.linux.x86/artifactId
 version3.3.0-v3346/version
 scopeprovided/scope
 /dependency

 However, maven complaint cannot be find

 Missing:
 --
 1) org.eclipse.swt:org.eclipse.swt.gtk.linux.x86:jar:3.3.0-v3346

 However, when I check maven repo, it is there -
 http://repo1.maven.org/maven2/org/eclipse/swt/gtk/linux/x86_64/ Anyone know
 what is the problem? I have tried to use version 3.30 as win32 does, but it
 failed also, any idea?
 --
 View this message in context: 
 http://www.nabble.com/Problem-of-resolving-eclipse-swt-linux-library-tp19103219p19103219.html
 Sent from the Maven - Users mailing list archive 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]



Having trouble with Maven release plugin using SubVersion

2008-08-22 Thread Ken Tanaka

Hi,

I had an error using mvn release:prepare after I had created a 
src/main/conf directory under SubVersion, then renamed it 
src/main/config to match the Maven 2 convention. I'm not sure if I'm not 
following a Maven or SubVersion convention, or if this is a bug.


The workaround, noted in the following perl script loses the revision 
history. The rest of this post is a perl script to replicate the problem 
for a unix-like system. The header comment provides a number of details. 
(I'm hoping line wrap doesn't mess this up ;-) Run this script in clean 
disposable directory.


If anyone has a suggestion on avoiding the error, please post.

Thanks,
Ken

=== start of testMvnRelease.pl ===
#!/usr/bin/perl -w
##
##  File: testMvnRelease.pl
##
##  I had an error using mvn release:prepare after I had
##  created a src/main/conf directory under SubVersion,
##  then renamed it src/main/config to match the Maven 2
##  convention. I'm not sure if I'm not following a Maven
##  or SubVersion convention, or if this is a bug.
##
##  I'm seeing this error:
##
##  [INFO] 


##  [ERROR] BUILD FAILURE
##  [INFO] 


##  [INFO] Unable to tag SCM
##  Provider message:
##  The svn tag command failed.
##  Command output:
##  svn: Commit failed (details follow):
##  svn: Directory 
'/extra/data/src/java/testMvnRelease/myProject/trunk/target/.svn'

##  containing working copy admin area is missing
##
##  My workaround was to create a copy of the project,
##  wipe out all the revision history (.svn directories),
##  and enter it into SubVersion as a new project as if the
##  configuration directory had been named src/main/config
##  from the start. Is there a better way to correct this
##  category of error without losing the revision history?
##
##  This script is a self-contained way to explore reproducing
##  this behavior. There's a lot of setup, so I wanted to make
##  it easy for others to see what I'm doing.
##
##  Versions: Maven version: 2.0.9
##Java version: 1.6.0_03
##OS name: linux version: 2.6.18-92.1.10.el5 arch: amd64 
Family: unix

##svn, version 1.4.2 (r22196)
##
##  For reference I'm going by:
##  http://maven.apache.org/plugins/maven-release-plugin/
##
##  Summary of the standard Maven directory layout:
## myProject
##  +- trunk
##  +- src
##  +- main
##  +- config-- area of concern
##  +- java
##
##  If you don't have perl, but are using a unix-like system,
##  then the commands between backticks can be executed on the comand
##  line. For this reason I've mimmicked the command line, e.g. using
##  the system rm rather than the perl built-in unlink command.
##  The chdir commands are used in Perl since the 'cd' commands
##  would otherwise be transient. To excecute outside Perl, the chdir
##  commands should be converted as
##chdir 'aProject' -- cd aProject

##  Cleanup code for subsequent runs.
##  Not needed the first time through.
if (-e 'aProject') {
   ## existing directory is removed recursively (-r)
   print `rm -r aProject`;
}
if (-e 'myProject') {
   ## use force (-f) option to override any svn permissions
   print `rm -rf myProject`;
}
if (-e '/tmp/repos') {
   print `rm -rf /tmp/repos`;
}

## Create the standard maven project
print Create a maven project\n;
print `mkdir aProject`;
chdir 'aProject';
print `mvn archetype:create -DgroupId=com.mycompany.app 
-DartifactId=my-app`;


## There should be no errors. Compile and run to test.
## The following commands should work
chdir 'my-app';
print `mvn package`;
print `java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App`;
## Standard project prints Hello World! Pause 3 seconds to see result
print `sleep 3`;

## create a directory with wrong name conf, then correct it later
print `mkdir src/main/conf`;
## create a config file
open CONF, src/main/conf/myconf.xml
   or die couldn't create config file\n;

print CONF '?xml version=1.0 encoding=UTF-8?
myconf
   element attr=a /
/myconf  
';


close CONF;

## Add project to SubVersion version control
## Go back up two directory levels
chdir '../..';
## change my-app to trunk (a subversion convention)
print `mv aProject/my-app aProject/trunk`;
## create a new (disposable) repository on local disk
print `svnadmin create /tmp/repos`;
## Put aProject under version control as myProject
print `svn import aProject file:///tmp/repos/myProject -m initial import`;

## Now pull out a version-controlled copy of the project: myProject
## (aProject is not needed and ignored from now on)
print `svn checkout file:///tmp/repos/myProject myProject`;

## Change src/main/conf to src/main/config to match the standard
## maven directory naming convention
chdir 'myProject/trunk';
print `svn move src/main/conf src/main/config`;
print `svn status`;
print `svn commit -m comply with mvn convention, conf 

RE: jdk version range is not checking with dashes?

2008-08-22 Thread Beyer,Nathan
If you want Java 5 minimum, then try this value [1.5,). If you want Java 
1.4.2 minimum, then try this value [1.4.2,). If you want Java 1.4.2 minimum, 
but less than Java 5, then try this value [1.4.2,1.5).

-Original Message-
From: Zemian Deng [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2008 8:49 AM
To: Maven Users List
Subject: jdk version range is not checking with dashes?

Hi,

If I have the following config, which I think it should restrict JDK1.5 or
higher:
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-enforcer-plugin/artifactId
version1.0-alpha-2/version
executions
execution
goals
goalenforce-once/goal
/goals
configuration
rules
requireJavaVersion
!-- minimum version is 1.4.2, Java 5
and higher not allowed --
version[1.5.0)/version
/requireJavaVersion
/rules
/configuration
/execution
/executions
/plugin

But this failed on my MacOSX, which has jdk 6:

$ java -version
java version 1.6.0_01-dp
Java(TM) SE Runtime Environment (build 1.6.0_01-dp-b06-101)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-41-release, mixed mode)

I think the actual jdk version label is 1.6.0-1 and thus failed because of
the dash? So is this consider a bug for the plugin?

Thanks,
-Z
-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

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



Re: newby: disk space consumption

2008-08-22 Thread Wayne Fay
There is no particular reason why these files should land in this
directory using standard Maven configuration, so you must have
something custom in your build that is causing it to occur.

Try scanning the pom.xml files for modules. Obviously you can ignore
the projectmodules node.

Alternatively, you can try examining the build output which may
provide some clues:
mvn clean package | grep modules

Wayne

On 8/21/08, wessie [EMAIL PROTECTED] wrote:

 Hi Alex-450,

 Thanks for the quick response!

 I've tried changing the maven goals to clean package. The problem is that
 after each build it still archives the built ear and war files into the
 'PROJECTX'/modules/ directory every single time the project is built.

 Is it possible to get around this archiving?

 Thanks again
 Wessie!


 Alex-450 wrote:
 
  Hi Wessie,
 
  why not simply upload the ear file to a location outside the cvs which
  is accessible via web (or via scp)? By the way, I was glad when we
  switched from CVS to SVN. I'm not an expert, but I have the impression
  that SVN is much more stable. Nevertheless I wouldn't put constantly
  changing binary files under a version control system.
 
  Cheers
 
  Alex
 
  wessie wrote:
  Hi all,
 
  I've been given the task of maintaining an exisiting Hudson/Maven setup.
  I
  think i've got an 'ok' understanding of whats going on but i'm still
  learning daily.
 
  The problem I have is this. I have a multi-module build that checksout a
  project from a cvs repository, builds the source, packages it into an ear
  file and then checks the ear back into the same cvs repository (just a
  slightly different location). The project is run with clean install
  goals.
 
  All of the above works fine BUT the ear file (and it's inner war file)
  gets
  copied into the 'PROJECTX'/modules/ directory every single time the
  project
  is built. The result is frequent calls from maintenance teams at really
  crappy hours.
 
  Writing a script the /modules/ directory periodically is a solution but
  i'd
  prefer to fix the problem and not one of its symptoms.
 
  I'd be happy to provide any poms if anyone is willing to help.
 
  Wessie!
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/newby%3A-disk-space-consumption-tp19086120p19102282.html
 Sent from the Maven - Users mailing list archive 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]



Problems with SCM:UPDATE on linux with Subversion.

2008-08-22 Thread Dave Rathnow
I'm having a problem with SCM plugin on Linux.  I've checked out a
project from 

Subversion using my personal account and then tried to do an scm:update.
Rather

than using the account I am logged in as, the plugin is using root and
so the command

failes.  Below is a snipped from the log:

 

[INFO]


[INFO] [scm:update]

[INFO] Executing: svn --username root --password * --non-interactive
update

[INFO] Working directory: /home/cruser/cc/checkout/fine.head/build

[ERROR] Provider message:

[ERROR] The svn command failed.

[ERROR] Command output:

[ERROR] svn: PROPFIND request failed on '/svn/umsrepo/trunk/fine/build'

svn: PROPFIND of '/svn/umsrepo/trunk/fine/build': authorization failed
(http://elmer http://elmer/ )

 

For some reason, the plugin is trying to use root to do the update.
I've done the same

thing on Windows an do not have this problem.

 

Does anyone know why the plugin is using root and not the user that I am
running

the update command under?

 

Thanks,

Dave.



installing snapshots to an internal repository

2008-08-22 Thread EJ Ciramella
So I've just noticed that while we're installing snapshots, if you don't
explicitly tell maven to NOT use a unique snapshot number AND you have
say 4 generated artifacts you're installing, the metadata reflects the
last one installed.

 

For example, if you have a project that generates:

 

1 - a jar file

2 - a sources jar

3 - a zip file

4 - a war file

 

When you start using deploy:deploy-file, the metadata file in the
repository gets something like this:

 

  versioning

snapshot

  buildNumber1/buildNumber

  timestamp20080822.153306/timestamp

/snapshot

 

But when you go through all four items, buildNumber becomes 4.  THEN -
when you have some other module that depends on these artifacts, it
fails to build because it's looking for buildNumber 4 for the jar file
and that doesn't exist.  How do you install all the modules and keep the
uniqueness?  Do you have to have them all bound/attached such that when
you do the regular mvn install, they're all accounted for and use
deploy:deploy?

 

Color me confused.



manipulating an existing archive during assembly

2008-08-22 Thread Beyer,Nathan
I'm using the assembly plugin to generate a few archives for distribution. I'd 
like to be able to download an existing archive (zip, tar.gz) and extract some 
of its contents and then include it in an assembly. Does anyone have 
suggestions on how to go about this?

For example, download a tomcat distribution, extract the contents, remove all 
existing files/dirs in 'webapps' and then add a war file and create an assembly 
of the results.

I suspect that I'm getting beyond the boundaries of Maven and should just move 
to creating Ant scripts for these application distributions.

Thanks.

-Nathan


--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


Error message

2008-08-22 Thread Rodrigo Villagran
Dear Members

After reviewing manuals and consult on various websites
Even I can not establishes what is the origin of the following error message
in Maven 2.0.8.

[EMAIL PROTECTED]  # mvn

[WARNING] Failed to initialize environment variable resolver. Skipping
environment substitution in settings.
---
constituent[0]: file:/usr/local/apache-maven-2.0.8/lib/maven-2.0.8-uber.jar
---
java.io.IOException: java.io.IOException: Cannot allocate memory
at java.lang.UNIXProcess.init(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)
at
hidden.org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:218)
at
hidden.org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:182)
at
org.apache.maven.project.interpolation.RegexBasedModelInterpolator.init(RegexBasedModelInterpolator.java:63)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
at
org.apache.maven.cli.MavenCli.createMavenInstance(MavenCli.java:474)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:257)
at 

Re: creating xdocs from javadocs comments

2008-08-22 Thread Stefano Bagnara

Stefano Bagnara ha scritto:

Stefano Bagnara ha scritto:

Hi all,

at Apache JAMES we have a product named Mailets.
It includes a lot of classes implementing the same interface that the 
user can configure in his deployment.


We currently document mailets using javadocs, but I would like to have 
a more fancy web page listing all of them and providing some 
information directly extracted from javadocs.


How would you approach a similar use case?

1st: if I find a way to generate xdocs from from an external tool, is 
there a folder for dynamically generated xdocs that will be took by 
the site plugin?


2nd: do you have any suggestion on how to generate xdocs based on src 
file contents (or javadocs)?


I just realized that what I want to do is somehow similar to what you do 
with maven plugins and the mojos documentation (Project Reports - 
Plugin documentation).


I guess this is automatically generated from plugin source content, 
right? Where can I look to understand how it works and if this can be 
reused for my use case?


After a few searches I've been able to do what I wanted to do.
I created a simple reporting maven plugin that do exactly what I need.

I based it on AbstractMavenReport and I used Qdox's JavaDocBuilder to 
read javadocs from classes and an URLClassLoader created with the URLs 
from getProject().getCompileClasspathElements() (I had to add 
@requiresDependencyResolution compile to my Mojo).


It is easy then to use getSink() to generate the content I want using 
qdox JavaClass  and java reflections!


It is a bit tricky to deal with ClassLoaders but in the end it was funny.

Here is a first result after my first approach to maven mojos!
http://people.apache.org/~bago/mailet/standard/site/mailet-report.html

Here are the classes that opened my eyes:
http://svn.apache.org/repos/asf/maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
http://svn.apache.org/repos/asf/maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/

And this is the doc that helped starting with a report mojo:
http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin

Qdox was the tool that helped me with javadocs:
http://qdox.codehaus.org/

Stefano

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



Re: creating xdocs from javadocs comments

2008-08-22 Thread Wendy Smoak
On Fri, Aug 22, 2008 at 1:14 PM, Stefano Bagnara [EMAIL PROTECTED] wrote:

 After a few searches I've been able to do what I wanted to do.
 I created a simple reporting maven plugin that do exactly what I need.

Thanks so much for replying back with the info you found and your results. :)

-- 
Wendy

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



Reworking Build Reactor Order

2008-08-22 Thread Arthur Gawronski
Currently,  I have

 

Core Project 1 

+SubProject 1-1

+SubProject 1-2

+SubProject 1-3

+CoreProject 1pom - pom.xml

 

Core Project 2 

+SubProject 2-1

+SubProject 2-2

+SubProject 2-3

+CoreProject2pom - pom.xml

 

I have no flexibility as to the locations of the folders. The pom in
CoreProject2pom references all subprojects as modules.

 

When doing a clean install, the reactor list is built similarly to the
following:

 

SubProject1-3

SubProject1-1

SubProject1-2

coreProject2pom

SubProject2-2

SubProject2-3

SubProject2-1

 

The problem is that coreProject2pom creates my distributable. It tries to
move copy and create an assembly of SubProject2 jars that haven't packaged
yet.

How do I change a dependency or include a script in order to force the
coreProject2pom to be built last in my reactor?

 

Thanks



Re: Having trouble with Maven release plugin using SubVersion

2008-08-22 Thread Dennis Lundberg
Did you use the 'svn move ...' command to rename the directory or did
you do it directly on the file system for your working copy?

If you did the second your working copy will not have correct subversion
metadata.

Ken Tanaka wrote:
 Hi,
 
 I had an error using mvn release:prepare after I had created a
 src/main/conf directory under SubVersion, then renamed it
 src/main/config to match the Maven 2 convention. I'm not sure if I'm not
 following a Maven or SubVersion convention, or if this is a bug.
 
 The workaround, noted in the following perl script loses the revision
 history. The rest of this post is a perl script to replicate the problem
 for a unix-like system. The header comment provides a number of details.
 (I'm hoping line wrap doesn't mess this up ;-) Run this script in clean
 disposable directory.
 
 If anyone has a suggestion on avoiding the error, please post.
 
 Thanks,
 Ken
 
 === start of testMvnRelease.pl ===
 #!/usr/bin/perl -w
 ##
 ##  File: testMvnRelease.pl
 ##
 ##  I had an error using mvn release:prepare after I had
 ##  created a src/main/conf directory under SubVersion,
 ##  then renamed it src/main/config to match the Maven 2
 ##  convention. I'm not sure if I'm not following a Maven
 ##  or SubVersion convention, or if this is a bug.
 ##
 ##  I'm seeing this error:
 ##
 ##  [INFO]
 
 ##  [ERROR] BUILD FAILURE
 ##  [INFO]
 
 ##  [INFO] Unable to tag SCM
 ##  Provider message:
 ##  The svn tag command failed.
 ##  Command output:
 ##  svn: Commit failed (details follow):
 ##  svn: Directory
 '/extra/data/src/java/testMvnRelease/myProject/trunk/target/.svn'
 ##  containing working copy admin area is missing
 ##
 ##  My workaround was to create a copy of the project,
 ##  wipe out all the revision history (.svn directories),
 ##  and enter it into SubVersion as a new project as if the
 ##  configuration directory had been named src/main/config
 ##  from the start. Is there a better way to correct this
 ##  category of error without losing the revision history?
 ##
 ##  This script is a self-contained way to explore reproducing
 ##  this behavior. There's a lot of setup, so I wanted to make
 ##  it easy for others to see what I'm doing.
 ##
 ##  Versions: Maven version: 2.0.9
 ##Java version: 1.6.0_03
 ##OS name: linux version: 2.6.18-92.1.10.el5 arch: amd64
 Family: unix
 ##svn, version 1.4.2 (r22196)
 ##
 ##  For reference I'm going by:
 ##  http://maven.apache.org/plugins/maven-release-plugin/
 ##
 ##  Summary of the standard Maven directory layout:
 ## myProject
 ##  +- trunk
 ##  +- src
 ##  +- main
 ##  +- config-- area of concern
 ##  +- java
 ##
 ##  If you don't have perl, but are using a unix-like system,
 ##  then the commands between backticks can be executed on the comand
 ##  line. For this reason I've mimmicked the command line, e.g. using
 ##  the system rm rather than the perl built-in unlink command.
 ##  The chdir commands are used in Perl since the 'cd' commands
 ##  would otherwise be transient. To excecute outside Perl, the chdir
 ##  commands should be converted as
 ##chdir 'aProject' -- cd aProject
 
 ##  Cleanup code for subsequent runs.
 ##  Not needed the first time through.
 if (-e 'aProject') {
## existing directory is removed recursively (-r)
print `rm -r aProject`;
 }
 if (-e 'myProject') {
## use force (-f) option to override any svn permissions
print `rm -rf myProject`;
 }
 if (-e '/tmp/repos') {
print `rm -rf /tmp/repos`;
 }
 
 ## Create the standard maven project
 print Create a maven project\n;
 print `mkdir aProject`;
 chdir 'aProject';
 print `mvn archetype:create -DgroupId=com.mycompany.app
 -DartifactId=my-app`;
 
 ## There should be no errors. Compile and run to test.
 ## The following commands should work
 chdir 'my-app';
 print `mvn package`;
 print `java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App`;
 ## Standard project prints Hello World! Pause 3 seconds to see result
 print `sleep 3`;
 
 ## create a directory with wrong name conf, then correct it later
 print `mkdir src/main/conf`;
 ## create a config file
 open CONF, src/main/conf/myconf.xml
or die couldn't create config file\n;
 
 print CONF '?xml version=1.0 encoding=UTF-8?
 myconf
element attr=a /
 /myconf  ';
 
 close CONF;
 
 ## Add project to SubVersion version control
 ## Go back up two directory levels
 chdir '../..';
 ## change my-app to trunk (a subversion convention)
 print `mv aProject/my-app aProject/trunk`;
 ## create a new (disposable) repository on local disk
 print `svnadmin create /tmp/repos`;
 ## Put aProject under version control as myProject
 print `svn import aProject file:///tmp/repos/myProject -m initial
 import`;
 
 ## Now pull out a version-controlled copy of the project: myProject
 ## (aProject is 

Re: A few issues for which it's not worth inundating the list multiple times. Help appreciated

2008-08-22 Thread Dennis Lundberg
Josh Long wrote:
  Hi all,
 
 I am working to convert a project and need to provide:
  - ClearCase Issue Management integration / reporting

Nothing more than showing a link to the project in ClearCase.

  - Eclipse project descriptor generation for Workshop (this is the latest
 version of Oracle Workshop, but it's still Eclipse 3.1 under the hood (I
 think)!
  - It's not likely I'll get permission to setup an internal LAN repository,
 so I need to be able to setup a file:// based repository and (blech) check
 in the jars (as they'd lie in the repository) into CVS. Has anyone done
 this? Any good, bad (I already see the ugly!)?

Since you are going to set up a file:// based CVS repository, I would
set up a file:// based Maven repository (perhaps on a shared drive?)
that would house the dependency jars. We had a file:// based Maven repo
before we got a separate real repo server for it. Migration to the real
Maven repo was simple to do.

  - Finally, has any one done security checks with Fortify? And if so, have
 you integrated it with Maven? I can't seem to find a plugin a la PMD/
 FindBugz' integrations. I know there's an Ant task, has any one used that
 via Maven?
 
 Thanks all,
 
 Josh Long
 http://www.joshlong.com
 


-- 
Dennis Lundberg

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



Using optional packages with EARs

2008-08-22 Thread Vogel,Chris
I'm relatively new to Maven and am trying to build an EAR file, while
using the optional packages capability of our application server.  So,
in my project, I have an EJB module that has a dependency on
commons-lang, with no scope definition (so, compile).  In the EAR
module, I specify the EJB module as a dependency and specify to
maven-ear-plugin to add extensions to the manifest.  When I do that, I
get commons-lang in the Extension-List manifest entry, but the JAR file
is also included in the EAR file.

I'm sure it is something simple I am missing, but I have not been able
to find it.  Has anyone every tried this and succeeded?

Thank you,

Chris
 
 If you are not the intended recipient of this message (including attachments), 
or if you have received this message in error, immediately notify us and delete 
it and any attachments.  If you no longer wish to receive e-mail from Edward 
Jones, please send this request to [EMAIL PROTECTED]  You must include the 
e-mail address that you wish not to receive e-mail communications.  For 
important additional information related to this e-mail, visit 
www.edwardjones.com/US_email_disclosure


install/deploy plugin renaming assemblies?

2008-08-22 Thread Beyer,Nathan
I have an assembly that I'm creating with a custom final name. When I run 'mvn 
clean package' the target folder contains the JAR with the correct name and the 
Zip assembly with a name the custom name. When I run 'mvn clean install' or 
'mvn clean deploy', the Zip file is installed/deployed using the artifactId and 
the classifier from the assembly ID, instead of the name of the actual file. 
Why doesn't it use the name of the file as it is?

Example -
pom.xml
project
packagingjar/packaging
groupIdorg.example/groupId
artifactIdlibrary/artifactId
version1.0-SNAPSHOT/version
   build
   plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
executions
execution
goals
goalsingle/goal
/goals
phasepackage/phase
/execution
/executions
configuration
finalNameservice-${project.version}/finalName
descriptors

descriptorsrc/main/assembly/service-x86-win32.xml/descriptor
/descriptors
/configuration
/plugin
/plugins
/build
/project

service-x86-win32.xml
assembly
idx86-win32/id
formats
formatzip/format
/formats
includeBaseDirectoryfalse/includeBaseDirectory
files
file

source${project.build.directory}/${project.build.finalName}.jar/source
destNamedatastore.war/destName
fileMode0644/fileMode
outputDirectorywebapps/outputDirectory
/file
/files
/assembly

This example will produce the following files in 'target'.
target/
 library-1.0-SNAPSHOT.jar
 service-1.0-SNAPSHOT-x86-win32.zip

When deployed or installed, the files end up being

library/
 library-1.0-SNAPSHOT.jar
 library-1.0-SNAPSHOT-x86-win32.zip

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


Re: Having trouble with Maven release plugin using SubVersion

2008-08-22 Thread Ken Tanaka
I did use 'svn move src/main/conf src/main/config' for the rename. 
(Although I have been caught by using the regular mv before.)


-Ken

Dennis Lundberg wrote:

Did you use the 'svn move ...' command to rename the directory or did
you do it directly on the file system for your working copy?

If you did the second your working copy will not have correct subversion
metadata.
  



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



[PLEASE TEST] Maven 2.0.10-RC10

2008-08-22 Thread John Casey

Hi again everyone,

I wanted to announce the availability of the latest release candidate, 
2.0.10-RC10. You can grab it here:


http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC10/org/apache/maven/apache-maven/2.0.10-RC10

I've closed the few issues that came out of RC9, and improved 
performance a great deal, so please give it a spin and let me know what 
you think.


Also, while I know we've been talking on the dev list about releasing 
this code as Maven 2.1.0 (with the current trunk code now pushing toward 
a 3.0 release), I'm just going to keep referring to this as 2.0.10-RCxx 
until we finalize the direction with a vote. Everyone knows about this 
release candidate series by now, so it's as much to reduce possible 
confusion as anything else.


Happy testing!

-john

--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/

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



Re: [PLEASE TEST] Maven 2.0.10-RC10

2008-08-22 Thread Daniel Kulp

John,

Performance is looking very good.My testcase that runs in 32secs on 2.0.9 
runs in 26sec with this RC.   Very nice job.

However, there seems to be a problem with it and the eclipse plugin in a 
reactor build.   With the CXF build, run:

mvn test-compile eclipse:eclipse -Pnochecks -o

and check the api/.classpath file.

With 2.0.9, there is a line:
classpathentry kind=src path=target/generated/src/test/java 
output=target/test-classes/
which is correct.   With 2.0.10, that line is not there which makes it not 
compile in eclipse.

If I run the same command in the api directory, the .classpath file is fine.



Dan



On Friday 22 August 2008 7:27:18 pm John Casey wrote:
 Hi again everyone,

 I wanted to announce the availability of the latest release candidate,
 2.0.10-RC10. You can grab it here:

 http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC10/org/apache
/maven/apache-maven/2.0.10-RC10

 I've closed the few issues that came out of RC9, and improved
 performance a great deal, so please give it a spin and let me know what
 you think.

 Also, while I know we've been talking on the dev list about releasing
 this code as Maven 2.1.0 (with the current trunk code now pushing toward
 a 3.0 release), I'm just going to keep referring to this as 2.0.10-RCxx
 until we finalize the direction with a vote. Everyone knows about this
 release candidate series by now, so it's as much to reduce possible
 confusion as anything else.

 Happy testing!

 -john



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

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



Re: starting with maven

2008-08-22 Thread Wayne Fay
I assumed the mainClass had already been set in the manifest file.
Thanks for providing this config, Wim.

Ben, if you apply this configuration in your pom.xml, the -jar option
I provided will work. Then you can run your jar on any system that has
a JVM, and you will not need Maven installed (which the mvn exec:java
option obviously requires).

Wayne

On 8/22/08, Wim Deblauwe [EMAIL PROTECTED] wrote:
 An alternative is to turn your jar file into an executable jar file where
 you put your main class in the manifest file.

 project
  build
 plugins
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
archive
indextrue/index
manifest
mainClasscom.mycompany.app.App/mainClass
addClasspathtrue/addClasspath
/manifest
/archive
/configuration
/plugin
/plugins
/build

 Now you can use the -jar option to start your application.

 regards,

 Wim


 2008/8/22 Ben Aurel [EMAIL PROTECTED]

  Alex, thank you. This is exactly what I was looking for. I got it running
  with
 
  $ mvn exec:java -Dexec.mainClass=com.mycompany.app.App
 
 
  On Thu, Aug 21, 2008 at 8:22 PM, Alex [EMAIL PROTECTED] wrote:
   See http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html
  
  
   Ben Jakbot wrote:
  
   hi
   I try to start with maven and I'm sinking in tons of documentation.
   Docs are a good thing, but I somehow miss the very obvious.
  
   Right now I'm going through a the nice manual calling Better Builds
   with Maven. Basically I ran the following commands:
  
   $mvn archetype:create -DgroupId=com.mycompany.app \
   -DartifactId=my-app
   $ cd my-app
   $ mvn compile
   $ mvn test
   $ mvn test-compile
   $ mvn package
   $ mvn install
  
   which magically generated my a project structure a hello world kind of
   class and a test class for it. Then it compiled all the classes so
   that I now have
  
   $ ls target/
   classes maven-archiver  my-app-1.0-SNAPSHOT.jar
   surefire-reportstest-classes
  
   So my super simple task is complete this little roundtrip by running
   the app my-app-1.0-SNAPSHOT.jar. And the question is how can I run
   it? Now I get the following error:
  
   $ java target/my-app-1.0-SNAPSHOT.jar
   Exception in thread main java.lang.NoClassDefFoundError:
   target/my-app-1/0-SNAPSHOT/jar
  
   I hoped not to have to mess around with classpathes. Could somebody
   help me with this?
  
   thanks in advance
   ben
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Reworking Build Reactor Order

2008-08-22 Thread Brian E. Fox
You can influence it by moving it to the bottom of the modules list in
the reactor. If that doesn't do it, then insert a dependency on the
others so that it builds last.

-Original Message-
From: Arthur Gawronski [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2008 2:50 PM
To: users@maven.apache.org
Subject: Reworking Build Reactor Order

Currently,  I have

 

Core Project 1 

+SubProject 1-1

+SubProject 1-2

+SubProject 1-3

+CoreProject 1pom - pom.xml

 

Core Project 2 

+SubProject 2-1

+SubProject 2-2

+SubProject 2-3

+CoreProject2pom - pom.xml

 

I have no flexibility as to the locations of the folders. The pom in
CoreProject2pom references all subprojects as modules.

 

When doing a clean install, the reactor list is built similarly to the
following:

 

SubProject1-3

SubProject1-1

SubProject1-2

coreProject2pom

SubProject2-2

SubProject2-3

SubProject2-1

 

The problem is that coreProject2pom creates my distributable. It tries
to
move copy and create an assembly of SubProject2 jars that haven't
packaged
yet.

How do I change a dependency or include a script in order to force the
coreProject2pom to be built last in my reactor?

 

Thanks


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