Re: Newbie question: how to find a) latest version and b) repository given an artifactID

2010-10-21 Thread Nick Stolwijk
It is hard to get the repository, because everyone can start their own
(and in their own way).

I googled on filetype:jar gwt-servlet:2.1.0-RC1 and found the repository here:

http://code.google.com/p/google-web-toolkit/source/browse/#svn/2.1.0/gwt/maven
for the latest version.

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Thu, Oct 21, 2010 at 9:17 PM, Stephen Boesch java...@gmail.com wrote:
 2.1.0-RC1

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



Re: Newbie question: how to find a) latest version and b) repository given an artifactID

2010-10-21 Thread Stephen Boesch
This shows how to pick up the artifact.  What is the repository url that I
would use?



2010/10/21 Nick Stolwijk nick.stolw...@gmail.com

 It is hard to get the repository, because everyone can start their own
 (and in their own way).

 I googled on filetype:jar gwt-servlet:2.1.0-RC1 and found the repository
 here:


 http://code.google.com/p/google-web-toolkit/source/browse/#svn/2.1.0/gwt/maven
 for the latest version.

 With regards,

 Nick Stolwijk
 ~Java Developer~

 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl



 On Thu, Oct 21, 2010 at 9:17 PM, Stephen Boesch java...@gmail.com wrote:
  2.1.0-RC1

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




Re: Newbie question: how to find a) latest version and b) repository given an artifactID

2010-10-21 Thread Nick Stolwijk
The repository URl is nothing more than just a root URL of the
specified directory structure. You can use the url I gave as
repository URL. It was not my decision to create a repository for each
seperate version, and also in Subversion. ;)

With regards,

Nick Stolwijk
~Java Developer~

IPROFS BV.
Claus Sluterweg 125
2012 WS Haarlem
http://www.iprofs.nl



On Thu, Oct 21, 2010 at 9:32 PM, Stephen Boesch java...@gmail.com wrote:
 This shows how to pick up the artifact.  What is the repository url that I
 would use?



 2010/10/21 Nick Stolwijk nick.stolw...@gmail.com

 It is hard to get the repository, because everyone can start their own
 (and in their own way).

 I googled on filetype:jar gwt-servlet:2.1.0-RC1 and found the repository
 here:


 http://code.google.com/p/google-web-toolkit/source/browse/#svn/2.1.0/gwt/maven
 for the latest version.

 With regards,

 Nick Stolwijk
 ~Java Developer~

 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl



 On Thu, Oct 21, 2010 at 9:17 PM, Stephen Boesch java...@gmail.com wrote:
  2.1.0-RC1

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




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



Re: Newbie question: how to find a) latest version and b) repository given an artifactID

2010-10-21 Thread Tamás Cservenák
You can try RSO and do a search:
https://repository.sonatype.org/index.html#nexus-search;gav~~gwt-servlet~~~

It indexes most popular Maven repositories, but not all of them ;)

Also, it seems that 2.1.0-RC1 is not in central yet (because it is an
RC?).


Hope helps,
~t~

On Thu, Oct 21, 2010 at 9:17 PM, Stephen Boesch java...@gmail.com wrote:

 If I am looking for an artificat and have its artifactID and want to find
 the versions available in public maven repos' (maven central, etc).   What
 might be recommended way to do that?

 Do I have to already know in advance which repo's to try?  E.g. maven
 central, mvnrepository.com etc.   Or is there a better (more sane..) way
 to
 do this?

 Here's a specific case:  I am looking for gwt-servlet   I think the latest
 version is 2.1.0-RC1.   But i have been going in circles trying to find out
 where a mvn repo is for it.   This is however just the latest case: I have
 been in this pattern of confusion for maven artifacts a number of times
 already.

 thanks



Re: newbie question

2010-05-26 Thread fradj zayen
hi Chris,
I think you didnt't properly configured the compiler plugin.
below an extract pom.xml file

build
...
plugins
..
 plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin

/plugins
/build

Regards

2010/5/26 Meeusen, Christopher W. meeusen.christop...@mayo.edu

 Hi,



 I'm brand new to maven, read through a few books, and built a simple
 maven project to produce a .jar.  I've installed the m2ecplipse pugin
 and have got it to work properly on a few simple projects.  Now I'm
 having an issue when I try to build a more complex project, which
 requires at least java 1.5 (because it uses enums and other things).
 When I build my project I get a clean build, however when I try to do
 Run As  Maven package I get the following errors in the console:



 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
 (default-compile) on project wsaxisM: Compilation failure: Compilation
 failure:

 C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web
 Service\wsaxis2_m\src\main\java\edu\mayo\util\VTInfoType.java:[10,7]
 enums are not supported in -source 1.3

 (use -source 5 or higher to enable enums)

 public enum VTInfoType



 I get similar errors for annotations and generics.  Anyone know what
 might be going on?  Please help a maven newb!



 Thanks,

 Chris




-- 
Zayen Fradj
Ingénieur Informaticien
Sun Certified Programmer


RE: newbie question

2010-05-26 Thread Meeusen, Christopher W.
Yes, that did the trick, now new errors though.

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) 
on project wsaxisM: Compilation failure: Compilation failure: 
C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web 
Service\wsaxis2_m\src\main\java\com\gehc\ce\ws\GEHCUtils.java:[5,31] package 
org.apache.axis2.context does not exist

C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web 
Service\wsaxis2_m\src\main\java\com\gehc\ce\ws\GEHCUtils.java:[7,33] package 
com.idx.carecast.ca.common does not exist

Getting a bunch of these.  Do I have to configure the compiler plugin and 
explicitly tell it to use the .jars referenced in my build path?

Thanks,
Chris

-Original Message-
From: users-return-111617-meeusen.christopher=mayo@maven.apache.org 
[mailto:users-return-111617-meeusen.christopher=mayo@maven.apache.org] On 
Behalf Of fradj zayen
Sent: Wednesday, May 26, 2010 12:37 PM
To: Maven Users List
Subject: Re: newbie question

hi Chris,
I think you didnt't properly configured the compiler plugin.
below an extract pom.xml file

build
...
plugins
..
 plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin

/plugins
/build

Regards

2010/5/26 Meeusen, Christopher W. meeusen.christop...@mayo.edu

 Hi,



 I'm brand new to maven, read through a few books, and built a simple 
 maven project to produce a .jar.  I've installed the m2ecplipse pugin 
 and have got it to work properly on a few simple projects.  Now I'm 
 having an issue when I try to build a more complex project, which 
 requires at least java 1.5 (because it uses enums and other things).
 When I build my project I get a clean build, however when I try to do 
 Run As  Maven package I get the following errors in the console:



 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
 (default-compile) on project wsaxisM: Compilation failure: Compilation
 failure:

 C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web
 Service\wsaxis2_m\src\main\java\edu\mayo\util\VTInfoType.java:[10,7]
 enums are not supported in -source 1.3

 (use -source 5 or higher to enable enums)

 public enum VTInfoType



 I get similar errors for annotations and generics.  Anyone know what 
 might be going on?  Please help a maven newb!



 Thanks,

 Chris




--
Zayen Fradj
Ingénieur Informaticien
Sun Certified Programmer

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



Re: newbie question

2010-05-26 Thread Wayne Fay
 I get similar errors for annotations and generics.  Anyone know what
 might be going on?  Please help a maven newb!

This is documented in the Maven FAQ, directly linked from the Maven
homepage on the left side under About Maven.

http://maven.apache.org/general.html#Compiling-J2SE-5

Wayne

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



Re: newbie question

2010-05-26 Thread Shan Syed
please post your entire POM; you don't have to tell the compiler much, but
this just reads like you might be missing dependency blocks


On Wed, May 26, 2010 at 1:46 PM, Meeusen, Christopher W. 
meeusen.christop...@mayo.edu wrote:

 Yes, that did the trick, now new errors though.

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
 (default-compile) on project wsaxisM: Compilation failure: Compilation
 failure:
 C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web
 Service\wsaxis2_m\src\main\java\com\gehc\ce\ws\GEHCUtils.java:[5,31] package
 org.apache.axis2.context does not exist

 C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web
 Service\wsaxis2_m\src\main\java\com\gehc\ce\ws\GEHCUtils.java:[7,33] package
 com.idx.carecast.ca.common does not exist

 Getting a bunch of these.  Do I have to configure the compiler plugin and
 explicitly tell it to use the .jars referenced in my build path?

 Thanks,
 Chris

 -Original Message-
 From: 
 users-return-111617-meeusen.christopher=mayo@maven.apache.org[mailto:
 users-return-111617-meeusen.christopher=mayo@maven.apache.org] On
 Behalf Of fradj zayen
 Sent: Wednesday, May 26, 2010 12:37 PM
 To: Maven Users List
 Subject: Re: newbie question

 hi Chris,
 I think you didnt't properly configured the compiler plugin.
 below an extract pom.xml file

 build
 ...
 plugins
 ..
  plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin

 /plugins
 /build

 Regards

 2010/5/26 Meeusen, Christopher W. meeusen.christop...@mayo.edu

  Hi,
 
 
 
  I'm brand new to maven, read through a few books, and built a simple
  maven project to produce a .jar.  I've installed the m2ecplipse pugin
  and have got it to work properly on a few simple projects.  Now I'm
  having an issue when I try to build a more complex project, which
  requires at least java 1.5 (because it uses enums and other things).
  When I build my project I get a clean build, however when I try to do
  Run As  Maven package I get the following errors in the console:
 
 
 
  [ERROR] Failed to execute goal
  org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
  (default-compile) on project wsaxisM: Compilation failure: Compilation
  failure:
 
  C:\my_clearcase_views\m042872_view\MICS-Team\DIOS\Web
  Service\wsaxis2_m\src\main\java\edu\mayo\util\VTInfoType.java:[10,7]
  enums are not supported in -source 1.3
 
  (use -source 5 or higher to enable enums)
 
  public enum VTInfoType
 
 
 
  I get similar errors for annotations and generics.  Anyone know what
  might be going on?  Please help a maven newb!
 
 
 
  Thanks,
 
  Chris
 
 


 --
 Zayen Fradj
 Ingénieur Informaticien
 Sun Certified Programmer

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




Re: newbie question

2010-05-26 Thread Wayne Fay
 Getting a bunch of these.  Do I have to configure the compiler
 plugin and explicitly tell it to use the .jars referenced in my build path?

No configuration of the compiler plugin should be necessary. You
simply need to properly configure your dependency list.

Most likely you are simply missing one or more dependencies -- looks
like axis2 is the first, but I don't recognize the com.idx one and
assume it is an internal artifact that you're working on.

Wayne

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



Re: newbie question

2010-05-26 Thread fradj zayen
i totally agree with Wayne, you are missing some dependencies in your
pom.xml
  dependencies
   dependency
  groupId/groupId
  artifactId/artifactId
  versionx.x/version
/dependency
  /dependencies
hope it helps

2010/5/26 Wayne Fay wayne...@gmail.com

  Getting a bunch of these.  Do I have to configure the compiler
  plugin and explicitly tell it to use the .jars referenced in my build
 path?

 No configuration of the compiler plugin should be necessary. You
 simply need to properly configure your dependency list.

 Most likely you are simply missing one or more dependencies -- looks
 like axis2 is the first, but I don't recognize the com.idx one and
 assume it is an internal artifact that you're working on.

 Wayne

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




-- 
Zayen Fradj
Ingénieur Informaticien
Sun Certified Programmer


RE: newbie question

2010-05-26 Thread Meeusen, Christopher W.
I guess I miss understood the concept of dependencies.  I thought that it was 
used only for .jars that were in a repository say commons-lang-2.4, but if you 
have some  api from a vendor, say vendor.jar, that you didn't have to configure 
a decency for that.  

-Original Message-
From: users-return-111621-meeusen.christopher=mayo@maven.apache.org 
[mailto:users-return-111621-meeusen.christopher=mayo@maven.apache.org] On 
Behalf Of Wayne Fay
Sent: Wednesday, May 26, 2010 12:50 PM
To: Maven Users List
Subject: Re: newbie question

 Getting a bunch of these.  Do I have to configure the compiler plugin 
 and explicitly tell it to use the .jars referenced in my build path?

No configuration of the compiler plugin should be necessary. You simply need to 
properly configure your dependency list.

Most likely you are simply missing one or more dependencies -- looks like axis2 
is the first, but I don't recognize the com.idx one and assume it is an 
internal artifact that you're working on.

Wayne

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



Re: newbie question

2010-05-26 Thread Wayne Fay
 I guess I miss understood the concept of dependencies.  I thought that it
 was used only for .jars that were in a repository say commons-lang-2.4,
 but if you have some  api from a vendor, say vendor.jar, that you didn't have
 to configure a decency for that.

Yes, this is a misunderstanding on your part.

Eventually, everything you depend on needs to be in a repository
somewhere for Maven to use it -- either your local repo cache, a
corporate repo with limited access to your local dev team, or a public
repo like Central.

Don't get suckered into thinking you can get around this by using
system-scope, that is a guaranteed path to failure. Instead, use
install:install-file and deploy:deploy-file.

Wayne

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



Re: newbie question

2010-05-26 Thread Shan Syed
you need to specify a dependencies for everything; in the case you depend on
a jar that's not publicly available (3rd party vendor, in-house jar, etc),
you have a few options:

-maintain a repository for these sorts of things, using a tool like archiva,
nexus, or artifactory (ideal for teams of more than 1)
-install it locally
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
-specify a local location for the JAR, by using system scope (not the
greatest solution)



On Wed, May 26, 2010 at 2:00 PM, Meeusen, Christopher W. 
meeusen.christop...@mayo.edu wrote:

 I guess I miss understood the concept of dependencies.  I thought that it
 was used only for .jars that were in a repository say commons-lang-2.4, but
 if you have some  api from a vendor, say vendor.jar, that you didn't have to
 configure a decency for that.

 -Original Message-
 From: 
 users-return-111621-meeusen.christopher=mayo@maven.apache.org[mailto:
 users-return-111621-meeusen.christopher=mayo@maven.apache.org] On
 Behalf Of Wayne Fay
 Sent: Wednesday, May 26, 2010 12:50 PM
 To: Maven Users List
 Subject: Re: newbie question

  Getting a bunch of these.  Do I have to configure the compiler plugin
  and explicitly tell it to use the .jars referenced in my build path?

 No configuration of the compiler plugin should be necessary. You simply
 need to properly configure your dependency list.

 Most likely you are simply missing one or more dependencies -- looks like
 axis2 is the first, but I don't recognize the com.idx one and assume it is
 an internal artifact that you're working on.

 Wayne

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




Re: newbie question

2010-05-26 Thread Ron Wheeler

Save yourself a lot of grief and needless screwing about.
Install the free version of Nexus.
1) Solves one of your immediate problems - It gives you a good place to 
put third party libraries.

2) Gives you a lot more visibility into the Maven way
3) Forces you to come to grips with Releases and Snapshots early in the 
process - add clarity to your  development process.
4) Encourages you to build proper utility libraries and sharable 
artifacts. Everyone is pulling their stuff from the same place.
5) Reduces the jar equivalent of DLL hell. You can see what versions are 
available. YOu don't have to search all over the place for libraries.


and more.

I wish we had done this when we first started with Maven.
Would have saved us months of time guessing our way through Maven and 
various project structures, dependency issues, library version nonsense, 
etc.


Ron

On 26/05/2010 2:06 PM, Shan Syed wrote:

you need to specify a dependencies for everything; in the case you depend on
a jar that's not publicly available (3rd party vendor, in-house jar, etc),
you have a few options:

-maintain a repository for these sorts of things, using a tool like archiva,
nexus, or artifactory (ideal for teams of more than 1)
-install it locally
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
-specify a local location for the JAR, by using system scope (not the
greatest solution)



On Wed, May 26, 2010 at 2:00 PM, Meeusen, Christopher W.
meeusen.christop...@mayo.edu  wrote:

   

I guess I miss understood the concept of dependencies.  I thought that it
was used only for .jars that were in a repository say commons-lang-2.4, but
if you have some  api from a vendor, say vendor.jar, that you didn't have to
configure a decency for that.

-Original Message-
From: users-return-111621-meeusen.christopher=mayo@maven.apache.org[mailto:
users-return-111621-meeusen.christopher=mayo@maven.apache.org] On
Behalf Of Wayne Fay
Sent: Wednesday, May 26, 2010 12:50 PM
To: Maven Users List
Subject: Re: newbie question

 

Getting a bunch of these.  Do I have to configure the compiler plugin
and explicitly tell it to use the .jars referenced in my build path?
   

No configuration of the compiler plugin should be necessary. You simply
need to properly configure yourdependency  list.

Most likely you are simply missing one or more dependencies -- looks like
axis2 is the first, but I don't recognize the com.idx one and assume it is
an internal artifact that you're working on.

Wayne

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


 
   



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



Re: newbie question

2010-05-26 Thread Meeusen, Christopher W.
Thanks for the advice, I've already installed it and began uploading  
my artifacts.  Thanks!


On May 26, 2010, at 19:57, Ron Wheeler rwhee...@artifact- 
software.com wrote:



Save yourself a lot of grief and needless screwing about.
Install the free version of Nexus.
1) Solves one of your immediate problems - It gives you a good place  
to put third party libraries.

2) Gives you a lot more visibility into the Maven way
3) Forces you to come to grips with Releases and Snapshots early in  
the process - add clarity to your  development process.
4) Encourages you to build proper utility libraries and sharable  
artifacts. Everyone is pulling their stuff from the same place.
5) Reduces the jar equivalent of DLL hell. You can see what versions  
are available. YOu don't have to search all over the place for  
libraries.


and more.

I wish we had done this when we first started with Maven.
Would have saved us months of time guessing our way through Maven  
and various project structures, dependency issues, library version  
nonsense, etc.


Ron

On 26/05/2010 2:06 PM, Shan Syed wrote:
you need to specify a dependencies for everything; in the case you  
depend on
a jar that's not publicly available (3rd party vendor, in-house  
jar, etc),

you have a few options:

-maintain a repository for these sorts of things, using a tool like  
archiva,

nexus, or artifactory (ideal for teams of more than 1)
-install it locally
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
-specify a local location for the JAR, by using system scope (not  
the

greatest solution)



On Wed, May 26, 2010 at 2:00 PM, Meeusen, Christopher W.
meeusen.christop...@mayo.edu  wrote:


I guess I miss understood the concept of dependencies.  I thought  
that it
was used only for .jars that were in a repository say commons- 
lang-2.4, but
if you have some  api from a vendor, say vendor.jar, that you  
didn't have to

configure a decency for that.

-Original Message-
From: users-return-111621-meeusen.christopher=mayo@maven.apache.org 
[mailto:
users-return-111621-meeusen.christopher=mayo@maven.apache.org]  
On

Behalf Of Wayne Fay
Sent: Wednesday, May 26, 2010 12:50 PM
To: Maven Users List
Subject: Re: newbie question


Getting a bunch of these.  Do I have to configure the compiler  
plugin
and explicitly tell it to use the .jars referenced in my build  
path?


No configuration of the compiler plugin should be necessary. You  
simply

need to properly configure yourdependency  list.

Most likely you are simply missing one or more dependencies --  
looks like
axis2 is the first, but I don't recognize the com.idx one and  
assume it is

an internal artifact that you're working on.

Wayne

--- 
--

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








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



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



Re: Newbie Question

2010-02-23 Thread Jeremy Banks
Thanks for the help Baptiste.

That didn't work but -Darguments=-Pversion did.  Thanks for pointing
me in the right direction.

Cheers

Jeremy Banks

Development Team Lead
BIS²
Level 2
45 Tory Street
PO Box 19204
Wellington
New Zealand

+64 21 686 986



On 23 February 2010 19:31, Baptiste MATHUS m...@batmat.net wrote:
 Hi Jeremy,

 The maven-release-plugin forks to do the release. So I think you have to use
 an additional -Dparameters=-Pversion (See
 http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#arguments
 ).

 Be aware I'm not totally sure it will work for profiles since I never needed
 it, although I did a lot of releases with this plugin;

 Btw, shouldn't this profile be always on? Is there cases where you don't
 want to generate this file?

 Cheers.

 2010/2/23 Jeremy Banks jer...@plink.co.nz

 Hi All

 I've picked up a system set up by someone else and there's an aspect
 of it that's not quite working properly, which I was hoping someone
 may be able to help me with.

 We're building a flex project using maven.  The project has 5 modules.

 One of the modules has a profile that uses the maven-antrun-plugin to
 copy a file and then substitute some properties in to it in the
 generate-sources phase.  We are using it to insert the pom version and
 an environment variable containing the subversion revision in to a
 file that reports on the version of the software.

 The module in question is building an swc which is a dependency in
 some of the other modules.

 What's happening is if I run compile or install or deploy in the
 module in question then the file copy and substitution works.  If
 however I call the release targets (i.e. mvn release:prepare
 release:perform -Dresume=false -P version) it doesn't work.

 If I look at the release repository for the module itself and open up
 the sources.jar I can verify that the substitution hasn't worked, as
 the source file hasn't been updated.

 So I guess my question is that in this case it appears that
 generate-sources isn't being called as part of the release targets, is
 this correct?  Any suggestions on how to make what is intended here
 work?

 Below is the section of the pom that performs the copy and substitution.

 Regards

 Jeremy Banks

  profiles
    profile
      idversion/id
      build
        plugins
          plugin
            artifactIdmaven-antrun-plugin/artifactId
            executions
              execution
                idversion/id
                phasegenerate-sources/phase
                configuration
                  tasks
                   property name=project_basedir
 value=${project.basedir} /
                    property name=pom_version value=${pom.version} /
                    property name=svn_revision
 value=${env.SVN_REVISION} /
                    copy
 file=${project_basedir}/src/main/flex/net/.../VersionTemplate._as
 tofile=${project_basedir}/src/main/flex/net/.../Version.as
 overwrite=true /
                    replace
 file=${project_basedir}/src/main/flex/net/.../Version.as
 token=%SVNVERSION% value=${svn_revision} /
                    replace
 file=${project_basedir}/src/main/flex/net/.../Version.as
 token=%SVNURL% value=${pom_version} /
                  /tasks
                /configuration
                goals
                  goalrun/goal
                /goals
              /execution
            /executions
          /plugin
        /plugins
      /build
    /profile
  /profiles

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




 --
 Baptiste Batmat MATHUS - http://batmat.net
 Sauvez un arbre,
 Mangez un castor !


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



Re: Newbie Question

2010-02-22 Thread Baptiste MATHUS
Hi Jeremy,

The maven-release-plugin forks to do the release. So I think you have to use
an additional -Dparameters=-Pversion (See
http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#arguments
).

Be aware I'm not totally sure it will work for profiles since I never needed
it, although I did a lot of releases with this plugin;

Btw, shouldn't this profile be always on? Is there cases where you don't
want to generate this file?

Cheers.

2010/2/23 Jeremy Banks jer...@plink.co.nz

 Hi All

 I've picked up a system set up by someone else and there's an aspect
 of it that's not quite working properly, which I was hoping someone
 may be able to help me with.

 We're building a flex project using maven.  The project has 5 modules.

 One of the modules has a profile that uses the maven-antrun-plugin to
 copy a file and then substitute some properties in to it in the
 generate-sources phase.  We are using it to insert the pom version and
 an environment variable containing the subversion revision in to a
 file that reports on the version of the software.

 The module in question is building an swc which is a dependency in
 some of the other modules.

 What's happening is if I run compile or install or deploy in the
 module in question then the file copy and substitution works.  If
 however I call the release targets (i.e. mvn release:prepare
 release:perform -Dresume=false -P version) it doesn't work.

 If I look at the release repository for the module itself and open up
 the sources.jar I can verify that the substitution hasn't worked, as
 the source file hasn't been updated.

 So I guess my question is that in this case it appears that
 generate-sources isn't being called as part of the release targets, is
 this correct?  Any suggestions on how to make what is intended here
 work?

 Below is the section of the pom that performs the copy and substitution.

 Regards

 Jeremy Banks

  profiles
profile
  idversion/id
  build
plugins
  plugin
artifactIdmaven-antrun-plugin/artifactId
executions
  execution
idversion/id
phasegenerate-sources/phase
configuration
  tasks
   property name=project_basedir
 value=${project.basedir} /
property name=pom_version value=${pom.version} /
property name=svn_revision
 value=${env.SVN_REVISION} /
copy
 file=${project_basedir}/src/main/flex/net/.../VersionTemplate._as
 tofile=${project_basedir}/src/main/flex/net/.../Version.as
 overwrite=true /
replace
 file=${project_basedir}/src/main/flex/net/.../Version.as
 token=%SVNVERSION% value=${svn_revision} /
replace
 file=${project_basedir}/src/main/flex/net/.../Version.as
 token=%SVNURL% value=${pom_version} /
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin
/plugins
  /build
/profile
  /profiles

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




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Newbie question about defining goals

2009-09-14 Thread UseTheFork

Super thanks !!!

UseTheFork
-- 
View this message in context: 
http://www.nabble.com/Newbie-question-about-defining-goals-tp25428980p25433476.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Newbie question about defining goals

2009-09-13 Thread David C. Hicks
build
pluginManagement
plugins
plugin
groupIdgroup/groupId
artifactIdp/artifactId
version1.0/version
/plugin
plugins
pluginManagement

plugins
plugin
artifactIdp/artifactId
executions
execution
idsome-unique-id/id
phaseh/phase
goals
goalg/goal
/goals
/execution
/executions
/plugin
/plugins
/build

UseTheFork wrote:
 Hi, 

 This is a newbie clarification question. The set of default goals attached
 to phases does depend on the packaging setting in the pom.xml.

 Lets imagine that I want to add a goal G from plugin P to execute in phase
 H. Let's imagine that this plugin P must be retrieved from a remote
 repository R. What do I exactly need to put in my pom.xml?

 Thanks,

 UseTheFork
   

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



Re: newbie question about specifying testClassesDirectory

2009-07-02 Thread Anders Hammar
Hi,

As a starter, you should probably upgrade Maven as version 2.0.4 is
VERY old. You can tell from your attached output that there are newer
surefire plugin versions that can't be used with Maven 2.0.4.

Regarding your problem: Try running with -X (debug) instead of -e
and then check the output. Look for the test classpath and verify that
./target/test-classes/ is included in the path.

/Anders

On Thu, Jul 2, 2009 at 18:44, Tom Ht...@limepepper.co.uk wrote:

 Hi,

 I am new to maven (about 2 hours in), and I am working through a tutorial
 that I download here;
 http://www.lulu.com/content/1080910
 I can run the Hello world app under eclipse.

 However I am having a problem that when I run ;

 $ mvn -e clean package

 I get an error;
 org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
 create test class 'com.mytutorial.AppTest';

 Now, the com.mytutorial.AppTest class has been created in the
 ./target/test-classes/ folder, so I guess that either there is something
 wrong with the test class, which seems to compile ok;
 [INFO] Compiling 1 source file to
 /home/tomh/eclipse/workspace/simple/target/test-classes

 or that the surefire:test cannot find the test-classes folder with the test
 class.

 Any ideas?

 Thanks,

 Tom

 Fedora11 x86_64
 $ mvn -version
 /usr/lib/jvm/java
 Maven version: 2.0.4
 $ java -version
 java version 1.6.0_0
 OpenJDK Runtime Environment (IcedTea6 1.5) (fedora-22.b16.fc11-x86_64)
 OpenJDK 64-Bit Server VM (build 14.0-b15, mixed mode)
 eclipse-platform-3.4.2-9.fc11.x86_64




 [tomhod...@localhost simple]$ mvn -e clean package
 /usr/lib/jvm/java
 + Error stacktraces are turned on.
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building simple
 [INFO]    task-segment: [clean, package]
 [INFO]
 
 [INFO] Ignoring available plugin update: 2.3 as it requires Maven version
 2.0.6
 [INFO] [clean:clean]
 [INFO] Deleting directory /home/tomh/eclipse/workspace/simple/target
 [INFO] Ignoring available plugin update: 2.3 as it requires Maven version
 2.0.6
 [INFO] Ignoring available plugin update: 2.4.3 as it requires Maven version
 2.0.6
 [INFO] Ignoring available plugin update: 2.2 as it requires Maven version
 2.0.6
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Compiling 1 source file to
 /home/tomh/eclipse/workspace/simple/target/classes
 [INFO] [resources:testResources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:testCompile]
 [INFO] Compiling 1 source file to
 /home/tomh/eclipse/workspace/simple/target/test-classes
 [INFO] [surefire:test]
 [INFO] Surefire report directory:
 /home/tomh/eclipse/workspace/simple/target/surefire-reports
 org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
 create test class 'com.mytutorial.AppTest'; nested exception is
 java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
 gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootern98x3v.jar],
 parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}; nested
 exception is org.apache.maven.surefire.testset.TestSetFailedException:
 Unable to create test class 'com.mytutorial.AppTest'; nested exception is
 java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
 gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootern98x3v.jar],
 parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
 org.apache.maven.surefire.testset.TestSetFailedException: Unable to create
 test class 'com.mytutorial.AppTest'; nested exception is
 java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
 gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootern98x3v.jar],
 parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
 java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
 gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebootern98x3v.jar],
 parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87)
   at
 org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
   at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
   at java.lang.reflect.Method.invoke(libgcj.so.10)
   at
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
   at
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 

Re: newbie question about specifying testClassesDirectory

2009-07-02 Thread Tom H

Hi,

Thanks for the reply, I've some comments in-lined below;


On 02/07/09 20:09, Anders Hammar wrote:

Hi,

As a starter, you should probably upgrade Maven as version 2.0.4 is
VERY old. You can tell from your attached output that there are newer
surefire plugin versions that can't be used with Maven 2.0.4.
   


I am pretty much stuck with what's in the fedora11 repos, so I am hoping 
to fix the problem or send in a bug report...



Regarding your problem: Try running with -X (debug) instead of -e
and then check the output. Look for the test classpath and verify that
./target/test-classes/ is included in the path.
   


Just before the ClassNotFoundException it tries to run this;

Forking command line: /bin/sh -c cd 
/home/tomhodder/eclipse/workspace/simple  
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/bin/java -jar 
/tmp/surefirebooter4m1yoz.jar /tmp/surefire4m1yoxtmp /tmp/surefire4m1yoytmp
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to 
create test class 'com.mytutorial.AppTest';


the surefire booter jar only contains this;
[tomhod...@localhost simple]$ unzip -t /tmp/surefirebooter4m1yoz.jar
Archive:  /tmp/surefirebooter4m1yoz.jar
testing: META-INF/MANIFEST.MF OK
No errors detected in compressed data of /tmp/surefirebooter4m1yoz.jar.

And the MANIFEST file contains the correct test-classes path

If I strace that fork command it does what looks like find the correct 
AppTest class, and then gives up;


stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class, 
{st_mode=S_IFREG|0664, st_size=1006, ...}) = 0
stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class, 
{st_mode=S_IFREG|0664, st_size=1006, ...}) = 0

ftruncate(9, 69632) = 0
mmap(NULL, 4096, PROT_READ|PROT_EXEC, MAP_SHARED, 9, 0x1) = 
0x7ff109a66000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0x1) = 
0x7ff109a65000
write(2, org.apache.maven.surefire.booter, 
500org.apache.maven.surefire.booter.SurefireExecutionException: Unable 
to create test class 'com.mytutorial.AppTest'; nested exception is 
java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in 
gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter4m1yoz.jar], 
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}; 
nested exception is 
org.apache.maven.surefire.testset.TestSetFailedException: Unable to 
create test class 'com.mytutorial.AppTest'; nested exception i) = 500
write(2, s java.lang.ClassNotFoundExceptio..., 100s 
java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in 
gnu.gcj.runtime.SystemClassL) = 100





any ideas on that?

Tom



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



Re: newbie question about specifying testClassesDirectory

2009-07-02 Thread Tom H


Oh dear, maven seems to be using a different java to my eclipse 
installation;


[t...@localhost simple]$ 
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/bin/java -version

java version 1.5.0
gij (GNU libgcj) version 4.4.0 20090506 (Red Hat 4.4.0-4)

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[t...@localhost simple]$ java -version
java version 1.6.0_0
OpenJDK Runtime Environment (IcedTea6 1.5) (fedora-22.b16.fc11-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b15, mixed mode)

Tom



On 02/07/09 21:07, Tom H wrote:

Hi,

Thanks for the reply, I've some comments in-lined below;


On 02/07/09 20:09, Anders Hammar wrote:

Hi,

As a starter, you should probably upgrade Maven as version 2.0.4 is
VERY old. You can tell from your attached output that there are newer
surefire plugin versions that can't be used with Maven 2.0.4.


I am pretty much stuck with what's in the fedora11 repos, so I am 
hoping to fix the problem or send in a bug report...



Regarding your problem: Try running with -X (debug) instead of -e
and then check the output. Look for the test classpath and verify that
./target/test-classes/ is included in the path.


Just before the ClassNotFoundException it tries to run this;

Forking command line: /bin/sh -c cd 
/home/tomhodder/eclipse/workspace/simple  
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/bin/java -jar 
/tmp/surefirebooter4m1yoz.jar /tmp/surefire4m1yoxtmp 
/tmp/surefire4m1yoytmp
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to 
create test class 'com.mytutorial.AppTest';


the surefire booter jar only contains this;
[tomhod...@localhost simple]$ unzip -t /tmp/surefirebooter4m1yoz.jar
Archive:  /tmp/surefirebooter4m1yoz.jar
testing: META-INF/MANIFEST.MF OK
No errors detected in compressed data of /tmp/surefirebooter4m1yoz.jar.

And the MANIFEST file contains the correct test-classes path

If I strace that fork command it does what looks like find the correct 
AppTest class, and then gives up;


stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class, 
{st_mode=S_IFREG|0664, st_size=1006, ...}) = 0
stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class, 
{st_mode=S_IFREG|0664, st_size=1006, ...}) = 0

ftruncate(9, 69632) = 0
mmap(NULL, 4096, PROT_READ|PROT_EXEC, MAP_SHARED, 9, 0x1) = 
0x7ff109a66000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0x1) = 
0x7ff109a65000
write(2, org.apache.maven.surefire.booter, 
500org.apache.maven.surefire.booter.SurefireExecutionException: Unable 
to create test class 'com.mytutorial.AppTest'; nested exception is 
java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in 
gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter4m1yoz.jar], 
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}; 
nested exception is 
org.apache.maven.surefire.testset.TestSetFailedException: Unable to 
create test class 'com.mytutorial.AppTest'; nested exception i) = 500
write(2, s java.lang.ClassNotFoundExceptio..., 100s 
java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in 
gnu.gcj.runtime.SystemClassL) = 100





any ideas on that?

Tom



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




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



Re: newbie question about specifying testClassesDirectory

2009-07-02 Thread Anders Hammar
The surefire plugin forks by default. Possibly there is a bug in the
surefire plugin you're using (and you can't upgrade to the newest one
as it requires a newer Maven version than you're using, hence my
upgrade recommendation). I'm thinking that the class path isn't
correctly passed when forking. You could try turn off the forking by
the forkMode configuration:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#forkMode

/Anders

On Thu, Jul 2, 2009 at 22:07, Tom Ht...@limepepper.co.uk wrote:
 Hi,

 Thanks for the reply, I've some comments in-lined below;


 On 02/07/09 20:09, Anders Hammar wrote:

 Hi,

 As a starter, you should probably upgrade Maven as version 2.0.4 is
 VERY old. You can tell from your attached output that there are newer
 surefire plugin versions that can't be used with Maven 2.0.4.


 I am pretty much stuck with what's in the fedora11 repos, so I am hoping to
 fix the problem or send in a bug report...

 Regarding your problem: Try running with -X (debug) instead of -e
 and then check the output. Look for the test classpath and verify that
 ./target/test-classes/ is included in the path.


 Just before the ClassNotFoundException it tries to run this;

 Forking command line: /bin/sh -c cd
 /home/tomhodder/eclipse/workspace/simple 
 /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/bin/java -jar
 /tmp/surefirebooter4m1yoz.jar /tmp/surefire4m1yoxtmp /tmp/surefire4m1yoytmp
 org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
 create test class 'com.mytutorial.AppTest';

 the surefire booter jar only contains this;
 [tomhod...@localhost simple]$ unzip -t /tmp/surefirebooter4m1yoz.jar
 Archive:  /tmp/surefirebooter4m1yoz.jar
    testing: META-INF/MANIFEST.MF     OK
 No errors detected in compressed data of /tmp/surefirebooter4m1yoz.jar.

 And the MANIFEST file contains the correct test-classes path

 If I strace that fork command it does what looks like find the correct
 AppTest class, and then gives up;

 stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class,
 {st_mode=S_IFREG|0664, st_size=1006, ...}) = 0
 stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class,
 {st_mode=S_IFREG|0664, st_size=1006, ...}) = 0
 ftruncate(9, 69632)                     = 0
 mmap(NULL, 4096, PROT_READ|PROT_EXEC, MAP_SHARED, 9, 0x1) =
 0x7ff109a66000
 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0x1) =
 0x7ff109a65000
 write(2, org.apache.maven.surefire.booter,
 500org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
 create test class 'com.mytutorial.AppTest'; nested exception is
 java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
 gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter4m1yoz.jar],
 parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}; nested
 exception is org.apache.maven.surefire.testset.TestSetFailedException:
 Unable to create test class 'com.mytutorial.AppTest'; nested exception i) =
 500
 write(2, s java.lang.ClassNotFoundExceptio..., 100s
 java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
 gnu.gcj.runtime.SystemClassL) = 100




 any ideas on that?

 Tom



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



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



Re: newbie question about specifying testClassesDirectory

2009-07-02 Thread Tom H

On 02/07/09 21:26, Anders Hammar wrote:

The surefire plugin forks by default. Possibly there is a bug in the
surefire plugin you're using (and you can't upgrade to the newest one
as it requires a newer Maven version than you're using, hence my
upgrade recommendation). I'm thinking that the class path isn't
correctly passed when forking. You could try turn off the forking by
the forkMode configuration:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#forkMode
   


Hi Anders,

Adding the following to the pom.xml allows the tests to run through 
correctly.


plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
forkModenever/forkMode
/configuration
/plugin
/plugins
...

/project

Thanks!!!

Tom





/Anders

On Thu, Jul 2, 2009 at 22:07, Tom Ht...@limepepper.co.uk  wrote:
   

Hi,

Thanks for the reply, I've some comments in-lined below;


On 02/07/09 20:09, Anders Hammar wrote:
 

Hi,

As a starter, you should probably upgrade Maven as version 2.0.4 is
VERY old. You can tell from your attached output that there are newer
surefire plugin versions that can't be used with Maven 2.0.4.

   

I am pretty much stuck with what's in the fedora11 repos, so I am hoping to
fix the problem or send in a bug report...

 

Regarding your problem: Try running with -X (debug) instead of -e
and then check the output. Look for the test classpath and verify that
./target/test-classes/ is included in the path.

   

Just before the ClassNotFoundException it tries to run this;

Forking command line: /bin/sh -c cd
/home/tomhodder/eclipse/workspace/simple
/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/bin/java -jar
/tmp/surefirebooter4m1yoz.jar /tmp/surefire4m1yoxtmp /tmp/surefire4m1yoytmp
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
create test class 'com.mytutorial.AppTest';

the surefire booter jar only contains this;
[tomhod...@localhost simple]$ unzip -t /tmp/surefirebooter4m1yoz.jar
Archive:  /tmp/surefirebooter4m1yoz.jar
testing: META-INF/MANIFEST.MF OK
No errors detected in compressed data of /tmp/surefirebooter4m1yoz.jar.

And the MANIFEST file contains the correct test-classes path

If I strace that fork command it does what looks like find the correct
AppTest class, and then gives up;

stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class,
{st_mode=S_IFREG|0664, st_size=1006, ...}) = 0
stat(/home/tomhodder/eclipse/workspace/simple/target/test-classes/com/mytutorial/AppTest.class,
{st_mode=S_IFREG|0664, st_size=1006, ...}) = 0
ftruncate(9, 69632) = 0
mmap(NULL, 4096, PROT_READ|PROT_EXEC, MAP_SHARED, 9, 0x1) =
0x7ff109a66000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0x1) =
0x7ff109a65000
write(2, org.apache.maven.surefire.booter,
500org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
create test class 'com.mytutorial.AppTest'; nested exception is
java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter4m1yoz.jar],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}; nested
exception is org.apache.maven.surefire.testset.TestSetFailedException:
Unable to create test class 'com.mytutorial.AppTest'; nested exception i) =
500
write(2, s java.lang.ClassNotFoundExceptio..., 100s
java.lang.ClassNotFoundException: com.mytutorial.AppTest not found in
gnu.gcj.runtime.SystemClassL) = 100




any ideas on that?

Tom



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


 


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

   



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



Re: Newbie question - Resuming lifecycles

2009-06-26 Thread Barrie Treloar
On Fri, Jun 26, 2009 at 10:48 PM, alexischrale...@thenull.net wrote:

 Hello everyone,

 My team has been evaluating Maven as a solution for a data-processing
 pipeline. I've created a prototype of what our project would look like, and
 it includes a Mojo plug-in and a custom default lifecycle.

 My question regards resuming failed runs: If a goal inside the plugin throws
 an exception and fails, will the entire lifecycle be repeated when I
 re-execute the lifecycle? Will it know not to execute previous successful
 goals, or do I need to design each goal so that it checks if its output
 already exist?

Maven will *re-run* the lifecyle.
Any goals that successfully worked before the exception was thrown
will be re-run.
It is therefore important to ensure those goals have some sort of
smarts to avoid regenerating artifacts that do not need it.
i.e. timestamp checking, etc.

 Please keep in mind that I'm using a custom packaging/lifecycle, if it makes
 a difference. Resume is an important function in our case, since the
 pipeline has many fail points out of our control, and some goals can take
 days to execute.

Have a look at the release plugin, especially the prepare goal.
This plugin manages its own lifecycle stages within that goal.
They are not real maven lifecycles but rather resumable steps of the
prepare goal.
You may be able to leverage of that knowledge to allow you to build
your mojo in a similar manner.

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



Re: Newbie Question: Dependencies among Sibling Projects?

2009-03-15 Thread Massimo Heitor


Wayne Fay wrote:
 
 It seems that I need to install librarya before libraryb will compile.
 
 This is correct. Unless you are running mvn compile from the top
 parent/aggregation pom.
 

I am running mvn compile from the top aggregation pom and I still get the
dependency failure. I'm using a super simple dummy project setup to test
this... Is this behavior documented anywhere?


Wayne Fay wrote:
 
 Yes, but make sure you are using x.y.z-SNAPSHOT until you ready to
 freeze a version number. In the Maven world (and its a good policy in
 general), there is only ONE true artifact for a given
 groupId/artifactId/version (GAV) combination.
 

That makes perfect. There should only be one true build of a released
version, but development snapshots are moving targets.

Is Maven treating the text SNAPSHOT as a special-case in the version
string? Is this behavior documented?

Thanks so much for the response!

-- 
View this message in context: 
http://n2.nabble.com/Newbie-Question%3A-Dependencies-among-Sibling-Projects--tp2477109p2484210.html
Sent from the maven users mailing list archive at Nabble.com.


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



Re: Newbie Question: Dependencies among Sibling Projects?

2009-03-13 Thread Wayne Fay
 It seems that I need to install librarya before libraryb will compile.

This is correct. Unless you are running mvn compile from the top
parent/aggregation pom.

 Is there any way to define dependencies among sibling projects like this
 (that are part of the same aggregation group) so that they do not need to be
 individually installed (preferably not installed at all) and Maven can
 auto-detect dependencies and properly build/rebuild?

Yes, if you run compile from the top parent.

 Also, during development, I do not update the version tag during every
 single build/debug cycle. Will Maven properly detect source changes, rebuild
 necessary libraries, and update the local repository?

Yes, but make sure you are using x.y.z-SNAPSHOT until you ready to
freeze a version number. In the Maven world (and its a good policy in
general), there is only ONE true artifact for a given
groupId/artifactId/version (GAV) combination.

Wayne

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



Re: newbie question - creating web projects

2008-07-18 Thread Wayne Fay
Best practices with Maven would suggest that you not embed the Java
files in the Web project. Rather, you should create a standard jar
project, put the Java files there, and then put a dependency/ in the
Web project so that Jar file is brought in when the War is created.

Alternatively, you can simply create the src/main/java directory
yourself. The webapp archetype does not create this directory as it
does not comply with best practices, but there's nothing stopping you
from doing so.

I'd suggest reading more about creating J2EE projects with Maven in
Better Builds with Maven and other online resources.

Wayne

On 7/18/08, snakelocks [EMAIL PROTECTED] wrote:

 When I create a web project using:
  mvn archetype:create \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-webapp \
-DgroupId=com.mycompany.app \
-DartifactId=my-webapp

 I do not get the src/main/java folder created.

 But I do get this created when I create a 'regular' project using:
  mvn archetype:create \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DgroupId=com.mycompany.app \
  -DartifactId=my-app
 But then, of course, I don't get me src/main/resources and src/main/webapp
 etc.

 How do I create a web project AND have a src/main/java created as a base
 from which to develop?
 --
 View this message in context: 
 http://www.nabble.com/newbie-question---creating-web-projects-tp18530489p18530489.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: Newbie Question. Handling the module dependencies

2008-03-05 Thread Wayne Fay
If you want to have both modules built when you change code in one,
you must build from the parent (which in your case seems to be foo).

foo
--foo-utils
--foo-core

There is no other option.

Wayne

On 3/5/08, krishnan.1000 [EMAIL PROTECTED] wrote:

 Hi,

 I am working on a project which has two modules on the same hierarchy level
 foo-utils and foo-core. The foo-core has a dependency on foo-util. If I try
 to change something in foo-util, I have to build foo-util before I build
 foo-core. I would like to avoid that by having foo-util built before
 foo-core is when mvn compile is executed in foo-core directory. I have seen
 posts where the dependent modules

 Is there a better way to handle dependencies. In my foo-core pom.xml, this
 is what I have.




  foo
  foo-utils
  ${project.version}
  compile



 Is there anything else that I can do otherwise?

 Thanks,

 Karthik
 --
 View this message in context: 
 http://www.nabble.com/Newbie-Question.-Handling-the-module-dependencies-tp15855637s177p15855637.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: Newbie Question. Handling the module dependencies

2008-03-05 Thread krishnan.1000

Hi Wayne, 

Suppose, I have a situation where foo-utils is a dependency on some other
project not under the foo directory. What can I do to add the dependency in
the pom.xml

Thanks,

Karthik

Wayne Fay wrote:
 
 If you want to have both modules built when you change code in one,
 you must build from the parent (which in your case seems to be foo).
 
 foo
 --foo-utils
 --foo-core
 
 There is no other option.
 
 Wayne
 
 On 3/5/08, krishnan.1000 [EMAIL PROTECTED] wrote:

 Hi,

 I am working on a project which has two modules on the same hierarchy
 level
 foo-utils and foo-core. The foo-core has a dependency on foo-util. If I
 try
 to change something in foo-util, I have to build foo-util before I build
 foo-core. I would like to avoid that by having foo-util built before
 foo-core is when mvn compile is executed in foo-core directory. I have
 seen
 posts where the dependent modules

 Is there a better way to handle dependencies. In my foo-core pom.xml,
 this
 is what I have.




  foo
  foo-utils
  ${project.version}
  compile



 Is there anything else that I can do otherwise?

 Thanks,

 Karthik
 --
 View this message in context:
 http://www.nabble.com/Newbie-Question.-Handling-the-module-dependencies-tp15855637s177p15855637.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question.-Handling-the-module-dependencies-tp15855637s177p15860640.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: Newbie Question. Handling the module dependencies

2008-03-05 Thread Wayne Fay
You just declare the dependency in the pom.xml file as any other dependency.

Wayne

On 3/5/08, krishnan.1000 [EMAIL PROTECTED] wrote:

 Hi Wayne,

 Suppose, I have a situation where foo-utils is a dependency on some other
 project not under the foo directory. What can I do to add the dependency in
 the pom.xml

 Thanks,

 Karthik

 Wayne Fay wrote:
 
  If you want to have both modules built when you change code in one,
  you must build from the parent (which in your case seems to be foo).
 
  foo
  --foo-utils
  --foo-core
 
  There is no other option.
 
  Wayne
 
  On 3/5/08, krishnan.1000 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I am working on a project which has two modules on the same hierarchy
  level
  foo-utils and foo-core. The foo-core has a dependency on foo-util. If I
  try
  to change something in foo-util, I have to build foo-util before I build
  foo-core. I would like to avoid that by having foo-util built before
  foo-core is when mvn compile is executed in foo-core directory. I have
  seen
  posts where the dependent modules
 
  Is there a better way to handle dependencies. In my foo-core pom.xml,
  this
  is what I have.
 
 
 
 
   foo
   foo-utils
   ${project.version}
   compile
 
 
 
  Is there anything else that I can do otherwise?
 
  Thanks,
 
  Karthik
  --
  View this message in context:
  http://www.nabble.com/Newbie-Question.-Handling-the-module-dependencies-tp15855637s177p15855637.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]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Newbie-Question.-Handling-the-module-dependencies-tp15855637s177p15860640.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: Newbie question on deployment strategy

2007-10-24 Thread Nick Stolwijk
Normally, even with a few updated files, you would release your project 
again. Then it will create a new version number, a tag and the final 
artifacts, like jars and wars. This has nothing to do with how you 
deploy it to production. The deployment Maven talks about is deploying 
the artifacts to a Maven repository.


The deployment to production will be the full war file again. This way, 
you can reproduce the deployment. (Changing some files on your 
production server is not a good idea.) Also, often these new artifacts 
will have to go through testing and acceptance again, before making it 
to a production server. (Our development cycle is Development, Test, 
Acceptance, Production)


I hope this clears things up a bit.

With regards,

Nick Stolwijk

Ross Mcdonald wrote:

Hi all,

I am a newbie to this, carefully considering bringing Maven in house 
to our small company to improve a number of different systems.  I have 
downloaded a couple of ebooks which are great, and I see many ways in 
which Maven will make life easier, I am however finding it difficult 
to track down information in the books and with the help of google on 
deployment strategies for live setups.



I see the use of creating a war for initial deployment, but what about 
later when  just want to send a few updated files across to a 
production server?  I say there is a distributionManagement element, 
which can use a number of different protocols to send files, but I 
cannot see any real world examples, or find documentation with enough 
detail.  Can anyone point me towards some nice easy examples on this 
topic?


Thankyou in advance for your help.

Regards,

Ross


-
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: Newbie question on deployment strategy

2007-10-24 Thread Ross Mcdonald

Hi,

thanks for that, I am trying to get my head into this method of 
working.. I am just a little worried about having to reload a war each 
time, doesn't that require complete reloading of the war in the web 
server, which is perhaps too much of an interruption to a production 
application in some cases ?


Regards,

Ross


Nick Stolwijk wrote:
Normally, even with a few updated files, you would release your 
project again. Then it will create a new version number, a tag and the 
final artifacts, like jars and wars. This has nothing to do with how 
you deploy it to production. The deployment Maven talks about is 
deploying the artifacts to a Maven repository.


The deployment to production will be the full war file again. This 
way, you can reproduce the deployment. (Changing some files on your 
production server is not a good idea.) Also, often these new artifacts 
will have to go through testing and acceptance again, before making it 
to a production server. (Our development cycle is Development, Test, 
Acceptance, Production)


I hope this clears things up a bit.

With regards,

Nick Stolwijk

Ross Mcdonald wrote:

Hi all,

I am a newbie to this, carefully considering bringing Maven in house 
to our small company to improve a number of different systems.  I 
have downloaded a couple of ebooks which are great, and I see many 
ways in which Maven will make life easier, I am however finding it 
difficult to track down information in the books and with the help of 
google on deployment strategies for live setups.



I see the use of creating a war for initial deployment, but what 
about later when  just want to send a few updated files across to a 
production server?  I say there is a distributionManagement element, 
which can use a number of different protocols to send files, but I 
cannot see any real world examples, or find documentation with enough 
detail.  Can anyone point me towards some nice easy examples on this 
topic?


Thankyou in advance for your help.

Regards,

Ross


-
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: Newbie question on deployment strategy

2007-10-24 Thread Wayne Fay
Generally yes this means a complete undeploy plus deploy of the new
war, unless you've got some special J2EE server that does it another
way.

Schedule downtime or find a low-usage time to push your WARs, just
like everybody else. Ideally you're not pushing updates out to Prod on
a daily basis but instead using your Dev and Test/QA environments for
those types of builds, and then pushing bigger updates or emergency
bugfixes out to Prod.

Wayne

On 10/24/07, Ross Mcdonald [EMAIL PROTECTED] wrote:
 Hi,

 thanks for that, I am trying to get my head into this method of
 working.. I am just a little worried about having to reload a war each
 time, doesn't that require complete reloading of the war in the web
 server, which is perhaps too much of an interruption to a production
 application in some cases ?

 Regards,

 Ross


 Nick Stolwijk wrote:
  Normally, even with a few updated files, you would release your
  project again. Then it will create a new version number, a tag and the
  final artifacts, like jars and wars. This has nothing to do with how
  you deploy it to production. The deployment Maven talks about is
  deploying the artifacts to a Maven repository.
 
  The deployment to production will be the full war file again. This
  way, you can reproduce the deployment. (Changing some files on your
  production server is not a good idea.) Also, often these new artifacts
  will have to go through testing and acceptance again, before making it
  to a production server. (Our development cycle is Development, Test,
  Acceptance, Production)
 
  I hope this clears things up a bit.
 
  With regards,
 
  Nick Stolwijk
 
  Ross Mcdonald wrote:
  Hi all,
 
  I am a newbie to this, carefully considering bringing Maven in house
  to our small company to improve a number of different systems.  I
  have downloaded a couple of ebooks which are great, and I see many
  ways in which Maven will make life easier, I am however finding it
  difficult to track down information in the books and with the help of
  google on deployment strategies for live setups.
 
 
  I see the use of creating a war for initial deployment, but what
  about later when  just want to send a few updated files across to a
  production server?  I say there is a distributionManagement element,
  which can use a number of different protocols to send files, but I
  cannot see any real world examples, or find documentation with enough
  detail.  Can anyone point me towards some nice easy examples on this
  topic?
 
  Thankyou in advance for your help.
 
  Regards,
 
  Ross
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: Newbie question: including a jar in maven

2007-08-26 Thread Dennis Lundberg

Arrowx7 wrote:

Hello, I'm new to maven
I wanted to include the hibernate jar so I can import classes like:
import org.springframework.orm.hibernate3.HibernateCallback;

I know I have to add something to the pom.xml files, but I'm not sure what. 
Is it the hibernate plugin for maven?

Can someone point me in the right direction?


You need to add a dependency on hibernate in your pom.xml.

More info available here:

http://maven.apache.org/guides/getting-started/index.html#How_do_I_use_external_dependencies

--
Dennis Lundberg

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



Re: Newbie question 1

2007-06-05 Thread Maria Odea Ching
I think there's still a problem with Archiva when you add a repo that is 
not in your local file system.
From my experience, when I tried to add a repo with this url -- 
http://repo1.maven.org/maven2.. I get this instead: 
file:/[home_dir]/http://repo1.maven.org/maven2. All repos that I add 
regardless of it being in the local file system or not, 'file:/' is 
always prepended. Could that be your problem too? That's why you cannot 
index your repository?


Also, have you checked your repo url/dir? Take note that Archiva creates 
the repo if it does not exist in the file system :)


There's already an open issue for the add remote repo problem:
http://jira.codehaus.org/browse/MRM-371
http://jira.codehaus.org/browse/MRM-371
HTH,
Deng

Chris Helck wrote:
I guess from the trunk: archiva-1.0-alpha-1-SNAPSHOT. 

-Chris 


-Original Message-
From: Maria Odea Ching [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 03, 2007 11:39 PM

To: [EMAIL PROTECTED]
Subject: Re: Newbie question 1

Hi,

Which version of archiva are you using?
archiva-0.9-alpha-2 or did you build from trunk?

-Deng

Chris Helck wrote:
  

Hi,

I'm confused. I've added a managed repository that points to one of 
our in house repos. I delete my .m2/repository and was able to rebuild



  

a project. Yet, if I click on the scan repository now button it says



  
that it has zero files. I assumed that archiva would cache stuff that 
it downloads. Also, browse shows nothing and Search doesn't ever find 
anything.


Thanks,
Christopher Helck


**
This communication and all information (including, but not limited to,



  
market prices/levels and data) contained therein (the Information) 
is  for informational purposes only, is confidential, may be legally  
privileged and is the intellectual property of ICAP plc and its 
affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived 
or  lost by any mistransmission. The Information is not, and should 
not  be construed as, an offer, bid or solicitation in relation to any



  

financial instrument or as an official confirmation of any


transaction.
  
 The Information is not warranted, including, but not limited, as to  
completeness, timeliness or accuracy and is subject to change  without



  
notice. ICAP assumes no liability for use or misuse of the  
Information. All representations and warranties are expressly  
disclaimed. The Information does not necessarily reflect the views of



  
ICAP. Access to the Information by anyone else other than the  
recipient is unauthorized and any disclosure, copying, distribution or



  
any action taken or omitted to be taken in reliance on it is 
prohibited. If  you receive this message in error, please immediately 
delete it and all  copies of it from your system, destroy any hard 
copies of it and  notify the sender.

**


  




**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**


  




RE: Newbie question 1

2007-06-04 Thread Chris Helck
I guess from the trunk: archiva-1.0-alpha-1-SNAPSHOT. 

-Chris 

-Original Message-
From: Maria Odea Ching [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 03, 2007 11:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbie question 1

Hi,

Which version of archiva are you using?
archiva-0.9-alpha-2 or did you build from trunk?

-Deng

Chris Helck wrote:
 Hi,

 I'm confused. I've added a managed repository that points to one of 
 our in house repos. I delete my .m2/repository and was able to rebuild

 a project. Yet, if I click on the scan repository now button it says

 that it has zero files. I assumed that archiva would cache stuff that 
 it downloads. Also, browse shows nothing and Search doesn't ever find 
 anything.

 Thanks,
 Christopher Helck


 **
 This communication and all information (including, but not limited to,

 market prices/levels and data) contained therein (the Information) 
 is  for informational purposes only, is confidential, may be legally  
 privileged and is the intellectual property of ICAP plc and its 
 affiliates
  (ICAP) or third parties. No confidentiality or privilege is waived 
 or  lost by any mistransmission. The Information is not, and should 
 not  be construed as, an offer, bid or solicitation in relation to any

 financial instrument or as an official confirmation of any
transaction.
  The Information is not warranted, including, but not limited, as to  
 completeness, timeliness or accuracy and is subject to change  without

 notice. ICAP assumes no liability for use or misuse of the  
 Information. All representations and warranties are expressly  
 disclaimed. The Information does not necessarily reflect the views of

 ICAP. Access to the Information by anyone else other than the  
 recipient is unauthorized and any disclosure, copying, distribution or

 any action taken or omitted to be taken in reliance on it is 
 prohibited. If  you receive this message in error, please immediately 
 delete it and all  copies of it from your system, destroy any hard 
 copies of it and  notify the sender.
 **


   


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**



Re: Newbie question 1

2007-06-03 Thread Maria Odea Ching

Hi,

Which version of archiva are you using?
archiva-0.9-alpha-2 or did you build from trunk?

-Deng

Chris Helck wrote:

Hi,

I'm confused. I've added a managed repository that points to one of our
in house repos. I delete my .m2/repository and was able to rebuild a
project. Yet, if I click on the scan repository now button it says
that it has zero files. I assumed that archiva would cache stuff that it
downloads. Also, browse shows nothing and Search doesn't ever find
anything.

Thanks,
Christopher Helck


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**


  




Re: (newbie question) seding war somewhere else

2007-05-10 Thread John Patrick

The common approache is to use deploy to get the war to the 'deployment'
location. Install is just to install into your local repository so its
avaliable to other projects your working on.

On 10/05/07, Arrowx7 [EMAIL PROTECTED] wrote:



Hello,
I have mevenide2 installed, and when I run lifecycle phase install
one of the output lines is
[INFO]Installing /root/sourcecode/myproject.war to
/root/.m2/repository/org/myproject.war

is there a way to get it to install somewhere other than
/root/.m2/repository/... say /usr/local/tomcat/webapps/  ??  Do I have to
add some sort of property

Thank you very much in advance, looking forward to replies.
--
View this message in context:
http://www.nabble.com/%28newbie-question%29-seding-war-somewhere-else-tf3722975s177.html#a10417737
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: (newbie question) seding war somewhere else

2007-05-10 Thread Arrowx7

how do I change the deployment location??



nhoj_p wrote:
 
 The common approache is to use deploy to get the war to the 'deployment'
 location. Install is just to install into your local repository so its
 avaliable to other projects your working on.
 
 On 10/05/07, Arrowx7 [EMAIL PROTECTED] wrote:


 Hello,
 I have mevenide2 installed, and when I run lifecycle phase install
 one of the output lines is
 [INFO]Installing /root/sourcecode/myproject.war to
 /root/.m2/repository/org/myproject.war

 is there a way to get it to install somewhere other than
 /root/.m2/repository/... say /usr/local/tomcat/webapps/  ??  Do I have to
 add some sort of property

 Thank you very much in advance, looking forward to replies.
 --
 View this message in context:
 http://www.nabble.com/%28newbie-question%29-seding-war-somewhere-else-tf3722975s177.html#a10417737
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/%28newbie-question%29-seding-war-somewhere-else-tf3722975s177.html#a10418273
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: (newbie question) seding war somewhere else

2007-05-10 Thread Greg_Vaughn
Arrowx7 [EMAIL PROTECTED] wrote on 05/10/2007 12:16:04 PM:

 
 I have mevenide2 installed, and when I run lifecycle phase install
 one of the output lines is 
 [INFO]Installing /root/sourcecode/myproject.war to
 /root/.m2/repository/org/myproject.war
 
 is there a way to get it to install somewhere other than
 /root/.m2/repository/... say /usr/local/tomcat/webapps/  ??  Do I have 
to
 add some sort of property
 
 Thank you very much in advance, looking forward to replies.

I think you want to look at the tomcat plugin and the tomcat:deploy goal.
See: http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html

-Greg

==

Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries. If you are not the intended recipient, you are 
hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law. If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: (newbie question) seding war somewhere else

2007-05-10 Thread Wayne Fay

Another option of course is to use the Cargo Maven2 plugin for your
deployment. Depending on your container, this may be a better
approach.

Wayne

On 5/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Arrowx7 [EMAIL PROTECTED] wrote on 05/10/2007 12:16:04 PM:


 I have mevenide2 installed, and when I run lifecycle phase install
 one of the output lines is
 [INFO]Installing /root/sourcecode/myproject.war to
 /root/.m2/repository/org/myproject.war

 is there a way to get it to install somewhere other than
 /root/.m2/repository/... say /usr/local/tomcat/webapps/  ??  Do I have
to
 add some sort of property

 Thank you very much in advance, looking forward to replies.

I think you want to look at the tomcat plugin and the tomcat:deploy goal.
See: http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html

-Greg

==

Confidentiality Notice: The information contained in and transmitted with
this communication is strictly confidential, is intended only for the use of
the intended recipient, and is the property of Countrywide Financial
Corporation or its affiliates and subsidiaries. If you are not the intended
recipient, you are hereby notified that any use of the information contained
in or transmitted with the communication or dissemination, distribution, or
copying of this communication is strictly prohibited by law. If you have
received this communication in error, please immediately return this
communication to the sender and delete the original message and any copy of
it in your possession.
==



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



Re: Newbie Question: How do I represent my current Ant builds with Maven?

2007-04-17 Thread Danny MacMillan

Lacoste, Dana wrote:

Once again, I'm far from the right person to provide should answers to
this, but as I understand it, maven really wants
one-pom:one-target:one-build-result-file ratios.  As in a single directory

 should build exactly one thing.


BUT

I do this kind of thing in several areas: build a .jar and a .zip that
packages everything up in the same directory.

So it _can_ be done, but as I understand it, it's not best practice.

...


Dana,

Thanks for both of your replies.  You've really helped me see that 
switching to Maven is an attainable goal, so I've decided to jump in 
with both feet.  Well, with one foot ... I'm using it on my next project.


I'm going to proceed with the plan to have one Maven project whose build 
product is a zip file that contains my jar containing original code, 
required 3rd party jars, and ancillary files.  It might not be perfect 
but I don't currently see any flaws, and the only thing that will let me 
see any flaws is experience, and the only way to get experience is to 
get started.


--
Danny MacMillan


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



Re: Newbie question: Building master projects with a single version number.

2007-04-17 Thread Edwin Punzalan

No.

When releasing from a parent pom along with its modules, the release plugin
will also update the module parent versions to the correct parent version.
Its a different scenario though if you're ONLY releasing the parent pom.
In which case, you have to manually update the module projects to the
correct version.

Hope that helps. ^_^


On 4/17/07, David C. Hicks [EMAIL PROTECTED] wrote:


I've got a master project that contains a number of modules.  I'd like
to run the release:prepare goal on that master project and get the
version number to filter down into the sub-projects.  However, each
sub-project must specify its parent, including a version number.  When
the release plug-in changes the version number of the master POM, won't
this cause an error in the sub-projects that refer to that master POM?

Is there a solution to this problem?

Thanks,
David


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




RE: Newbie Question: How do I represent my current Ant builds with Maven?

2007-04-16 Thread Lacoste, Dana
(extra info deleted to save space)

Once again, I'm far from the right person to provide should answers to
this,
but as I understand it, maven really wants
one-pom:one-target:one-build-result-file
ratios.  As in a single directory should build exactly one thing.

BUT

I do this kind of thing in several areas: build a .jar and a .zip that
packages
everything up in the same directory.

So it _can_ be done, but as I understand it, it's not best practice.

The only catch (that I can see) is that the various published elements
have to have
different extensions (or different classifier tags) so that there's
no naming
conflict.

So it should definitely be possible to do what you want: make your pom
build the .jar,
then add the assembly code and package that up as a .zip and you'd have
both published
to your repository.  It will work fine and reliable.  But it's not the
way you're
supposed to do it if that makes sense

Dana Lacoste

-Original Message-
From: Danny MacMillan
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 3:43 PM
To: Maven Users List
Subject: Re: Newbie Question: How do I represent my current Ant builds
with Maven?

 Something like:
 
 Parent\pom.xml - placeholder, effectively
jar1\pom.xml- generates your .jar
war1\pom.xml- generates your .war
dist1\pom.xml   - generates an assembly putting all the pieces
 together
dist1\dist.xml  - descriptor
 (http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html)
dist1\resources - flat files needed in your assembly, 
 referred to in the pom
 

Would it be 'wrong' to merge the jar1 and dist1 folders (in your
example) and their corresponding poms together?  The rationale for this
question is that the jar being produced is nothing on its own.  It's not
a library or a shared component of any kind.  Its reason for being is to
provide an executable, which by its nature requires the contents of the
resources directory.  My prejudicial response to what you outline is
that it seems kind of complicated, but I'm open minded and happy to
revise my opinion if I understand the value in the split.

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



RE: Newbie Question: How do I represent my current Ant builds with Maven?

2007-04-13 Thread Lacoste, Dana
I'm far from the expert in dealing with this, but Maven's assembly
plugin will do what you need: make your staging area, populate it,
and zip it up in the end.

We do something similar: I need to produce an autorun CD image:
we build, with each jar having its own directory and maven pom,
and then a packaging pom that just generates .war files, and
then another packaging pom that generates a .zip of the CD image.

(It's much more complex than that in sheer number of components,
so I can't give you a sample directory structure easily, but
I'm sure someone else will speak up :)

Something like:

Parent\pom.xml - placeholder, effectively
   jar1\pom.xml- generates your .jar
   war1\pom.xml- generates your .war
   dist1\pom.xml   - generates an assembly putting all the pieces
together
   dist1\dist.xml  - descriptor
(http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html)
   dist1\resources - flat files needed in your assembly, referred
to in the pom

Does that help?

Dana Lacoste

-Original Message-
From: Danny MacMillan
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 13, 2007 2:42 PM
To: [EMAIL PROTECTED]
Subject: Newbie Question: How do I represent my current Ant builds with
Maven?

Hi,

I've looked at Maven, read quite a bit of the documentation, and I can't
figure out quite how to represent my current typical Ant build with
Maven.  Hopefully someone here can help me.

I write a lot of console utilities in Java.  These are comprised of the
original code for the utility, that goes in a jar, 3rd-party libraries
the utility uses, and ancillary files.  Today, my typical folder
structure for one of these projects looks like this:

trunk (contains IDE project files, build.xml, build.properties)
trunk/dist (contains content to be deployed 'as is') trunk/dist/doc
(contains product documentation) trunk/dist/etc (configuration files
read at runtime) trunk/dist/lib (holds 3rd-party jars) trunk/dist/...
trunk/java (main source code)
trunk/test (test source code)

I have a 'deploy' target in my ant build that

  1. copies the contents of 'dist' to a staging area for deployment
  2. then compiles the java source into a jar
  3. copies the jar to the staging area dist/lib directory
  4. zips up the staging area

The product is a zip file I can take to a client's site and deploy by
unzipping and editing a few configuration files (which exist in their
unedited state in trunk/dist/etc) and possibly batch files (which exist
in their unedited state in trunk/dist).

Everything I read about Maven suggests that there should be one build
product per Maven project.  Okay, I can see creating a project just for
the jar holding the compiled Java code, but I can't quite wrap my head
around what I'm 'supposed' to do here for the non-Java source files (the
batch files, the configuration files, etc.)  Switching to Maven becomes
a non-starter because at a minimum I need to duplicate the functionality
that is currently present in my ant builds.

I would appreciate any guidance or advice you can offer.

--
Danny MacMillan

-
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: Newbie Question: How do I represent my current Ant builds with Maven?

2007-04-13 Thread Danny MacMillan

Lacoste, Dana wrote:

I'm far from the expert in dealing with this, but Maven's assembly
plugin will do what you need: make your staging area, populate it,
and zip it up in the end.

We do something similar: I need to produce an autorun CD image:
we build, with each jar having its own directory and maven pom,
and then a packaging pom that just generates .war files, and
then another packaging pom that generates a .zip of the CD image.

(It's much more complex than that in sheer number of components,
so I can't give you a sample directory structure easily, but
I'm sure someone else will speak up :)

Something like:

Parent\pom.xml - placeholder, effectively
   jar1\pom.xml- generates your .jar
   war1\pom.xml- generates your .war
   dist1\pom.xml   - generates an assembly putting all the pieces
together
   dist1\dist.xml  - descriptor
(http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html)
   dist1\resources - flat files needed in your assembly, referred
to in the pom

Does that help?

Dana Lacoste


Yes, thanks.

The assembly.html page you reference has certainly changed since the 
last time I looked at it.  Last time I read it it seemed to suggest 
assemblies were for creating different 'views' of the same information 
(e.g. a source distribution, a binary distribution, etc.)  Now it pretty 
plainly says it is the mechanism for doing exactly what I want :)  The 
documentation on the page looks a lot more complete, too.  I had 
considered the assembly plugin the last time I looked at this but I 
thought it would be counter to the design.  It's good to have 
confirmation that this is indeed what others are using to achieve this goal.


Would it be 'wrong' to merge the jar1 and dist1 folders (in your 
example) and their corresponding poms together?  The rationale for this 
question is that the jar being produced is nothing on its own.  It's not 
a library or a shared component of any kind.  Its reason for being is to 
provide an executable, which by its nature requires the contents of the 
resources directory.  My prejudicial response to what you outline is 
that it seems kind of complicated, but I'm open minded and happy to 
revise my opinion if I understand the value in the split.


Thanks for your (astonishingly prompt) answer.

--
Danny MacMillan

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



Re: Newbie question: single project spanning multiple repository locations

2007-02-26 Thread Jo Vandermeeren

hi Dirk,

You need to define each repository location as a maven module in a
pom-packaged parent project.

Once you've done this, you could add the pom to continuum and it will create
5 entries: 1 for each trunk and 1 for the parent.
You could easily setup continuum to enable recursive builds. This will
trigger the builds of the child modules when the parent module gets built.
But then you'll probably want to remove the continuum entries for the child
modules.

This is very easy, because it's the default maven behaviour..
Continuum adds by default the non-recursive flag to a project build,
because otherwise the child modules would be built twice.

You will get 4 artifacts (jars probably) representing each trunk (if they
are seperately compilable)..

Here's some information on enabling a recursive build:
http://maven.apache.org/continuum/faqs.html#build-entire-project-recursively-from-parent

Good luck
Jo


On 2/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi,

we have an older project that -unfortunately- spans multiple repository
locations:

scm:svn://ourserver.com/repositories/ABRAHAM/basis/trunk/
scm:svn://ourserver.com/repositories/ABRAHAM/dev/trunk/
scm:svn://ourserver.com/repositories/ABRAHAM/access/trunk/
scm:svn://ourserver.com/repositories/ABRAHAM/hwm/trunk/

The main build file build.xml resides in basis/trunk. Before the build can
beding, all 4 trunks must be checked out to 4 different directories side
by side: basis/, dev/, access/ and hwm/.

How can I define a single Continuum project for this kind of setup?

Thanks, in advance,
Dirk.




Antwort: Re: Newbie question: single project spanning multiple repository locations

2007-02-26 Thread Dirk . Moebius
Thanks a lot, Jo. I'll give it a try.

 You will get 4 artifacts (jars probably) representing each trunk (if 
they
 are seperately compilable)..

well, not yet, but we're working on it...

Regards,
Dirk.


Jo Vandermeeren [EMAIL PROTECTED] schrieb am 26.02.2007 
22:25:55:

 hi Dirk,
 
 You need to define each repository location as a maven module in a
 pom-packaged parent project.
 
 Once you've done this, you could add the pom to continuum and it will 
create
 5 entries: 1 for each trunk and 1 for the parent.
 You could easily setup continuum to enable recursive builds. This will
 trigger the builds of the child modules when the parent module gets 
built.
 But then you'll probably want to remove the continuum entries for the 
child
 modules.
 
 This is very easy, because it's the default maven behaviour..
 Continuum adds by default the non-recursive flag to a project build,
 because otherwise the child modules would be built twice.
 
 You will get 4 artifacts (jars probably) representing each trunk (if 
they
 are seperately compilable)..
 
 Here's some information on enabling a recursive build:
 http://maven.apache.org/continuum/faqs.html#build-entire-project-
 recursively-from-parent
 
 Good luck
 Jo
 
 
 On 2/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Hi,
 
  we have an older project that -unfortunately- spans multiple 
repository
  locations:
 
  scm:svn://ourserver.com/repositories/ABRAHAM/basis/trunk/
  scm:svn://ourserver.com/repositories/ABRAHAM/dev/trunk/
  scm:svn://ourserver.com/repositories/ABRAHAM/access/trunk/
  scm:svn://ourserver.com/repositories/ABRAHAM/hwm/trunk/
 
  The main build file build.xml resides in basis/trunk. Before the build 
can
  beding, all 4 trunks must be checked out to 4 different directories 
side
  by side: basis/, dev/, access/ and hwm/.
 
  How can I define a single Continuum project for this kind of setup?
 
  Thanks, in advance,
  Dirk.
 
 



RE: Newbie question- 3rd party jars

2006-12-31 Thread Sagare, Vipul
Thank you all for your help.

I guess, I have to wait until Maven becomes more widely accepted and becomes as 
open source product as ant or similar apache packages.

Vipul.


-Original Message-
From: [EMAIL PROTECTED] on behalf of John Tolentino
Sent: Sat 12/30/2006 11:48 PM
To: Maven Users List
Subject: Re: Newbie question- 3rd party jars
 
On 12/31/06, Sagare, Vipul [EMAIL PROTECTED] wrote:
 Thank you for quick response.   Any way to do this by keeping lib directory?

You can but users will always have to manually install the artifacts
to their local repository. You can provide them with a batch file or
script for this.

Like what Wendy said, you'll benefit more though if you could setup an
internal repo.


 With several environments and different network zones across which
builds are done (dev, QA, production),  the transition from ANT to
Maven needs happen in more gradually to reduce the risk on quality of
the software delivery.

There are several projects that uses both Ant and Maven builds. They
could live along with each other so you're not obligated to overhaul
your projects in one go.


 In other words, without changing any directory structure, can I use Maven for 
 full enterprise level J2EE application with EAR, JAR and WAR with WebLogic 
 EJBs?

Although you could stick with your existing directory structure,
you'll benefit more if you'll follow the best practices that Maven
suggests. Like with the 3rd party jars, you can create a script to
regularly copy files into a Maven 2 directory structure (with Maven 2
POMs) and have it built there. Use this until you're comfortable with
your migration.


 Thanks,
 Vipul

 

 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: Sat 12/30/2006 10:36 PM
 To: Maven Users List
 Subject: Re: Newbie question- 3rd party jars



 On 12/30/06, Sagare, Vipul [EMAIL PROTECTED] wrote:
  Both.
 
  I would like them to be in the classpath and in jar as well.

 Normally you would install them in your local repository and then use
 a dependency element in your pom.  If you're working with other
 developers, you'll probably want to establish an internal/corporate
 repository so that each developer doesn't have to install them
 individually.

 Then you won't need that lib directory at all, the jars in your
 local repository will be shared across all of your Maven-built
 projects.

 To include jars within a jar, I don't see a way to convince the jar
 plugin to do it:
http://maven.apache.org/plugins/maven-jar-plugin/
 but you can use the assembly plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/

 --
 Wendy

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







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



-
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: Newbie question- 3rd party jars

2006-12-31 Thread Wayne Fay

confused

Maven is widely accepted. And it is an open source product from Apache
(ASF). What specifically is your problem?

Wayne

On 12/31/06, Sagare, Vipul [EMAIL PROTECTED] wrote:

Thank you all for your help.

I guess, I have to wait until Maven becomes more widely accepted and becomes as 
open source product as ant or similar apache packages.

Vipul.


-Original Message-
From: [EMAIL PROTECTED] on behalf of John Tolentino
Sent: Sat 12/30/2006 11:48 PM
To: Maven Users List
Subject: Re: Newbie question- 3rd party jars

On 12/31/06, Sagare, Vipul [EMAIL PROTECTED] wrote:
 Thank you for quick response.   Any way to do this by keeping lib directory?

You can but users will always have to manually install the artifacts
to their local repository. You can provide them with a batch file or
script for this.

Like what Wendy said, you'll benefit more though if you could setup an
internal repo.


 With several environments and different network zones across which
builds are done (dev, QA, production),  the transition from ANT to
Maven needs happen in more gradually to reduce the risk on quality of
the software delivery.

There are several projects that uses both Ant and Maven builds. They
could live along with each other so you're not obligated to overhaul
your projects in one go.


 In other words, without changing any directory structure, can I use Maven for 
full enterprise level J2EE application with EAR, JAR and WAR with WebLogic EJBs?

Although you could stick with your existing directory structure,
you'll benefit more if you'll follow the best practices that Maven
suggests. Like with the 3rd party jars, you can create a script to
regularly copy files into a Maven 2 directory structure (with Maven 2
POMs) and have it built there. Use this until you're comfortable with
your migration.


 Thanks,
 Vipul

 

 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: Sat 12/30/2006 10:36 PM
 To: Maven Users List
 Subject: Re: Newbie question- 3rd party jars



 On 12/30/06, Sagare, Vipul [EMAIL PROTECTED] wrote:
  Both.
 
  I would like them to be in the classpath and in jar as well.

 Normally you would install them in your local repository and then use
 a dependency element in your pom.  If you're working with other
 developers, you'll probably want to establish an internal/corporate
 repository so that each developer doesn't have to install them
 individually.

 Then you won't need that lib directory at all, the jars in your
 local repository will be shared across all of your Maven-built
 projects.

 To include jars within a jar, I don't see a way to convince the jar
 plugin to do it:
http://maven.apache.org/plugins/maven-jar-plugin/
 but you can use the assembly plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/

 --
 Wendy

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







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



-
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: Newbie question- 3rd party jars

2006-12-30 Thread Wendy Smoak

On 12/30/06, Sagare, Vipul [EMAIL PROTECTED] wrote:


After going through the book, I am trying to get one of our modules compile and 
package into jar. How do I include 3rd party Jars?   Here is my directory 
structure and pom.xml


I assume you mean how do I include third party jars on the classpath
so I can compile my source code and package it in a jar?  Correct?


From your description, I can't tell whether you want the contents of

'lib' included in your jar.

--
Wendy

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



RE: Newbie question- 3rd party jars

2006-12-30 Thread Sagare, Vipul
Both.   
 
I would like them to be in the classpath and in jar as well.
 
Thanks,
Vipul



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Sat 12/30/2006 5:28 PM
To: Maven Users List
Subject: Re: Newbie question- 3rd party jars



On 12/30/06, Sagare, Vipul [EMAIL PROTECTED] wrote:

 After going through the book, I am trying to get one of our modules compile 
 and package into jar. How do I include 3rd party Jars?   Here is my directory 
 structure and pom.xml

I assume you mean how do I include third party jars on the classpath
so I can compile my source code and package it in a jar?  Correct?

From your description, I can't tell whether you want the contents of
'lib' included in your jar.

--
Wendy

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





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

Re: Newbie question- 3rd party jars

2006-12-30 Thread Wendy Smoak

On 12/30/06, Sagare, Vipul [EMAIL PROTECTED] wrote:

Both.

I would like them to be in the classpath and in jar as well.


Normally you would install them in your local repository and then use
a dependency element in your pom.  If you're working with other
developers, you'll probably want to establish an internal/corporate
repository so that each developer doesn't have to install them
individually.

Then you won't need that lib directory at all, the jars in your
local repository will be shared across all of your Maven-built
projects.

To include jars within a jar, I don't see a way to convince the jar
plugin to do it:
  http://maven.apache.org/plugins/maven-jar-plugin/
but you can use the assembly plugin:
  http://maven.apache.org/plugins/maven-assembly-plugin/

--
Wendy

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



RE: Newbie question- 3rd party jars

2006-12-30 Thread Sagare, Vipul
Thank you for quick response.   Any way to do this by keeping lib directory?
With several environments and different network zones across which builds are 
done (dev, QA, production),  the transition from ANT to Maven needs happen in 
more gradually to reduce the risk on quality of the software delivery.
 
In other words, without changing any directory structure, can I use Maven for 
full enterprise level J2EE application with EAR, JAR and WAR with WebLogic EJBs?
 
Thanks,
Vipul



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Sat 12/30/2006 10:36 PM
To: Maven Users List
Subject: Re: Newbie question- 3rd party jars



On 12/30/06, Sagare, Vipul [EMAIL PROTECTED] wrote:
 Both.

 I would like them to be in the classpath and in jar as well.

Normally you would install them in your local repository and then use
a dependency element in your pom.  If you're working with other
developers, you'll probably want to establish an internal/corporate
repository so that each developer doesn't have to install them
individually.

Then you won't need that lib directory at all, the jars in your
local repository will be shared across all of your Maven-built
projects.

To include jars within a jar, I don't see a way to convince the jar
plugin to do it:
   http://maven.apache.org/plugins/maven-jar-plugin/
but you can use the assembly plugin:
   http://maven.apache.org/plugins/maven-assembly-plugin/

--
Wendy

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





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

Re: Newbie question- 3rd party jars

2006-12-30 Thread John Tolentino

On 12/31/06, Sagare, Vipul [EMAIL PROTECTED] wrote:

Thank you for quick response.   Any way to do this by keeping lib directory?


You can but users will always have to manually install the artifacts
to their local repository. You can provide them with a batch file or
script for this.

Like what Wendy said, you'll benefit more though if you could setup an
internal repo.


With several environments and different network zones across which
builds are done (dev, QA, production),  the transition from ANT to
Maven needs happen in more gradually to reduce the risk on quality of
the software delivery.

There are several projects that uses both Ant and Maven builds. They
could live along with each other so you're not obligated to overhaul
your projects in one go.



In other words, without changing any directory structure, can I use Maven for 
full enterprise level J2EE application with EAR, JAR and WAR with WebLogic EJBs?


Although you could stick with your existing directory structure,
you'll benefit more if you'll follow the best practices that Maven
suggests. Like with the 3rd party jars, you can create a script to
regularly copy files into a Maven 2 directory structure (with Maven 2
POMs) and have it built there. Use this until you're comfortable with
your migration.



Thanks,
Vipul



From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Sat 12/30/2006 10:36 PM
To: Maven Users List
Subject: Re: Newbie question- 3rd party jars



On 12/30/06, Sagare, Vipul [EMAIL PROTECTED] wrote:
 Both.

 I would like them to be in the classpath and in jar as well.

Normally you would install them in your local repository and then use
a dependency element in your pom.  If you're working with other
developers, you'll probably want to establish an internal/corporate
repository so that each developer doesn't have to install them
individually.

Then you won't need that lib directory at all, the jars in your
local repository will be shared across all of your Maven-built
projects.

To include jars within a jar, I don't see a way to convince the jar
plugin to do it:
   http://maven.apache.org/plugins/maven-jar-plugin/
but you can use the assembly plugin:
   http://maven.apache.org/plugins/maven-assembly-plugin/

--
Wendy

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







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




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



RE: Newbie Question

2006-12-07 Thread Randall Fidler
Hello,
 
  Building off of Alexander's suggestion I did try setting Maven's 
setting.xml file to specifically use certain repositories.  What I found was it 
is bringing down the junit version I'm looking for but it only brings down the 
pom and checksum file - it doesn't bring down the jar!
 
I have completely cleaned out my repository and double checked that the 
repository I'm pointing to is for use with Maven2 and does indeed have the 
junit jar version I'm looking for.  Running with a clean repository the same 
occurs, the dependencies are found but only the pom and checksum files are 
moved to Maven2's local repository.
 
Is there an setting somewhere that I'm missing?
 
Thanks again!
Regards,

Randall



From: Morgovsky, Alexander (US - Glen Mills) [mailto:[EMAIL PROTECTED]
Sent: Thu 12/7/2006 3:06 PM
To: continuum-users@maven.apache.org
Subject: RE: Newbie Question



Maybe you should see which settings.xml file your Continuum instance is
using and make sure that your repositories are properly defined in
there.


From: Randall Fidler [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 4:33 PM
To: continuum-users@maven.apache.org
Subject: Newbie Question



Hello,



I just downloaded Continuum yesterday (v1.0.3) and have
gotten it up and running on Windows 2003 server.  I am using a Maven2
project with Continuum and getting mixed results - i.e. sometimes it
runs farther down the line than other times. 



The project I'm using works fine on a development machine, compiles,
gets dependencies and all that fun stuff but on Continuum, sometimes it
cannot get dependencies (which I can see are in the local repository)
and other times it will download the dependencies, using -U, when it
executes 'clean' but then says it cannot find the dependency it just
downloaded when it runs 'package' or 'site' goals.  If it was a simple
case of the something not running, one particular goal, then I could
understand but it fails at different parts of the process for each build
run... sometimes it runs 10 seconds and other times 10 minutes.



To me, I would think this to be a Maven2 problem (pom is wrong) but the
project builds fine with Maven2 outside of Continuum so I thought this
support list was the most appropriate.





Note:  Using Java 1.5 JDK with default profile/schedule on Continuum and
did not use a URL to define the project; I uploaded the pom file.



Any suggestions are greatly appreciated.

Thanks,

Randall


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]




Re: Re: Newbie Question about repository access protocols

2006-12-04 Thread Stefan Arentz

Aaron, did you ever find a solution for this? I'm trying to do the
same .. I would like to access an internal repository through one of
these:

* https with basic auth on it
* https with a client side certificate
* ssh/scp with public key auth

None seem to be supported by Maven at the moment?

S.

On 10/23/06, Aaron Metzger [EMAIL PROTECTED] wrote:

oching wrote:
 Hi Aaron,

 You can use the maven-deploy-plugin to write to your repository using SSH
 for Maven 2.
 You can refer to these docs for more info:
 http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html
 http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html


I appreciate the tips but I think I stated my question poorly.
I know how to *deploy* using SSH.
What I did not see in the docs was a clear example of how to *retrieve*
using SSH (instead of HTTPS).

For example, I would like to use extssh, ssh, or sftp as the URL
protocol below.  Is this supported.

 repositories
 repository
   idmy-repo1/id
   nameyour custom repo/name
   urlextssh://x.com/url
 /repository
 /repositories





 I'm not sure if the site is updated though. If you want to get the latest
 docs, you can checkout the deploy plugin from here:
 http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin
 http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin
 and execute mvn site to generate the plugin site.

 Hope this helps! :-)

 Thanks,
 Deng



 Aaron Metzger wrote:

 I am evaluating Maven 2 VS Ivy and would prefer to adopt Maven 2 as a
 complete build management system but have one hang up question.

 I must set up a local secured repository for a portion of our software.
 The majority of docs lead me to believe that I can publish to a
 repository with SCP but can only read from the repository with HTTPS or
 HTTP.  Is that true?

 In the Wagon docs I see mention of SSH and SCP but it says that the use
 of SSH to read from the repository is untested.

 We have an existing SSH public key infrastructure in place and would
 like to use the same SSH transport users and keys for both reading and
 writing our Maven repository (and SVN access to) and don't want to have
 to manage a separate set of users/passwords/keys for HTTPS.

 Can someone point me to the docs that show how to use SSH/SCP for all
 things Maven?

 Thanks in advance,
 Aaron





 -
 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: Newbie question

2006-11-09 Thread Valerio Schiavoni

your jsp pages should be in src/main/webapp/WEB-INF/jsp
and your hbm.xml in src/main/resources

given that you're using that directory layout, can you post your pom.xml ?

On 11/9/06, Gianfranco Oldani [EMAIL PROTECTED] wrote:


Hi,
I am trying to build a web application using Spring and Hibernate. All
goes
find except that my jsp pages  and all the *.hbm.xml  are not copied in
the
target war. The directory structure is the standard one for a web app as
advised by maven book.



--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


Re: Newbie question

2006-11-09 Thread Gianfranco Oldani

Hi Valerio,
Thanks for the advise. The hbm.xml are now copied ok. But the jsp aren't 
even if I put the jsp directory under WEB-INF.


Attached my pom. Thanks for your help

Gianfranco OLDANI



Original Message Follows
From: Valerio Schiavoni [EMAIL PROTECTED]
Reply-To: Maven Users List users@maven.apache.org
To: Maven Users List users@maven.apache.org, [EMAIL PROTECTED]
Subject: Re: Newbie question
Date: Thu, 9 Nov 2006 13:23:53 +0100

your jsp pages should be in src/main/webapp/WEB-INF/jsp
and your hbm.xml in src/main/resources

given that you're using that directory layout, can you post your pom.xml ?

On 11/9/06, Gianfranco Oldani [EMAIL PROTECTED] wrote:


Hi,
I am trying to build a web application using Spring and Hibernate. All
goes
find except that my jsp pages  and all the *.hbm.xml  are not copied in
the
target war. The directory structure is the standard one for a web app as
advised by maven book.



--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

_
Sentez vous chez vous sur la page d'accueil MSN  en personnalisant le 
contenu! http://fr.ch.msn.com/default.aspx?dc=true
?xml version=1.0?project
  modelVersion4.0.0/modelVersion
  groupIdcom.ibsc/groupId
  artifactIdqual/artifactId
  packagingwar/packaging
  nameQual online application/name
  version1.0-SNAPSHOT/version
  descriptionThe Qual application is intended to provide an online tool to TO DO.../description
  urlhttp://www.qual.com/url

  developers
developer
  idgo/id
  nameGianfranco Oldani/name
  email[EMAIL PROTECTED]/email
  urlwww.ibsc.ch/url
  organizationIBSC/organization
  roles
roleProject Manager/role
roleJava Developer/role
  /roles
  timezone+1/timezone
/developer
developer
  idsc/id
  nameSteve Carrupt/name
  email[EMAIL PROTECTED]/email
  url/url
  organizationIBSC/organization
  roles
roleJava Developer/role
  /roles
  timezone+1/timezone
/developer
  /developers
  contributors
contributor
  nameRobert Sanders/name
  email[EMAIL PROTECTED]/email
  urlwww.ibsc.ch/url
  organizationIBSC/organization
  organizationUrlwww.ibsc.ch/organizationUrl
  roles
roleIBSC Director/role
roleBusiness Analyst/role
  /roles
  timezone+1/timezone
/contributor
  /contributors
  
 
  build
sourceDirectoryD:\Java\projects\ibsc\qual\trunk\src\main\java/sourceDirectory
scriptSourceDirectorysrc\main\scripts/scriptSourceDirectory
testSourceDirectoryD:\Java\projects\ibsc\qual\trunk\src\test\java/testSourceDirectory
outputDirectoryD:\Java\projects\ibsc\qual\trunk\target\classes/outputDirectory
testOutputDirectoryD:\Java\projects\ibsc\qual\trunk\target\test-classes/testOutputDirectory
resources
  resource
directoryD:\Java\projects\ibsc\qual\trunk\src\main\resources/directory
  /resource
/resources
testResources
  testResource
directoryD:\Java\projects\ibsc\qual\trunk\src\test\resources/directory
  /testResource
/testResources
directoryD:\Java\projects\ibsc\qual\trunk\target/directory
finalNamequal/finalName
plugins
plugin
artifactIdmaven-war-plugin/artifactId
version2.0-beta-1/version
configuration
   webXmlsrc/webapp/WEB-INF/web.xml/webXml
/configuration
  /plugin
  plugin
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin
  plugin
artifactIdmaven-surefire-plugin/artifactId
version2.1.1/version
configuration
  includes
include**/*.java/include
  /includes
  excludes
exclude**/*Point*.java/exclude
  /excludes
/configuration
  /plugin
  plugin
artifactIdmaven-help-plugin/artifactId
version2.0/version
  /plugin
/plugins
  /build
  repositories
repository
  releases
enabledfalse/enabled
  /releases
  snapshots /
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
/repository
repository
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Repository Switchboard/name
  urlhttp://repo1.maven.org/maven2/url
/repository
  /repositories
  pluginRepositories
pluginRepository
  releases
enabledfalse/enabled
  /releases
  snapshots /
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
/pluginRepository
pluginRepository
  releases
updatePolicynever/updatePolicy
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Plugin Repository/name
  urlhttp://repo1.maven.org

Re: Newbie question

2006-11-09 Thread Manu

you should remove your sourceDirectory tag as it specifies only the java
part.
The default value should fit in you case.

Hope this helps
Manu

2006/11/9, Gianfranco Oldani [EMAIL PROTECTED]:


Hi Valerio,
Thanks for the advise. The hbm.xml are now copied ok. But the jsp aren't
even if I put the jsp directory under WEB-INF.

Attached my pom. Thanks for your help

Gianfranco OLDANI



Original Message Follows
From: Valerio Schiavoni [EMAIL PROTECTED]
Reply-To: Maven Users List users@maven.apache.org
To: Maven Users List users@maven.apache.org,
[EMAIL PROTECTED]
Subject: Re: Newbie question
Date: Thu, 9 Nov 2006 13:23:53 +0100

your jsp pages should be in src/main/webapp/WEB-INF/jsp
and your hbm.xml in src/main/resources

given that you're using that directory layout, can you post your pom.xml ?

On 11/9/06, Gianfranco Oldani [EMAIL PROTECTED] wrote:

Hi,
I am trying to build a web application using Spring and Hibernate. All
goes
find except that my jsp pages  and all the *.hbm.xml  are not copied in
the
target war. The directory structure is the standard one for a web app as
advised by maven book.


--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

_
Sentez vous chez vous sur la page d'accueil MSN  en personnalisant le
contenu! http://fr.ch.msn.com/default.aspx?dc=true


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






--
Manu (:-Þ)


Re: Newbie Question about repository access protocols

2006-10-23 Thread Maria Odea Ching

Hi Aaron,

You can use the maven-deploy-plugin to write to your repository using 
SSH for Maven 2.

You can refer to these docs for more info:
http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html

I'm not sure if the site is updated though. If you want to get the 
latest docs, you can checkout the deploy plugin from here:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin 
and execute mvn site to generate the plugin site.


Hope this helps! :-)

Thanks,
Deng

Aaron Metzger wrote:



I am evaluating Maven 2 VS Ivy and would prefer to adopt Maven 2 as a 
complete build management system but have one hang up question.


I must set up a local secured repository for a portion of our software.
The majority of docs lead me to believe that I can publish to a 
repository with SCP but can only read from the repository with HTTPS 
or HTTP.  Is that true?


In the Wagon docs I see mention of SSH and SCP but it says that the 
use of SSH to read from the repository is untested.


We have an existing SSH public key infrastructure in place and would 
like to use the same SSH transport users and keys for both reading and 
writing our Maven repository (and SVN access to) and don't want to 
have to manage a separate set of users/passwords/keys for HTTPS.


Can someone point me to the docs that show how to use SSH/SCP for all 
things Maven?


Thanks in advance,
Aaron





-
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: Newbie Question about repository access protocols

2006-10-23 Thread oching

Hi Aaron,

You can use the maven-deploy-plugin to write to your repository using SSH
for Maven 2.
You can refer to these docs for more info:
http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html
http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html 

I'm not sure if the site is updated though. If you want to get the latest
docs, you can checkout the deploy plugin from here:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin 
and execute mvn site to generate the plugin site.

Hope this helps! :-)

Thanks,
Deng 



Aaron Metzger wrote:
 
 
 I am evaluating Maven 2 VS Ivy and would prefer to adopt Maven 2 as a 
 complete build management system but have one hang up question.
 
 I must set up a local secured repository for a portion of our software.
 The majority of docs lead me to believe that I can publish to a 
 repository with SCP but can only read from the repository with HTTPS or 
 HTTP.  Is that true?
 
 In the Wagon docs I see mention of SSH and SCP but it says that the use 
 of SSH to read from the repository is untested.
 
 We have an existing SSH public key infrastructure in place and would 
 like to use the same SSH transport users and keys for both reading and 
 writing our Maven repository (and SVN access to) and don't want to have 
 to manage a separate set of users/passwords/keys for HTTPS.
 
 Can someone point me to the docs that show how to use SSH/SCP for all 
 things Maven?
 
 Thanks in advance,
 Aaron
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question-about-repository-access-protocols-tf2482671.html#a6949273
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: Newbie Question about repository access protocols

2006-10-23 Thread Maria Odea Ching

Hi Aaron,

You can use the maven-deploy-plugin to write to your repository using 
SSH for Maven 2.

You can refer to these docs for more info:
http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html

I'm not sure if the site is updated though. If you want to get the 
latest docs, you can checkout the deploy plugin from here:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin 
and execute mvn site to generate the plugin site.


Hope this helps! :-)

Thanks,
Deng

Aaron Metzger wrote:



I am evaluating Maven 2 VS Ivy and would prefer to adopt Maven 2 as a 
complete build management system but have one hang up question.


I must set up a local secured repository for a portion of our software.
The majority of docs lead me to believe that I can publish to a 
repository with SCP but can only read from the repository with HTTPS 
or HTTP.  Is that true?


In the Wagon docs I see mention of SSH and SCP but it says that the 
use of SSH to read from the repository is untested.


We have an existing SSH public key infrastructure in place and would 
like to use the same SSH transport users and keys for both reading and 
writing our Maven repository (and SVN access to) and don't want to 
have to manage a separate set of users/passwords/keys for HTTPS.


Can someone point me to the docs that show how to use SSH/SCP for all 
things Maven?


Thanks in advance,
Aaron





-
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: Newbie Question about repository access protocols

2006-10-23 Thread Aaron Metzger

oching wrote:

Hi Aaron,

You can use the maven-deploy-plugin to write to your repository using SSH
for Maven 2.
You can refer to these docs for more info:
http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html
http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html 



I appreciate the tips but I think I stated my question poorly.
I know how to *deploy* using SSH.
What I did not see in the docs was a clear example of how to *retrieve* 
using SSH (instead of HTTPS).


For example, I would like to use extssh, ssh, or sftp as the URL 
protocol below.  Is this supported.



repositories
repository
  idmy-repo1/id
  nameyour custom repo/name
  urlextssh://x.com/url
/repository
/repositories







I'm not sure if the site is updated though. If you want to get the latest
docs, you can checkout the deploy plugin from here:
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin 
and execute mvn site to generate the plugin site.


Hope this helps! :-)

Thanks,
Deng 




Aaron Metzger wrote:


I am evaluating Maven 2 VS Ivy and would prefer to adopt Maven 2 as a 
complete build management system but have one hang up question.


I must set up a local secured repository for a portion of our software.
The majority of docs lead me to believe that I can publish to a 
repository with SCP but can only read from the repository with HTTPS or 
HTTP.  Is that true?


In the Wagon docs I see mention of SSH and SCP but it says that the use 
of SSH to read from the repository is untested.


We have an existing SSH public key infrastructure in place and would 
like to use the same SSH transport users and keys for both reading and 
writing our Maven repository (and SVN access to) and don't want to have 
to manage a separate set of users/passwords/keys for HTTPS.


Can someone point me to the docs that show how to use SSH/SCP for all 
things Maven?


Thanks in advance,
Aaron





-
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: newbie question

2006-08-29 Thread patrick

i think i read somewhere that there is a repository at sun providing these,
but
1) i cant remember the URL
2) i do not know how to put this in you settings.xml (how to spezify which
is your main repo and which are the backups)


Charles Griffin-3 wrote:
 
 Thanks Odea,
 
 I deleted my repository and started from scratch.  After that I was able
 to download a lot of the jars, but I did have to eventually manually
 install around 9 files manually like you suggested i.e. jaxp, activation,
 javamail.
 
 

-- 
View this message in context: 
http://www.nabble.com/newbie-question-tf2177368.html#a6038571
Sent from the Maven - Users forum at Nabble.com.


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



Re: newbie question

2006-08-29 Thread ben short

Here it is...

https://maven2-repository.dev.java.net/



On 8/29/06, patrick [EMAIL PROTECTED] wrote:


i think i read somewhere that there is a repository at sun providing these,
but
1) i cant remember the URL
2) i do not know how to put this in you settings.xml (how to spezify which
is your main repo and which are the backups)


Charles Griffin-3 wrote:

 Thanks Odea,

 I deleted my repository and started from scratch.  After that I was able
 to download a lot of the jars, but I did have to eventually manually
 install around 9 files manually like you suggested i.e. jaxp, activation,
 javamail.



--
View this message in context: 
http://www.nabble.com/newbie-question-tf2177368.html#a6038571
Sent from the Maven - Users forum at Nabble.com.


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




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



Re: newbie question

2006-08-29 Thread ben short

Scratch that im wrong.

On 8/29/06, ben short [EMAIL PROTECTED] wrote:

Here it is...

https://maven2-repository.dev.java.net/



On 8/29/06, patrick [EMAIL PROTECTED] wrote:

 i think i read somewhere that there is a repository at sun providing these,
 but
 1) i cant remember the URL
 2) i do not know how to put this in you settings.xml (how to spezify which
 is your main repo and which are the backups)


 Charles Griffin-3 wrote:
 
  Thanks Odea,
 
  I deleted my repository and started from scratch.  After that I was able
  to download a lot of the jars, but I did have to eventually manually
  install around 9 files manually like you suggested i.e. jaxp, activation,
  javamail.
 
 

 --
 View this message in context: 
http://www.nabble.com/newbie-question-tf2177368.html#a6038571
 Sent from the Maven - Users forum at Nabble.com.


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





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



Re: newbie question

2006-08-29 Thread ben short

https://maven-repository.dev.java.net/nonav/

On 8/29/06, ben short [EMAIL PROTECTED] wrote:

Scratch that im wrong.

On 8/29/06, ben short [EMAIL PROTECTED] wrote:
 Here it is...

 https://maven2-repository.dev.java.net/



 On 8/29/06, patrick [EMAIL PROTECTED] wrote:
 
  i think i read somewhere that there is a repository at sun providing these,
  but
  1) i cant remember the URL
  2) i do not know how to put this in you settings.xml (how to spezify which
  is your main repo and which are the backups)
 
 
  Charles Griffin-3 wrote:
  
   Thanks Odea,
  
   I deleted my repository and started from scratch.  After that I was able
   to download a lot of the jars, but I did have to eventually manually
   install around 9 files manually like you suggested i.e. jaxp, activation,
   javamail.
  
  
 
  --
  View this message in context: 
http://www.nabble.com/newbie-question-tf2177368.html#a6038571
  Sent from the Maven - Users forum at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




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



Re: newbie question

2006-08-28 Thread Nick Veys

Is your computer on the internet?  Are you behind a proxy?  You are
unable to download every jar, either there's a service interruption on
the mirrors or your connection isn't right.

On 8/28/06, Charles Griffin [EMAIL PROTECTED] wrote:

I installed maven2 and am trying to compile a simple class that requires two 
servicemix jars to compile.  I've successfully compiled it in eclipse by just 
setting up a regular java project and including the 
servicemix-core-3.0-incubating-SNAPSHOT.jar and 
servicemix-jbi-3.0-incubating-SNAPSHOT in the project's class path.  However, 
when I tried to build it the maven way (default directory structure and POM), I 
get the following errors.  Can somebody help?  The errors I get are below.  
I've also pasted the POM.
POM

?xml version=1.0 encoding=UTF-8?project
  modelVersion4.0.0/modelVersion
  groupIdgov.nih.nci.caxchange/groupId
  artifactIdAuthenticationService/artifactId
  version0.0.1/version
  description/description
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
/dependency
dependency
  groupIdservicemix/groupId
  artifactIdservicemix-core/artifactId
  version2.0.2/version
/dependency
dependency
  groupIdservicemix/groupId
  artifactIdservicemix-jbi/artifactId
  version2.0.2/version
/dependency
dependency
  groupIdjta/groupId
  artifactIdjta/artifactId
  version1.0.1b/version
/dependency
dependency
  groupIdjavax.activation/groupId
  artifactIdactivation/artifactId
  version1.0.2/version
/dependency
  /dependencies
/project


END POM

Error Below

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\eclipse\workspace\AuthenticationServicemvn compile
[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Unnamed - gov.nih.nci.caxchange:AuthenticationService:jar:0.0.1
[INFO]task-segment: [compile]
[INFO] -
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] While downloading jta:jta:1.0.1b
  This artifact has been relocated to javax.transaction:jta:1.0.1B.


[WARNING] POM for 'activemq:activemq-web:pom:3.2:compile' is invalid. It will be
 ignored for artifact resolution. Reason: Failed to validate POM
Downloading: http://repo.mergere.com/maven2//incubator-derby/derbynet/10.1.1.0/d
erbynet-10.1.1.0.pom
[WARNING] Unable to get resource from repository MavenIB (http://repo.mergere.co
m/maven2/)
Downloading: http://repo1.maven.org/maven2/incubator-derby/derbynet/10.1.1.0/der
bynet-10.1.1.0.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo.mergere.com/maven2//incubator-derby/derby/10.1.1.0/derb
y-10.1.1.0.pom
[WARNING] Unable to get resource from repository MavenIB (http://repo.mergere.co
m/maven2/)
Downloading: http://repo1.maven.org/maven2/incubator-derby/derby/10.1.1.0/derby-
10.1.1.0.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo.mergere.com/maven2//jencks/jencks/${pom.currentVersion}
/jencks-${pom.currentVersion}.pom
[WARNING] Unable to get resource from repository MavenIB (http://repo.mergere.co
m/maven2/)
Downloading: http://repo1.maven.org/maven2/jencks/jencks/${pom.currentVersion}/j
encks-${pom.currentVersion}.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
[INFO] snapshot activecluster:activecluster:1.1-SNAPSHOT: checking for updates f
rom MavenIB
Downloading: http://repo.mergere.com/maven2//activecluster/activecluster/1.1-SNA
PSHOT/activecluster-1.1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository MavenIB (http://repo.mergere.co
m/maven2/)
[WARNING] POM for 'activemq:activemq-web:pom:3.2:compile' is invalid. It will be
 ignored for artifact resolution. Reason: Failed to validate POM
Downloading: http://repo.mergere.com/maven2//servicemix/jaxp/1.3/jaxp-1.3.pom
[WARNING] Unable to get resource from repository MavenIB (http://repo.mergere.co
m/maven2/)
Downloading: http://repo1.maven.org/maven2/servicemix/jaxp/1.3/jaxp-1.3.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo.mergere.com/maven2//javax/activation/activation/1.0.2/a
ctivation-1.0.2.jar
[WARNING] Unable to get resource from repository MavenIB (http://repo.mergere.co
m/maven2/)
Downloading: http://repo1.maven.org/maven2/javax/activation/activation/1.0.2/act
ivation-1.0.2.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo.mergere.com/maven2//activecluster/activecluster/1.1-SNA
PSHOT/activecluster-1.1-SNAPSHOT.jar
[WARNING] Unable to get resource from repository MavenIB (http://repo.mergere.co

RE: newbie question

2006-08-28 Thread Charles Griffin
I tried turning off the firewall on my pc and network from my home office and 
got the same error.  I am now at work and tried it from this LAN and it made no 
difference.  One thing I noticed is that when I cut and paste 
http://repo1.maven.org/maven2 into my Mozilla browser, it redirected to 
http://www.ibiblio.org/maven2/ and I was able to see the directories.  Could 
this be the source of the problem?  What are the settings that I could check on 
my pc that could be preventing me from reaching those repositories, this is 
with the knowledge that I'm not behind a proxy, I'm on the internet, and I've 
turned my firewall off.

Thanks in advance for your help

-Original Message-
From: Nick Veys [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:03 AM
To: Maven Users List
Subject: Re: newbie question

Is your computer on the internet?  Are you behind a proxy?  You are
unable to download every jar, either there's a service interruption on
the mirrors or your connection isn't right.

On 8/28/06, Charles Griffin [EMAIL PROTECTED] wrote:
 I installed maven2 and am trying to compile a simple class that requires two 
 servicemix jars to compile.  I've successfully compiled it in eclipse by just 
 setting up a regular java project and including the 
 servicemix-core-3.0-incubating-SNAPSHOT.jar and 
 servicemix-jbi-3.0-incubating-SNAPSHOT in the project's class path.  However, 
 when I tried to build it the maven way (default directory structure and POM), 
 I get the following errors.  Can somebody help?  The errors I get are below.  
 I've also pasted the POM.
 POM

 ?xml version=1.0 encoding=UTF-8?project
   modelVersion4.0.0/modelVersion
   groupIdgov.nih.nci.caxchange/groupId
   artifactIdAuthenticationService/artifactId
   version0.0.1/version
   description/description
   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
 /dependency
 dependency
   groupIdservicemix/groupId
   artifactIdservicemix-core/artifactId
   version2.0.2/version
 /dependency
 dependency
   groupIdservicemix/groupId
   artifactIdservicemix-jbi/artifactId
   version2.0.2/version
 /dependency
 dependency
   groupIdjta/groupId
   artifactIdjta/artifactId
   version1.0.1b/version
 /dependency
 dependency
   groupIdjavax.activation/groupId
   artifactIdactivation/artifactId
   version1.0.2/version
 /dependency
   /dependencies
 /project


 END POM

 Error Below

 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.

 C:\eclipse\workspace\AuthenticationServicemvn compile
 [INFO] Scanning for projects...
 [INFO] 
 -
 ---
 [INFO] Building Unnamed - 
 gov.nih.nci.caxchange:AuthenticationService:jar:0.0.1
 [INFO]task-segment: [compile]
 [INFO] 
 -
 ---
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [WARNING] While downloading jta:jta:1.0.1b
   This artifact has been relocated to javax.transaction:jta:1.0.1B.


 [WARNING] POM for 'activemq:activemq-web:pom:3.2:compile' is invalid. It will 
 be
  ignored for artifact resolution. Reason: Failed to validate POM
 Downloading: 
 http://repo.mergere.com/maven2//incubator-derby/derbynet/10.1.1.0/d
 erbynet-10.1.1.0.pom
 [WARNING] Unable to get resource from repository MavenIB 
 (http://repo.mergere.co
 m/maven2/)
 Downloading: 
 http://repo1.maven.org/maven2/incubator-derby/derbynet/10.1.1.0/der
 bynet-10.1.1.0.pom
 [WARNING] Unable to get resource from repository central 
 (http://repo1.maven.org
 /maven2)
 Downloading: 
 http://repo.mergere.com/maven2//incubator-derby/derby/10.1.1.0/derb
 y-10.1.1.0.pom
 [WARNING] Unable to get resource from repository MavenIB 
 (http://repo.mergere.co
 m/maven2/)
 Downloading: 
 http://repo1.maven.org/maven2/incubator-derby/derby/10.1.1.0/derby-
 10.1.1.0.pom
 [WARNING] Unable to get resource from repository central 
 (http://repo1.maven.org
 /maven2)
 Downloading: 
 http://repo.mergere.com/maven2//jencks/jencks/${pom.currentVersion}
 /jencks-${pom.currentVersion}.pom
 [WARNING] Unable to get resource from repository MavenIB 
 (http://repo.mergere.co
 m/maven2/)
 Downloading: 
 http://repo1.maven.org/maven2/jencks/jencks/${pom.currentVersion}/j
 encks-${pom.currentVersion}.pom
 [WARNING] Unable to get resource from repository central 
 (http://repo1.maven.org
 /maven2)
 [INFO] snapshot activecluster:activecluster:1.1-SNAPSHOT: checking for 
 updates f
 rom MavenIB
 Downloading: 
 http://repo.mergere.com/maven2//activecluster/activecluster/1.1-SNA
 PSHOT/activecluster-1.1-SNAPSHOT.pom
 [WARNING] Unable to get resource from repository MavenIB 
 (http://repo.mergere.co
 m/maven2/)
 [WARNING] POM for 'activemq:activemq-web:pom:3.2:compile' is invalid. It will 
 be
  ignored for artifact

RE: newbie question

2006-08-28 Thread Charles Griffin
Some additional information.  I did a 'mvn clean' I was able to download the 
plugin jars successfully so I'm able to access the net for the plugins but not 
for jars needed to perform the compile.


C:\eclipse\workspace\AuthenticationServicemvn clean
[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Unnamed - gov.nih.nci.caxchange:AuthenticationService:jar:0.0.1
[INFO]task-segment: [clean]
[INFO] -
---
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for update
s from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.pom
703b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.jar
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/shared-compon
ents-parent/1/shared-components-parent-1.pom
4K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.jar
19K downloaded
[INFO] [clean:clean]
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target\clas
ses
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target\test
-classes
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 15 seconds
[INFO] Finished at: Mon Aug 28 11:17:25 EDT 2006
[INFO] Final Memory: 1M/3M
[INFO] 


-Original Message-
From: Charles Griffin [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:51 AM
To: users@maven.apache.org
Subject: RE: newbie question

I tried turning off the firewall on my pc and network from my home office and 
got the same error.  I am now at work and tried it from this LAN and it made no 
difference.  One thing I noticed is that when I cut and paste 
http://repo1.maven.org/maven2 into my Mozilla browser, it redirected to 
http://www.ibiblio.org/maven2/ and I was able to see the directories.  Could 
this be the source of the problem?  What are the settings that I could check on 
my pc that could be preventing me from reaching those repositories, this is 
with the knowledge that I'm not behind a proxy, I'm on the internet, and I've 
turned my firewall off.

Thanks in advance for your help

-Original Message-
From: Nick Veys [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:03 AM
To: Maven Users List
Subject: Re: newbie question

Is your computer on the internet?  Are you behind a proxy?  You are
unable to download every jar, either there's a service interruption on
the mirrors or your connection isn't right.

On 8/28/06, Charles Griffin [EMAIL PROTECTED] wrote:
 I installed maven2 and am trying to compile a simple class that requires two 
 servicemix jars to compile.  I've successfully compiled it in eclipse by just 
 setting up a regular java project and including the 
 servicemix-core-3.0-incubating-SNAPSHOT.jar and 
 servicemix-jbi-3.0-incubating-SNAPSHOT in the project's class path.  However, 
 when I tried to build it the maven way (default directory structure and POM), 
 I get the following errors.  Can somebody help?  The errors I get are below.  
 I've also pasted the POM.
 POM

 ?xml version=1.0 encoding=UTF-8?project
   modelVersion4.0.0/modelVersion
   groupIdgov.nih.nci.caxchange/groupId
   artifactIdAuthenticationService/artifactId
   version0.0.1/version
   description/description
   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
 /dependency
 dependency
   groupIdservicemix/groupId
   artifactIdservicemix-core/artifactId
   version2.0.2/version
 /dependency
 dependency
   groupIdservicemix/groupId
   artifactIdservicemix-jbi/artifactId
   version2.0.2/version
 /dependency
 dependency
   groupIdjta/groupId
   artifactIdjta/artifactId
   version1.0.1b/version
 /dependency
 dependency
   groupIdjavax.activation/groupId
   artifactIdactivation/artifactId
   version1.0.2/version
 /dependency
   /dependencies
 /project


 END POM

 Error Below

 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.

 C:\eclipse\workspace\AuthenticationServicemvn compile
 [INFO] Scanning for projects...
 [INFO] 
 -
 ---
 [INFO] Building Unnamed

Re: newbie question

2006-08-28 Thread Maria Odea Ching

Hi Charles,

I've checked some of the jars that weren't being downloaded and I found 
out that they are not available in the central repo
that's why you're getting these errors. Some of the jars only have the 
poms and checksum files deployed in the repository but not the jar file 
itself.
In this case, your option is to manually install it on your local 
repository using 'mvn install-file'.


Hope this helps :)

Thanks,
Odea

Charles Griffin wrote:


Some additional information.  I did a 'mvn clean' I was able to download the 
plugin jars successfully so I'm able to access the net for the plugins but not 
for jars needed to perform the compile.


C:\eclipse\workspace\AuthenticationServicemvn clean
[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Unnamed - gov.nih.nci.caxchange:AuthenticationService:jar:0.0.1
[INFO]task-segment: [clean]
[INFO] -
---
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for update
s from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.pom
703b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.jar
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/shared-compon
ents-parent/1/shared-components-parent-1.pom
4K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.jar
19K downloaded
[INFO] [clean:clean]
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target\clas
ses
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target\test
-classes
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 15 seconds
[INFO] Finished at: Mon Aug 28 11:17:25 EDT 2006
[INFO] Final Memory: 1M/3M
[INFO] 


-Original Message-
From: Charles Griffin [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:51 AM

To: users@maven.apache.org
Subject: RE: newbie question

I tried turning off the firewall on my pc and network from my home office and got the same error.  I am now at work and tried it from this LAN and it made no difference.  One thing I noticed is that when I cut and paste 
http://repo1.maven.org/maven2 into my Mozilla browser, it redirected to http://www.ibiblio.org/maven2/ and I was able to see the directories.  Could this be the source of the problem?  What are the settings that I could check on my pc that could be preventing me from reaching those repositories, this is with the knowledge that I'm not behind a proxy, I'm on the internet, and I've turned my firewall off.


Thanks in advance for your help

-Original Message-
From: Nick Veys [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:03 AM

To: Maven Users List
Subject: Re: newbie question

Is your computer on the internet?  Are you behind a proxy?  You are
unable to download every jar, either there's a service interruption on
the mirrors or your connection isn't right.

On 8/28/06, Charles Griffin [EMAIL PROTECTED] wrote:
 


I installed maven2 and am trying to compile a simple class that requires two 
servicemix jars to compile.  I've successfully compiled it in eclipse by just 
setting up a regular java project and including the 
servicemix-core-3.0-incubating-SNAPSHOT.jar and 
servicemix-jbi-3.0-incubating-SNAPSHOT in the project's class path.  However, 
when I tried to build it the maven way (default directory structure and POM), I 
get the following errors.  Can somebody help?  The errors I get are below.  
I've also pasted the POM.
POM

?xml version=1.0 encoding=UTF-8?project
 modelVersion4.0.0/modelVersion
 groupIdgov.nih.nci.caxchange/groupId
 artifactIdAuthenticationService/artifactId
 version0.0.1/version
 description/description
 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
   /dependency
   dependency
 groupIdservicemix/groupId
 artifactIdservicemix-core/artifactId
 version2.0.2/version
   /dependency
   dependency
 groupIdservicemix/groupId
 artifactIdservicemix-jbi/artifactId
 version2.0.2/version
   /dependency
   dependency
 groupIdjta/groupId
 artifactIdjta/artifactId
 version1.0.1b/version
   /dependency
   dependency
 groupIdjavax.activation/groupId
 artifactIdactivation/artifactId
 version1.0.2/version

Re: newbie question

2006-08-28 Thread Maria Odea Ching

Hi Charles,

I've checked some of the jars that weren't being downloaded and I found 
out that they are not available in the central repo
that's why you're getting these errors. Some of the jars only have the 
poms and checksum files deployed in the repository but not the jar file 
itself.
In this case, your option is to manually install it on your local 
repository using 'mvn install-file'.


Hope this helps :)

Thanks,
Odea


Charles Griffin wrote:


Some additional information.  I did a 'mvn clean' I was able to download the 
plugin jars successfully so I'm able to access the net for the plugins but not 
for jars needed to perform the compile.


C:\eclipse\workspace\AuthenticationServicemvn clean
[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Unnamed - gov.nih.nci.caxchange:AuthenticationService:jar:0.0.1
[INFO]task-segment: [clean]
[INFO] -
---
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for update
s from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.pom
703b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.jar
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/shared-compon
ents-parent/1/shared-components-parent-1.pom
4K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.jar
19K downloaded
[INFO] [clean:clean]
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target\clas
ses
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target\test
-classes
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 15 seconds
[INFO] Finished at: Mon Aug 28 11:17:25 EDT 2006
[INFO] Final Memory: 1M/3M
[INFO] 


-Original Message-
From: Charles Griffin [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:51 AM

To: users@maven.apache.org
Subject: RE: newbie question

I tried turning off the firewall on my pc and network from my home office and got the same error.  I am now at work and tried it from this LAN and it made no difference.  One thing I noticed is that when I cut and paste 
http://repo1.maven.org/maven2 into my Mozilla browser, it redirected to http://www.ibiblio.org/maven2/ and I was able to see the directories.  Could this be the source of the problem?  What are the settings that I could check on my pc that could be preventing me from reaching those repositories, this is with the knowledge that I'm not behind a proxy, I'm on the internet, and I've turned my firewall off.


Thanks in advance for your help

-Original Message-
From: Nick Veys [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:03 AM

To: Maven Users List
Subject: Re: newbie question

Is your computer on the internet?  Are you behind a proxy?  You are
unable to download every jar, either there's a service interruption on
the mirrors or your connection isn't right.

On 8/28/06, Charles Griffin [EMAIL PROTECTED] wrote:
 


I installed maven2 and am trying to compile a simple class that requires two 
servicemix jars to compile.  I've successfully compiled it in eclipse by just 
setting up a regular java project and including the 
servicemix-core-3.0-incubating-SNAPSHOT.jar and 
servicemix-jbi-3.0-incubating-SNAPSHOT in the project's class path.  However, 
when I tried to build it the maven way (default directory structure and POM), I 
get the following errors.  Can somebody help?  The errors I get are below.  
I've also pasted the POM.
POM

?xml version=1.0 encoding=UTF-8?project
 modelVersion4.0.0/modelVersion
 groupIdgov.nih.nci.caxchange/groupId
 artifactIdAuthenticationService/artifactId
 version0.0.1/version
 description/description
 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
   /dependency
   dependency
 groupIdservicemix/groupId
 artifactIdservicemix-core/artifactId
 version2.0.2/version
   /dependency
   dependency
 groupIdservicemix/groupId
 artifactIdservicemix-jbi/artifactId
 version2.0.2/version
   /dependency
   dependency
 groupIdjta/groupId
 artifactIdjta/artifactId
 version1.0.1b/version
   /dependency
   dependency
 groupIdjavax.activation/groupId
 artifactIdactivation/artifactId
 version1.0.2/version

RE: newbie question

2006-08-28 Thread Charles Griffin
Thanks Odea,

I deleted my repository and started from scratch.  After that I was able to 
download a lot of the jars, but I did have to eventually manually install 
around 9 files manually like you suggested i.e. jaxp, activation, javamail.

Thanks again for the help.

- Charles

I



-Original Message-
From: Maria Odea Ching [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:00 PM
To: Maven Users List
Subject: Re: newbie question

Hi Charles,

I've checked some of the jars that weren't being downloaded and I found 
out that they are not available in the central repo
that's why you're getting these errors. Some of the jars only have the 
poms and checksum files deployed in the repository but not the jar file 
itself.
In this case, your option is to manually install it on your local 
repository using 'mvn install-file'.

Hope this helps :)

Thanks,
Odea


Charles Griffin wrote:

Some additional information.  I did a 'mvn clean' I was able to download the 
plugin jars successfully so I'm able to access the net for the plugins but not 
for jars needed to perform the compile.


C:\eclipse\workspace\AuthenticationServicemvn clean
[INFO] Scanning for projects...
[INFO] 
-
---
[INFO] Building Unnamed - gov.nih.nci.caxchange:AuthenticationService:jar:0.0.1
[INFO]task-segment: [clean]
[INFO] 
-
---
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for 
update
s from central
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.pom
703b downloaded
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.jar
5K downloaded
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.pom
1K downloaded
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/shared/shared-compon
ents-parent/1/shared-components-parent-1.pom
4K downloaded
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/shared/file-manageme
nt/1.0/file-management-1.0.jar
19K downloaded
[INFO] [clean:clean]
[INFO] Deleting directory C:\eclipse\workspace\AuthenticationService\target
[INFO] Deleting directory 
C:\eclipse\workspace\AuthenticationService\target\clas
ses
[INFO] Deleting directory 
C:\eclipse\workspace\AuthenticationService\target\test
-classes
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 15 seconds
[INFO] Finished at: Mon Aug 28 11:17:25 EDT 2006
[INFO] Final Memory: 1M/3M
[INFO] 


-Original Message-
From: Charles Griffin [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:51 AM
To: users@maven.apache.org
Subject: RE: newbie question

I tried turning off the firewall on my pc and network from my home office and 
got the same error.  I am now at work and tried it from this LAN and it made 
no difference.  One thing I noticed is that when I cut and paste 
http://repo1.maven.org/maven2 into my Mozilla browser, it redirected to 
http://www.ibiblio.org/maven2/ and I was able to see the directories.  Could 
this be the source of the problem?  What are the settings that I could check 
on my pc that could be preventing me from reaching those repositories, this is 
with the knowledge that I'm not behind a proxy, I'm on the internet, and I've 
turned my firewall off.

Thanks in advance for your help

-Original Message-
From: Nick Veys [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 10:03 AM
To: Maven Users List
Subject: Re: newbie question

Is your computer on the internet?  Are you behind a proxy?  You are
unable to download every jar, either there's a service interruption on
the mirrors or your connection isn't right.

On 8/28/06, Charles Griffin [EMAIL PROTECTED] wrote:
  

I installed maven2 and am trying to compile a simple class that requires two 
servicemix jars to compile.  I've successfully compiled it in eclipse by just 
setting up a regular java project and including the 
servicemix-core-3.0-incubating-SNAPSHOT.jar and 
servicemix-jbi-3.0-incubating-SNAPSHOT in the project's class path.  However, 
when I tried to build it the maven way (default directory structure and POM), 
I get the following errors.  Can somebody help?  The errors I get are below.  
I've also pasted the POM.
POM

?xml version=1.0 encoding=UTF-8?project
  modelVersion4.0.0/modelVersion
  groupIdgov.nih.nci.caxchange/groupId
  artifactIdAuthenticationService/artifactId
  version0.0.1/version
  description/description
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
/dependency

Re: Newbie question on MOJOs

2006-08-14 Thread franz see

Good day to you, Ritu

 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.

Sorry, I don't know of any advance guides which integrates Ant Java APIs
with MOJOs. But you may want to look at the source code of
maven-antrun-plugin to see how it used the Ant Java APIs (see [1]). Who
names, maybe it can already do what you're trying to accomplish ^_^

 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.

code wise, you can use the following to get those classpaths

* for maven.dependency.classpath and maven.compile.classpath, use
mavenProject.getCompileClasspathElements()
* for maven.runtime.classpath, use
mavenProject.getRuntimeClasspathElements()
* for maven.test.classpath, use mavenProject.getTestClasspathElements()

then add reference to your Ant Project (i.e. antProject.addReference(
maven.compile.classpath, p) where p is of type
org.apache.tools.ant.types.Path)

Better if you take a look at executeTasks( ... ) of AbstractAntMojo (see
[2])

 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?

Maven's System properites simply comes from java.lang.System.getProperties()

 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?

java compilation? try [3]

Btw, [4] contains a list of plugins supported by Apache. Maybe what you're
trying to do has already been done.

[1] http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/
[2]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java
[3]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-compiler-plugin/
[4] 

Cheers,
Franz
-- 
View this message in context: 
http://www.nabble.com/Newbie-question-on-MOJOs-tf2101911.html#a5793568
Sent from the Maven - Users forum at Nabble.com.


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



Re: Newbie question on MOJOs

2006-08-14 Thread John Casey

Hi Ritu,

I'm not sure what your goal is, but if you're just trying to do a simple
compilation of source code, you might want to simply point your POM at the
source directory, and try calling `mvn compile`.

By default, Maven will compile the source files for you...it's part of the
default lifecycle for jar projects.

POM syntax for source directory:

project
 [...]
 build
   sourceDirectoryrelative/source/dir/sourceDirectory
 /build
/project

HTH,

john

On 8/14/06, franz see [EMAIL PROTECTED] wrote:



Good day to you, Ritu

 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.

Sorry, I don't know of any advance guides which integrates Ant Java APIs
with MOJOs. But you may want to look at the source code of
maven-antrun-plugin to see how it used the Ant Java APIs (see [1]). Who
names, maybe it can already do what you're trying to accomplish ^_^

 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.

code wise, you can use the following to get those classpaths

* for maven.dependency.classpath and maven.compile.classpath, use
mavenProject.getCompileClasspathElements()
* for maven.runtime.classpath, use
mavenProject.getRuntimeClasspathElements()
* for maven.test.classpath, use mavenProject.getTestClasspathElements()

then add reference to your Ant Project (i.e. antProject.addReference(
maven.compile.classpath, p) where p is of type
org.apache.tools.ant.types.Path)

Better if you take a look at executeTasks( ... ) of AbstractAntMojo (see
[2])

 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?

Maven's System properites simply comes from java.lang.System.getProperties
()

 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?

java compilation? try [3]

Btw, [4] contains a list of plugins supported by Apache. Maybe what you're
trying to do has already been done.

[1]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/
[2]

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java
[3]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-compiler-plugin/
[4]

Cheers,
Franz
--
View this message in context:
http://www.nabble.com/Newbie-question-on-MOJOs-tf2101911.html#a5793568
Sent from the Maven - Users forum at Nabble.com.


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




Re: Newbie question

2006-07-03 Thread ertnutler

seems like something that could be scripted with minimal effort...have you
looked into that?
-- 
View this message in context: 
http://www.nabble.com/Newbie-question-tf1879027.html#a5149890
Sent from the Maven - Users forum at Nabble.com.


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



Re: Newbie question

2006-07-01 Thread dan tran

There is no other way.  You will need to deploy them to your internal remove
repository.

If you already have internal repository setup ( do you have one? ) this is
one one time setup.

Just curious, you have 50 non public jars?

If you are not willing to do that, i would suggest to stay with your current
build.
I got burned try to port a legacy intact to maven with file structure
intact before.

-D

On 7/1/06, Punit Rathore [EMAIL PROTECTED] wrote:


This is another one of the classpath question.  Here is my problem. In
my
project I have to include a set of jar files that have been produced by
another project(s) and have traditionally been deployed in nfs mounted
path
like /common/libs/prj1/lib. Now this path contains  more than 50 jars that
I
need to include. After much googling and reading up on this mailing list,
i
found one potential solution was to dependency with system scope.  However
this means that I will have to define the dependency of each of the more
than 50 jars. I find that very impractical. Another was to import it in to
repository using mvn install:install-file. This approach had the same
problem ( importing each of 50 jars).
  Is there another way of easily doing this ?


Thanks,

Punit




Re: Newbie question - Continuum web interface

2006-06-30 Thread Tatiana Escovedo

Brad,

I solve it changing the Continuum default port.
Thanks!

Tatiana

On 6/30/06, Brad Harper [EMAIL PROTECTED] wrote:


It looks like Continuum runs an embedded Jetty container.

I have Continuum running (via bin/win32/run.bat) without
separately starting anything else.

Brad

-Original Message-
From: Tatiana Escovedo [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 10:35 AM
To: continuum-users@maven.apache.org
Subject: Newbie question - Continuum web interface


Hi,

I'm starting to use Continuum, after trying CruiseControl, but I have a
problem to access the web interface.

Do I need to use a web server, like Tomcat, to set Continuum up? I ask
that
because when I start up CruiseControl and Continuum together, Continuum
web
interface is accessible, but when I run only Continuum, it doesn't. I
think
CruiseControl has an embebbed web server, but I'm not sure.

Can you help me to use Continuum without starting CruiseControl? I'm using
SUSE 10.1.

Thanks a lot,
Tatiana




RE: Newbie question - Continuum web interface

2006-06-30 Thread Karr, David
As another poster pointed out, Continuum uses an embedded Jetty
container.  If you wanted to, you should be able to run both
CruiseControl and Continuum at the same time, during your transition.

Note that you may have to pay attention to what listener port it is
using.  I believe there's a mention in the FAQ about this.  The file
that specifies the port is $root/apps/continuum/conf/application.xml.

 -Original Message-
 From: Tatiana Escovedo [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 30, 2006 8:35 AM
 To: continuum-users@maven.apache.org
 Subject: Newbie question - Continuum web interface
 
 Hi,
 
 I'm starting to use Continuum, after trying CruiseControl, 
 but I have a problem to access the web interface.
 
 Do I need to use a web server, like Tomcat, to set Continuum 
 up? I ask that because when I start up CruiseControl and 
 Continuum together, Continuum web interface is accessible, 
 but when I run only Continuum, it doesn't. I think 
 CruiseControl has an embebbed web server, but I'm not sure.
 
 Can you help me to use Continuum without starting 
 CruiseControl? I'm using SUSE 10.1.
 
 Thanks a lot,
 Tatiana
 


RE: Newbie question, missing AndroMDA plugin on ibiblio Maven 1.0.2

2006-06-30 Thread Naresh Bhatia
This is not an answer to your question, but FYI, the tutorial you are trying is 
dated. The latest tutorial is at 
http://galaxy.andromda.org/index.php?option=com_contenttask=categorysectionid=11id=42Itemid=89
 and tells you step-by-step how to use AndroMDA with Maven 2.

Naresh

-Original Message-
From: rgc [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 30, 2006 3:29 PM
To: users@maven.apache.org
Subject: Newbie question, missing AndroMDA plugin on ibiblio Maven 1.0.2

Hi,
 I´m trying to follow the androMDA tutorial[1], but when I try to download
the AndroMDA plugin, maven can not find it in ibiblio, and does not look in the
alternate site (http://team.andromda.org). Why can´t maven look in
team.andromda.org after failing in ibiblio.org?
Actually, I downloaded the plugin(in team.andromda.org) and put it manually
in maven´s plugin folder, but when I try to build an Andromda enabled project,
it fails for apparently the same reason(fail to find things in ibiblio, and
doesn´t try to look in team.andromda.org).
Sorry if it´s obvious or already seem, but I´m new to maven and couldn´t
find an answer. Can anyone help? Thanks.

Rommell Caixeta

[1] http://galaxy.andromda.org/docs-3.1/starting.html

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


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



Re: Newbie question about features of continuum

2006-06-29 Thread dan tran

Continuum give you access to your project checkout area, so that you can
download it

try this

http://ci.gbuild.org/continuum/servlet/continuum

click on any project, then click on working area of that project.



-Dan

On 6/29/06, Karr, David [EMAIL PROTECTED] wrote:


I've yet to install Continuum, but I have some questions about it,
before I get too far.

I currently have a medium-size CruiseControl setup, and I've always been
a little disappointed in its fragility, but it does work for me.

One question I have about the features of Continuum:  Is there a defined
way to get access to the build artifacts for a particular build?  I
didn't see this mentioned anywhere.  This is one of the principal things
we use CruiseControl for.



RE: newbie question: timestamp on target build file

2006-03-25 Thread Andreas Guther
In Maven 1 is a jar:snapshot goals or something similar that builds a
jar with a timestamp number similar to what you had in your email.

Andreas



-Original Message-
From: Hong wu [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 24, 2006 2:08 PM
To: users@maven.apache.org
Subject: newbie question: timestamp on target build file

Hi,

I'd like to know how to put a timestamp in my target build file, such as
javabuild-20060324.jar

I seem could not find it anywhere in the documentation or Google.
Thanks for the help!

Maven rocks!

H.


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



Re: newbie question: timestamp on target build file

2006-03-24 Thread Mang Jun Lau
I think you need your POM to be a snapshot version.  If you call the 
deploy goal then you will get the timestamp by default.


_Mang Lau





Hong wu [EMAIL PROTECTED] 
03/24/2006 05:07 PM
Please respond to
Maven Users List users@maven.apache.org


To
users@maven.apache.org
cc

Subject
newbie question: timestamp on target build file






Hi,

I'd like to know how to put a timestamp in my target build file, such as
javabuild-20060324.jar

I seem could not find it anywhere in the documentation or Google.
Thanks for the help!

Maven rocks!

H.



Re: Newbie question Eclipse/Maven IDE version questions

2006-03-13 Thread Stephen Duncan
I'm successfully using Eclipse 3.1.2, WTP 1.0.1, Tomcat 5.0.28, and
Maven 2 to do the full end-to-end (as long as you don't mind running
Maven from the command line) for webapps.

I can answer questions at a much slower rate for free on the mailing
list, but that's it. :)

-Stephen

On 3/13/06, Hines, John [EMAIL PROTECTED] wrote:
 Last year, I supported a maven 1.0 build process written by someone else
 that creates a web app as an ear.  It was used by our coders, mostly
 short term contractors who know nothing about the build process except
 to run scripts.  The methodology was developer:
 ...creates or edits and compiles a file/several files on Windows
 ...ftp the file/files to his server instance on a unix box
 ...run a build script then a deploy script and
 ..tests on his unix instance of JDK 1.4/WebLogic 8.1.

 Late last year I was able to clone the unix build and deploy scripts
 into windows batch files.  The batch files were a little clunky but the
 process worked so now the developer can do everything on a windows box.
 (Why?  Because everybody's got one.)

 I then looked into doing everything in Jbuilder 2005 (our
 quasi-corporate standard) with MavenIDE but decided I wasn't smart
 enough to make it happen.  (I'd prefer to say that Maven 1.0 and
 MavenIDE for JBuilder on Windows didn't work very well but I'm perfectly
 happy if anybody wants to argue I was too dumb to make it work.)

 Anyway, now JBuilder is dead and I've learned enough Eclipse 3.1 to
 think I might be able to make things work in Eclipse.

 Question 1:  Is anybody doing end to end web app development
 (edit/build/deploy/test/debug) on Windows using Eclipse 3.1/WTP 1.0 and
 Maven IDE?  If so, what version JDK, what web server/web server version
 and what maven version?

 Question 2 (assumes yes to Question 1):

 Given:  Windows XP SP 1 or 2 w/1GB memory and big drive,, JDK 1.4.2_05,
 Eclipse 1.3 with WTP 1.0 , WebLogic 8.1 SP3.  (That's all non-negotiable
 except the wtp part is probably negotiable)  And knowing I have a
 boatload of inherited Maven 1.0.2 jelly and xml files and windows batch
 files that build and deploy an ear to WebLogic on Windows.

 Assuming: my goal is give every developer a written procedure and zip
 file that will allow him to create a standard instance with JDK
 1.4.2_05, Eclipse 3.1 with Web Tools Platform 1.0, some version of Maven
 and MavenIDE and WebLogic 8.1 SP3 where he can do end-to-end code,
 build, debug without leaving Eclipse 3.1, what's the LEAST PAINFUL thing
 to do to get things working by April Fool's Day:

 1.  Slit my wrists;
 2.  Stay with Maven 1.0.2 and Maven IDE for Eclipse and modify the
 existing windows batch, jelly and xml files;
 3.  Move to Maven 1.1 and Maven IDE for Eclipse and modify the existing
 windows batch, jelly and xml files;
 4.  Move to Maven 2.0 and drink lots of Jolt and don't sleep.

 Question 3:  (Assuming 2, 3 or 4 to Question 2)  Anybody what has
 already done this want to make $50/hr (paid in advance by paypal out of
 my pocket--it's a chance to learn something new) answering stupid
 emails?

 Thanks in advance, John Hines [EMAIL PROTECTED] aka No one of
 consequence

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




--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: Newbie question

2006-02-21 Thread mike jones
I am not sure if you found the asnwer but basically you dont have to run and
compile all the projects and can work on one at a time. What you need to
ensure is that your parent pom has a packaging type of pom and that is has
been deployed to a repository available to you or you have installed it
locally.


On 2/14/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

 Then you have to build everything manually. But Maven is not stupid it
 won't recompile everything, just what has changed so I don't think
 there is a problem there.

 On 2/14/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:
  On Mon, Feb 13, 2006 at 06:08:45PM -0500, Alexandre Poitras wrote:
   Just run compile on your parent project and everything will work fine.
 
  And it will build entire project? I don't need this, I need to build
 just
  single module.
 
  --
  Eugene N Dzhurinsky
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Alexandre Poitras
 Québec, Canada

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




--
d-_-b \m/(_)\m/ (9ò_ó)-o(@_o)


Re: Newbie question

2006-02-14 Thread Eugeny N Dzhurinsky
On Mon, Feb 13, 2006 at 06:08:45PM -0500, Alexandre Poitras wrote:
 Just run compile on your parent project and everything will work fine.

And it will build entire project? I don't need this, I need to build just
single module.

-- 
Eugene N Dzhurinsky

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



Re: Newbie question

2006-02-14 Thread Alexandre Poitras
Then you have to build everything manually. But Maven is not stupid it
won't recompile everything, just what has changed so I don't think
there is a problem there.

On 2/14/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:
 On Mon, Feb 13, 2006 at 06:08:45PM -0500, Alexandre Poitras wrote:
  Just run compile on your parent project and everything will work fine.

 And it will build entire project? I don't need this, I need to build just
 single module.

 --
 Eugene N Dzhurinsky

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




--
Alexandre Poitras
Québec, Canada

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



Re: Newbie question

2006-02-13 Thread Eugeny N Dzhurinsky
On Sun, Feb 12, 2006 at 04:32:15PM -0500, Alexandre Poitras wrote:
 For instance 'mvn compile' will compile all the child modules while
 taking care of their interdependencies.

I don't need to build entire project, i just want to build module2 :(
How could I specify dependency of the module at the same hierarchy level?

-- 
Eugene N Dzhurinsky

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



Re: Newbie question

2006-02-13 Thread Mang Jun Lau
I have something like this

project
|-module1
|-module2
|-module3

If you have something like this, have you defined a parent POM in your 
project directory?  If you have, then you can compile module 2 by running 
mvn compile in your module2 directory.  Please refer to this thread: 
http://www.nabble.com/-m2-parent-pom-t1021082.html for instructions on how 
to set up a parent/child hierarchy.


_Mang Lau





Eugeny N Dzhurinsky [EMAIL PROTECTED] 
02/13/2006 03:07 AM
Please respond to
Maven Users List users@maven.apache.org


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

Subject
Re: Newbie question






On Sun, Feb 12, 2006 at 04:32:15PM -0500, Alexandre Poitras wrote:
 For instance 'mvn compile' will compile all the child modules while
 taking care of their interdependencies.

I don't need to build entire project, i just want to build module2 :(
How could I specify dependency of the module at the same hierarchy level?

-- 
Eugene N Dzhurinsky

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




Re: Newbie question

2006-02-13 Thread Eugeny N Dzhurinsky
On Mon, Feb 13, 2006 at 10:21:15AM -0500, Mang Jun Lau wrote:
 I have something like this
 
 project
 |-module1
 |-module2
 |-module3
 
 If you have something like this, have you defined a parent POM in your 
 project directory?  If you have, then you can compile module 2 by running 
 mvn compile in your module2 directory.  Please refer to this thread: 
 http://www.nabble.com/-m2-parent-pom-t1021082.html for instructions on how 
 to set up a parent/child hierarchy.

I need to compile module2, which depends on module1, i.e sources in module2
have imports of packages defined in module1

-- 
Eugene N Dzhurinsky

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



Re: Newbie question

2006-02-13 Thread Alexandre Poitras
Just run compile on your parent project and everything will work fine.

On 2/13/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:
 On Mon, Feb 13, 2006 at 10:21:15AM -0500, Mang Jun Lau wrote:
  I have something like this
  
  project
  |-module1
  |-module2
  |-module3
 
  If you have something like this, have you defined a parent POM in your
  project directory?  If you have, then you can compile module 2 by running
  mvn compile in your module2 directory.  Please refer to this thread:
  http://www.nabble.com/-m2-parent-pom-t1021082.html for instructions on how
  to set up a parent/child hierarchy.

 I need to compile module2, which depends on module1, i.e sources in module2
 have imports of packages defined in module1

 --
 Eugene N Dzhurinsky

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




--
Alexandre Poitras
Québec, Canada

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



Re: Newbie question

2006-02-12 Thread Eugeny N Dzhurinsky
On Sat, Feb 11, 2006 at 07:23:58PM -0500, Alexandre Poitras wrote:
 You problably forgot to add a parent reference in your different
 modules. After that, you just need to run the command in the directory
 of your parent project, wich has a pom packaging declared, and Maven
 will figure out the other to compile the different modules.

let me explain:

I have something like this

project
|-module1
|-module2
|-module3

module2 and module3 depends on module1

is it possible to build module2 without creating and installing JAR for
module1?

-- 
Eugene N Dzhurinsky

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



Re: Newbie question

2006-02-12 Thread Alexandre Poitras
Yeah if you run the command in your parent directory, maven will
resolve the dependencies.

On 2/12/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:
 On Sat, Feb 11, 2006 at 07:23:58PM -0500, Alexandre Poitras wrote:
  You problably forgot to add a parent reference in your different
  modules. After that, you just need to run the command in the directory
  of your parent project, wich has a pom packaging declared, and Maven
  will figure out the other to compile the different modules.

 let me explain:

 I have something like this

 project
 |-module1
 |-module2
 |-module3

 module2 and module3 depends on module1

 is it possible to build module2 without creating and installing JAR for
 module1?

 --
 Eugene N Dzhurinsky

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




--
Alexandre Poitras
Québec, Canada

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



Re: Newbie question

2006-02-12 Thread Eugeny N Dzhurinsky
On Sun, Feb 12, 2006 at 06:48:21AM -0500, Alexandre Poitras wrote:
 Yeah if you run the command in your parent directory, maven will
 resolve the dependencies.

you mean something like 'mvn compile module2' ?

-- 
Eugene N Dzhurinsky

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



Re: Newbie question

2006-02-12 Thread Alexandre Poitras
For instance 'mvn compile' will compile all the child modules while
taking care of their interdependencies.

On 2/12/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:
 On Sun, Feb 12, 2006 at 06:48:21AM -0500, Alexandre Poitras wrote:
  Yeah if you run the command in your parent directory, maven will
  resolve the dependencies.

 you mean something like 'mvn compile module2' ?

 --
 Eugene N Dzhurinsky

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




--
Alexandre Poitras
Québec, Canada

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



Re: Newbie question

2006-02-11 Thread Eugeny N Dzhurinsky
On Fri, Feb 10, 2006 at 11:43:26AM -0500, Mang Jun Lau wrote:
 In this case, you need to call a mvn install on the module that is being 
 depended on so that the module is built to your local repository.  Then, 
 it should find the jar in your local repository and not on the web.

Cool.. but do I need to make install everytime something changes in the
sources for that JAR? I just would like to be able to compile sources from one
module with dependencies in another module, without building JARs and
installing them to some directory?

-- 
Eugene N Dzhurinsky

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



Re: Newbie question

2006-02-11 Thread Nicolas Peeters

To create the jar/war/... run mvn package
To compile: you can run mvn compile.
See http://maven.apache.org/guides/getting-started/index.html


On Fri, Feb 10, 2006 at 11:43:26AM -0500, Mang Jun Lau wrote:
  
In this case, you need to call a mvn install on the module that is being 
depended on so that the module is built to your local repository.  Then, 
it should find the jar in your local repository and not on the web.



Cool.. but do I need to make install everytime something changes in the
sources for that JAR? I just would like to be able to compile sources from one
module with dependencies in another module, without building JARs and
installing them to some directory?

  




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



Re: Newbie question

2006-02-11 Thread Eugeny N Dzhurinsky
On Sat, Feb 11, 2006 at 07:24:40PM +0100, Nicolas Peeters wrote:
 To create the jar/war/... run mvn package
 To compile: you can run mvn compile.
 See http://maven.apache.org/guides/getting-started/index.html

Could you please read the thread from top? I'm trying to compile module in
multi-module project, which module depends on some other module on the same
level or on higher level.

-- 
Eugene N Dzhurinsky

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



  1   2   >