Re: switching to maven?

2008-08-16 Thread Chad La Joie
I had a series of projects that had different directory structures than 
what Maven uses by default.  When we mad the conversion we changed our 
local copy around until it was what we wanted and then just did a 
commit.  Wasn't much to it really.


Rusty Wright wrote:

I have an existing eclipse project, a dynamic web application, which
I've been working on.  I'm also using subversion (subclipse).  My
problem is that my directory/folder structure is significantly different
than the maven convention, and I would prefer to switch to the maven
convention.  I'm not sure how I should proceed.

For example, could I simply reorganize my directory structure in
subversion to match the maven convention and then import it into a new
eclipse project that's been set up to play nicely with maven?

I guess I'm looking for suggestions on the best way to proceed, for long
term happiness, and not some hack method that I may regret later on.

Thanks


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



--
SWITCH
Serving Swiss Universities
--
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
[EMAIL PROTECTED], http://www.switch.ch


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



switching to maven?

2008-08-16 Thread Rusty Wright
I have an existing eclipse project, a dynamic web application, which 
I've been working on.  I'm also using subversion (subclipse).  My 
problem is that my directory/folder structure is significantly different 
than the maven convention, and I would prefer to switch to the maven 
convention.  I'm not sure how I should proceed.


For example, could I simply reorganize my directory structure in 
subversion to match the maven convention and then import it into a new 
eclipse project that's been set up to play nicely with maven?


I guess I'm looking for suggestions on the best way to proceed, for long 
term happiness, and not some hack method that I may regret later on.


Thanks


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



Ftping a single file file

2008-08-16 Thread Jeff Mutonho
In my build I use the maven-assembly-plugin to create tar.gz and I would
like to ftp this tar.gz file to our ftp server.
I can't seem to find a way of doing this other than  resorting to using the
maven-antrun-plugin and call the ant ftp task.
Any suggestions?

-- 

Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: Ftping a single file file

2008-08-16 Thread Brett Porter
That's a reasonable option. If the FTP server is a Maven repository
you could use distributionManagement and use the regular maven
deployment. The only other alternative I've seen is a couple of
different wagon plugins floating around that utilise the existing
Maven deployment for arbitrary file transfer.

- Brett

2008/8/16 Jeff Mutonho [EMAIL PROTECTED]:
 In my build I use the maven-assembly-plugin to create tar.gz and I would
 like to ftp this tar.gz file to our ftp server.
 I can't seem to find a way of doing this other than  resorting to using the
 maven-antrun-plugin and call the ant ftp task.
 Any suggestions?

 --

 Don't take the name of root in vain.

 Jeff  Mutonho
 Cape Town
 South Africa

 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042




-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Ftping a single file file

2008-08-16 Thread Jeff Mutonho
On Sat, Aug 16, 2008 at 1:06 PM, Brett Porter [EMAIL PROTECTED]
wrote:

 That's a reasonable option. If the FTP server is a Maven repository
 you could use distributionManagement and use the regular maven
 deployment. The only other alternative I've seen is a couple of
 different wagon plugins floating around that utilise the existing
 Maven deployment for arbitrary file transfer.

 - Brett


Thanks Brett.I've  gone with the maven-antrun-plugin  and for the lonely
soul out there wishing to do the same , my working configuration is :

plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
  execution
   phasepre-integration-test/phase
   configuration
tasks
 ftp server=server remotedir=/whatever/it/is
userid=your_user_name password=your_password action=put
verbose=true
 fileset dir=target includes=**/*.tar.gz /
 /ftp
/tasks
  /configuration
  goals
goalrun/goal
   /goals
  /execution
 /executions
  dependencies
   dependency
groupIdant/groupId
artifactIdant-commons-net/artifactId
version1.6.5/version
   /dependency
   dependency
groupIdcommons-net/groupId
artifactIdcommons-net/artifactId
version1.4.1/version
   /dependency
 !--Didnt need the following 2 dependencies but they may be needed for
other tasks such as listing files on the ftp server,etc Jeff--
 !--dependency
 groupIdant/groupId
 artifactIdoptional/artifactId
 version1.5.4/version
 /dependency
 dependency
  groupIdoro/groupId
  artifactIdoro/artifactId
  version2.0.8/version
 /dependency --
 /dependencies
/plugin



--

Don't take the name of root in vain.

Jeff Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042


how to include text file during distribution

2008-08-16 Thread DebasisMishra

Hello All,
 I am having a simple Javaproject.I am using maven for deploying.i,e mvn
deploy command.
 while I am running the mvn deploy command it is creating the jar file.
 but I want to include some of the template file which is a text file during
distribution but not with in the jar.
Could anybody please tell me how can I achieve that?

Thanks in advance
Debasis
-- 
View this message in context: 
http://www.nabble.com/how-to-include-text-file-during-distribution-tp19012129p19012129.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: how to include text file during distribution

2008-08-16 Thread Wendy Smoak
On Sat, Aug 16, 2008 at 8:02 AM, DebasisMishra
[EMAIL PROTECTED] wrote:

  while I am running the mvn deploy command it is creating the jar file.
  but I want to include some of the template file which is a text file during
 distribution but not with in the jar.
 Could anybody please tell me how can I achieve that?

You can use the Assembly plugin to package your jar and any additional
files you want to distribute.

-- 
Wendy

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



Re: switching to maven?

2008-08-16 Thread Rusty Wright
Ok, thanks.  What I've done so far is a final commit from my 
development machine, and then I renamed the project in svn, moving it 
into branches, so that it's no longer in trunk.  (I realized just now 
that I should have disconnected the project from svn before I moved it, 
but no matter since that's just a simple job of removing all of the .svn 
directories on my development machine.)  I've started a new eclipse 
project using the eclipse maven plugin and will move the pieces into it 
into their correct locations, and then do a commit from the new project.



Chad La Joie wrote:
I had a series of projects that had different directory structures 
than what Maven uses by default.  When we mad the conversion we 
changed our local copy around until it was what we wanted and then 
just did a commit.  Wasn't much to it really.


Rusty Wright wrote:

I have an existing eclipse project, a dynamic web application, which
I've been working on.  I'm also using subversion (subclipse).  My
problem is that my directory/folder structure is significantly different
than the maven convention, and I would prefer to switch to the maven
convention.  I'm not sure how I should proceed.

For example, could I simply reorganize my directory structure in
subversion to match the maven convention and then import it into a new
eclipse project that's been set up to play nicely with maven?

I guess I'm looking for suggestions on the best way to proceed, for long
term happiness, and not some hack method that I may regret later on.

Thanks


-
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: switching to maven?

2008-08-16 Thread Wendy Smoak
On Sat, Aug 16, 2008 at 9:41 AM, Rusty Wright [EMAIL PROTECTED] wrote:
 Ok, thanks.  What I've done so far is a final commit from my development
 machine, and then I renamed the project in svn, moving it into branches, so
 that it's no longer in trunk.  (I realized just now that I should have
 disconnected the project from svn before I moved it, but no matter since
 that's just a simple job of removing all of the .svn directories on my
 development machine.)  I've started a new eclipse project using the eclipse
 maven plugin and will move the pieces into it into their correct
 locations, and then do a commit from the new project.

You'll lose the history by doing it this way.  (Well, it will still be
there on the branch, but 'svn log' on the new trunk won't show it.)

Do you need a branch? (Are you planning to do any additional work in
the old project layout?)

I would svn mv it back from the branch to trunk, tag it, and then do
svn mv commands on trunk to rearrange it.

-- 
Wendy

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



Re: switching to maven?

2008-08-16 Thread Kathryn Huxtable

That's what we did as well. -K

On Aug 15, 2008, at 11:40 PM, Chad La Joie wrote:

I had a series of projects that had different directory structures  
than what Maven uses by default.  When we mad the conversion we  
changed our local copy around until it was what we wanted and then  
just did a commit.  Wasn't much to it really.


Rusty Wright wrote:
I have an existing eclipse project, a dynamic web application,  
which

I've been working on.  I'm also using subversion (subclipse).  My
problem is that my directory/folder structure is significantly  
different

than the maven convention, and I would prefer to switch to the maven
convention.  I'm not sure how I should proceed.
For example, could I simply reorganize my directory structure in
subversion to match the maven convention and then import it into a  
new

eclipse project that's been set up to play nicely with maven?
I guess I'm looking for suggestions on the best way to proceed, for  
long

term happiness, and not some hack method that I may regret later on.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
SWITCH
Serving Swiss Universities
--
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
[EMAIL PROTECTED], http://www.switch.ch


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



Depedency not found but it is correctly installed

2008-08-16 Thread Mac-Systems

Hello,

i have a dependency to Swing Labs SwingX Lib. I wrote s simple install 
script like that


call mvn install:install-file 
-Dfile=../libs/swingx/0.9.2/swingx-0.9.2.jar -DgroupId=org.swinglabs 
-DartifactId=swingx -Dversion=0.9.2 -Dpackaging=jar


In my Pom of the Project i declared:

dependencyManagement
   dependencies
   dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
   /dependency
   dependency
   groupIdorg.swinglabs/groupId
   artifactIdswingx/artifactId
   version0.9.2/version
   /dependency

The install script reports success. I already cleared by local maven 
repo to get a clear start.
Anything i do results in package org.jdesktop.layout cannot be found. I 
also have no settings.xml.


What the Heck i am doing wrong ? Is there a way to get some better 
Output from maven like this (complete mvn -X -e compile) :


   + Error stacktraces are turned on.
   Maven version: 2.0.9
   Java version: 1.6.0_03
   OS name: windows xp version: 5.1 arch: x86 Family: windows
   [DEBUG] Building Maven user-level plugin registry from: 
'C:\Dokumente und Einstellungen\User\.m2\plugin-registry.xml'
   [DEBUG] Building Maven global-level plugin registry from: 
'C:\java\maven-2.0.9\bin\..\conf\plugin-registry.xml'

   [INFO] Scanning for projects...
   [DEBUG] Adding managed dependencies for mac-systems:multikulti
   [DEBUG]   junit:junit:jar:3.8.1:test
   [DEBUG]   org.swinglabs:swingx:jar:0.9.2
   [DEBUG]   org.swinglabs:swing-layout:jar:1.0.3
   [INFO] 


   [INFO] Building Multikulti - trunk
   [INFO]task-segment: [compile]
   [INFO] 

   [DEBUG] Retrieving parent-POM: 
org.apache.maven.plugins:maven-plugins::1 for project: 
null:maven-resources-plugin:maven-plugin:2.2 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for 
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
   [DEBUG] Retrieving parent-POM: 
org.apache.maven.plugins:maven-plugins::8 for project: 
null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for 
project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-parent:pom:5 from the repository.
   [DEBUG] Retrieving parent-POM: 
org.apache.maven.plugins:maven-plugins::11 for project: 
null:maven-site-plugin:maven-plugin:2.0-beta-7 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::8 for 
project: org.apache.maven.plugins:maven-plugins:pom:11 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache:apache::4 for project: 
org.apache.maven:maven-parent:pom:8 from the repository.
   [DEBUG] Retrieving parent-POM: 
org.apache.maven.surefire:surefire::2.4.3 for project: 
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:null from 
the repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::7 for 
project: org.apache.maven.surefire:surefire:pom:2.4.3 from the repository.
   [DEBUG] Adding managed dependencies for 
org.apache.maven.plugins:maven-surefire-plugin

   [DEBUG]   org.apache.maven.surefire:surefire-api:jar:2.4.3
   [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.4.3
   [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.5.1
   [DEBUG] Plugin dependencies for:
  
   org.apache.maven.plugins:maven-resources-plugin:2.2
  
   are:
  
   org.apache.maven:maven-plugin-api:jar:2.0:runtime

   org.apache.maven:maven-project:jar:2.0:runtime
   org.apache.maven:maven-model:jar:2.0:runtime
   org.codehaus.plexus:plexus-utils:jar:1.1:runtime
  
  
   [DEBUG] 
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime 
(selected for runtime)
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for 
project: org.apache.maven:maven-plugin-api:jar:2.0 from the repository.
   [DEBUG] Adding managed dependencies for 
org.apache.maven:maven-plugin-api

   [DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
   [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4
   [DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
   [DEBUG]   org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
   [DEBUG]   org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
   [DEBUG]   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
   [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime 
(selected for runtime)

   [DEBUG] Adding managed dependencies for unknown:maven-project
   [DEBUG]  

Re: Depedency not found but it is correctly installed

2008-08-16 Thread Wayne Fay
Are you certain the jar you installed contains the classes you are using?

Open the jar with Winzip etc and confirm. Then check the jar as
installed in the repo.

Wayne

On 8/16/08, Mac-Systems [EMAIL PROTECTED] wrote:
 Hello,

 i have a dependency to Swing Labs SwingX Lib. I wrote s simple install
 script like that

 call mvn install:install-file
 -Dfile=../libs/swingx/0.9.2/swingx-0.9.2.jar
 -DgroupId=org.swinglabs -DartifactId=swingx -Dversion=0.9.2 -Dpackaging=jar

 In my Pom of the Project i declared:

dependencyManagement
   dependencies
   dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
   /dependency
   dependency
   groupIdorg.swinglabs/groupId
   artifactIdswingx/artifactId
   version0.9.2/version
   /dependency

 The install script reports success. I already cleared by local maven repo to
 get a clear start.
 Anything i do results in package org.jdesktop.layout cannot be found. I also
 have no settings.xml.

 What the Heck i am doing wrong ? Is there a way to get some better Output
 from maven like this (complete mvn -X -e compile) :

   + Error stacktraces are turned on.
   Maven version: 2.0.9
   Java version: 1.6.0_03
   OS name: windows xp version: 5.1 arch: x86 Family: windows
(snip)
   [INFO]
 
   [ERROR] BUILD FAILURE
   [INFO]
 
   [INFO] Compilation failure

 C:\workspace\incubator\multikulti\src\de\nicedezigns\language\swingx\SwingXTranslator.java:[34,26]
 package org.jdesktop.swingx does not exist

 C:\workspace\incubator\multikulti\src\de\nicedezigns\language\swingx\SwingXTranslator.java:[35,26]
 package org.jdesktop.swingx does not exist

 C:\workspace\incubator\multikulti\src\de\nicedezigns\language\swingx\SwingXTranslator.java:[36,26]
 package org.jdesktop.swingx does not exist


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



Re: Depedency not found but it is correctly installed

2008-08-16 Thread Wendy Smoak
On Sat, Aug 16, 2008 at 4:06 PM, Mac-Systems [EMAIL PROTECTED] wrote:

 i have a dependency to Swing Labs SwingX Lib. I wrote s simple install
 script like that
 call mvn install:install-file -Dfile=../libs/swingx/0.9.2/swingx-0.9.2.jar
 -DgroupId=org.swinglabs -DartifactId=swingx -Dversion=0.9.2 -Dpackaging=jar
 In my Pom of the Project i declared:
dependencyManagement
...

The dependencyManagement section lets you set the version to be used
across the project.  It's usually used in a parent pom from which
multiple modules inherit.  However, it doesn't 'kick in' until you
actually declare the dependency elsewhere.

Either declare the dependency outside of dependency management (leave
out the version number) for example in builddependencies, or move
them out of dependencyManagement.

-- 
Wendy

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