Re: generate link css on maven reports

2008-06-03 Thread ggalou08

It works,

thank you !



ggalou08 wrote:
 
 hi !
 
 I generate a site with maven reports and in the code source I see a link
 on a css file : print.css.
 
 This file doesn't exist, and i wonder if I can force Maven not to generate
 this link or if it's just a bug ?!?
 
 this is the source :
 
 style type=text/css media=all
   @import url(./css/maven-base.css);
   @import url(./css/maven-theme.css);
   @import url(./css/site.css);
 /style
 
 Thank you for your help !
 

-- 
View this message in context: 
http://www.nabble.com/generate-link-css-on-maven-reports-tp17596897p17617100.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi

What do you mean by inhouse? Could you give more information on this?


Magne Nordtveit wrote:
 
 On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote:
 I have downloaded some dependencies from remote repository into local
 repository. But some of them don't have pom file. How can I generate pom
 file for dependencies in local repository?
 
 When you install it to your local repository, specify
 -DgeneratePom=true. If the artifact is automatically downloaded to your
 repository from another source (i.e. central) consider creating a
 thirdparty repo inhouse and deploy it to that (the -DgeneratePom=true
 should work for the deploy plugin aswell).
 -- 
 Magne Nordtveit [EMAIL PROTECTED]
 Systems Engineer
 Offshore Simulator Centre AS
 http://www.offsimcentre.no/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618882.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread [EMAIL PROTECTED]
Magne Nordtveit schrieb:
 On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote:
   
 I have downloaded some dependencies from remote repository into local
 repository. But some of them don't have pom file. How can I generate pom
 file for dependencies in local repository?
 

 When you install it to your local repository, specify
 -DgeneratePom=true. If the artifact is automatically downloaded to your
 repository from another source (i.e. central) consider creating a
 thirdparty repo inhouse and deploy it to that (the -DgeneratePom=true
 should work for the deploy plugin aswell).
   
I'm not aware of any jars in the maven repos that do not have poms. But
if there are any, then you should be able to simply reinstall the jar
into your local repo using the instructions I referred you to before.
That will generate a trivial pom file.

I'm not sure why you'd bother doing this though. As far as I know the
only effect would be to shut up warnings about trying to fetch pom.

What dependencies (groupId, artifactId, version) don't have poms?

Regards,
Simon


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



RE: How can I use relative path for System Dependencies

2008-06-03 Thread anne.gerodolle
systemPath :
is used only if the the dependency scope is system . Otherwise, the build will 
fail if this element is set. The path must be absolute, so it is recommended to 
use a property to specify the machine-specific path (more on properties below), 
such as ${java.home}/lib . Since it is assumed that system scope dependencies 
are installed a priori , Maven will not check the repositories for the project, 
but instead checks to ensure that the file exists. If not, Maven will fail the 
build and suggest that you download and install it manually.
(http://maven.apache.org/pom.html) 

-Message d'origine-
De : youhaodeyi [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 3 juin 2008 10:36
À : users@maven.apache.org
Objet : How can I use relative path for System Dependencies


I use system dependency. But it doesn't work when specify a relative directory 
for systemPath, see below.

dependencies
dependency
  groupIdtest/groupId
  artifactIdtest/artifactId
  version1.0/version
  scopesystem/scope
  systemPathdependency/my.jar/systemPath
/dependency
  /dependencies



--
View this message in context: 
http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependencies-tp17618779p17618779.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]



How can I use relative path for System Dependencies

2008-06-03 Thread youhaodeyi

I use system dependency. But it doesn't work when specify a relative
directory for systemPath, see below.

dependencies
dependency
  groupIdtest/groupId
  artifactIdtest/artifactId
  version1.0/version
  scopesystem/scope
  systemPathdependency/my.jar/systemPath
/dependency
  /dependencies



-- 
View this message in context: 
http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependencies-tp17618779p17618779.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi

This is not what I want. The dependency has already existed in local
repository. I don't need to install. I just need to generate pom file for
it.


[EMAIL PROTECTED] wrote:
 
 youhaodeyi schrieb:
 I have downloaded some dependencies from remote repository into local
 repository. But some of them don't have pom file. How can I generate pom
 file for dependencies in local repository?
   
 Please read the Maven frequently asked questions page. The answer is
 item number 9.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618572.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi

Maven will download them from remote repository. For some reason, not every
dependency has its own pom file.


[EMAIL PROTECTED] wrote:
 
 youhaodeyi schrieb:
 This is not what I want. The dependency has already existed in local
 repository. I don't need to install. I just need to generate pom file for
 it.
   
 
 How on earth did it get into your local repository without a pom?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618673.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread [EMAIL PROTECTED]
youhaodeyi schrieb:
 I have downloaded some dependencies from remote repository into local
 repository. But some of them don't have pom file. How can I generate pom
 file for dependencies in local repository?
   
Please read the Maven frequently asked questions page. The answer is
item number 9.


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



How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi

I have downloaded some dependencies from remote repository into local
repository. But some of them don't have pom file. How can I generate pom
file for dependencies in local repository?
-- 
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17618375.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread Magne Nordtveit
On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote:
 I have downloaded some dependencies from remote repository into local
 repository. But some of them don't have pom file. How can I generate pom
 file for dependencies in local repository?

When you install it to your local repository, specify
-DgeneratePom=true. If the artifact is automatically downloaded to your
repository from another source (i.e. central) consider creating a
thirdparty repo inhouse and deploy it to that (the -DgeneratePom=true
should work for the deploy plugin aswell).
-- 
Magne Nordtveit [EMAIL PROTECTED]
Systems Engineer
Offshore Simulator Centre AS
http://www.offsimcentre.no/

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



Re: How to generate POM for existed dependency?

2008-06-03 Thread [EMAIL PROTECTED]
youhaodeyi schrieb:
 This is not what I want. The dependency has already existed in local
 repository. I don't need to install. I just need to generate pom file for
 it.
   

How on earth did it get into your local repository without a pom?


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



Question About Dependencies.

2008-06-03 Thread Artur Kirsis
Ok, write another mail because didn't find how to answer to first message.

 

In first e-mail I wrote:

 

Hello, I have following question. 

If I have several profiles and each profile need several dependencies (
there is default list of them and several dependencies that is different ) 
How can I enable for the example dependencies tools and tools2 for profile
localhost and tool3 and tool4 for profile localhost2 ?

Thanks for the answer and sorry for my bad English.

 

So example of What I need to get:

Pom.xml profilesprofileblablabla/profile/profiles

Profiles.xml

profiles

profile

idlocalhost/id

activation

activeByDefaultfalse/activeByDefault

property

nameintegration/name

valueyes/value

/property

/activation

dependencies

dependency

 
groupIdjavax.transaction/groupId

artifactIdjta/artifactId

version1.0.1B/version

/dependency

/dependencies

properties

envlocalhost/env

codelocalhost/code

/properties

/profile

profile

idlocalhost2/id

activation

activeByDefaultfalse/activeByDefault

property

nameintegration/name

valueno/value

/property

/activation

properties

envlocalhost2/env

codelocalhost2/code

/properties

/profile

 

/profiles

 

How can I get to work dependencies that is attached only to profile with ID
localhost and not localhost2?

And one more question. As you see I set property: name=integration and
value=yes

If I set activation in pom.xml like this:

profiles

profile

idnointegration/id

activation

property

 
nameintegration/name

 
valueno/value

/property

/activation

..

 

This profile didn't activated if I run maven with command line: mvn install
-Plocalhost2 

Thanks for the answer and sorry for my bad English.

Please write how can I answer to the previous message :-) Thanks.


-- 
This message has been scanned for viruses and
dangerous content and is believed to be clean.



Re: How can I use relative path for System Dependencies

2008-06-03 Thread Martin Höller
Try this one:
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

hth,
- martin

On Tuesday 03 June 2008 youhaodeyi wrote:
 Hi,

 Thanks. Where can I find the properties Maven defines like ${java.home},
 ${basedir} etc?

 Anne Gerodolle wrote:
  systemPath :
  is used only if the the dependency scope is system . Otherwise, the
  build will fail if this element is set. The path must be absolute, so
  it is recommended to use a property to specify the machine-specific
  path (more on properties below), such as ${java.home}/lib . Since it is
  assumed that system scope dependencies are installed a priori , Maven
  will not check the repositories for the project, but instead checks to
  ensure that the file exists. If not, Maven will fail the build and
  suggest that you download and install it manually.
  (http://maven.apache.org/pom.html)
 
  -Message d'origine-
  De : youhaodeyi [mailto:[EMAIL PROTECTED]
  Envoyé : mardi 3 juin 2008 10:36
  À : users@maven.apache.org
  Objet : How can I use relative path for System Dependencies
 
 
  I use system dependency. But it doesn't work when specify a relative
  directory for systemPath, see below.
 
  dependencies
  dependency
groupIdtest/groupId
artifactIdtest/artifactId
version1.0/version
scopesystem/scope
systemPathdependency/my.jar/systemPath
  /dependency
/dependencies
 
 
 
  --
  View this message in context:
  http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependenci
 es-tp17618779p17618779.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]




signature.asc
Description: This is a digitally signed message part.


RE: How can I use relative path for System Dependencies

2008-06-03 Thread youhaodeyi

Hi,

Thanks. Where can I find the properties Maven defines like ${java.home},
${basedir} etc?


Anne Gerodolle wrote:
 
 systemPath :
 is used only if the the dependency scope is system . Otherwise, the build
 will fail if this element is set. The path must be absolute, so it is
 recommended to use a property to specify the machine-specific path (more
 on properties below), such as ${java.home}/lib . Since it is assumed that
 system scope dependencies are installed a priori , Maven will not check
 the repositories for the project, but instead checks to ensure that the
 file exists. If not, Maven will fail the build and suggest that you
 download and install it manually.
 (http://maven.apache.org/pom.html) 
 
 -Message d'origine-
 De : youhaodeyi [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 3 juin 2008 10:36
 À : users@maven.apache.org
 Objet : How can I use relative path for System Dependencies
 
 
 I use system dependency. But it doesn't work when specify a relative
 directory for systemPath, see below.
 
 dependencies
 dependency
   groupIdtest/groupId
   artifactIdtest/artifactId
   version1.0/version
   scopesystem/scope
   systemPathdependency/my.jar/systemPath
 /dependency
   /dependencies
 
 
 
 --
 View this message in context:
 http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependencies-tp17618779p17618779.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-use-relative-path-for-System-Dependencies-tp17618779p17619371.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]



[ANN] Maven Runtime 1.0-alpha-1 released

2008-06-03 Thread Mark Hobson
The Maven team is pleased to announce the release of Maven Runtime,
version 1.0-alpha-1.

This shared component allows introspection of Maven project metadata at runtime.

http://maven.apache.org/shared/maven-runtime/

You can run mvn -up to get the latest version of the component, or specify
the version in your project's dependency configuration:

dependency
 groupIdorg.apache.maven.shared/groupId
 artifactIdmaven-runtime/artifactId
 version1.0-alpha-1/version
/dependency

Release Notes - Maven Runtime - Version 1.0-alpha-1

* First release

Enjoy,

-The Maven team

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



Re: How to generate POM for existed dependency?

2008-06-03 Thread Magne Nordtveit
On Tue, 2008-06-03 at 01:42 -0700, youhaodeyi wrote:
 What do you mean by inhouse? Could you give more information on this?
 
What I mean is creating a company/private repository that you can deploy
own or thirdparty artifacts to.

Take a look at http://archiva.apache.org/ that might help you with that
part.

-- 
Magne Nordtveit [EMAIL PROTECTED]
Systems Engineer
Offshore Simulator Centre AS
http://www.offsimcentre.no/

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



StrutsTestCase with Maven

2008-06-03 Thread MedElb
Hi all,

any one has already test struts actions classes with maven
(MockStrutsTestCase or  CastusStrutsTestCase), in otherwise there's a plugin
for that need and how i can precede

thank you in advance


compile jaxb2 annotated files with maven2

2008-06-03 Thread Trasca Virgil
Hello,

   I am in the process of migrating from Ant to Maven2. I am stucked when I try 
to mvn compile because in some source files I use jaxb2 annotations and of 
course I need jaxb2 jars for building. I am not generating and xsd or any java 
sources with jaxb2 only compile some annotated src files. In ANT the only thing 
I do is that I am compiling my sources with jaxb2 in the classpath. How can I 
do this in Maven2? Do you have some links with documentation?

 Thank you,
Virgil
DocumentBurster,
http://java-hobby.blogspot.com/


Re: How to generate POM for existed dependency?

2008-06-03 Thread Magne Nordtveit


[EMAIL PROTECTED] wrote:
 
 I'm not sure why you'd bother doing this though. As far as I know the
 only effect would be to shut up warnings about trying to fetch pom.
 
 What dependencies (groupId, artifactId, version) don't have poms?
 

The times you have to download a jar from a third party project that 
ISN'T uploaded onto the maven central server. Then you would need 
to install it.

We do this with our third party APIs, the pom is used to add some 
additional information such as license and where it was downloaded 
from.

As a sidenote, I noticed when testing with the 2.1-SNAPSHOT that 
it actually required a pom on the artifacts that it downloads and
uses as dependency. Thats when i had to setup a pom for all our 
third party libraries. I don't know if this is a bug, or if it is actually 
required in the 2.1 release tho.

-- 
Magne Nordtveit [EMAIL PROTECTED]
Systems Engineer
Offshore Simulator Centre AS
http://www.offsimcentre.no/
-- 
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17621340.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: Question About Dependencies.

2008-06-03 Thread WinDrop

Sorry little typo.
activation
property
nameintegration/name
valueyes/value
/property 
value is set to yes in pom.xml and profile didn't activated

WinDrop wrote:
 
 Ok, write another mail because didn't find how to answer to first message.
 
  
 
 In first e-mail I wrote:
 
  
 
Hello, I have following question. 

If I have several profiles and each profile need several dependencies (
there is default list of them and several dependencies that is different ) 
How can I enable for the example dependencies tools and tools2 for profile
localhost and tool3 and tool4 for profile localhost2 ?

Thanks for the answer and sorry for my bad English.
 
  
 
 So example of What I need to get:
 
 Pom.xml profilesprofileblablabla/profile/profiles
 
 Profiles.xml
 
 profiles
 
 profile
 
 idlocalhost/id
 
 activation
 

 activeByDefaultfalse/activeByDefault
 
 property
 
 nameintegration/name
 
 valueyes/value
 
 /property
 
 /activation
 
 dependencies
 
 dependency
 
  
 groupIdjavax.transaction/groupId
 

 artifactIdjta/artifactId
 
 version1.0.1B/version
 
 /dependency
 
 /dependencies
 
 properties
 
 envlocalhost/env
 
 codelocalhost/code
 
 /properties
 
 /profile
 
 profile
 
 idlocalhost2/id
 
 activation
 

 activeByDefaultfalse/activeByDefault
 
 property
 
 nameintegration/name
 
 valueno/value
 
 /property
 
 /activation
 
 properties
 
 envlocalhost2/env
 
 codelocalhost2/code
 
 /properties
 
 /profile
 
  
 
 /profiles
 
  
 
 How can I get to work dependencies that is attached only to profile with
 ID
 localhost and not localhost2?
 
 And one more question. As you see I set property: name=integration and
 value=yes
 
 If I set activation in pom.xml like this:
 
 profiles
 
 profile
 
 idnointegration/id
 
 activation
 
 property
 
  
 nameintegration/name
 
  
 valueno/value
 
 /property
 
 /activation
 
 ..
 
  
 
 This profile didn't activated if I run maven with command line: mvn
 install
 -Plocalhost2 
 
 Thanks for the answer and sorry for my bad English.
 
 Please write how can I answer to the previous message :-) Thanks.
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content and is believed to be clean.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Question-About-Dependencies.-tp17619588p17622498.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Problem with maven 1.x SCM plugin

2008-06-03 Thread maneo


Hi,

I'm using CruiseControl Maven (1.x) Plugin, I have a problem with cvs 
update of my project files. From that what i know, CCM plugin by default 
invokes maven scm plugin to update project (maven scm:update-project) 
and when it's done, build process starts. After recent update I found a 
lot of empty directories in CC checkout directory, those were dirs 
removed from CVS. I wanted to add -P parameter to cvs command to prune 
empty directories during cvs update, but I don't know where to put this 
parameter. I checked scm plugin site and search through mailing list 
without significant result. What should I do to execute cvs update with 
this parameter?


Thanks in advance
Adam

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



distributing external config files

2008-06-03 Thread Maximilian Eberl
Hello everybody out there,

I am new to maven and - Yes - I searched the 
archives and Google for hours.

I have an application that needs to be configured
on the client's desktop computer, 

Each configuration will be different. So I
cannot pack the config file into the jar,
what maven by default does. It needs to be 
distributed seperately with the jar.

I tried 'resource-targetPath' and 'exclude'
from jar. But the result was not a target
directory parallel with the jar in target
dir (so that I can zip and deploy it all
together).

I also need different libs and files 
depending on target os and arcitecture.

Is there a standard maven way to do this?

Many thanks in advance!

Max

Is there 


  __
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

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



Re: distributing external config files

2008-06-03 Thread [EMAIL PROTECTED]
Maximilian Eberl schrieb:
 Hello everybody out there,

 I am new to maven and - Yes - I searched the 
 archives and Google for hours.

 I have an application that needs to be configured
 on the client's desktop computer, 

 Each configuration will be different. So I
 cannot pack the config file into the jar,
 what maven by default does. It needs to be 
 distributed seperately with the jar.

 I tried 'resource-targetPath' and 'exclude'
 from jar. But the result was not a target
 directory parallel with the jar in target
 dir (so that I can zip and deploy it all
 together).

 I also need different libs and files 
 depending on target os and arcitecture.

 Is there a standard maven way to do this?
   

The jar task is about building java jarfiles. Jarfiles are what you
pass to a JVM to run, or put on a classpath.

I think what you are looking for is the maven-assembly-plugin, which
allows you to build tarfiles, zipfiles, etc that are intended to be
unpacked. Documentation about that plugin is available on the maven site.

Regards,
Simon


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



Re: Unit Testing Issues

2008-06-03 Thread Mark-E

After I posted this I did some additional searching and found a few links
that might help me out. One of which is:

http://www.nabble.com/-m2--Using-the-integration-test-phase-td3620425.html

I will look into this further and see if I can get my tests working.

Sorry for not doing more diligent searching before posting.

Regards,

Mark


Mark-E wrote:
 
 Hi,
   I am working with a project in which I am having issue running unit
 tests. The project is a combination of stratight unit tests and
 integration tests. Seems that the unit tests run finr but the integration
 tests all fail. I judt found a reference to this in some codehaus docs
 
 http://docs.codehaus.org/pages/viewpage.action?pageId=62120
 
 I am not sure if this is the case still in Maven 2, which I am using, or
 not. 
 
 Just wondering how others out there handle running unit tests and
 integration tests together. I would like to migrate to Maven however if I
 cannot do these tests easily, it kind of shoots the whole thing down. 
 
 Our Ant build process handles it fine now and I could simply just run an
 Ant task to do the unit tests but then why use Maven if I end up claling a
 bunch of Ant tasks. 
 
 Thanks! 
 
 Mark
 
 

-- 
View this message in context: 
http://www.nabble.com/Unit-Testing-Issues-tp17623488p17623773.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]



Unit Testing Issues

2008-06-03 Thread Mark-E

Hi,
  I am working with a project in which I am having issue running unit tests.
The project is a combination of stratight unit tests and integration tests.
Seems that the unit tests run finr but the integration tests all fail. I
judt found a reference to this in some codehaus docs

http://docs.codehaus.org/pages/viewpage.action?pageId=62120

I am not sure if this is the case still in Maven 2, which I am using, or
not. 

Just wondering how others out there handle running unit tests and
integration tests together. I would like to migrate to Maven however if I
cannot do these tests easily, it kind of shoots the whole thing down. 

Our Ant build process handles it fine now and I could simply just run an Ant
task to do the unit tests but then why use Maven if I end up claling a bunch
of Ant tasks. 

Thanks! 

Mark

-- 
View this message in context: 
http://www.nabble.com/Unit-Testing-Issues-tp17623488p17623488.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]



Failure to load custom CheckStyle XML | Need Inputs

2008-06-03 Thread shinjan sen
Hi,
I was trying to integrate my custom checkstyle configuration XML into maven
build as follows:

reporting
 plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   version2.0-alpha-2/version
   configuration
 configLocationmy_checkstyle_config.xml/configLocation
 /configuration
  /plugin
 /plugins
 /reporting
build
 extensions
  extension
groupIdbuild-tools/groupId
artifactIdbuild-tools/artifactId
version1.0/version
  /extension
/extensions
 /build

The artifact build tools has got the xml my_checkstyle_config.xml in its
resources folder.

The problem is that the output that I receive after execution of the command
'mvn site' is the same report thet gets generated from eclipse for the
default sun_checks.xml configuration. The mvn site command is not picking up
my custom checkstyle.

Any pointers to possible solutions would be of great help to me.

Many Thanks
Shinjan


Re: How to generate POM for existed dependency?

2008-06-03 Thread Daniel Kulp


On Jun 3, 2008, at 5:11 AM, [EMAIL PROTECTED] wrote:


Magne Nordtveit schrieb:

On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote:

I have downloaded some dependencies from remote repository into  
local
repository. But some of them don't have pom file. How can I  
generate pom

file for dependencies in local repository?



When you install it to your local repository, specify
-DgeneratePom=true. If the artifact is automatically downloaded to  
your

repository from another source (i.e. central) consider creating a
thirdparty repo inhouse and deploy it to that (the -DgeneratePom=true
should work for the deploy plugin aswell).


I'm not aware of any jars in the maven repos that do not have poms.


There definitely are some:
http://repo1.maven.org/maven2/org/apache/ws/security/wss4j/1.5.2/
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/

I've worked with the wss4j folks so their latest release (1.5.4) was  
done correctly and has the pom, but there definitely are others in  
there.


Dan






But
if there are any, then you should be able to simply reinstall the  
jar

into your local repo using the instructions I referred you to before.
That will generate a trivial pom file.

I'm not sure why you'd bother doing this though. As far as I know the
only effect would be to shut up warnings about trying to fetch pom.

What dependencies (groupId, artifactId, version) don't have poms?

Regards,
Simon


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



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





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



Re: distributing external config files

2008-06-03 Thread Maximilian Eberl
 I think what you are looking for is the 
 maven-assembly-plugin

Thank You for the hint.

 The jar task is about building java jarfiles. 
 Jarfiles are what you pass to a JVM to run, or 
 put on a classpath.

Oh, thank You for this additional information.
There is allways something one can learn - even 
as a senior j2ee architect.


  __
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

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



Re: Unit Testing Issues

2008-06-03 Thread Geoffrey Wiseman
On Tue, Jun 3, 2008 at 9:26 AM, Mark-E [EMAIL PROTECTED] wrote:

  I am working with a project in which I am having issue running unit tests.
 The project is a combination of stratight unit tests and integration tests.
 Seems that the unit tests run finr but the integration tests all fail.


Fail in what way?


 I
 judt found a reference to this in some codehaus docs

 http://docs.codehaus.org/pages/viewpage.action?pageId=62120

 I am not sure if this is the case still in Maven 2, which I am using, or
 not.


I haven't seen that document  before, but I can tell you that it's certainly
possible to have integration tests and unit tests in the same project, I've
got a project like that now, although there's certainly some merit to
separating them into distinct sub-projects.

When you're done with your reading and attempts, if it's still not working,
come back and let us know what you're having trouble with.

  - Geoffrey
-- 
Geoffrey Wiseman


Maven 1.x Cruise control cvs update problem

2008-06-03 Thread maneo

Hi,

I'm using CruiseControl Maven (1.x) Plugin I have a problem with cvs
update of my project files. From that what i know maven scm plugin
updates project (maven scm:update-project) and when it's done, build
process starts. After recent update I found a lot of empty directories
in CC checkout directory, those were dirs removed from CVS. I wanted
to add -P parameter to cvs command to prune empty directories during
cvs update, but I don't know where to put this parameter. I checked
scm plugin site and search through mailing list without significant
result. What should I do to execute cvs update with this parameter?

Thanks in advance,
Adam

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



Re: Unit Testing Issues

2008-06-03 Thread Martin Höller
On Tuesday 03 June 2008 Geoffrey Wiseman wrote:
 On Tue, Jun 3, 2008 at 9:26 AM, Mark-E [EMAIL PROTECTED] wrote:
  I
  judt found a reference to this in some codehaus docs
 
  http://docs.codehaus.org/pages/viewpage.action?pageId=62120
 
  I am not sure if this is the case still in Maven 2, which I am using,
  or not.

 I haven't seen that document  before, but I can tell you that it's
 certainly possible to have integration tests and unit tests in the same
 project, I've got a project like that now, although there's certainly
 some merit to separating them into distinct sub-projects.

Maybe this article will also be useful to you:
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

hth,
- martin


signature.asc
Description: This is a digitally signed message part.


Maven Ant tasks and the release plugin!

2008-06-03 Thread Clifton

I'm having a huge problem this morning using the Maven ant tasks in a
multi-module project that we're trying to release this morning. We use the
Maven tasks to declare a dependency from within a Maven wrapped Ant build on
a shared lib that is also part of the multi-module project. I understand
that sounds confusing and complicated so let me put it this way. In one
submodule of our multi-module build, Maven calls into an Ant build. This Ant
build depends on another submodule in the same project. We pass in the
project's pom version as an Ant property and use this in the
artifact:dependency task to locate the jar. This all works just fine until
we cut a release. The problem comes from artifact:dependency looking at the
released version of the dependency's pom and trying to find its parent on
our repo. Since it's in mid release the parent pom has not been deployed and
the build fails breaking everything. I think the dependency task should have
a way of knowing that the dependency is part of a multi-module build in the
same project and locating it accordingly. Or maybe there's a better approach
all together? Could some of you experts chime in?
-- 
View this message in context: 
http://www.nabble.com/Maven-Ant-tasks-and-the-release-plugin%21-tp17626143p17626143.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: Unit Testing Issues

2008-06-03 Thread Mark-E

Looks like the build cannot connect to the database in order to get the data
needed for the integration tests. The Ant build dloes it ok but the Maven
build fails all these tests becasue it cannot connect. I have put the
properties file that has the connection information in src/test/resources
and all the test code is in src/test/java. It may be more that it is a
configuration issue rather the na Maven issue. 

I am going to keep researching and going over the build script to try and
figure this one out. 

Regards,
Mark


Geoffrey Wiseman wrote:
 
 On Tue, Jun 3, 2008 at 9:26 AM, Mark-E [EMAIL PROTECTED] wrote:
 
  I am working with a project in which I am having issue running unit
 tests.
 The project is a combination of stratight unit tests and integration
 tests.
 Seems that the unit tests run finr but the integration tests all fail.
 
 
 Fail in what way?
 
 
 I
 judt found a reference to this in some codehaus docs

 http://docs.codehaus.org/pages/viewpage.action?pageId=62120

 I am not sure if this is the case still in Maven 2, which I am using, or
 not.
 
 
 I haven't seen that document  before, but I can tell you that it's
 certainly
 possible to have integration tests and unit tests in the same project,
 I've
 got a project like that now, although there's certainly some merit to
 separating them into distinct sub-projects.
 
 When you're done with your reading and attempts, if it's still not
 working,
 come back and let us know what you're having trouble with.
 
   - Geoffrey
 -- 
 Geoffrey Wiseman
 
 

-- 
View this message in context: 
http://www.nabble.com/Unit-Testing-Issues-tp17623488p17626576.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: Unit Testing Issues

2008-06-03 Thread Martin

Hello Geoffrey
Have you verified all of the dependent jars are correct version e.g.?
 dependencies
   dependency
   groupIdorg.apache.axis2/groupId
   artifactIdaxis2-adb/artifactId
   version1.2/version
   /dependency
do a quick check to see if the manifest in axis2-adb.jar that this is 
version 1.2

?
Martin
- Original Message - 
From: Geoffrey Wiseman [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Tuesday, June 03, 2008 10:07 AM
Subject: Re: Unit Testing Issues



On Tue, Jun 3, 2008 at 9:26 AM, Mark-E [EMAIL PROTECTED] wrote:

 I am working with a project in which I am having issue running unit 
tests.
The project is a combination of stratight unit tests and integration 
tests.

Seems that the unit tests run finr but the integration tests all fail.



Fail in what way?



I
judt found a reference to this in some codehaus docs

http://docs.codehaus.org/pages/viewpage.action?pageId=62120

I am not sure if this is the case still in Maven 2, which I am using, or
not.



I haven't seen that document  before, but I can tell you that it's 
certainly
possible to have integration tests and unit tests in the same project, 
I've

got a project like that now, although there's certainly some merit to
separating them into distinct sub-projects.

When you're done with your reading and attempts, if it's still not 
working,

come back and let us know what you're having trouble with.

 - Geoffrey
--
Geoffrey Wiseman




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



Tip about Skinny Wars

2008-06-03 Thread Arnaud HERITIER
Hi all,

  I would like to share with you a workaround I found for the problem of
transitive dependencies in skinny wars.
  In the documentation it is said that :
 Now the painful part.  Your EAR's pom.xml needs to list every
dependency that the WAR has.
 This is because Maven assumes fat WARs and does not include transitive
dependencies
 of WARs within the EAR.

  A workaround of this is to define for each war 2 dependencies. One for the
war itself and another for the war's pom to retrieve transitive
dependencies.
  With that you'll have something like that in your ear dependencies :

dependencies
dependency
groupIdcom.acme/groupId
artifactIdwar1/artifactId
version1.0.0/version
typewar/type
/dependency
dependency
groupIdcom.acme/groupId
artifactIdwar1/artifactId
version1.0.0/version
typepom/type
/dependency
/dependencies

I'm using maven 2.0.9.

I'll do more tests tomorrow and I'll update the doc :
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html

Cheers

arnaud


RE: Building for different environments - how do _you_ do it?

2008-06-03 Thread EJ Ciramella
I wrote a plugin that looks at a combination of profiles
(localdev+generalstackinfo+stack+machine type combo) that generates a
property file which is used by ant (which is what we're using for
deployments).  You do this once and then manage the settings inside the
pre-generated property file.

This is a recent change as we were doing what you're talking about
(generating multiple zip files for all different environments).  Our
build was taking ~3 hours.  The property file method takes roughly 26
min (as there's no generation.

The hard part is propagating developer settings that are valid through
to production, you can't use filters because they take precedence over
profiles and when two disparate projects connect to the same db (for
example), where do you put that setting?  You can't just put it in
profiles.xml otherwise you have a duplicate from project to project. 

-Original Message-
From: Paul Davis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2008 2:22 PM
To: Maven Users List
Subject: Re: Building for different environments - how do _you_ do it?

The best thing is to NOT create a different build for different
environments.

When environment specific stuff is needed (EARs and WARs) look up the
info
from JNDI and put that configuration on the server.
Then if something needs to change, you don't need to create a new build.

If you have to do it, you could probably create a profile for each
environment setting a variable.
Then the files specific to that environment could be filtered based on
the
value of that variable.
You'd just specify the profile to use when creating the build.

On Tue, Jun 3, 2008 at 11:14 AM, EJ Ciramella [EMAIL PROTECTED]
wrote:

 So how are other people building for both dev and other environments?



 For example, how does one support multiple environments like the
 following:



 1 - Dev integration

 2 - QA stack 1

 3 - QA stack 2

 4 - QA stack 3

 5 - Staging

 6 - Prod

 7 - local developer builds



 How do other people support variables that can be the same from local
 builds through production but support the option to change them at the
 last minute?  Are people building multiple version of say an ear
 deployment to support all the different environments?



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



Building for different environments - how do _you_ do it?

2008-06-03 Thread EJ Ciramella
So how are other people building for both dev and other environments?

 

For example, how does one support multiple environments like the
following:

 

1 - Dev integration

2 - QA stack 1

3 - QA stack 2

4 - QA stack 3

5 - Staging

6 - Prod

7 - local developer builds

 

How do other people support variables that can be the same from local
builds through production but support the option to change them at the
last minute?  Are people building multiple version of say an ear
deployment to support all the different environments?



Re: Building for different environments - how do _you_ do it?

2008-06-03 Thread Paul Davis
The best thing is to NOT create a different build for different
environments.

When environment specific stuff is needed (EARs and WARs) look up the info
from JNDI and put that configuration on the server.
Then if something needs to change, you don't need to create a new build.

If you have to do it, you could probably create a profile for each
environment setting a variable.
Then the files specific to that environment could be filtered based on the
value of that variable.
You'd just specify the profile to use when creating the build.

On Tue, Jun 3, 2008 at 11:14 AM, EJ Ciramella [EMAIL PROTECTED]
wrote:

 So how are other people building for both dev and other environments?



 For example, how does one support multiple environments like the
 following:



 1 - Dev integration

 2 - QA stack 1

 3 - QA stack 2

 4 - QA stack 3

 5 - Staging

 6 - Prod

 7 - local developer builds



 How do other people support variables that can be the same from local
 builds through production but support the option to change them at the
 last minute?  Are people building multiple version of say an ear
 deployment to support all the different environments?




Re: Failure to load custom CheckStyle XML | Need Inputs

2008-06-03 Thread Dennis Lundberg
Hang on until tomorrow when we (hopefully) release version 2.2 of the 
plugin. That release includes updated docs for what you are asking for. 
Watch this list for the release announcement.


shinjan sen wrote:

Hi,
I was trying to integrate my custom checkstyle configuration XML into maven
build as follows:

reporting
 plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   version2.0-alpha-2/version
   configuration
 configLocationmy_checkstyle_config.xml/configLocation
 /configuration
  /plugin
 /plugins
 /reporting
build
 extensions
  extension
groupIdbuild-tools/groupId
artifactIdbuild-tools/artifactId
version1.0/version
  /extension
/extensions
 /build

The artifact build tools has got the xml my_checkstyle_config.xml in its
resources folder.

The problem is that the output that I receive after execution of the command
'mvn site' is the same report thet gets generated from eclipse for the
default sun_checks.xml configuration. The mvn site command is not picking up
my custom checkstyle.

Any pointers to possible solutions would be of great help to me.

Many Thanks
Shinjan




--
Dennis Lundberg

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



Re: Failure to load custom CheckStyle XML | Need Inputs

2008-06-03 Thread Mick Knutson
can you post your build-tools/pom.xml please?


On Tue, Jun 3, 2008 at 1:40 PM, Dennis Lundberg [EMAIL PROTECTED] wrote:

 Hang on until tomorrow when we (hopefully) release version 2.2 of the
 plugin. That release includes updated docs for what you are asking for.
 Watch this list for the release announcement.

 shinjan sen wrote:

 Hi,
 I was trying to integrate my custom checkstyle configuration XML into
 maven
 build as follows:

 reporting
  plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   version2.0-alpha-2/version
   configuration
 configLocationmy_checkstyle_config.xml/configLocation
 /configuration
  /plugin
  /plugins
  /reporting
 build
  extensions
  extension
groupIdbuild-tools/groupId
artifactIdbuild-tools/artifactId
version1.0/version
  /extension
/extensions
  /build

 The artifact build tools has got the xml my_checkstyle_config.xml in its
 resources folder.

 The problem is that the output that I receive after execution of the
 command
 'mvn site' is the same report thet gets generated from eclipse for the
 default sun_checks.xml configuration. The mvn site command is not picking
 up
 my custom checkstyle.

 Any pointers to possible solutions would be of great help to me.

 Many Thanks
 Shinjan



 --
 Dennis Lundberg

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




-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Tahoe: http://tahoe.baselogic.com


Re: compile jaxb2 annotated files with maven2

2008-06-03 Thread Wayne Fay
Have you tried adding the jaxb2 jars to the list of dependencies with
scope compile? Did this not work? What error message(s) did you
receive?

I don't know much about jaxb2 but if you post more details on what
you've tried and what error(s) you've encountered, perhaps someone can
give you the guidance you are looking for.

Wayne

On Tue, Jun 3, 2008 at 5:50 AM, Trasca Virgil [EMAIL PROTECTED] wrote:
 Hello,

   I am in the process of migrating from Ant to Maven2. I am stucked when I 
 try to mvn compile because in some source files I use jaxb2 annotations and 
 of course I need jaxb2 jars for building. I am not generating and xsd or any 
 java sources with jaxb2 only compile some annotated src files. In ANT the 
 only thing I do is that I am compiling my sources with jaxb2 in the 
 classpath. How can I do this in Maven2? Do you have some links with 
 documentation?

  Thank you,
 Virgil
 DocumentBurster,
 http://java-hobby.blogspot.com/


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



Anyone know about this error?

2008-06-03 Thread Chris Boyer

This just started today for some reason

[ERROR] BUILD ERROR
[INFO]  

[INFO] Failed to create assembly: Error creating assembly archive jar- 
with-dependencies: Problem creating jar: unknown protocol:  
builtinobjecttoken



Chris Boyer [EMAIL PROTECTED]
Senior Programmer/Analyst, Musician's Friend






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



Re: Anyone know about this error?

2008-06-03 Thread Mick Knutson
Sounds like you have something like:

*built/in/object/token* or something like that in your pom

On Tue, Jun 3, 2008 at 3:01 PM, Chris Boyer [EMAIL PROTECTED]
wrote:

 This just started today for some reason

 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to create assembly: Error creating assembly archive
 jar-with-dependencies: Problem creating jar: unknown protocol:
 builtinobjecttoken


 Chris Boyer [EMAIL PROTECTED]
 Senior Programmer/Analyst, Musician's Friend






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




-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Tahoe: http://tahoe.baselogic.com


Re: Maven and GData

2008-06-03 Thread Alan Gutierrez

On Jun 2, 2008, at 10:26 PM, Alan Gutierrez wrote:

It seems that Google Guice has made it into the Maven repositories  
while GData has not, even though they are both very openly  
licensed. I'm searching using mvnrepository.com. I'm not seeing  
anything for GData.


I did find the Google APIs Mavenized project. Not sure how up to  
date it is.


http://code.google.com/p/google-apis-mavenized/

Was hoping that it would be available in a repository somewhere.


How does one proceed once you've determined that a project is not  
available in a Maven format? Do you indeed Mavenize it and work with  
it that way?


Alan

--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504  
717 1428

Think New Orleans | http://thinknola.com/



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



Re: Maven and GData

2008-06-03 Thread Barrie Treloar
On Wed, Jun 4, 2008 at 8:23 AM, Alan Gutierrez [EMAIL PROTECTED] wrote:
 On Jun 2, 2008, at 10:26 PM, Alan Gutierrez wrote:

 It seems that Google Guice has made it into the Maven repositories while
 GData has not, even though they are both very openly licensed. I'm searching
 using mvnrepository.com. I'm not seeing anything for GData.

 I did find the Google APIs Mavenized project. Not sure how up to date it
 is.

 http://code.google.com/p/google-apis-mavenized/

 Was hoping that it would be available in a repository somewhere.

 How does one proceed once you've determined that a project is not available
 in a Maven format? Do you indeed Mavenize it and work with it that way?

You can get a start by installing it locally:
http://maven.apache.org/general.html#importing-jars

If you want these artifacts added to the maven central repo:
http://maven.apache.org/repository/index.html (From the Documenation
Maven Repository Centre menu) and click on the Guide to uploading
artifacts link
(http://maven.apache.org/guides/mini/guide-central-repository-upload.html)

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



izpack license type

2008-06-03 Thread Dan Tran
Hello every thing,

I am about make a bundle request to upload izpack's
standalone-compiler.jar  to repo.
Even thou izpack is apache 2.0 license type, but the request upload
jar contains a other jar files,
and one of those is GNU type.

So the question here, how do we set up pom.xml file regarding the
license element?

What is the impact for commercial applications which use
izpack-maven-plugin ( in mojo's sandbox)  to produce installers.

thoughts?

-D

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



Re: izpack license type

2008-06-03 Thread Dan Tran
correction, there is no GNU license type, but LGPL, however the
question still valid.



On Tue, Jun 3, 2008 at 5:30 PM, Dan Tran [EMAIL PROTECTED] wrote:
 Hello every thing,

 I am about make a bundle request to upload izpack's
 standalone-compiler.jar  to repo.
 Even thou izpack is apache 2.0 license type, but the request upload
 jar contains a other jar files,
 and one of those is GNU type.

 So the question here, how do we set up pom.xml file regarding the
 license element?

 What is the impact for commercial applications which use
 izpack-maven-plugin ( in mojo's sandbox)  to produce installers.

 thoughts?

 -D


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi

There are many of them, like:
org/apache/cxf/cxf-rt-transports-http/2.0.4-incubator/cxf-rt-transports-http-2.0.4-incubator.pom


[EMAIL PROTECTED] wrote:
 
 Magne Nordtveit schrieb:
 On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote:
   
 I have downloaded some dependencies from remote repository into local
 repository. But some of them don't have pom file. How can I generate pom
 file for dependencies in local repository?
 

 When you install it to your local repository, specify
 -DgeneratePom=true. If the artifact is automatically downloaded to your
 repository from another source (i.e. central) consider creating a
 thirdparty repo inhouse and deploy it to that (the -DgeneratePom=true
 should work for the deploy plugin aswell).
   
 I'm not aware of any jars in the maven repos that do not have poms. But
 if there are any, then you should be able to simply reinstall the jar
 into your local repo using the instructions I referred you to before.
 That will generate a trivial pom file.
 
 I'm not sure why you'd bother doing this though. As far as I know the
 only effect would be to shut up warnings about trying to fetch pom.
 
 What dependencies (groupId, artifactId, version) don't have poms?
 
 Regards,
 Simon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17638091.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to generate POM for existed dependency?

2008-06-03 Thread Daniel Kulp


Umm..  none of the incubator versions of CXF would be at central  
at all.   That pom isn't there and neither is the jar.   They would be  
in the incubator repository:

http://people.apache.org/repo/m2-incubating-repository/
and the poms for those artifacts are indeed there.

That said, CXF has graduated.   The non-incubator versions (2.0.6 and  
2.1) are both available at central and poms are there.


Dan



On Jun 3, 2008, at 10:49 PM, youhaodeyi wrote:



There are many of them, like:
org/apache/cxf/cxf-rt-transports-http/2.0.4-incubator/cxf-rt- 
transports-http-2.0.4-incubator.pom



[EMAIL PROTECTED] wrote:


Magne Nordtveit schrieb:

On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote:

I have downloaded some dependencies from remote repository into  
local
repository. But some of them don't have pom file. How can I  
generate pom

file for dependencies in local repository?



When you install it to your local repository, specify
-DgeneratePom=true. If the artifact is automatically downloaded to  
your

repository from another source (i.e. central) consider creating a
thirdparty repo inhouse and deploy it to that (the - 
DgeneratePom=true

should work for the deploy plugin aswell).

I'm not aware of any jars in the maven repos that do not have poms.  
But
if there are any, then you should be able to simply reinstall the  
jar

into your local repo using the instructions I referred you to before.
That will generate a trivial pom file.

I'm not sure why you'd bother doing this though. As far as I know the
only effect would be to shut up warnings about trying to fetch pom.

What dependencies (groupId, artifactId, version) don't have poms?

Regards,
Simon


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





--
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17638091.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]



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





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



Re: How to generate POM for existed dependency?

2008-06-03 Thread youhaodeyi

True. Thanks.

dkulp wrote:
 
 
 Umm..  none of the incubator versions of CXF would be at central  
 at all.   That pom isn't there and neither is the jar.   They would be  
 in the incubator repository:
 http://people.apache.org/repo/m2-incubating-repository/
 and the poms for those artifacts are indeed there.
 
 That said, CXF has graduated.   The non-incubator versions (2.0.6 and  
 2.1) are both available at central and poms are there.
 
 Dan
 
 
 
 On Jun 3, 2008, at 10:49 PM, youhaodeyi wrote:
 

 There are many of them, like:
 org/apache/cxf/cxf-rt-transports-http/2.0.4-incubator/cxf-rt- 
 transports-http-2.0.4-incubator.pom


 [EMAIL PROTECTED] wrote:

 Magne Nordtveit schrieb:
 On Tue, 2008-06-03 at 01:11 -0700, youhaodeyi wrote:

 I have downloaded some dependencies from remote repository into  
 local
 repository. But some of them don't have pom file. How can I  
 generate pom
 file for dependencies in local repository?


 When you install it to your local repository, specify
 -DgeneratePom=true. If the artifact is automatically downloaded to  
 your
 repository from another source (i.e. central) consider creating a
 thirdparty repo inhouse and deploy it to that (the - 
 DgeneratePom=true
 should work for the deploy plugin aswell).

 I'm not aware of any jars in the maven repos that do not have poms.  
 But
 if there are any, then you should be able to simply reinstall the  
 jar
 into your local repo using the instructions I referred you to before.
 That will generate a trivial pom file.

 I'm not sure why you'd bother doing this though. As far as I know the
 only effect would be to shut up warnings about trying to fetch pom.

 What dependencies (groupId, artifactId, version) don't have poms?

 Regards,
 Simon


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




 -- 
 View this message in context:
 http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17638091.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]

 
 ---
 Daniel Kulp
 [EMAIL PROTECTED]
 http://www.dankulp.com/blog
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-generate-POM-for-existed-dependency--tp17618375p17638248.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: Building for different environments - how do _you_ do it?

2008-06-03 Thread Dave Feltenberger
Another possibility, if you're not in a J2EE container and don't necessarily
have access to JNDI (or don't want to rely on server config vs. a
self-contained JAR/WAR) is to package all the environment configurations
together and use something like Spring and an environment variable to filter
a context or properties file.  I've found this to be very useful, as the
same artifact can be deployed in dev, prod, staging, qa, etc. without having
to re-build and risk potential differences in the artifacts.

Dave

On Tue, Jun 3, 2008 at 2:22 PM, Paul Davis [EMAIL PROTECTED] wrote:

 The best thing is to NOT create a different build for different
 environments.

 When environment specific stuff is needed (EARs and WARs) look up the info
 from JNDI and put that configuration on the server.
 Then if something needs to change, you don't need to create a new build.

 If you have to do it, you could probably create a profile for each
 environment setting a variable.
 Then the files specific to that environment could be filtered based on
 the
 value of that variable.
 You'd just specify the profile to use when creating the build.

 On Tue, Jun 3, 2008 at 11:14 AM, EJ Ciramella [EMAIL PROTECTED]
 wrote:

  So how are other people building for both dev and other environments?
 
 
 
  For example, how does one support multiple environments like the
  following:
 
 
 
  1 - Dev integration
 
  2 - QA stack 1
 
  3 - QA stack 2
 
  4 - QA stack 3
 
  5 - Staging
 
  6 - Prod
 
  7 - local developer builds
 
 
 
  How do other people support variables that can be the same from local
  builds through production but support the option to change them at the
  last minute?  Are people building multiple version of say an ear
  deployment to support all the different environments?
 
 



Re: Failure to load custom CheckStyle XML | Need Inputs

2008-06-03 Thread shinjan sen
Hi,
Thanks for the mail.
My build-tools/pom is a basic pom.xml.
Its pasted below:
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdbuild-tools/groupId
artifactIdbuild-tools/artifactId
version1.0/version
packagingjar/packaging
namebuild-tools/name
/project

Thanks
Shinjan


On 6/4/08, Mick Knutson [EMAIL PROTECTED] wrote:

 can you post your build-tools/pom.xml please?


 On Tue, Jun 3, 2008 at 1:40 PM, Dennis Lundberg [EMAIL PROTECTED]
 wrote:

  Hang on until tomorrow when we (hopefully) release version 2.2 of the
  plugin. That release includes updated docs for what you are asking for.
  Watch this list for the release announcement.
 
  shinjan sen wrote:
 
  Hi,
  I was trying to integrate my custom checkstyle configuration XML into
  maven
  build as follows:
 
  reporting
   plugins
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-checkstyle-plugin/artifactId
version2.0-alpha-2/version
configuration
  configLocationmy_checkstyle_config.xml/configLocation
  /configuration
   /plugin
   /plugins
   /reporting
  build
   extensions
   extension
 groupIdbuild-tools/groupId
 artifactIdbuild-tools/artifactId
 version1.0/version
   /extension
 /extensions
   /build
 
  The artifact build tools has got the xml my_checkstyle_config.xml in its
  resources folder.
 
  The problem is that the output that I receive after execution of the
  command
  'mvn site' is the same report thet gets generated from eclipse for the
  default sun_checks.xml configuration. The mvn site command is not
 picking
  up
  my custom checkstyle.
 
  Any pointers to possible solutions would be of great help to me.
 
  Many Thanks
  Shinjan
 
 
 
  --
  Dennis Lundberg
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 ---
 Thank You…

 Mick Knutson
 BASE Logic, inc.

 Website: http://baselogic.com
 Blog: http://baselogic.com/blog
 BLiNC Magazine: http://blincmagazine.com
 Linked IN: http://linkedin.com/in/mickknutson
 DJ Mick: http://djmick.com
 MySpace: http://myspace.com/mickknutson
 Tahoe: http://tahoe.baselogic.com