Re: Re: Is maven good to small projects

2006-09-06 Thread Stefan Magnus Landrø
I totally disagree with you, Sha! 

From my experience, even small projects, with just a few dependencies, 
benefit from using maven.

What are your alternatives? Can any other build system match maven's 
ability to produce:

- a project layout 
- eclipse project 
- easy continuous integration
- javadoc 
etc etc.

Sha Jiang [EMAIL PROTECTED] skrev 05.09.2006 14:06:27:

 Hello,
 Maven can adapt various projects. But in my eyes, it's not necessary to 
use
 Maven in simply projects. In fact, most projects don't use Maven.
 Small project may not include many modules, and there are few the
 developers. Then using Maven makes a bigger complexity and redundancy
 possibly.
 
 a cup of Java, cheers!
 Sha Jiang
 
 2006/9/5, Alexander Sack [EMAIL PROTECTED]:
 
  What do you mean?  Can you explain why you think it wouldn't be?
 
  My biggest draw to Maven right now is the dependency management and
  inheritance capabilities.  Especially in a Java EE centric world where 
you
  have the concept of client side jars, runtime dependent libraries, as 
well
  as provided/platform libraries.  Its hard to manage this with just
  ANT.  Add
  Eclipse, and things become even more complicated.
 
  Bottom line is its not the number of people on the project that 
determines
  Maven's usefulness, its the project itself.
 
  -aps
 
  On 9/5/06, Dudu [EMAIL PROTECTED] wrote:
  
   Is maven good to small teams, like two programmers?
  
  
 
 
  --
  What lies behind us and what lies in front of us is of little concern 
to
  what lies within us. -Ralph Waldo Emerson
 
 


Re: RE: Installing third party libraries

2006-09-06 Thread Stefan Magnus Landrø
Have a look here:

http://maven.apache.org/plugins/maven-deploy-plugin/usage.html

Lakshman Srilakshmanan [EMAIL PROTECTED] skrev 
06.09.2006 08:05:01:

 Hi Jochen,
 
 Is there a -DgenerateCheckSum=true ???
 
 Where can I get all the available options ?
 
 Thanks
 Lakshman
 
 
  -Original Message-
  From: Jochen Wiedmann [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, 5 September 2006 10:06 PM
  To: Maven Users List
  Subject: Re: Installing third party libraries
  
  Dudu wrote:
  
   When I install a third part library, the poom is not generated
   automatically.
   Is right this behavior?
  
  -DgeneratePom=true
  
  
  -
  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: eclipse:eclipse wtp

2006-08-31 Thread Stefan Magnus Landrø
I believe you should still use 1.0 in the configuration part. It appears 
the wtp-settings file format hasn't changed since 1.0

Douglas Ferguson [EMAIL PROTECTED] skrev 30.08.2006 17:54:14:

 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
 
 
 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. 
 
 build 
 plugins 
 plugin 
 groupIdorg.apache.maven.plugins/groupId 
 artifactIdmaven-eclipse-plugin/artifactId
 configuration 
 wtpversion1.0/wtpversion 
 /configuration 
 /plugin 
 /plugins 
 /build 
 
 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: [POLL] Why switch to Maven?

2006-08-30 Thread Stefan Magnus Landrø
I've been reading through a lot of the replies to the Poll this morning.

It seems to me that we need a tool the does the following to be more 
productive with maven:

* Locates remote repositories, and potentially adds them to settings.xml 
or pom.xml
* Let's us upload 3rd party libraries to company-repository in seconds
* Provides access to documentation on plugins, and helps configuring them. 
I've spent lots of time searching for documentation and usage examples. 
* Helps you building the pom (/ poms in a multi-module environment). 
GUI-style. Something like the web.xml editors you can find in certain IDEs 
- just better ...

Stefan

Eric Redmond [EMAIL PROTECTED] skrev 29.08.2006 19:55:12:

 Hi all Maven users!
 
 I'm beginning a study to outline the real reasons that people have for
 avoiding Maven. My questions to you all are:
 What were your anxieties about using Maven? If you use Maven: what 
helped
 you make the decision? If you don't: why did you avoid it?
 
 Here are some that I have heard in the past:
 
 * Lack of good documentation.
 * Community unwilling to help me with my problems.
 * Not industry supported or mainstream enough.
 * I don't like conforming to the Maven project layout.
 * My project is too complex to switch.
 * There are not enough plugins available.
 * We already have a large investement in tool X.
 * I have to build native/non-Java code.
 
 Any more reasons? Care to expand these ideas?
 Thanks for your help!
 
 Eric Redmond
 http://codehaus.org/~eredmond


Ad: wtp

2006-08-30 Thread Stefan Magnus Landrø
Hi,

You have to add wtp-support to your project. This can be done in several 
ways, but try this trick:

mwn -Dwtpversion=1.0 eclipse:eclipse

Otherwise, I recommend checking this page:

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

The eclipse plugin can of course like any other plugin be configured.

Stefan

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-

Ad: RE: Tomcat Deploy

2006-08-29 Thread Stefan Magnus Landrø
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]
 


Re: war:inplace

2006-08-29 Thread Stefan Magnus Landrø
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-
 
 


RE: RE: war:inplace

2006-08-29 Thread Stefan Magnus Landrø
This is a tutorial for Oracle, but Tomcat is very similar.

http://www.eclipse.org/webtools/community/tutorials/OracleServerAdapter/OracleServerAdapter.html

Douglas Ferguson [EMAIL PROTECTED] skrev 29.08.2006 15:31:44:

 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]
 


Re: Re: running unit tests for pom packaged project

2006-08-17 Thread Stefan Magnus Landrø
 Are you basically 
 saying that a parent project needs to have modules to allow unit tests 
 to be run?

Yes, and actually modules are just a way of simplyfying a complex build.

Stefan

Re: Graphical View of Dependencies

2006-08-16 Thread Stefan Magnus Landrø
I think somebody is working on a  jarjar-maven-plugin, but it hasn't been 
released yet

Stefan


Koh, Pin (STL) [EMAIL PROTECTED] skrev 15.08.2006 23:29:57:

  Is there a good graphic tool to visualize jar dependencies?
  
  Pin Koh
 *** Confidentiality Notice ***
 This email, its electronic document attachments, and the contents of
 its website linkages may contain confidential health information. 
 This information is intended solely for use by the individual or 
 entity to whom it is addressed.  If you have received this 
 information in error, please notify the sender immediately and 
 arrange for the prompt destruction of the material and any 
 accompanying attachments.
 
 


RE: Re: websphere plugin

2006-08-16 Thread Stefan Magnus Landrø
Have a look at Peter Pilgrim's blog, and earlier posts on this matter on 
this list

javed mandary [EMAIL PROTECTED] skrev 16.08.2006 14:14:53:

 Am going to be working with Websphere 6 Seems there are no plugins for 
it.
 Anyone had experience working with M2 and Websphere 6?
 
 cheers and thanks,
  Javed
 
 
 On 7/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 
  Is there a maven2 plugin for websphere 6?
 
  i remember there was maven plugin for websphere 5 but haven't found 
one
  for websphere 6.
 
  We are trying to do headless builds of EJB's for WAS with maven and 
are
  looking for a plugin that will enable this.
 
  thanks
 
  michael wiles
 
 
  Disclaimer
  Sanlam Life Insurance Limited Reg no 1998/021121/06 - Licensed 
Financial
  Services Provider
  Disclaimer and Directors
 


Re: running unit tests for pom packaged project

2006-08-16 Thread Stefan Magnus Landrø
Hi there,

As far as I know, you have to use modules to achieve this.

Just as an example - do you really want to run apache axis tests when you 
include axis as a dependency?

Stefan

Denis McCarthy [EMAIL PROTECTED] skrev 16.08.2006 16:52:59:

 
 Hi,
 One of my projects depends on a second project. As a result, I've 
 defined the first project as being packaged as a pom, with an associated 

 dependency in the second package. However, when I run 'mvn test' on the 
 pom packaged project no tests are run (which I think is normal for 
 pom-packaged projects with no modules). What should I do to run tests 
 for a pom packaged project - do I really require a module? Indeed, am I 
 approaching maven intra-project dependency management skew-ways?
 TIA
 Denis
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Ad: Newbie question on MOJOs

2006-08-14 Thread Stefan Magnus Landrø
Hi there,

Have a look at the maven-compiler-plugin plugin. It should provide you 
with lots of ingormation.

Stefan
[EMAIL PROTECTED] skrev 14.08.2006 09:31:13:

 Hi,
 
 I am new to Maven2. I am trying to develop plugins in Maven2 using the 
 Java Plugins approach. I have seen the getting started guide on MOJOs 
 
(http://maven.apache.org/guides/plugin/guide-java-plugin-development.html). 

 But this is too elementary. Could someone please point me to some more 
 advanced guide to building MOJOs, one which contains integration with 
Ant 
 Java APIs? I have taken a look at the AntExternal guide as well: 
 http://ant.apache.org/manual/antexternal.html.
 
 At this point, I am simply trying to use Ant's Javac.java API to compile 

 my source code using a MOJO. I had the following questiions:
 1. How do I get access to maven's dependency classpath (i.e. path 
 containing all the dependencies defined in project's pom.xml)? In Maven 
 1.x this was accessible using maven.dependency.classpath reference in 
 plugin.jelly.
 2. How does Maven set the java.home System Property? I have set the 
 environment var Java_Home to the jdk directory but Maven is setting 
the 
 java.home System property to the jre directory (i.e. jdk_dir/jre). Why 

 is that so?
 
 Has anyone used Ant's Javac API to do the compilation from inside a 
MOJO. 
 If yes, could you please send me the code snippet to set the classpath 
and 
 any other system properties?
 
 Thanks in advance,
 Ritu
 
 
 
 
 
 
 
 -
 This transmission may contain information that is privileged,
 confidential, legally privileged, and/or exempt from disclosure
 under applicable law.  If you are not the intended recipient, you
 are hereby notified that any disclosure, copying, distribution, or
 use of the information contained herein (including any reliance
 thereon) is STRICTLY PROHIBITED.  Although this transmission and
 any attachments are believed to be free of any virus or other
 defect that might affect any computer system into which it is
 received and opened, it is the responsibility of the recipient to
 ensure that it is virus free and no responsibility is accepted by
 JPMorgan Chase  Co., its subsidiaries and affiliates, as
 applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
 contact the sender and destroy the material in its entirety,
 whether in electronic or hard copy format. Thank you.


Ad: Creating an ant-style distribution with Maven

2006-08-14 Thread Stefan Magnus Landrø
Have you tried the assembly plugin?


Aleksei Valikov [EMAIL PROTECTED] skrev 14.08.2006 14:41:57:

 Hi.
 
 I have recently migrated one of my projects (Hyperjaxb2, 
 https://hyperjaxb2.dev.java.net/) onto Maven. I'm very satisfied with 
results 
 but have one open question.
 
 Hyperjaxb2 is a code generation tool. You give your XML Schema in 
 and get a JAR 
 with JAXB-generated classes plus Hibernate mappings to persiste 
 these classes in 
 a relational database.
 
 As one of the artifacts, I'd like to produce a just add water project 
 template, where users could simply copy the XML schema in some directory 
and 
 execute the build.
 
 With Maven this can be implemented with a Maven plugin, which could 
 create the 
 appropriate directory structure and build files. However I still 
 have a lot of 
 Ant users which aren't ready to migrate to Maven. For these users I'd 
like to 
 produce something like a zip file with pre-created directory 
 structure and build 
 files as well as all the required libraries.
 
 So my question is - how could I produce such a Zip?
 
 Thank you for your time.
 
 Bye.
 /lexi
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Ad: Re: Re: Flat directory structure and Eclipse

2006-08-10 Thread Stefan Magnus Landrø
Try setting up the parent project as an eclipse project manually.
 
I hardly ever edit my paretn project anyways.

Stefan

news [EMAIL PROTECTED] skrev 10.08.2006 10:11:48:

 HI,
 
 there is still one trouble. When you use version control system (CVS, 
SVN,
 ..) plugin in Eclipse, you cannot checkout/commit the files in root 
folder,
 because the root folder is not part of Eclipse workspace.
 
 Jan
 
 Stefan Magnus Landrø [EMAIL PROTECTED] wrote in 
message
 
news:[EMAIL PROTECTED]
 .
  The eclipse plugin is included by default
  try running mvn eclipse:eclipse. It will generate the 
project/classpath
  files for you automatically.
 
  You can of course set up the projects manually, but it's a lot of 
work.
 
  I typically use the follwing setup:
 
  c:\projects
  c:\projects\myproject\
  c:\projects\myproject\EAR
  c:\projects\myproject\WAR
  
  c:\projects\myproject\EJB
  c:\projects\myproject_workspace
 
  The advantage of this is that you don't mess up your project folder 
with
  workspace settings.
 
  HTH
 
  Stefan
 
  news [EMAIL PROTECTED] skrev 09.08.2006 14:24:38:
 
   Thanks Stefan,
  
   I don't use the eclipse plugin, but it makes no difference. So, if I
   understand you well, you have the structure recomended by Maven doc
  outside
   of Eclipse workspace and use Eclipse links to each fo the 
EAR/EJB/WAR
   subfolders? Are there any troubles with this setup?
  
   Jan
  
Hi Jan,
   
running the maven eclipse plugin, you won't get any project file 
for
  the
top level (myProject / pom.xml).
Also, I recomment using a workspace location different from where 
you
  keep
your source code (using eclipse's import existing project feature)
   
HTHAB,
   
Stefan
   
news [EMAIL PROTECTED] skrev 09.08.2006 14:05:26:
   
 Hi,

 The flat directory is recommended for J2EE projects:

 myProject / pom.xml
 |
 |-- EAR / pom.xml
 |
 |-- EJB / pom.xml
 |
 |-- WEB / pom.xml

 This structure is not entirely flat because of the root 
myProject
  /
 pom.xml. It is not clear to me how this structure fits into 
Eclipse
 workspace. Do you have the myProject / pom.xml in the root 
folder
  of
 Eclipse workspace and each EAR/EJB/WEB as eclipse projects?

 It seems to me that this shold work better with Eclipse:

 EclipseWorkspace
 |
 |-- myProject.EAR / pom.xml
 |
 |-- myProject.EJB / pom.xml
 |
 |-- myProject.WEB / pom.xml
 |
 |-- myProject.main / pom.xml (this is the parent POM)


 Thanks, Jan





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


Ad: Guide to using Eclipse with Maven 2.x

2006-08-10 Thread Stefan Magnus Landrø
Hi Jan,

I just ran your example. It works fine here. Are you sure you didn't 
forget something in the CL? is it all on one line?

C:\tempmvn archetype:create -DgroupId=guide.ide.eclipse 
-DartifactId=guide-ide-eclipse

news [EMAIL PROTECTED] skrev 10.08.2006 13:57:02:

 Hi,
 
 I tried to follow the guide at
 http://maven.apache.org/guides/mini/guide-ide-eclipse.html for multiple
 module project, but running:
 
 mvn
 archetype:create -DgroupId=guide.ide.eclipse 
-DartifactId=guide-ide-eclipse
 
 results in:
 
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO] 
-
 ---
 [ERROR] BUILD FAILURE
 [INFO] 
-
 ---
 [INFO] Invalid task 'guide.ide.eclipse:': you must specify a valid 
lifecycle
 phase, or a goal in the format plugin:goal or
 pluginGroupId:pluginArtifactId:pluginVersion:goal
 [INFO] 
-
 ---
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
-
 ---
 [INFO] Total time:  1 second
 [INFO] Finished at: Thu Aug 10 13:53:25 CEST 2006
 [INFO] Final Memory: 1M/4M
 [INFO] 
-
 ---
 
 Is the guide correct or I miss something?
 
 Thanks, Jan
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Flat directory structure and Eclipse

2006-08-09 Thread Stefan Magnus Landrø
Hi Jan,

running the maven eclipse plugin, you won't get any project file for the 
top level (myProject / pom.xml). 
Also, I recomment using a workspace location different from where you keep 
your source code (using eclipse's import existing project feature)

HTHAB,

Stefan

news [EMAIL PROTECTED] skrev 09.08.2006 14:05:26:

 Hi,
 
 The flat directory is recommended for J2EE projects:
 
 myProject / pom.xml
 |
 |-- EAR / pom.xml
 |
 |-- EJB / pom.xml
 |
 |-- WEB / pom.xml
 
 This structure is not entirely flat because of the root myProject /
 pom.xml. It is not clear to me how this structure fits into Eclipse
 workspace. Do you have the myProject / pom.xml in the root folder of
 Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
 
 It seems to me that this shold work better with Eclipse:
 
 EclipseWorkspace
 |
 |-- myProject.EAR / pom.xml
 |
 |-- myProject.EJB / pom.xml
 |
 |-- myProject.WEB / pom.xml
 |
 |-- myProject.main / pom.xml (this is the parent POM)
 
 
 Thanks, Jan
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Re: Flat directory structure and Eclipse

2006-08-09 Thread Stefan Magnus Landrø
The eclipse plugin is included by default 
try running mvn eclipse:eclipse. It will generate the project/classpath 
files for you automatically.

You can of course set up the projects manually, but it's a lot of work.

I typically use the follwing setup:

c:\projects
c:\projects\myproject\
c:\projects\myproject\EAR
c:\projects\myproject\WAR

c:\projects\myproject\EJB
c:\projects\myproject_workspace

The advantage of this is that you don't mess up your project folder with 
workspace settings.

HTH

Stefan

news [EMAIL PROTECTED] skrev 09.08.2006 14:24:38:

 Thanks Stefan,
 
 I don't use the eclipse plugin, but it makes no difference. So, if I
 understand you well, you have the structure recomended by Maven doc 
outside
 of Eclipse workspace and use Eclipse links to each fo the EAR/EJB/WAR
 subfolders? Are there any troubles with this setup?
 
 Jan
 
  Hi Jan,
 
  running the maven eclipse plugin, you won't get any project file for 
the
  top level (myProject / pom.xml).
  Also, I recomment using a workspace location different from where you 
keep
  your source code (using eclipse's import existing project feature)
 
  HTHAB,
 
  Stefan
 
  news [EMAIL PROTECTED] skrev 09.08.2006 14:05:26:
 
   Hi,
  
   The flat directory is recommended for J2EE projects:
  
   myProject / pom.xml
   |
   |-- EAR / pom.xml
   |
   |-- EJB / pom.xml
   |
   |-- WEB / pom.xml
  
   This structure is not entirely flat because of the root myProject 
/
   pom.xml. It is not clear to me how this structure fits into Eclipse
   workspace. Do you have the myProject / pom.xml in the root folder 
of
   Eclipse workspace and each EAR/EJB/WEB as eclipse projects?
  
   It seems to me that this shold work better with Eclipse:
  
   EclipseWorkspace
   |
   |-- myProject.EAR / pom.xml
   |
   |-- myProject.EJB / pom.xml
   |
   |-- myProject.WEB / pom.xml
   |
   |-- myProject.main / pom.xml (this is the parent POM)
  
  
   Thanks, Jan
  
  
  
  
   
-
   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: Re: Proximity Setup

2006-08-08 Thread Stefan Magnus Landrø
Maybe the proximity guys could add the documentation to the download? 
(using the assembly plugin or something, after running mvn site)?

Denis Cabasson [EMAIL PROTECTED] skrev 08.08.2006 10:20:48:

 
 Site (proximity.abstracthorizon.org) is up, and the only place to find 
good
 documentation about proximity.
 
 Denis.
 
 
 Sam Merrell wrote:
  
  I have been digging around for some good Proximity documentation, but 
I
  can't seem to find any. It looks like the proximity site (
  proximity.abstracthorizon.org) is down right now and Google isn't 
helping
  much either. Does anyone have any good links on how to work with
  Proximity?
  Specifically, I'm trying to run my in-house repositories through
  Proximity,
  but I can't seem to figure out how to deploy to it. I have it proxying 
the
  central repository, but thats about it right now. Any help would be
  appreciated. Thank you!
  
  
 
 -- 
 View this message in context: http://www.nabble.com/Proximity-Setup-
 tf2071131.html#a5702235
 Sent from the Maven - Users forum at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: incorrect war file structure

2006-08-08 Thread Stefan Magnus Landrø
Hi Jeff,

properties normally go in the src\main\resources

BTW, You seem to use a strange layout for your directories. Do you really 
want it to be that way? 
Read Better builds with maven for the recommended dir. structure

Jeff Mutonho [EMAIL PROTECTED] skrev 08.08.2006 14:52:59:

 My web project has the following structure
 
 /eportal/WebContent/WEB-INF/   ---this has all the web related stuff my 
app
 requires
 
 and the source directory
 
 /eportal/WebContent/JavaSource/za/blah/blah/blah
|___hibernate.properties
|___messages.properties
|___log4j.properties
 
 When the war file is created all *.properties are not being copied to 
the
 war's WEB-INF/classes directory.How
 can I configure my pom to get the  all the *.properties to be copied to 
the
 war's WEB-INF/classes directory?
 
 
 -- 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042


Re: Re: m2 WebSphere EJB / EAR Build and Deployment

2006-08-07 Thread Stefan Magnus Landrø
Hi there,

We also had to write a custom plugin to deploy to was 5.0.2 (triggering 
wsadmin.bat using some jacl scripts). I know other people use the built-in 
was-ant tasks. 

Stefan


Marco Mistroni [EMAIL PROTECTED] skrev 07.08.2006 14:10:54:

 hi peter,
  not sure if it can help
  a colleague of mine wrote an ant script for building EJB and deploying
 them,
 but it was with ant and it was deployed on WAS 5.1.
 i think he used 'custom' ant task from IBM for websphere
 So, if m2 can't help, you could be able to launch an ant task from m2
 sorry to say that i don't know where my colleague script went (and he 
has
 left the company few months ago)
 
 hth
  marco
 
 On 8/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Hi
 
  I just want to ask has anybody used Maven 2 to build an EJB-JAR, an 
EAR
  and successfully deploy them all to WebSphere Server 6.0.x?
 
  --
  Peter Pilgrim
  UBS Investment Bank,
  PTS Portal / IT FIRC OPS LDN,
  100 Liverpool Street, London EC2M 2RH, United Kingdom
  :: Java EE / E-Commerce / Enterprise Integration / Development ::
 
  Visit our website at http://www.ubs.com
 
  This message contains confidential information and is intended only
  for the individual named.  If you are not the named addressee you
  should not disseminate, distribute or copy this e-mail.  Please
  notify the sender immediately by e-mail if you have received this
  e-mail by mistake and delete this e-mail from your system.
 
  E-mail transmission cannot be guaranteed to be secure or error-free
  as information could be intercepted, corrupted, lost, destroyed,
  arrive late or incomplete, or contain viruses.  The sender therefore
  does not accept liability for any errors or omissions in the contents
  of this message which arise as a result of e-mail transmission.  If
  verification is required please request a hard-copy version.  This
  message is provided for informational purposes and should not be
  construed as a solicitation or offer to buy or sell any securities or
  related financial instruments.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Re: RE: Modify the generated report site in Maven 2

2006-08-04 Thread Stefan Magnus Landrø
try adding  ${reports} to your site.xml:


?xml version=1.0 encoding=ISO-8859-1?
project name=Maven
 bannerLeft
 nameMaven/name
 src
 
http://maven.apache.org/images/apache-maven-project.png
 /src
 hrefhttp://maven.apache.org//href
 /bannerLeft
 bannerRight
 srchttp://maven.apache.org/images/maven-small.gif/src
 /bannerRight
 body
 links
 item name=Apache 
href=http://www.apache.org/; /
 item name=Maven 1.0 
href=http://maven.apache.org/; /
 item name=Maven 2 
href=http://maven.apache.org/maven2/; /
 /links

 menu name=Maven 2.0
 item name=Introduction 
href=index.html /
 item name=Download 
href=download.html /
 item name=Release 
Notes href=release-notes.html /
 item name=General 
Information href=about.html /
 item name=For Maven 1.0 
Users href=maven1.html /
 item name=Road Map 
href=roadmap.html /
 /menu
 menu name=testing
 item name=FAQtest 
href=faq.html /
 item name=FeaturesTest 
href=features.html /
 /menu

 ${reports}

 /body
/project

Per Bondesson (KA/EAB) [EMAIL PROTECTED] skrev 04.08.2006 
13:44:17:

 This site.xml works fine, but when I don't use a site.xml a default 
 site.xml is used and all the reports is shown on the site(really 
 nice). Can I still have that and just add some links to it in the 
 menu to the left?
 
 Thanks!
 
 ?xml version=1.0 encoding=ISO-8859-1?
 project name=Maven
bannerLeft
   nameMaven/name
   src
  http://maven.apache.org/images/apache-maven-project.png
   /src
   hrefhttp://maven.apache.org//href
/bannerLeft
bannerRight
   srchttp://maven.apache.org/images/maven-small.gif/src
/bannerRight
body
   links
  item name=Apache href=http://www.apache.org/; /
  item name=Maven 1.0 href=http://maven.apache.org/; /
  item name=Maven 2 href=http://maven.apache.org/maven2/; /
   /links
 
   menu name=Maven 2.0
  item name=Introduction href=index.html /
  item name=Download href=download.html /
  item name=Release Notes href=release-notes.html /
  item name=General Information href=about.html /
  item name=For Maven 1.0 Users href=maven1.html /
  item name=Road Map href=roadmap.html /
   /menu
   menu name=testing
  item name=FAQtest href=faq.html /
  item name=FeaturesTest href=features.html /
   /menu
 
/body
 /project 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:Fred.
 [EMAIL PROTECTED] 
 Sent: den 4 augusti 2006 13:37
 To: users@maven.apache.org
 Subject: AW: Modify the generated report site in Maven 2
 
 Can you send us your site.xml?
 
 
 -Ursprüngliche Nachricht-
 Von: Per Bondesson (KA/EAB) [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 4. August 2006 13:22
 An: Maven Users List
 Betreff: RE: Modify the generated report site in Maven 2
 
 
 Thank you. This works when you do the site from scratch.
 Can you append stuff like this from the default generated site with 
 all the reports and all?
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:Fred.
 [EMAIL PROTECTED]
 Sent: den 4 augusti 2006 11:22
 To: users@maven.apache.org
 Subject: AW: Modify the generated report site in Maven 2
 
 src/site/site.xml:
 
   body
 ...
 ...
 
menu name=kdg_common
   item name=FAQ href=faq.html/
   item name=Features href=features.html/ 
 /menu
 
 
 
 
 
 -Ursprüngliche Nachricht-
 Von: Per Bondesson (KA/EAB) [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 4. August 2006 11:19
 An: users@maven.apache.org
 Betreff: Modify the generated report site in Maven 2
 
 
 Hi!
 How can you add a link in the left menu och the generated report site?
 Is it possible to modify it for your own needs?
 
 Thanks!
 /Per
 
 
 
 
 Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen 
 aus einer Hand. Informieren Sie sich über unsere Produkte unter 
 
 www.kabeldeutschland.de
 
 Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder 
 rechtlich 

Re: Re: m2/eclipse/wtp configuration + tapestry

2006-08-03 Thread Stefan Magnus Landrø
Could you send a copy your pom. It would be nice to go the other way 
around (mvn eclipse:eclipse etc).




Kev D'Arcy Kevin.A.D'[EMAIL PROTECTED] 
03.08.2006 12:33
Vennligst send svar til
Maven Users List users@maven.apache.org


Til
Maven Users List users@maven.apache.org
cc

Emne
Re: m2/eclipse/wtp configuration + tapestry






Borut

That seems to have done the trick! Thanks for the tips!

Kev

Borut Bolčina wrote:
 Hello Kev,

 I configured Eclipse 3.2, WTP 1.5 and Maven 2.0.4 to play in the same
 band. Here is how I prepared my environment for developing Tapestry
 web applications:

   1. Create new Dynamic Web project with Eclipse. Enter src/main/webapp
  for Content Directory. Enter src/main/java for Java Source
 Directory.
   2. Install Eclipse plugin via Help/Software Updates/Find and Install
  (http://m2eclipse.codehaus.org/).
   3. Install Eclipse plugin for synchronizing WTP Web App Libraries
  with Maven dependencies (http://adam.kruszewski.name/eclipse/)
  also with Software Updates. See
  http://jira.codehaus.org/browse/MNGECLIPSE-105?page=all for more
  on this sync issue.
   4. Enable your project for Maven2 by right clicking on project and
  choosing Maven2/Enable. Enter POM values, don't forget to set war
  for Packaging. The icon indicating that your project is a WTP
  project will be replaced my small red letter m. Also Maven2
  Dependencies library will show up (empty).
   5. Right click on your project in Package Explorer (I work in Java
  Perspective) and choose Properties. Find  LibCopy properties in
  the list and  check the only checkbox and be sure that Local
  folder points to src/main/webapp/WEB-INF/lib.
   6. Add dependent library  (say Tapestry) by right clicking the
  project and then Maven2/Add  Dependency. In the dialog type
  tapestry which will show up a list of possible artifacts. Choose
  version 4.0.2 and wait for all jars to download (there should be
  10). Maven2 Dependency library in Package Explorer should now
  contain references to jars in your local maven repository. Also
  Web App Libraries should contain white jar icons with a small
  arrow in the lower right corner.
   7. Configure Tomcat (or any other container) in
  Preferences/Server/Installed Runtime and then attach your project
  to this server instance.
   8. Specific instructions for Tapestry can be found at
  http://wiki.apache.org/tapestry/HowToSetupEclipseWtp

 You can now change HTML _and_ Java source files without copying
 anything anywhere. This is as rapid as it gets in pro/large web app
 development as far as I can tell. Having HTML designer doing page
 mockups with Dreamweaver _in parallel_ with Tapestry coder, both using
 Subversion, is a winning game but this is already off-topic.

 I hope this recipe will get you up to speed.

 Cheers,
 Borut Bolčina

 Kev D'Arcy pravi:
 Hi,

 I'm trying to set-up a dynamic web project in eclipse 3.2 using wtp 1.5
 and maven. I have everything in my project compiling correctly but the
 runtime classpath is missing all the dependencies that are defined
 in my pom.xml. Do they need to be defined in the .classpath file as 
well
 as in the pom.xml?

 Kev


 


 This document is strictly confidential and is intended for use by
  the addressee unless otherwise indicated.

 This email has been scanned by an external Email Security System.

 Allied Irish Banks
 




 -
 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: Re: m2/eclipse/wtp configuration + tapestry

2006-08-03 Thread Stefan Magnus Landrø
/commons-dbutils-1.0.jar/name
 type1/type
 locationE:/maven-test/repos/commons-dbutils/commons-dbutils/1.
 0/commons-dbutils-1.0.jar/location
 /link
 link
 namesrc/main/webapp/WEB-INF/lib/xml-apis-1.0.b2.jar/name
 type1/type
 locationE:/maven-test/repos/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.
 b2.jar/location
 /link
 link
 namesrc/main/webapp/WEB-INF/lib/myfaces-impl-1.1.3.jar/name
 type1/type
 locationE:/maven-test/repos/myfaces/myfaces-impl/1.1.3/myfaces-
 impl-1.1.3.jar/location
 /link
 /linkedResources
 /projectDescription
 
 
 ?xml version=1.0?
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 groupIdaib.dos/groupId
 artifactIdnewport/artifactId
 packagingwar/packaging
 nameNewport Webapp/name
 version0.1-SNAPSHOT/version
 urlhttp://maven.apache.org/url
 build
 finalNameNewport/finalName
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
 source1.4/source
 target1.4/target
 /configuration
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-eclipse-plugin/artifactId
 configuration
 wtpversion1.5/wtpversion
 buildcommands/
 classpathContainers/
 projectnatures/
 /configuration
 /plugin
 /plugins
 /build
 dependencies
 dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version4.0/version
 scopetest/scope
 /dependency
 dependency
 groupIdcommons-beanutils/groupId
 artifactIdcommons-beanutils/artifactId
 version1.7.0/version
 /dependency
 dependency
 groupIdcommons-codec/groupId
 artifactIdcommons-codec/artifactId
 version1.3/version
 /dependency
 dependency
 groupIdcommons-collections/groupId
 artifactIdcommons-collections/artifactId
 version3.1/version
 /dependency
 dependency
 groupIdcommons-dbutils/groupId
 artifactIdcommons-dbutils/artifactId
 version1.0/version
 /dependency
 dependency
 groupIdcommons-digester/groupId
 artifactIdcommons-digester/artifactId
 version1.6/version
 /dependency
 dependency
 groupIdcommons-el/groupId
 artifactIdcommons-el/artifactId
 version1.0/version
 /dependency
 dependency
 groupIdcommons-fileupload/groupId
 artifactIdcommons-fileupload/artifactId
 version1.0/version
 /dependency
 dependency
 groupIdcommons-lang/groupId
 artifactIdcommons-lang/artifactId
 version2.1/version
 /dependency
 dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.0.4/version
 /dependency
 dependency
 groupIdjavax.servlet/groupId
 artifactIdjstl/artifactId
 version1.1.0/version
 /dependency
 dependency
 groupIdmyfaces/groupId
 artifactIdtomahawk/artifactId
 version1.1.3/version
 /dependency
 dependency
 groupIdcom.microsoft.jdbcdriver/groupId
 artifactIdmsbase/artifactId
 version2000.3/version
 /dependency
 dependency
 groupIdcom.microsoft.jdbcdriver/groupId
 artifactIdmsutil/artifactId
 version2000.3/version
 /dependency
 dependency
 groupIdcom.microsoft.jdbcdriver/groupId
 artifactIdmssqlserver/artifactId
 version2000.3/version
 /dependency
 dependency
 groupIdmyfaces/groupId
 artifactIdmyfaces-api/artifactId
 version1.1.3/version
 /dependency
 dependency
 groupIdmyfaces/groupId
 artifactIdmyfaces-impl/artifactId
 version1.1.3/version
 /dependency
 /dependencies
 /project
 
 Stefan Magnus Landrø wrote:
  Could you send a copy your pom. It would be nice to go the other way 
  around (mvn eclipse:eclipse etc).
 
 
 
 
  Kev D'Arcy Kevin.A.D'[EMAIL PROTECTED] 
  03.08.2006 12:33
  Vennligst send svar til
  Maven Users List users@maven.apache.org
 
 
  Til
  Maven Users List users@maven.apache.org
  cc
 
  Emne
  Re: m2/eclipse/wtp configuration + tapestry
 
 
 
 
 
 
  Borut
 
  That seems to have done the trick! Thanks for the tips!
 
  Kev
 
  Borut Bolčina wrote:
  
  Hello Kev,
 
  I configured Eclipse 3.2, WTP 1.5 and Maven 2.0.4 to play in the same
  band. Here is how I prepared my environment for developing Tapestry
  web applications:
 
1. Create new Dynamic Web project with Eclipse. Enter 
src/main/webapp
   for Content Directory. Enter src/main/java for Java Source
  Directory.
2. Install Eclipse plugin via Help/Software Updates/Find and 
Install
   (http://m2eclipse.codehaus.org/).
3. Install Eclipse plugin for synchronizing WTP Web App Libraries
   with Maven dependencies (http://adam.kruszewski.name/eclipse/)
   also with Software Updates. See
   http://jira.codehaus.org/browse/MNGECLIPSE-105?page=all for more
   on this sync issue.
4. Enable your project for Maven2 by right clicking on project and
   choosing Maven2/Enable. Enter POM values, don't forget to set 
war
   for Packaging. The icon indicating that your project is a WTP
   project will be replaced my small red letter m. Also Maven2
   Dependencies library will show up (empty).
5. Right click on your project in Package Explorer (I work in Java

Re: Eclipse tomcat maven upgrade

2006-08-02 Thread Stefan Magnus Landrø
Hi there,

I recommend using eclipse with wtp (seb tools platform). Setup tomcat as a 
server in eclipse, and add the maven project to the server configuration.
The libs will be deployed automaticallly.

Remember adding wtp support to your pom (config setting in the 
maven-eclipse-plugin) - see earlier post on this matter from today.

You don't need a particular tomcat plugin.

HTH

Denis McCarthy [EMAIL PROTECTED] skrev 02.08.2006 10:37:48:

 Hi,
 I'm looking at moving an ant based tomcat project to maven. I'm using 
 eclipse as the IDE. Currently I use the eclipse tomcat plugin to get the 

 project running in tomcat (I have a web/ dir in the project that holds 
 WEB-INF/ and all jsp's etc). I'd like to know how to handle this common 
 scenario using maven.
 
 As maven keeps jars in its own repository, how should I deploy the jars 
 required for the project to web/WEB-INF/lib? What's the recommended way 
 to manage such a project in maven? Should I use maven to manage the 
 tomcat integration entirely, and forget about the eclipse tomcat plugin? 

 (I've just moved to eclipse 3.2, so I'd have to reinstall the tomcat 
 plugin if I were to use it anyway)
 Thanks
 Denis
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Re: Eclipse tomcat maven upgrade

2006-08-02 Thread Stefan Magnus Landrø
I've used this approach myself. It works perfectly.

Denis McCarthy [EMAIL PROTECTED] skrev 02.08.2006 15:10:39:

 Stefan - I was actually in the process of investigating the approach 
 you've recommended. Thanks for confirming this is sensible.
 Denis
 
 Stefan Magnus Landrø wrote:
  Hi there,
  
  I recommend using eclipse with wtp (seb tools platform). Setup tomcat 
as a 
  server in eclipse, and add the maven project to the server 
configuration.
  The libs will be deployed automaticallly.
  
  Remember adding wtp support to your pom (config setting in the 
  maven-eclipse-plugin) - see earlier post on this matter from today.
  
  You don't need a particular tomcat plugin.
  
  HTH
  
  Denis McCarthy [EMAIL PROTECTED] skrev 02.08.2006 10:37:48:
  
  Hi,
  I'm looking at moving an ant based tomcat project to maven. I'm using 

  eclipse as the IDE. Currently I use the eclipse tomcat plugin to get 
the 
  
  project running in tomcat (I have a web/ dir in the project that 
holds 
  WEB-INF/ and all jsp's etc). I'd like to know how to handle this 
common 
  scenario using maven.
 
  As maven keeps jars in its own repository, how should I deploy the 
jars 
  required for the project to web/WEB-INF/lib? What's the recommended 
way 
  to manage such a project in maven? Should I use maven to manage the 
  tomcat integration entirely, and forget about the eclipse tomcat 
plugin? 
  
  (I've just moved to eclipse 3.2, so I'd have to reinstall the tomcat 
  plugin if I were to use it anyway)
  Thanks
  Denis
 
  -
  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: Re: Re: m2/eclipse/wtp configuration

2006-08-02 Thread Stefan Magnus Landrø
Hi,

it should not be necessary to put the jars in the lib folder. maven should 
handle it automatically.

what happens if you try a mvn package? do the dependencies end up in the 
web-inf\lib folder then?

Kev D'Arcy Kevin.A.D'[EMAIL PROTECTED] skrev 02.08.2006 15:25:53:

 Stefan,
 
 Still no joy, the JSF libraries still aren't being picked up by the
 tomcat runtime:
 SEVERE: Error configuring application listener of class
 org.apache.myfaces.webapp.StartupServletContextListener
 java.lang.ClassNotFoundException:
 org.apache.myfaces.webapp.StartupServletContextListener
 
 Should I be putting the jar files into the lib folder on my web app as 
well?
 
 Kev
 
 Stefan Magnus Landrø wrote:
  Hi Kev,
 
  Try adding something like this to your pom:
 
build
  finalNametest-app/finalName
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-eclipse-plugin/artifactId
  configuration
wtpversion1.0/wtpversion
buildcommands /
classpathContainers/
projectnatures /
  /configuration
/plugin
 /plugins
  /build
 
 
  see plugin doc for more details.
 
  Stefan
 
  Kev D'Arcy Kevin.A.D'[EMAIL PROTECTED] skrev 01.08.2006 11:16:13:
 
  
  Stefan,
 
  The classpath does have the Maven2 Dependencies in it, but it's just 
not
  picking them up at runtime. I attached the 3 config files
 
  Kev
 
  ?xml version=1.0 encoding=UTF-8?
  classpath
 classpathentry kind=src path=src/main/java/
 classpathentry kind=src path=src/test/java/
 classpathentry excluding=** output=src/main/resources 
  kind=src path=src/main/resources/
 classpathentry kind=con 
  
  path=org.eclipse.jdt.launching.JRE_CONTAINER/
  
 classpathentry kind=con path=org.eclipse.jst.server.core.
  container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat 
  v5.5 JDK 1.4/
 classpathentry kind=con path=org.eclipse.jst.j2ee.internal.
  web.container/
 classpathentry kind=con path=org.maven.ide.eclipse.
  MAVEN2_CLASSPATH_CONTAINER/
 classpathentry kind=output 
  
  path=src/main/webapp/WEB-INF/classes/
  
  /classpath
 
  ?xml version=1.0 encoding=UTF-8?
  projectDescription
 nameNewport/name
 comment/comment
 projects
 /projects
 buildSpec
buildCommand
   nameorg.eclipse.jdt.core.javabuilder/name
   arguments
   /arguments
/buildCommand
buildCommand
  nameorg.eclipse.wst.common.project.facet.core.builder/name
   arguments
   /arguments
/buildCommand
buildCommand
   nameorg.eclipse.wst.validation.validationbuilder/name
   arguments
   /arguments
/buildCommand
buildCommand
   nameorg.maven.ide.eclipse.maven2Builder/name
   arguments
   /arguments
/buildCommand
 /buildSpec
 natures
natureorg.maven.ide.eclipse.maven2Nature/nature
  natureorg.eclipse.wst.common.project.facet.core.nature/nature
natureorg.eclipse.jdt.core.javanature/nature
  natureorg.eclipse.wst.common.modulecore.ModuleCoreNature/nature
natureorg.eclipse.jem.workbench.JavaEMFNature/nature
 /natures
  /projectDescription
 
  ?xml version=1.0?
  project
modelVersion4.0.0/modelVersion
groupIdaib.dos.app/groupId
artifactIdtest-app/artifactId
packagingwar/packaging
nameMaven Webapp Archetype/name
version0.1-SNAPSHOT/version
urlhttp://maven.apache.org/url
build
  finalNametest-app/finalName
/build
dependencies
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.0/version
scopetest/scope
  /dependency
  dependency
groupIdcommons-beanutils/groupId
artifactIdcommons-beanutils/artifactId
version1.7.0/version
  /dependency
  dependency
groupIdcommons-codec/groupId
artifactIdcommons-codec/artifactId
version1.3/version
  /dependency
  dependency
groupIdcommons-collections/groupId
artifactIdcommons-collections/artifactId
version3.1/version
  /dependency
  dependency
groupIdcommons-dbutils/groupId
artifactIdcommons-dbutils/artifactId
version1.0/version
  /dependency
  dependency
groupIdcommons-digester/groupId
artifactIdcommons-digester/artifactId
version1.6/version
  /dependency
  dependency
groupIdcommons-el/groupId
artifactIdcommons-el/artifactId
version1.0/version
  /dependency
  dependency
groupIdcommons-fileupload/groupId
artifactIdcommons-fileupload/artifactId
version1.0/version
  /dependency
  dependency
groupIdcommons-lang/groupId
artifactIdcommons-lang/artifactId
version2.1/version
  /dependency
  dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging

Re: m2/eclipse/wtp configuration

2006-08-01 Thread Stefan Magnus Landrø
the classpath files should be generated automatically by the maven-eclipse 
plugin.
Have you added a setting for wtp support in your pom? (see eclipse plugin 
for details)

stefan

Kev D'Arcy Kevin.A.D'[EMAIL PROTECTED] skrev 31.07.2006 18:59:09:

 Hi,
 
 I'm trying to set-up a dynamic web project in eclipse 3.2 using wtp 1.5
 and maven. I have everything in my project compiling correctly but the
 runtime classpath is missing all the dependencies that are defined
 in my pom.xml. Do they need to be defined in the .classpath file as well
 as in the pom.xml?
 
 Kev
 
 
 

 This document is strictly confidential and is intended for use by
  the addressee unless otherwise indicated.
 
 This email has been scanned by an external Email Security System.
 
 Allied Irish Banks
 

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


Re: Maven2 eclipse plugin

2006-08-01 Thread Stefan Magnus Landrø
Hi,

Personally I use the cli for building. Also, I bleieve, the development on 
the eclipse plugin hasn't come that far yet (ie. it might be buggy).



Marco Mistroni [EMAIL PROTECTED] skrev 01.08.2006 15:05:51:

 hi all,
  i have a project  in which i am using Maven2...
 so far i have used Notepad/TextPad as java editor, but now i wanted to 
move
 to Eclipse
 i followed steps outlined here
 
 http://maven.apache.org/guides/mini/guide-ide-eclipse.html
 
 fact is, my project is a MultiProject made of a main project and two
 subprojects.
 
 I followed stepso utlined in the link above, however when i tried to run
 maven2
 from eclipse (launching hte 'parent' pom.xml), it did nothing it 
just
 outputted
 
 [INFO]
 

 [INFO] Building Maven Quick Start Archetype
 [INFO]task-segment: [clean, compile]
 [INFO]
 

 [INFO] clean:clean
 [INFO] Deleting directory D:\Sw\step-by-step\middleware\target
 [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes
 [INFO] Deleting directory 
D:\Sw\step-by-step\middleware\target\test-classes
 [INFO] No goals needed for project - skipping
 [INFO]
 

 [INFO] BUILD SUCCESSFUL
 [INFO]
 

 [INFO] Total time: 0 second
 [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006
 [INFO] Memory 0M/2M
 [INFO]
 

 
 it looks like it is not picking up the dependent project, even though my 
pom
 is as follows
 
 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
 http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdmiddleware/groupId
   artifactIdmiddleware/artifactId
   packagingpom/packaging
   version1.0-SNAPSHOT/version
   nameMaven Quick Start Archetype/name
   urlhttp://maven.apache.org/url
   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
 /dependency
 
 
   /dependencies
   modules
 modulemyMiddleware/module
   /modules
   build
   pluginManagement
  plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
 /plugin
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
configuration
   unzipCommand/usr/bin/unzip -o  
err.txt/unzipCommand
/configuration
 /plugin
 
  /plugins
   /pluginManagement
/build
   dependencyManagement
   dependencies
 dependency
 groupIdgeronimo-spec/groupId
 artifactIdgeronimo-spec-j2ee/artifactId
 version1.4-rc4/version
 scopeprovided/scope
 /dependency
 dependency
groupIdfop/groupId
artifactIdfop/artifactId
version0.20.5rc2/version
 /dependency
 dependency
groupIdaxis/groupId
artifactIdaxis-saaj/artifactId
version1.3/version
 /dependency
 dependency
groupIdaxis/groupId
artifactIdaxis/artifactId
version1.3/version
 /dependency
 
 
  /dependencies
/dependencyManagement
 /project
 
 
 
 if i go to the commanline instead, everything works fine
 
 could anyone help me out?
 
 my project structure is as follows
 
 middleware
| myMiddleware
 
 could anyone help me out?
 
 thanks and regards
  marco


Re: Maven2 - Where to put script files?

2006-08-01 Thread Stefan Magnus Landrø
I believe the scripts folder is the best place for this kind of stuff


CodingPlayer [EMAIL PROTECTED] skrev 01.08.2006 15:47:31:

 
 Hi,
 
 i just browsed through the standard directory layout for Maven2. 
 http://maven.apache.org/guides/introduction/introduction-to-the-
 standard-directory-layout.html
 here 
 
 I still could not find out where to put my shell-scripts (batch-files), 
that
 for example start my application from the CLI.
 
 
 If anyone knows what is the best practice where to put these 
additional
 .bat and .sh files, pls let me know.
 (Since they are not needed in the classpath, i guess it is wrong to put 
them
 into the resources directory.)
 
 i would just need them for some assemblies, e.g. an assembly for a LINUX 
OS
 would include some shell scripts (.sh), while an assembly for a WINDOWS 
OS
 would include some batch files (.bat). Both of them would start up my
 application/singular services.
 
 regards
 R.C.
 
 
 -- 
 View this message in context: http://www.nabble.com/Maven2---Where-
 to-put-script-files--tf2033674.html#a5594755
 Sent from the Maven - Users forum at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Stefan Magnus Landrø
Have a look at transitive dependencies too (see Better builds with maven 
for more details).

HTH

Barrie Treloar [EMAIL PROTECTED] skrev 31.07.2006 11:42:46:

 On 7/31/06, Roland Förther [EMAIL PROTECTED] wrote:
  Hi,
 
  is it possible to specify a dependency on several modules
  by a single dependency declaration (e.g. by a dependency on a parent
  pom)?
 
 You might want to explain more of what you are trying to do.
 
 Also you might want to make sure the terminology you use is correct.
 It took me a while to work it out and I can't guarantee I'm 100% 
correct.
 
 A module is just a way to make building your application easier from
 the command line.
 It has zero effect on dependencies since in order to be a parent
 module and have modules your project must be of type pom, which is
 doesn't compile anything. (You do get pom.xml inheritance but that is
 not the same as dependencies).  Through the use of modules you can run
 a single maven command at the parent level and it will also be run on
 all the modules.
 
 A dependency is where your artifact requires the other artifact. And
 with Maven 2 this is now transitive.  So if artifact A depends on
 artifact B, and artifact B depends on C, then artifact A will
 automatically pull in C through B.  You can have dependencies without
 having a module.
 
 HTH
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Ad: Re: Howto declare a dependency on a group of modules

2006-07-31 Thread Stefan Magnus Landrø
We've done something similar. We use project of type pom that declares 
dependencies to things that several of our projects need.

So, create a project with all the EJB dependencies, and include it as a 
standard dependency. The transitive-dependency mechanism in maven will 
take care of the rest.

Stefan

Roland Förther [EMAIL PROTECTED] skrev 31.07.2006 12:33:04:

 Hi,
 
 On 31.07.2006 at 11:42, Barrie Treloar wrote:
 
  On 7/31/06, Roland Förther [EMAIL PROTECTED] wrote:
  Hi,
 
  is it possible to specify a dependency on several modules
  by a single dependency declaration (e.g. by a dependency on a parent
  pom)?
 
  You might want to explain more of what you are trying to do.
 
 Ok, let me describe, what I'm trying to do. Think of a web client,
 which acts on a J2EE middleware using many ejb client JARs.
 Each ejb client JAR is an artifact generated by a maven project with 
 type 'ejb'.
 These ejb projects do not depend on each other and are part
 of what we call a middleware application.
 
 In the web client's POM I have to make a dependency declaration
 on each ejb client jar separately. It would be nice for convenience 
 to have
 a kind of maven project, which for example could be called 
 'application-x-ejb-client',
 that bundles the dependencies for a client and might help deliver 
 them all
 by providing a single dependency declaration on application-x-ejb-client
 in thw web client's POM.
 
 
 
  Also you might want to make sure the terminology you use is correct.
  It took me a while to work it out and I can't guarantee I'm 100% 
  correct.
 
  A module is just a way to make building your application easier from
  the command line.
  It has zero effect on dependencies since in order to be a parent
  module and have modules your project must be of type pom, which is
  doesn't compile anything. (You do get pom.xml inheritance but that is
  not the same as dependencies).  Through the use of modules you can run
  a single maven command at the parent level and it will also be run on
  all the modules.
 
  A dependency is where your artifact requires the other artifact. And
  with Maven 2 this is now transitive.  So if artifact A depends on
  artifact B, and artifact B depends on C, then artifact A will
  automatically pull in C through B.  You can have dependencies without
  having a module.
 
 I agree.
 
 
  HTH
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 Thanks,
 
 Roland
 
 __
 Roland Förther  100world.com AG
 [EMAIL PROTECTED]www.100world.com
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: internal repository

2006-07-31 Thread Stefan Magnus Landrø
Please see the Better build with maven book - online and free.

sharmishta.kaul [EMAIL PROTECTED] skrev 31.07.2006 
14:26:27:

 Could anyone please provide me examples to create my internal 
 repository. I have not worked in maven before
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

Re: Plugin configuration with properties from settings.xml

2006-07-31 Thread Stefan Magnus Landrø
You have to add databaseServer as a property in your plugin. What kind of 
mojo is it? Have you had a look at better builds with maven?

Olivier Catteau [EMAIL PROTECTED] skrev 31.07.2006 15:58:01:

 Hi,
 I would like to be able to configure my plugin with properties that are
 stored in the settings.xml.
 Here is a piece of my settings.xml :
 
 settings
 ...
 profiles
 profile
 iddatabase-developer/id
 activation
 property
 name!database/name
 /property
 /activation
 properties
 databaseServerad_daf1/databaseServer
 databasePort34105/databasePort
 /properties
 /profile
 /profiles
 ...
 /settings
 
 
 Here is a pom to test my plugin :
 
 project
 namePOM For test/name
 build
 plugins
 plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
 execution
 phasecompile/phase
 configuration
 tasks
 echodatabaseServer :
 ${databaseServer}/echo
  /tasks
 
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
 /plugin
 plugin
 groupId.../groupId
 artifactId.../artifactId
 configuration
 databaseServer${databaseServer}/databaseServer
 databasePort${databasePort}/databasePort
 /configuration
 /plugin
 /plugins
 /build
 /project
 
 If I execute my plugin, the ant task resolve the property 
${databaseServer}.
 But, in my mojo, I inject these properties and  ${databaseServer} isn't
 resolved, so my attribute databaseServer equals ${databaseServer}.
 How can I do to resolve these properties in my mojo ? Do I need to
 explicitely use something like the plexus ExpressionEvaluator to resolve
 them (a piece of code may help me) ?
 
 Thanks
 
 Olivier


Ad: Issues related to snapshot versions of dependencies and filenames

2006-07-28 Thread Stefan Magnus Landrø
I believe I found the solution to this issue.

I placed the following snipplet in the jar-projects that my project depend 
upon, and made sure to use uniqueVersion set to false.
A fresh deploy of these jar-projects then wrote a -SNAPSHOT.jar to the 
company repository (you only get timestamped versions if you use 
uniqueVersion=true(default))

distributionManagement
snapshotRepository
idinternal/id
nameCompany Repository/name
urlfile:\\server\repo-local/url
uniqueVersionfalse/uniqueVersion
/snapshotRepository
/distributionManagement

To bad there is nothing about this in the mergere book

Stefan 


Stefan Magnus Landrø [EMAIL PROTECTED] skrev 27.07.2006 
15:55:34:

 Hi there,
 
 We've run into the following issue:
 
 Our war project depends on a certain number of in house jar projects. 
Now, 
 these jar projects are under development, so we're using snapshots, and 
 publishing these to our company repository on a regular basis.
 
 Now, the thing is that on some environments, the snapshot-jars end up in 

 the web-inf\lib dir with filenames as follows: 
 jarproject-3.1-20060725.121629-3.jar, whereas on other environments they 

 end up with the following filename jarproject-3.1-SNAPSHOT.jar
 
 You might say, this is not a problem, because they get loaded by the 
 classloader anyways, however, we're using a portal framework that 
requires 
 the filenames to be known in advance.
 
 Does anyone know why this happens, and how we can get around this issue?
 
 Kind regards,
 
 Stefan Magnus Landrø
 BEKK Consulting


Ad: Maven 2.0 Eclipse Plug-in compatibility with Eclipse 3.2.x (and IBM RAD 6.x)

2006-07-28 Thread Stefan Magnus Landrø
The latest version works fine with eclipse 3.1.2.

However, I don't find the plugin too beneficial though - I prefer using 
the cmd line.

Stefan

[EMAIL PROTECTED] skrev 28.07.2006 10:34:08:

 
 Hi 
 
 About the Maven 2.0 Eclipse IDE Plug-in http://m2eclipse.codehaus.org/
 
 I tried a software update with Eclipse 3.2 and the plug-in failed.
 What is the status? 
 
 One more question. Is there a version of the M2EP that works with
 IBM Rational Software Development Platform 6.x 
 ( i.e olde Eclipse 3.0.2 circa 2004/2005 ) ?
 
 
 --
 Peter Pilgrim
 UBS Investment Bank, 
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 :: Java EE / E-Commerce / Spring Framework / Development ::
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is intended only 
 for the individual named.  If you are not the named addressee you 
 should not disseminate, distribute or copy this e-mail.  Please 
 notify the sender immediately by e-mail if you have received this 
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free 
 as information could be intercepted, corrupted, lost, destroyed, 
 arrive late or incomplete, or contain viruses.  The sender therefore 
 does not accept liability for any errors or omissions in the contents 
 of this message which arise as a result of e-mail transmission.  If 
 verification is required please request a hard-copy version.  This 
 message is provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any securities or 
 related financial instruments.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Maven 2.0 Eclipse Plug-in compatibility with Eclipse 3.2.x (and IBMRAD 6.x)

2006-07-28 Thread Stefan Magnus Landrø
Well, the plugin does allow access to the repository, but have you tried 
this site:

http://www.mvnregistry.com/


[EMAIL PROTECTED] skrev 28.07.2006 12:55:37:

 So there is no Maven 2 plug-in for Eclipse then worth
 looking at?
 
 I remember there was interesting Maven 1 plug-in that allowed
 access to the maven repository. Is there any development going
 on there to port the old M1 Eclipse IDE plug-in to M2?
 
  -Original Message-
  From: Roland Asmann [mailto:[EMAIL PROTECTED] 
  Sent: 28 July 2006 11:03
  To: Maven Users List
  Subject: Re: Ad: Maven 2.0 Eclipse Plug-in compatibility with 
  Eclipse 3.2.x (and IBM RAD 6.x)
  
  Imho one shouldn't use the m2eclipse-plugin, but just the 
  'normal' eclipse-plugin for maven...
  As for the RAD-version, a colleague and I are working on that 
  for one of our customers and we are willing (and allowed) to 
  release that stuff. We are not exactly sure on WHEN we will 
  release it, but it shouldn't be too long...
  
  Roland
  
  
  
  On Friday 28 July 2006 10:57, Stefan Magnus Landrø wrote:
   The latest version works fine with eclipse 3.1.2.
  
   However, I don't find the plugin too beneficial though - I prefer 
   using the cmd line.
  
   Stefan
  
   [EMAIL PROTECTED] skrev 28.07.2006 10:34:08:
Hi
   
About the Maven 2.0 Eclipse IDE Plug-in 
http://m2eclipse.codehaus.org/
   
I tried a software update with Eclipse 3.2 and the plug-in failed.
What is the status?
   
One more question. Is there a version of the M2EP that works with 
IBM Rational Software Development Platform 6.x ( i.e olde Eclipse 
3.0.2 circa 2004/2005 ) ?
   
   
--
Peter Pilgrim
UBS Investment Bank,
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
   
:: Java EE / E-Commerce / Spring Framework / Development ::
   
Visit our website at http://www.ubs.com
 ====
 
 --
 Peter Pilgrim
 UBS Investment Bank, 
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 :: Java EE / E-Commerce / Spring Framework / Development ::
 
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is intended only 
 for the individual named.  If you are not the named addressee you 
 should not disseminate, distribute or copy this e-mail.  Please 
 notify the sender immediately by e-mail if you have received this 
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free 
 as information could be intercepted, corrupted, lost, destroyed, 
 arrive late or incomplete, or contain viruses.  The sender therefore 
 does not accept liability for any errors or omissions in the contents 
 of this message which arise as a result of e-mail transmission.  If 
 verification is required please request a hard-copy version.  This 
 message is provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any securities or 
 related financial instruments.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Dependancy within the modules while generating the site. Help Needed.

2006-07-28 Thread Stefan Magnus Landrø
run a mvn install from the top-level project first. it should work then.

hth,

Stefan

Abhijit Diwan [EMAIL PROTECTED] skrev 28.07.2006 12:30:01:

 
 
 Hi all
 
 
 
  I have 2 modules under the main project POM. The directory
 structure looks like this
 
 
 
 *   JCA15Adapter
 
   *   pom.xml
   *   AeConnector
 
  *   Pom.xml
 
   *   EjbSupport
 
  *   Pom.xml
 
 
 
 Main project pom has dependencyManagement section which is as following
 
 
 
 dependencyManagement
 
 dependencies
 
 dependency
 
 groupIdcom.tibco.ejb/groupId
 
 artifactIdEjbSupport/artifactId
 
 version${project.version}/version
 
 /dependency
 
 /dependencies
 
 /dependencyManagement
 
 
 
 Now in AeConnector module I have reference to this other module which is
 EjbSupport as following
 
 
 
 project
 
 parent
 
 groupIdcom.tibco.ejb/groupId
 
 artifactIdJCA15Adapter/artifactId
 
 version1.0-SNAPSHOT/version
 
 /parent
 
 modelVersion4.0.0/modelVersion
 
 artifactIdAeConnector/artifactId
 
 packagingjar/packaging
 
 nameAeConnector API/name
 
 dependencies
 
 dependency
 
 groupIdcom.tibco.ejb/groupId
 
 artifactIdEjbSupport/artifactId
 
 /dependency
 
 /dependencies
 
 /project
 
 
 
 Pom for EjbSupport looks like this 
 
 
 
 project
 
 parent
 
 groupIdcom.tibco.ejb/groupId
 
 artifactIdJCA15Adapter/artifactId
 
 version1.0-SNAPSHOT/version
 
 /parent
 
 modelVersion4.0.0/modelVersion
 
 artifactIdEjbSupport/artifactId
 
 packagingjar/packaging
 
 nameSupport API/name
 
 /project
 
 
 
 As far as compile phase is considered it goes fine and dependencies
 related to EjbSupport module are resolved but when I try to build a site
 usin mvn site I always get following error.
 
 
 
 [INFO] Building AeConnector API
 
 [INFO]task-segment: [site]
 
 [INFO]
 
 
 ---
 
 [INFO]
 
 
 [ERROR] BUILD ERROR
 
 [INFO]
 
 
 [INFO] Failed to resolve artifact.
 
 
 
 Missing:
 
 --
 
 1) com.tibco.ejb:EjbSupport:jar:1.0-SNAPSHOT
 
 
 
   Try downloading the file manually from the project website.
 
 
 
   Then, install it using the command:
 
   mvn install:install-file -DgroupId=com.tibco.ejb
 -DartifactId=EjbSupport
 
 
 
   -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
 
 
 
   Path to dependency:
 
 1) com.tibco.ejb:AeConnector:jar:1.0-SNAPSHOT
 
 2) com.tibco.ejb:EjbSupport:jar:1.0-SNAPSHOT
 
 
 
 --
 
 1 required artifact is missing.
 
 
 
 for artifact:
 
   com.tibco.ejb:AeConnector:jar:1.0-SNAPSHOT
 
 
 
 from the specified remote repositories:
 
   central (http://repo1.maven.org/maven2)
 
 
 
 
 
 [INFO]
 
 
 [INFO] For more information, run Maven with the -e switch
 
 [INFO]
 
 
 
 
 I would really appreciate if any one can point the correct way for
 setting the dependencies for generating the site?
 
 
 
 Thanks a lot
 
 Abhijit
 
 
 


Ad: Re: Maven and dependency on central servers

2006-07-28 Thread Stefan Magnus Landrø
Hi there,

If you read the Better builds with maven book you will see that you can 
easily set up your own mirror yourself (typically a mirror that is only 
used by you coworkers).

There are other options too (see book)

Stefan

Alex Turner [EMAIL PROTECTED] skrev 28.07.2006 13:20:50:

 I am with you.  I tried building the test project, and it failed on a 
few
 files from the central repository.  Based on this post, I switched to a
 mirror and got what I needed successfully.  In my mind this bodes very 
ill
 of this approach if the maven project can't keep it's central repository
 servers online and available.
 
 Alex.
 
 On 7/28/06, Ulrich Hobelmann [EMAIL PROTECTED] wrote:
 
  Hi, I'm new to maven, and I'm a bit reserved to trusting a few
  centralized servers for something that's critical to a project.
 
  Since any host that downloads a project (say, from SVN) and wants to
  build it, needs to download a number of Maven packages, obviously
  there's a heavy dependency on the central maven server.
 
  Yesterday when I started trying out Maven, I spent maybe 20 minutes
  waiting for the initial dependencies to be loaded from repo.maven.org
  (at speeds of a few to a few thousand bytes/second), until I found
  out how to use a mirror site.  The problem: there are only a handful
  of mirror sites, and should they disappear (for any reason, maybe the
  company/organisation losing interest / moving to another build
  system) or be as overloaded/slow as the central server, it'd be
  impossible to setup a new host and work on the project.
 
  I've read through the docs a bit and found out that you can set up
  your own servers, but my question: is there a list of what packages/
  dependencies the maven core uses, so that anybody who wants a 100%
  reliable server can download anything that maven could ever need
  (only the builtin modules, obviously; for everything else you manage
  your own dependencies).
 
  Is it a viable option to simply tar up the .m2 directory after a few
  full project builds (so that hopefully all dependencies will have
  been loaded).
 
  This isn't a troll, I'm only genuinely afraid of trusting a few
  centralized servers for a task that's needed for any new machine to
  setup their system (especially after noticing last night, how slow a
  server can be and what that means for getting to work).  A big
  tarball/package would certainly be easier to deploy for an 
organisation.
 
  Best regards,
 Ulrich
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Ad: Re: JWS - JNLP

2006-07-28 Thread Stefan Magnus Landrø
BTW,

You can easily integrate your existing ant script in maven writing a 
plugin. It's real easy, and should take you no time.

Stefan


Chris Michiels [EMAIL PROTECTED] skrev 28.07.2006 13:39:33:

 Thanks Emmanuel,
 But I'm still a bit in the dark where the plugin is located (repo,
 subversion, ...) ?
 Do you have a small working example to play with please.
 I would like to demonstrate that Maven 2 can replace our current Ant 
based
 build environment.
 
 TIA,
 
 2006/7/26, Emmanuel Venisse [EMAIL PROTECTED]:
 
 
  http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-
 maven-plugin/howto.html
 
  Emmanuel
 
  Chris a écrit :
   Where can I find more information about the Maven JNLP Plug-in ? 
Does
  anybody
   already build Java Web Start applications using Maven 2 ? TIA.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 Chris MICHIELS
 Scire tuum nihil est, nisi te scire hoc sciat alter.


Ad: Re: Maven and dependency on central servers

2006-07-28 Thread Stefan Magnus Landrø
We actually had to make a maven distribution like that for an offline 
workshop. It worked perfectly tarring up everything.

Stefan


[EMAIL PROTECTED] skrev 28.07.2006 14:04:23:

 On Jul 28, 2006, at 1:28 PM, Graham Leggett wrote:
 
  On Fri, July 28, 2006 1:06 pm, Ulrich Hobelmann wrote:
 
  This isn't a troll, I'm only genuinely afraid of trusting a few
  centralized servers for a task that's needed for any new machine to
  setup their system (especially after noticing last night, how slow a
  server can be and what that means for getting to work).  A big
  tarball/package would certainly be easier to deploy for an 
  organisation.
 
  This is only a once off problem - now that you've gone through the
  doanloading pain, there is no need to do it again, unless you 
  decide to
  add or change versions of dependancies.
 
 Ok, that sounds reasonable.
 
 Could I simply tar up the .m2 directory, or is there anything in it 
 that's host-specific?  (so a new machine could simply copy the .m2 
 and start building; especially for a portable machine I'd hate to be 
 missing a dependency...).
 
  The full repository is quite a number of GB in size, making a tarball
  available of it is unlikely to be efficient when you could simply 
  mirror
  the repository yourself from time to time, removing the risk of the 
  repo
  going away.
 
  If the central repos go down, you lose the auto-download 
  capability, but
  there is nothing stopping you from resolving the dependencies manually
  (apart from the annoyance of having to do so).
 
 Ok, thanks.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Ad: generate classpath

2006-07-28 Thread Stefan Magnus Landrø
the assembly plugin should get half the way. See the examples section:

http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html

Philippe Faes [EMAIL PROTECTED] skrev 28.07.2006 14:06:51:

 Dear all,
 
 I have a maven2 project that depends on many other projects. Obviously
 when I run mvn compile all needed jars are downloaded into the local
 repo. Now I want to run my project from the command line (without
 maven), but I'm not sure which CLASSPATH to use. 
 
 Can maven generate a CLASSPATH for me?
 
 thanks
 -- 
 Philippe Faes [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Ad: Re: Issues related to snapshot versions of dependencies and filenames

2006-07-28 Thread Stefan Magnus Landrø
I believe shapshots go in the snapshot repository, and release versions go 
in the release repository.

korebantic [EMAIL PROTECTED] skrev 28.07.2006 14:37:25:

 Do you know what mechanism chooses snapshotRepository over
 repository, if both are present in distributionManagement?
 
 On 7/28/06, Jörg Schaible [EMAIL PROTECTED] wrote:
  Stefan Magnus Landrø wrote on Friday, July 28, 2006 10:49 AM:
 
   I believe I found the solution to this issue.
  
   I placed the following snipplet in the jar-projects that my project
   depend upon, and made sure to use uniqueVersion set to false.
   A fresh deploy of these jar-projects then wrote a
   -SNAPSHOT.jar to the
   company repository (you only get timestamped versions if you use
   uniqueVersion=true(default))
  
   distributionManagement
   snapshotRepository
   idinternal/id
   nameCompany Repository/name
   urlfile:\\server\repo-local/url
   uniqueVersionfalse/uniqueVersion
   /snapshotRepository
   /distributionManagement
  
   To bad there is nothing about this in the mergere book
 
  and despite the fact, that this has its own quirks:
  http://jira.codehaus.org/browse/MNG-1908
 
  [snip]
 
  - 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]
 


Issues related to snapshot versions of dependencies and filenames

2006-07-27 Thread Stefan Magnus Landrø
Hi there,

We've run into the following issue:

Our war project depends on a certain number of in house jar projects. Now, 
these jar projects are under development, so we're using snapshots, and 
publishing these to our company repository on a regular basis.

Now, the thing is that on some environments, the snapshot-jars end up in 
the web-inf\lib dir with filenames as follows: 
jarproject-3.1-20060725.121629-3.jar, whereas on other environments they 
end up with the following filename jarproject-3.1-SNAPSHOT.jar

You might say, this is not a problem, because they get loaded by the 
classloader anyways, however, we're using a portal framework that requires 
the filenames to be known in advance.

Does anyone know why this happens, and how we can get around this issue?

Kind regards,

Stefan Magnus Landrø
BEKK Consulting