Re: Problem while building using Maven

2009-04-20 Thread Ian Petzer
There is a very quick tutorial on the Maven site which should get you up and
running with a very basic pom file and standardised directory structure.

You can find it here:
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

You don't actually need a settings.xml file to run Maven so I would suggest
that you delete/move the one you have created and go through the tutorial.
Once you have finished that you will have a Maven project which will
retrieve your dependencies from the main Maven site. It will then be easy to
create a settings.xml file to use your Nexus repository.

If you have problems, you will need to post the details of the error message
that you receive.


On Mon, Apr 20, 2009 at 6:54 AM, MS21 subramanian.me...@wipro.com wrote:


 Hi Ian,n'
  We have a Nexus software installed, created a local repostiory and added
 some basic artificats
 . I am new to Maven so trying to configure a simple project and point it to
 this repository.

 Could you pls let me know the steps or give URL which contains these
 details.





 Ian Petzer wrote:
 
  Hi,
 
  Could you please post the details of the error message that was
 displayed.
 
  Also, please attach your settings.xml file.
 
  Ian
 
  On Fri, Apr 17, 2009 at 3:03 PM, MS21 subramanian.me...@wipro.com
 wrote:
 
 
  Hi,
   We are new to Maven and trying to build a project , it shows Not able
 to
  download from the URL.
 
  I am not really sure if its a proxy issue, though the network we were
  using
  does not have any proxy  user ids for that.
 
  We actually tried changing the settings.xml and pointed it to maven2
  repos
  (http://repo1.maven.org/maven2/). Later we changed it to our local
  repository URL. But when we run it it was saying cannot download from
 the
  URL.- http://repo1.maven.org/maven2/
 
  We are not sure if its still pointing to the old URL or internally it
  uses
  Maven url.
 
  Could you pls guide us..
  --
  View this message in context:
 
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23098266.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
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23130747.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: Problem while building using Maven

2009-04-20 Thread MS21

This i have tried and its working. What i am trying to do is i have created a
repository in NEXUS

http://localhost:8080/nexus-webapp-1.3.2/content/repositories/IBRepos/

I have added couple of aritifacts in this (jar files). and using the classes
from this artifact

I modified the POM and settings.xml in my sample to point to this..When i
build, its giving compilation error since its not in build path (this one i
will fix)..Also i think it shud download the artificats to local repository
under M2 folder.. but this is not happening..

Pls confirm

---
[INFO] Compilation failure
C:\sample-echo\FileManager\src\main\java\org\xh\studies\App.java:[3,32]
package
org.apache.commons.codec does not exist






Ian Petzer wrote:
 
 There is a very quick tutorial on the Maven site which should get you up
 and
 running with a very basic pom file and standardised directory structure.
 
 You can find it here:
 http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
 
 You don't actually need a settings.xml file to run Maven so I would
 suggest
 that you delete/move the one you have created and go through the tutorial.
 Once you have finished that you will have a Maven project which will
 retrieve your dependencies from the main Maven site. It will then be easy
 to
 create a settings.xml file to use your Nexus repository.
 
 If you have problems, you will need to post the details of the error
 message
 that you receive.
 
 
 On Mon, Apr 20, 2009 at 6:54 AM, MS21 subramanian.me...@wipro.com wrote:
 

 Hi Ian,n'
  We have a Nexus software installed, created a local repostiory and added
 some basic artificats
 . I am new to Maven so trying to configure a simple project and point it
 to
 this repository.

 Could you pls let me know the steps or give URL which contains these
 details.





 Ian Petzer wrote:
 
  Hi,
 
  Could you please post the details of the error message that was
 displayed.
 
  Also, please attach your settings.xml file.
 
  Ian
 
  On Fri, Apr 17, 2009 at 3:03 PM, MS21 subramanian.me...@wipro.com
 wrote:
 
 
  Hi,
   We are new to Maven and trying to build a project , it shows Not able
 to
  download from the URL.
 
  I am not really sure if its a proxy issue, though the network we were
  using
  does not have any proxy  user ids for that.
 
  We actually tried changing the settings.xml and pointed it to maven2
  repos
  (http://repo1.maven.org/maven2/). Later we changed it to our local
  repository URL. But when we run it it was saying cannot download from
 the
  URL.- http://repo1.maven.org/maven2/
 
  We are not sure if its still pointing to the old URL or internally it
  uses
  Maven url.
 
  Could you pls guide us..
  --
  View this message in context:
 
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23098266.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
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23130747.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


 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23132545.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



resources:copy-resources

2009-04-20 Thread Sean Owen
Hi all,

I've spent many hours trying to figure this out, and am writing the list as
a last resort.  I have a copy-resources goal configured to move some stuff
from an external directory during a build.  It works fine when I do a mvn
install or mvn jetty:run.  The trouble comes when I try to run the goal on
its own.  If I call mvn resources:copy-resources from the command line, I
get the following error:

[0] Inside the definition for plugin 'maven-resources-plugin' specify the
following:

configuration
  ...
  outputDirectoryVALUE/outputDirectory
/configuration.

[1] Inside the definition for plugin 'maven-resources-plugin' specify the
following:

configuration
  ...
  resourcesVALUE/resources
/configuration.


Of course these values are in fact specified in my pom, as evidenced by the
fact that the copy-resources goal is executed successfully when I run a
build.  However, nothing I have tried seems to be able to get maven to
recognize this when I run the goal on its own.  I even went so far as to
remove everything else from my pom.  Here's the trimmed-down version:

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdpose/groupId
  artifactIdposnet/artifactId
  packagingwar/packaging
  version1.1.1-SNAPSHOT/version
  namePositive Energy Web/name

  build
plugins
  plugin
artifactIdmaven-resources-plugin/artifactId
executions
  execution
phasevalidate/phase
goals
  goalcopy-resources/goal
/goals
configuration
  outputDirectorysrc/main/webapp/clients/pse/outputDirectory
  resources
resource

directory/opt/pose/main/clients/pse/trunk/src/main/resources/webclientconfig/clients/pse/assets//directory
  filteringtrue/filtering
/resource
  /resources
/configuration
  /execution
/executions
  /plugin
/plugins
  /build
/project

If I run mvn resources:copy-resources with the above pom, I get the same
error, asking for outputDirectory and resources, both of which are plainly
specified above.

I've consulted every coworker with any maven experience, and they're all
mystified.  Can anyone offer any insight?  I'm at my wits' end on this one!

Thanks in advance!


maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
Hi

We use the command line to pass on system properties to the java
virtual machine when running our Hudson builds on a Linux box. It used
to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
stopped working altogether. The system properties just never make it
to the java virtual machine.

I have created a small test project and indeed it does not work at
all. I have attached it in case you want to give it a go. [it got
blocked so sending without attachment]

This should work just fine with maven 2.0.9

mvn2.0.9 -Dsystem.test.property=test test

But this will fail

mvn2.1 -Dsystem.test.property=test test

The java code simply does this

assertTrue( System.getProperty(system.test.property) != null);


Any thoughts

-- 


-- e

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



Re: packagingejb/packaging and packagingbundle/packaging (OSGi)

2009-04-20 Thread Jean-Claude

When the package is set to
  packagingejb/packaging
two artifacts are generated
  . an EJB jar (e.g. core-bo-1.0.0-SNAPSHOT.jar)
  . a client jar (e.g. core-bo-1.0.0-SNAPSHOT-client.jar)
according to  http://maven.apache.org/plugins/maven-ejb-plugin/index.html
maven-ejb-plugin 

When I call
  mvn clean install -Posgi-bundle
both jar files, the EJB jar and the client jar, contain a manifest with
bundle information.

Is it possible to have the bundle information only be incorporated to the
client jar (e.g. core-bo-1.0.0-SNAPSHOT-client.jar) and not to the EJB jar
(e.g. core-bo-1.0.0-SNAPSHOT.jar) when I call
 mvn clean install -Posgi-bundle
?

Thank you for your answers.


Sahoo wrote:
 
 You can explicitly call the goals of maven-bundle-plugin to do necessary 
 OSGi bundling if you don't want to change the packaging type. See 
 Adding OSGi metadata to existing projects without changing the 
 packaging type section at 
 http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
 
 Thanks,
 Sahoo
 

-- 
View this message in context: 
http://www.nabble.com/%3Cpackaging%3Eejb%3C-packaging%3E-and-%3Cpackaging%3Ebundle%3C-packaging%3E-%28OSGi%29-tp23038273p23133534.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



Maven does not update snapshot dependency to latest version

2009-04-20 Thread Walter B. Rasmann
Maven doesn't update snapshot dependencies to the latest version when run as:

mvn clean
mvn -U assemby:assembly

The -with-dependencies jar contains the old versions of the class
files and the local repository looks like this:

(~/.m2/repository/com/xxx/dependency1/dependency1/1.0-SNAPSHOT)

 dependency1-1.0-TIMESTAMP-1.jar
 dependency1-1.0-TIMESTAMP-2.jar
 dependency1-1.0-TIMESTAMP-3.jar
 dependency1-1.0-TIMESTAMP-4.jar
 dependency1-1.0-TIMESTAMP-5.jar
 dependency1-1.0-TIMESTAMP-6.jar
 dependency1-1.0-SNAPSHOT.jar

where dependency1-1.0-SNAPSHOT.jar is identical to
dependency1-1.0-TIMESTAMP-1.jar. But
dependency1-1.0-TIMESTAMP-6.jar is the most recent package by
timestamp and package content.

The packages used as dependencies have been installed to a local
archiva repository using:

mvn deploy:deploy-file -DgroupId=com.xxx.dependecy1
-DartifactId=dependency1 -Dversion=1.0-SNAPSHOT -Dpackaging=jar
-Dfile=dependency1.jar -Durl=[url] -DrepositoryId=[id]

and are referenced in the main project pom as:

dependency
  groupIdcom.xxx.dependency1/groupId
  artifactIddependency1/artifactId
  version1.0-SNAPSHOT/version
/dependency

When run as

mvn -U -X assembly:assembly

maven produces the following output:

[INFO] snapshot com.xxx.dependency1:dependency1:1.0-SNAPSHOT: checking
for updates from archiva repository id
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'archiva repository id' with url:
'archiva repository url'.
[INFO] snapshot com.xxx.dependency1:dependency1:1.0-SNAPSHOT: checking
for updates from repo1
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'repo1' with url:
'http://repo1.maven.org/maven2/'.
[DEBUG] repository metadata for: 'snapshot
com.xxx.dependency1:dependency1:1.0-SNAPSHOT' could not be found on
repository: repo1
[INFO] snapshot com.xxx.dependency1:dependency1:1.0-SNAPSHOT: checking
for updates from maven2-repository.dev.java.net
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'maven2-repository.dev.java.net'
with url: 'http://download.java.net/maven/2/'.
[DEBUG] repository metadata for: 'snapshot
com.xxx.dependency1:dependency1:1.0-SNAPSHOT' could not be found on
repository: maven2-repository.dev.java.net
[DEBUG] Skipping disabled repository central
[DEBUG] dependency1: resolved to version 1.0-TIMESTAMP-6 from
repository archiva repository id
[DEBUG]   com.xxx.dependency1:dependency1:jar:1.0-SNAPSHOT:compile
(selected for compile)

This actually suggests that it found the right version. But
dependency1-1.0-TIMESTAMP-1.jar gets included into the
-with-dependencies jar anyway.

After deleting

  
~/.m2/repository/com/xxx/dependency1/dependency1/1.0-SNAPSHOT/dependency1-1.0-SNAPSHOT.jar

manually and reruning mvn -U assembly:assembly
dependency1-1.0-SNAPSHOT.jar is a copy of
dependency1-1.0-TIMESTAMP-6.jar and the -with-dependencies jar
includes the right files.

Is this some kind of bug?

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



[m1] JAXB SchemaGen and JDK1.6 - isSubtype 15

2009-04-20 Thread Benoitx

Dear *,

I know that jaxb is a subject that pops up on  aregular basis but I do not
seem to find a related message all the way back to 2007...

We're still using Maven 1 (ok...) and intend to move from JDK 1.5 to 1.6. 
Our task to generate a schema from classes not longer works with JDK1.6 and
this is probably due to the fact that JDK1.6 comes with an 'old' version of
JAXB (we're using 2.1.5).

I am aware of the article from Kohsuke
(http://weblogs.java.net/blog/kohsuke/archive/2007/02/running_jaxbws.html)
but mustbe blind as of how to use it in the context of Maven 1.

project.xml
!-- JAXB 2.1.5 and transitive dependencies --
dependency
groupIdjaxb/groupId
artifactIdjaxb-api/artifactId
version2.1.5/version
typejar/type
/dependency
dependency
groupIdjaxb/groupId
artifactIdjaxb-impl/artifactId
version2.1.5/version
typejar/type
/dependency
dependency
groupIdjaxb/groupId
artifactIdjsr173_1.0_api/artifactId
version2.1.5/version
typejar/type
/dependency
dependency
groupIdcom.sun.xml.bind/groupId
artifactIdjaxb-xjc/artifactId
version2.1.10/version
typejar/type
/dependency



maven.xml
preGoal name=java:compile
echoGenerating XML-Schema for JAXB-mapped classes/echo
taskdef name=schemagen
classname=com.sun.tools.jxc.SchemaGenTask
classpath refid=maven.dependency.classpath /
/taskdef

schemagen destdir=${maven.build.dest}
classpath refid=maven.dependency.classpath /
src refid=maven.compile.src.set /
include name=**/package-info.java /

include name=com/x/ClientRelationshipStaging.java /
schema namespace=urn:com::util file=X-util.xsd /
/schemagen

It works fine with JDK 1.5.0_18 but with JDK 1.6.0_13 I get:

java:compile:
[echo] Generating XML-Schema for JAXB-mapped classes
[schemagen] Generating schema from 31 source files
[schemagen] Problem encountered during annotation processing;
[schemagen] see stacktrace below for more information.
[schemagen] java.lang.AssertionError: isSubtype 15
[schemagen] at
com.sun.tools.javac.code.Types$5.visitType(Types.java:347)
[schemagen] at
com.sun.tools.javac.code.Types$5.visitType(Types.java:328)
[schemagen] at
com.sun.tools.javac.code.Types$DefaultTypeVisitor.visitWildcardType(Types.java:3163)
[schemagen] at
com.sun.tools.javac.code.Type$WildcardType.accept(Type.java:416)
[schemagen] at
com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3161)
[schemagen] at
com.sun.tools.javac.code.Types.isSubtype(Types.java:324)
[schemagen] at
com.sun.tools.javac.code.Types.isSubtype(Types.java:308)
[schemagen] at
com.sun.tools.apt.mirror.util.TypesImpl.isSubtype(TypesImpl.java:56)
[schemagen] at
com.sun.tools.jxc.model.nav.APTNavigator.isSubClassOf(APTNavigator.java:205)
[schemagen] at
com.sun.tools.jxc.model.nav.APTNavigator.isSubClassOf(APTNavigator.java:85)
[schemagen] at
com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.isApplicable(PropertyInfoImpl.java:218)

It also seems related to:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6738538

But this says it is fixed and delivered...

Any suggestion?

Anyone faced the same issue

Many thanks

Benoit

-
Thanks  Regards,

Benoit

http://www.Appendium.com   http://objectlab.blogspot.com

-- 
View this message in context: 
http://www.nabble.com/-m1--JAXB-SchemaGen-and-JDK1.6--%3E-isSubtype-15-tp23133529p23133529.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: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Stephen Connolly
Have you locked down the version of surefire you are using in your pom?

if you have not locked it down, then you will be picking up a newer
version of surefire with 2.1.0.

AFAIK, a newer version of surefire has issues passing system
properties to the forked process.

in any case you should always lock down the versions of plugins that
you are using or else your build is not fully reproducible

-Stephen

2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:
 Hi

 We use the command line to pass on system properties to the java
 virtual machine when running our Hudson builds on a Linux box. It used
 to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
 stopped working altogether. The system properties just never make it
 to the java virtual machine.

 I have created a small test project and indeed it does not work at
 all. I have attached it in case you want to give it a go. [it got
 blocked so sending without attachment]

 This should work just fine with maven 2.0.9

 mvn2.0.9 -Dsystem.test.property=test test

 But this will fail

 mvn2.1 -Dsystem.test.property=test test

 The java code simply does this

 assertTrue( System.getProperty(system.test.property) != null);


 Any thoughts

 --


 -- e

 -
 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: Problem while building using Maven

2009-04-20 Thread Ian Petzer
Hi,

Yes indeed. If your Nexus instance is correctly configured and you are
pointing Maven at it correctly then the artifacts corresponding to the
dependencies listed in your pom should be downloaded and put in your local
repository.

1) Can you confirm whether you have added a dependency to your pom which
includes the commons codec classes that you are using?
2)  Can you please attach a copy of your settings.xml file
3) With regards to these artifacts that you have installed, are they
publicly available jars which can be found on the central repo or jars that
you have created yourself?
4) If you run 'mvn -U compile' it forces a check for updates on your
dependencies. What output do you get when you do this? Is it able to
succesfully connect to your Nexus instance?


On Mon, Apr 20, 2009 at 9:43 AM, MS21 subramanian.me...@wipro.com wrote:


 This i have tried and its working. What i am trying to do is i have created
 a
 repository in NEXUS

 http://localhost:8080/nexus-webapp-1.3.2/content/repositories/IBRepos/

 I have added couple of aritifacts in this (jar files). and using the
 classes
 from this artifact

 I modified the POM and settings.xml in my sample to point to this..When i
 build, its giving compilation error since its not in build path (this one i
 will fix)..Also i think it shud download the artificats to local repository
 under M2 folder.. but this is not happening..

 Pls confirm

 ---
 [INFO] Compilation failure
 C:\sample-echo\FileManager\src\main\java\org\xh\studies\App.java:[3,32]
 package
 org.apache.commons.codec does not exist






 Ian Petzer wrote:
 
  There is a very quick tutorial on the Maven site which should get you up
  and
  running with a very basic pom file and standardised directory structure.
 
  You can find it here:
 
 http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
 
  You don't actually need a settings.xml file to run Maven so I would
  suggest
  that you delete/move the one you have created and go through the
 tutorial.
  Once you have finished that you will have a Maven project which will
  retrieve your dependencies from the main Maven site. It will then be easy
  to
  create a settings.xml file to use your Nexus repository.
 
  If you have problems, you will need to post the details of the error
  message
  that you receive.
 
 
  On Mon, Apr 20, 2009 at 6:54 AM, MS21 subramanian.me...@wipro.com
 wrote:
 
 
  Hi Ian,n'
   We have a Nexus software installed, created a local repostiory and
 added
  some basic artificats
  . I am new to Maven so trying to configure a simple project and point it
  to
  this repository.
 
  Could you pls let me know the steps or give URL which contains these
  details.
 
 
 
 
 
  Ian Petzer wrote:
  
   Hi,
  
   Could you please post the details of the error message that was
  displayed.
  
   Also, please attach your settings.xml file.
  
   Ian
  
   On Fri, Apr 17, 2009 at 3:03 PM, MS21 subramanian.me...@wipro.com
  wrote:
  
  
   Hi,
We are new to Maven and trying to build a project , it shows Not
 able
  to
   download from the URL.
  
   I am not really sure if its a proxy issue, though the network we were
   using
   does not have any proxy  user ids for that.
  
   We actually tried changing the settings.xml and pointed it to maven2
   repos
   (http://repo1.maven.org/maven2/). Later we changed it to our local
   repository URL. But when we run it it was saying cannot download from
  the
   URL.- http://repo1.maven.org/maven2/
  
   We are not sure if its still pointing to the old URL or internally it
   uses
   Maven url.
  
   Could you pls guide us..
   --
   View this message in context:
  
 
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23098266.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
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23130747.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
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23132545.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: Problem while building using Maven

2009-04-20 Thread MS21

I am attaching the settings.xml and POM.xml.

These are std jar's which are available in maven2 repos. i just added some
common-code, avalon framework into my repository for testing purpose. Do i
still need to declare dependencies..

I ran mvn -U command and it shows build successfull. It behaves differently
if i try to change the code and package again

Could you pls guide me on this. http://www.nabble.com/file/p23134095/pom.xml
pom.xml  http://www.nabble.com/file/p23134095/Copy%2Bof%2Bsettings.xml
Copy+of+settings.xml 
-- 
View this message in context: 
http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23134095.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: resources:copy-resources

2009-04-20 Thread jieryn
Hi Sean,

On Fri, Apr 17, 2009 at 7:08 PM, Sean Owen
sean.o...@positiveenergyusa.com wrote:

 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
 http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdpose/groupId
  artifactIdposnet/artifactId
  packagingwar/packaging
  version1.1.1-SNAPSHOT/version
  namePositive Energy Web/name

  build
    plugins
      plugin
        artifactIdmaven-resources-plugin/artifactId
        executions
          execution
            phasevalidate/phase
            goals
              goalcopy-resources/goal
            /goals
            configuration
              outputDirectorysrc/main/webapp/clients/pse/outputDirectory
              resources
                resource

 directory/opt/pose/main/clients/pse/trunk/src/main/resources/webclientconfig/clients/pse/assets//directory
                  filteringtrue/filtering
                /resource
              /resources
            /configuration
          /execution
        /executions
      /plugin
    /plugins
  /build
 /project

Strictly, you've configured a single execution of the
resources:copy-resources goal. You then attached that configuration to
the build in the validate life cycle phase. You have no configuration
defined for any default resources:copy-resources goal.

 If I run mvn resources:copy-resources with the above pom, I get the same
 error, asking for outputDirectory and resources, both of which are plainly
 specified above.

No doubt! Try just copy and pasting your configuration for this plugin
into buildpluginManagementpluginsplugin.. then
re-run your direct execution via mvn resources:copy-resources.

 I've consulted every coworker with any maven experience, and they're all
 mystified.

Yikes! That's kind of discouraging... I'm sorry.

Good luck,
-jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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



Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
yes you are right.

It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.

will lock down the version is the pom.

thanks for your help

2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com:
 Have you locked down the version of surefire you are using in your pom?

 if you have not locked it down, then you will be picking up a newer
 version of surefire with 2.1.0.

 AFAIK, a newer version of surefire has issues passing system
 properties to the forked process.

 in any case you should always lock down the versions of plugins that
 you are using or else your build is not fully reproducible

 -Stephen

 2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:
 Hi

 We use the command line to pass on system properties to the java
 virtual machine when running our Hudson builds on a Linux box. It used
 to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
 stopped working altogether. The system properties just never make it
 to the java virtual machine.

 I have created a small test project and indeed it does not work at
 all. I have attached it in case you want to give it a go. [it got
 blocked so sending without attachment]

 This should work just fine with maven 2.0.9

 mvn2.0.9 -Dsystem.test.property=test test

 But this will fail

 mvn2.1 -Dsystem.test.property=test test

 The java code simply does this

 assertTrue( System.getProperty(system.test.property) != null);


 Any thoughts

 --


 -- e

 -
 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





-- 


-- e

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



RE: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Martin Gainty

i was told the passing hierarchy is

System(OS)
passes to
JVM
passes to
Maven

Maven cannot populate properties up to parent JVM (so other JVM threads can use 
them)
JVM cannot populate properties to System-OS space (so other system processes 
can use them)

please confirm,
Martin 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






 Date: Mon, 20 Apr 2009 12:57:54 +0100
 Subject: Re: maven 2.1.0 not passing on system properties to java virtual 
 machine
 From: cpsmadn...@googlemail.com
 To: users@maven.apache.org
 
 yes you are right.
 
 It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.
 
 will lock down the version is the pom.
 
 thanks for your help
 
 2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com:
  Have you locked down the version of surefire you are using in your pom?
 
  if you have not locked it down, then you will be picking up a newer
  version of surefire with 2.1.0.
 
  AFAIK, a newer version of surefire has issues passing system
  properties to the forked process.
 
  in any case you should always lock down the versions of plugins that
  you are using or else your build is not fully reproducible
 
  -Stephen
 
  2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:
  Hi
 
  We use the command line to pass on system properties to the java
  virtual machine when running our Hudson builds on a Linux box. It used
  to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
  stopped working altogether. The system properties just never make it
  to the java virtual machine.
 
  I have created a small test project and indeed it does not work at
  all. I have attached it in case you want to give it a go. [it got
  blocked so sending without attachment]
 
  This should work just fine with maven 2.0.9
 
  mvn2.0.9 -Dsystem.test.property=test test
 
  But this will fail
 
  mvn2.1 -Dsystem.test.property=test test
 
  The java code simply does this
 
  assertTrue( System.getProperty(system.test.property) != null);
 
 
  Any thoughts
 
  --
 
 
  -- e
 
  -
  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
 
 
 
 
 
 -- 
 
 
 -- e
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1b_explore_042009

Dependency on local web project war (netbeans)

2009-04-20 Thread pieter claassen
I have a netbeans project that requires to access sourcecode and
compiled code from a web project. If I set the dependency on the war
file, it just doesn't work (it works on a jar file). How do I access
code produced by a war project in netbeans?

Regards,
Pieter

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



duplicate snapshots copied by maven-dependency-plugin:copy-dependency

2009-04-20 Thread Reto Bachmann-Gmür
Hello

I'm copying dependencies with the following directive:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
version2.1/version
executions
execution
goals
goalcopy-dependencies/goal
/goals
idcopy-security-as-framework-bundles/id
configuration
useRepositoryLayouttrue/useRepositoryLayout 
outputDirectory${basedir}/target/framework-bundles/outputDirectory  
includeArtifactIdsorg.trialox.platform.security/includeArtifactIds
/configuration
/execution
/plugin

In the created directory
target/framework-bundles/org/trialox/org.trialox.platform.security/0.2-SNAPSHOT/
 I have two files:
org.trialox.platform.security-0.2-20090416.175419-944.jar as well as
org.trialox.platform.security-0.2-SNAPSHOT.jar

I'd like to have only one version of the snapshot dependency and haven't
found out how to do this, using overwriteSnapshots and stripVersion had
no effect.

Cheers,
reto

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



Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Brian Fox
Please file a jira for this and use 2.1.0 as the affects version so we 
can get it fixed in 2.1.1


edward eric pedersson wrote:

Hi

We use the command line to pass on system properties to the java
virtual machine when running our Hudson builds on a Linux box. It used
to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
stopped working altogether. The system properties just never make it
to the java virtual machine.

I have created a small test project and indeed it does not work at
all. I have attached it in case you want to give it a go. [it got
blocked so sending without attachment]

This should work just fine with maven 2.0.9

mvn2.0.9 -Dsystem.test.property=test test

But this will fail

mvn2.1 -Dsystem.test.property=test test

The java code simply does this

assertTrue( System.getProperty(system.test.property) != null);


Any thoughts

  


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



Re: duplicate snapshots copied by maven-dependency-plugin:copy-dependency

2009-04-20 Thread Brian Fox
This could only happen in two passes of the plugin without a clean in 
between. The two files are indeed the same version, but it isn't 
checking the target folder exhaustively to see if there's a file there 
with another timestamped version...the overwrite only gets triggered if 
the exact same file already exists.


Reto Bachmann-Gmür wrote:

Hello

I'm copying dependencies with the following directive:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
version2.1/version
executions
execution
goals
goalcopy-dependencies/goal
/goals
idcopy-security-as-framework-bundles/id
configuration
useRepositoryLayouttrue/useRepositoryLayout 
outputDirectory${basedir}/target/framework-bundles/outputDirectory  
includeArtifactIdsorg.trialox.platform.security/includeArtifactIds
/configuration
/execution
/plugin

In the created directory
target/framework-bundles/org/trialox/org.trialox.platform.security/0.2-SNAPSHOT/
 I have two files:
org.trialox.platform.security-0.2-20090416.175419-944.jar as well as
org.trialox.platform.security-0.2-SNAPSHOT.jar

I'd like to have only one version of the snapshot dependency and haven't
found out how to do this, using overwriteSnapshots and stripVersion had
no effect.

Cheers,
reto

-
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: duplicate snapshots copied by maven-dependency-plugin:copy-dependency

2009-04-20 Thread Reto Bachmann-Gmür
no this is after a mvn clean package

cheers,
reto

Brian Fox said the following on 04/20/2009 03:27 PM:
 This could only happen in two passes of the plugin without a clean in
 between. The two files are indeed the same version, but it isn't
 checking the target folder exhaustively to see if there's a file there
 with another timestamped version...the overwrite only gets triggered if
 the exact same file already exists.
 
 Reto Bachmann-Gmür wrote:
 Hello

 I'm copying dependencies with the following directive:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 version2.1/version
 executions
 execution
 goals
 goalcopy-dependencies/goal
 /goals
 idcopy-security-as-framework-bundles/id
 configuration
 useRepositoryLayouttrue/useRepositoryLayout   
 outputDirectory${basedir}/target/framework-bundles/outputDirectory   
 includeArtifactIdsorg.trialox.platform.security/includeArtifactIds
 /configuration
 /execution
 /plugin

 In the created directory
 target/framework-bundles/org/trialox/org.trialox.platform.security/0.2-SNAPSHOT/

  I have two files:
 org.trialox.platform.security-0.2-20090416.175419-944.jar as well as
 org.trialox.platform.security-0.2-SNAPSHOT.jar

 I'd like to have only one version of the snapshot dependency and haven't
 found out how to do this, using overwriteSnapshots and stripVersion had
 no effect.

 Cheers,
 reto

 -
 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: Problem while building using Maven

2009-04-20 Thread Ian Petzer
What do you change in the code to make it stop working? Could you include a
full transcript of what Maven logs when you encounter this error?

Also, do you need to use that proxy you have defined in the settings.xml?

One more thing, in your pom.xml you have defined your repo, but you have
defined it again in the settings.xml file in a profile called 'dev'. Do you
only want to use this repo under certain conditions or do you want to use it
the whole time?

On Mon, Apr 20, 2009 at 11:25 AM, MS21 subramanian.me...@wipro.com wrote:


 I am attaching the settings.xml and POM.xml.

 These are std jar's which are available in maven2 repos. i just added some
 common-code, avalon framework into my repository for testing purpose. Do i
 still need to declare dependencies..

 I ran mvn -U command and it shows build successfull. It behaves differently
 if i try to change the code and package again

 Could you pls guide me on this.
 http://www.nabble.com/file/p23134095/pom.xml
 pom.xml  http://www.nabble.com/file/p23134095/Copy%2Bof%2Bsettings.xml
 Copy+of+settings.xml
 --
 View this message in context:
 http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23134095.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: Problem while building using Maven

2009-04-20 Thread MS21

Ian i have tried to declare a dependency in POM.xml for a single artifact
which is in the nexus repository..
but when we run mvn package it shows this error

) mockobjects:com.mockobjects:jar:0.09

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=mockobjects
-DartifactId=com.mockobject
s -Dversion=0.09 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:

  mvn deploy:deploy-file -DgroupId=mockobjects
-DartifactId=com.mockobjects
-Dversion=0.09 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[
id]


It not able to find the custom artifact though its present in the nexus
repos. Once when we run the mvn install command as shown then it compiles. 
Is it a access issue or any other declarations we need to make or any
mistake made during artifact upload. 

Could you pls guide us.
-- 
View this message in context: 
http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23137616.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: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
Will do once I work out how to submit issues in your Jira

2009/4/20 Brian Fox bri...@infinity.nu:
 Please file a jira for this and use 2.1.0 as the affects version so we can
 get it fixed in 2.1.1

 edward eric pedersson wrote:

 Hi

 We use the command line to pass on system properties to the java
 virtual machine when running our Hudson builds on a Linux box. It used
 to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
 stopped working altogether. The system properties just never make it
 to the java virtual machine.

 I have created a small test project and indeed it does not work at
 all. I have attached it in case you want to give it a go. [it got
 blocked so sending without attachment]

 This should work just fine with maven 2.0.9

 mvn2.0.9 -Dsystem.test.property=test test

 But this will fail

 mvn2.1 -Dsystem.test.property=test test

 The java code simply does this

 assertTrue( System.getProperty(system.test.property) != null);


 Any thoughts



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





-- 


-- e

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



Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread John Casey

Another couple things to consider:

1. in Surefire, you should probably use the systemProperties to pass on 
system properties explicitly. Just a suggestion.


2. For actual system properties, it might be wiser to set them in 
MAVEN_OPTS instead of the mvn -D option. This is because Maven has 
deprecated the propagation of -D options into system properties, in 
order to make it a little friendlier for people trying to run multiple 
maven instances in a single JVM (without getting cross-pollution of 
sysprops).


  Using MAVEN_OPTS (which IIRC you can set in Hudson), you can still 
specify '-Dsystem.property=foo' and have it work fine.


-john

edward eric pedersson wrote:

yes you are right.

It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.

will lock down the version is the pom.

thanks for your help

2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com:

Have you locked down the version of surefire you are using in your pom?

if you have not locked it down, then you will be picking up a newer
version of surefire with 2.1.0.

AFAIK, a newer version of surefire has issues passing system
properties to the forked process.

in any case you should always lock down the versions of plugins that
you are using or else your build is not fully reproducible

-Stephen

2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:

Hi

We use the command line to pass on system properties to the java
virtual machine when running our Hudson builds on a Linux box. It used
to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
stopped working altogether. The system properties just never make it
to the java virtual machine.

I have created a small test project and indeed it does not work at
all. I have attached it in case you want to give it a go. [it got
blocked so sending without attachment]

This should work just fine with maven 2.0.9

mvn2.0.9 -Dsystem.test.property=test test

But this will fail

mvn2.1 -Dsystem.test.property=test test

The java code simply does this

assertTrue( System.getProperty(system.test.property) != null);


Any thoughts

--


-- e

-
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: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread edward eric pedersson
I need to pass the options on the command line so using
systemProperties might not work for me unless I misunderstand what you
mean.

How do you pass the -DpropertyName using the MAVEN_OPTS ? I m pretty
sure that was the first thing I tried before adding them as system
properties properly as described in my email earlier.

I did search for documentation but it was kind of sparse.

2009/4/20 John Casey jdca...@commonjava.org:
 Another couple things to consider:

 1. in Surefire, you should probably use the systemProperties to pass on
 system properties explicitly. Just a suggestion.

 2. For actual system properties, it might be wiser to set them in MAVEN_OPTS
 instead of the mvn -D option. This is because Maven has deprecated the
 propagation of -D options into system properties, in order to make it a
 little friendlier for people trying to run multiple maven instances in a
 single JVM (without getting cross-pollution of sysprops).

  Using MAVEN_OPTS (which IIRC you can set in Hudson), you can still specify
 '-Dsystem.property=foo' and have it work fine.

 -john

 edward eric pedersson wrote:

 yes you are right.

 It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.

 will lock down the version is the pom.

 thanks for your help

 2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com:

 Have you locked down the version of surefire you are using in your pom?

 if you have not locked it down, then you will be picking up a newer
 version of surefire with 2.1.0.

 AFAIK, a newer version of surefire has issues passing system
 properties to the forked process.

 in any case you should always lock down the versions of plugins that
 you are using or else your build is not fully reproducible

 -Stephen

 2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:

 Hi

 We use the command line to pass on system properties to the java
 virtual machine when running our Hudson builds on a Linux box. It used
 to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
 stopped working altogether. The system properties just never make it
 to the java virtual machine.

 I have created a small test project and indeed it does not work at
 all. I have attached it in case you want to give it a go. [it got
 blocked so sending without attachment]

 This should work just fine with maven 2.0.9

 mvn2.0.9 -Dsystem.test.property=test test

 But this will fail

 mvn2.1 -Dsystem.test.property=test test

 The java code simply does this

 assertTrue( System.getProperty(system.test.property) != null);


 Any thoughts

 --


 -- e

 -
 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





-- 


-- e

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



Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread John Casey
Well, if you want, go ahead and file a JIRA for it in 
http://jira.codehaus.org/browse/MNG and we can at least take a look to 
make sure there isn't a better way.


FWIW, if you put the systemProperties entry in place with a value of 
'${system.property}', then use -Dsystem.property=foo in the mvn command 
line, that will probably work. It's at least something to try.


-john

edward eric pedersson wrote:

I need to pass the options on the command line so using
systemProperties might not work for me unless I misunderstand what you
mean.

How do you pass the -DpropertyName using the MAVEN_OPTS ? I m pretty
sure that was the first thing I tried before adding them as system
properties properly as described in my email earlier.

I did search for documentation but it was kind of sparse.

2009/4/20 John Casey jdca...@commonjava.org:

Another couple things to consider:

1. in Surefire, you should probably use the systemProperties to pass on
system properties explicitly. Just a suggestion.

2. For actual system properties, it might be wiser to set them in MAVEN_OPTS
instead of the mvn -D option. This is because Maven has deprecated the
propagation of -D options into system properties, in order to make it a
little friendlier for people trying to run multiple maven instances in a
single JVM (without getting cross-pollution of sysprops).

 Using MAVEN_OPTS (which IIRC you can set in Hudson), you can still specify
'-Dsystem.property=foo' and have it work fine.

-john

edward eric pedersson wrote:

yes you are right.

It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.

will lock down the version is the pom.

thanks for your help

2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com:

Have you locked down the version of surefire you are using in your pom?

if you have not locked it down, then you will be picking up a newer
version of surefire with 2.1.0.

AFAIK, a newer version of surefire has issues passing system
properties to the forked process.

in any case you should always lock down the versions of plugins that
you are using or else your build is not fully reproducible

-Stephen

2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:

Hi

We use the command line to pass on system properties to the java
virtual machine when running our Hudson builds on a Linux box. It used
to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
stopped working altogether. The system properties just never make it
to the java virtual machine.

I have created a small test project and indeed it does not work at
all. I have attached it in case you want to give it a go. [it got
blocked so sending without attachment]

This should work just fine with maven 2.0.9

mvn2.0.9 -Dsystem.test.property=test test

But this will fail

mvn2.1 -Dsystem.test.property=test test

The java code simply does this

assertTrue( System.getProperty(system.test.property) != null);


Any thoughts

--


-- e

-
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








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



Re: Dependency on local web project war (netbeans)

2009-04-20 Thread pieter claassen
ok, I have narrowed the problem down as probably a maven issue.

I have parent.pom and two modules client and server. Client is a war
and server is a jar. server needs to get hold of client's source
because db4o needs the source for both the client and server (to
configure it for each java.class it will store).

I have the following dep in server.pom
   dependency
groupIdcom.musmato/groupId
artifactIdclient.war/artifactId
version1.0/version
typewar/type
scopecompile/scope
/dependency

But when I run mvn clean install on the parent, I can see it build the
client.war, pop it in the local mvn repo and then the server build
fails to find any of the depedency code.

Any ideas? Should this work? I assume it is pretty normal to share
code between different maven projects?? Even if one of them is a war?

Cheers,
P

On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen pie...@claassen.co.uk wrote:
 I have a netbeans project that requires to access sourcecode and
 compiled code from a web project. If I set the dependency on the war
 file, it just doesn't work (it works on a jar file). How do I access
 code produced by a war project in netbeans?

 Regards,
 Pieter


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



WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
Hello,

 I have a war project for some web services that is having
dependency issues.  I am getting multiple versions of my XML apis and
XML parsers in the resulting war which results in my having to manually
remove the older versions to avoid server-side SAAJ exceptions when
attempting to access the SOAP envelope.

 

For example, the lib folder of the war includes:

xml-apis-1.0.b2.jar

xml-apis-1.3.02.jar

xercesImpl-2.6.2.jar

xercesImpl-2.9.1.jar

jdom-1.0.jar

jdom-1.1.jar

 

I would love to be able to get the duplicates removed so I can avoid
this manual step in my deployment.  I am using the default dependency
plugin options (no configuration changes).   Any help would be
appreciated.

 

Many thanks!

Dave

 

 



Problem in accessing Custom Artifacts added in Nexus repository

2009-04-20 Thread MS21

Hi,
 I have tried to declare a dependency in POM.xml for a single artifact which
is in the nexus repository.. 
but when we run mvn package it shows this error 

) mockobjects:com.mockobjects:jar:0.09 

  Try downloading the file manually from the project website. 

  Then, install it using the command: 
  mvn install:install-file -DgroupId=mockobjects
-DartifactId=com.mockobject 
s -Dversion=0.09 -Dpackaging=jar -Dfile=/path/to/file 

  Alternatively, if you host your own repository you can deploy the file
there: 

  mvn deploy:deploy-file -DgroupId=mockobjects
-DartifactId=com.mockobjects 
-Dversion=0.09 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[ 
id] 


It not able to find the custom artifact though its present in the nexus
repos. Once when we run the mvn install command as shown then it compiles. 
Is it a access issue or any other declarations we need to make or any
mistake made during artifact upload. 

Could you pls guide us.
-- 
View this message in context: 
http://www.nabble.com/Problem-in-accessing-Custom-Artifacts-added-in-Nexus-repository-tp23140426p23140426.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: Dependency on local web project war (netbeans)

2009-04-20 Thread Siegfried Goeschl
Hi Pieter,

you would like to use transitive dependencies using a WAR - this did not
work in the past and I doubt that it works now. Having said that I would
help if you have shared project between client and server. And do really
need the source or only the class files?! If yes that approach would not
work either ...

Cheers,

Siegfried Goeschl

pieter claassen wrote:
 ok, I have narrowed the problem down as probably a maven issue.

 I have parent.pom and two modules client and server. Client is a war
 and server is a jar. server needs to get hold of client's source
 because db4o needs the source for both the client and server (to
 configure it for each java.class it will store).

 I have the following dep in server.pom
dependency
 groupIdcom.musmato/groupId
 artifactIdclient.war/artifactId
 version1.0/version
 typewar/type
 scopecompile/scope
 /dependency

 But when I run mvn clean install on the parent, I can see it build the
 client.war, pop it in the local mvn repo and then the server build
 fails to find any of the depedency code.

 Any ideas? Should this work? I assume it is pretty normal to share
 code between different maven projects?? Even if one of them is a war?

 Cheers,
 P

 On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen pie...@claassen.co.uk 
 wrote:
   
 I have a netbeans project that requires to access sourcecode and
 compiled code from a web project. If I set the dependency on the war
 file, it just doesn't work (it works on a jar file). How do I access
 code produced by a war project in netbeans?

 Regards,
 Pieter

 

 -
 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: WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
Hello again,
I've been doing more digging and below is a copy of the mvn
dependency:tree output.  With the exception of the jdom 1.0 and 1.1
(1.1 has been moved to a new groupId) there don't appear to be any of
the duplicate dependencies that are being added into my WAR.  

So the question is:  How are these duplicates ending up in my WAR file
if they aren't showing up in the dependency tree?  I'm lost...

Thanks in advance for any help!
Dave


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]

[INFO] Building curriculum-service-ws Maven Webapp
[INFO]task-segment: [dependency:tree]
[INFO]

[INFO] [dependency:tree]
[INFO] edu.letu.curriculum:curriculum-service-ws:war:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:3.8.1:test (scope not updated to compile)
[INFO] +-
edu.letu.curriculum:curriculum-service:jar:1.0-SNAPSHOT:compile
[INFO] |  \- edu.letu.curriculum:curriculum-dao:jar:1.0-SNAPSHOT:compile
[INFO] | \- joda-time:joda-time-hibernate:jar:1.1:compile
[INFO] |+- commons-logging:commons-logging-api:jar:1.0.4:compile
[INFO] |+- hsqldb:hsqldb:jar:1.7.3.3:compile
[INFO] |+- ehcache:ehcache:jar:1.1:compile
[INFO] |+- cglib:cglib-full:jar:2.0.2:compile
[INFO] |\- antlr:antlr:jar:2.7.2:compile
[INFO] +- edu.letu.curriculum:curriculum-api:jar:1.0-SNAPSHOT:compile
[INFO] |  +-
edu.letu.curriculum:curriculum-domain:jar:1.0-SNAPSHOT:compile
[INFO] |  \- edu.letu.common:lucommon-api:jar:1.9-SNAPSHOT:compile
[INFO] +- org.springframework:spring:jar:2.5.6:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.springframework:spring-mock:jar:2.0.8:test
[INFO] +- org.springframework:spring-webmvc:jar:2.5.6:compile
[INFO] |  +- org.springframework:spring-beans:jar:2.5.6:compile
[INFO] |  +- org.springframework:spring-context:jar:2.5.6:compile
[INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  +-
org.springframework:spring-context-support:jar:2.5.6:compile
[INFO] |  +- org.springframework:spring-core:jar:2.5.6:compile
[INFO] |  \- org.springframework:spring-web:jar:2.5.6:compile
[INFO] +- org.springframework.ws:spring-ws-core:jar:1.5.6:compile
[INFO] |  +- org.springframework.ws:spring-xml:jar:1.5.6:compile
[INFO] |  +- org.springframework:spring-aop:jar:2.5.6:compile
[INFO] |  +- wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO] |  \- stax:stax-api:jar:1.0.1:compile
[INFO] +- org.springframework.ws:spring-oxm:jar:1.5.6:compile
[INFO] +- javax.servlet:servlet-api:jar:2.4:provided
[INFO] +- commons-dbcp:commons-dbcp:jar:1.2.2:compile
[INFO] |  \- commons-pool:commons-pool:jar:1.3:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.6:runtime
[INFO] +- org.jdom:jdom:jar:1.1:compile
[INFO] +- jaxen:jaxen:jar:1.1:compile
[INFO] |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  +- jdom:jdom:jar:1.0:compile
[INFO] |  +- xml-apis:xml-apis:jar:1.3.02:compile
[INFO] |  \- xom:xom:jar:1.0:compile
[INFO] | +- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO] | \- com.ibm.icu:icu4j:jar:2.6.1:compile
[INFO] +- javax.xml.soap:saaj-api:jar:1.3:runtime
[INFO] |  \- javax.activation:activation:jar:1.1:runtime
[INFO] +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3:runtime
[INFO] +- xalan:xalan:jar:2.7.1:runtime (scope not updated to compile)
[INFO] |  \- xalan:serializer:jar:2.7.1:runtime
[INFO] +- xerces:xercesImpl:jar:2.9.1:compile
[INFO] \- edu.letu.common:lucommon-domain:jar:1.9-SNAPSHOT:compile
[INFO]+- edu.letu.common:lucommon-util:jar:1.9-SNAPSHOT:compile
[INFO]+- edu.letu.common:lucommon-hibernate:jar:1.9-SNAPSHOT:compile
[INFO]|  \- org.hibernate:hibernate:jar:3.2.4.sp1:compile
[INFO]| +- net.sf.ehcache:ehcache:jar:1.2.3:compile
[INFO]| +- javax.transaction:jta:jar:1.0.1B:compile
[INFO]| +- asm:asm-attrs:jar:1.5.3:compile
[INFO]| +- cglib:cglib:jar:2.1_3:compile
[INFO]| \- asm:asm:jar:1.5.3:compile
[INFO]+- org.jibx:jibx-run:jar:1.2.1:compile
[INFO]|  \- org.codehaus.woodstox:wstx-asl:jar:3.2.1:compile
[INFO]+- org.jibx:jibx-extras:jar:1.2.1:compile
[INFO]+- joda-time:joda-time:jar:1.6:compile
[INFO]\- commons-collections:commons-collections:jar:3.2:compile
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Apr 20 12:14:22 CDT 2009
[INFO] Final Memory: 14M/254M
[INFO]




-Original Message-
From: Wolff, Dave [mailto:davidwo...@letu.edu] 
Sent: Monday, April 20, 2009 11:39 AM
To: users@maven.apache.org
Subject: WAR Dependency Mediation Problem

Hello,

 I have a war project for some web services that is having

Re: WAR Dependency Mediation Problem

2009-04-20 Thread Wayne Fay
 So the question is:  How are these duplicates ending up in my WAR file
 if they aren't showing up in the dependency tree?  I'm lost...

Try again with mvn clean package. It is possibly/likely that the
extra jars are from earlier builds and /target has not been cleaned
up.

Wayne

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



Maven module only for site?

2009-04-20 Thread solo1970

Hello everyone,

Here is what I need to do:

inlcude a moduleC/module in my aggregator (multi-module) POM that would
ONLY BE executed when doing a mvn site command, not when I do a mvn
compile, package or deploy...

Any ideas on how to do this???

Sonia
-- 
View this message in context: 
http://www.nabble.com/Maven-module-only-for-site--tp23141464p23141464.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: Dependency on local web project war (netbeans)

2009-04-20 Thread pieter claassen
I am trying to move to netbeans for dev so it is a good question
whether I need the source or just the compiled code. Not finding the
symbols I assume is a failure to access the .class files? Or does
netbeans need access to the source?

How do I share the project between the client and the server? You mean
unify them into 1 project?

I am a bit stumped here because I imagine that this is such a normal
requirement. People write project that import classes from other local
projects all the time. The problem is just how to do this with maven?

Thanks for the feedback.

P

On Mon, Apr 20, 2009 at 6:58 PM, Siegfried Goeschl
siegfried.goes...@it20one.at wrote:
 Hi Pieter,

 you would like to use transitive dependencies using a WAR - this did not
 work in the past and I doubt that it works now. Having said that I would
 help if you have shared project between client and server. And do really
 need the source or only the class files?! If yes that approach would not
 work either ...

 Cheers,

 Siegfried Goeschl

 pieter claassen wrote:
 ok, I have narrowed the problem down as probably a maven issue.

 I have parent.pom and two modules client and server. Client is a war
 and server is a jar. server needs to get hold of client's source
 because db4o needs the source for both the client and server (to
 configure it for each java.class it will store).

 I have the following dep in server.pom
        dependency
             groupIdcom.musmato/groupId
             artifactIdclient.war/artifactId
             version1.0/version
             typewar/type
             scopecompile/scope
         /dependency

 But when I run mvn clean install on the parent, I can see it build the
 client.war, pop it in the local mvn repo and then the server build
 fails to find any of the depedency code.

 Any ideas? Should this work? I assume it is pretty normal to share
 code between different maven projects?? Even if one of them is a war?

 Cheers,
 P

 On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen pie...@claassen.co.uk 
 wrote:

 I have a netbeans project that requires to access sourcecode and
 compiled code from a web project. If I set the dependency on the war
 file, it just doesn't work (it works on a jar file). How do I access
 code produced by a war project in netbeans?

 Regards,
 Pieter



 -
 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: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread John Casey
Should just be a matter of registering a new username for yourself, then 
clicking the Create Issue link in the top menu at 
http://jira.codehaus.org/browse/MNG


Let me know if that doesn't work for you.

-john

edward eric pedersson wrote:

Will do once I work out how to submit issues in your Jira

2009/4/20 Brian Fox bri...@infinity.nu:

Please file a jira for this and use 2.1.0 as the affects version so we can
get it fixed in 2.1.1

edward eric pedersson wrote:

Hi

We use the command line to pass on system properties to the java
virtual machine when running our Hudson builds on a Linux box. It used
to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
stopped working altogether. The system properties just never make it
to the java virtual machine.

I have created a small test project and indeed it does not work at
all. I have attached it in case you want to give it a go. [it got
blocked so sending without attachment]

This should work just fine with maven 2.0.9

mvn2.0.9 -Dsystem.test.property=test test

But this will fail

mvn2.1 -Dsystem.test.property=test test

The java code simply does this

assertTrue( System.getProperty(system.test.property) != null);


Any thoughts



-
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: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Frédéric Camblor
John,
I am in the same case of edward and want to enable/disable test families
while executing my maven builds.

For instance, I'll want to execute every data access tests once per day
-and not after each commits because it takes time !-
For some other tests, I'd like to execute only selenium tests (which rely on
deployed app and take long long time too) = this tests will be planned
twice per week.

My personnal test framework allows to tag tests with families in order to
execute (or not) tests depending on system properties.

By exemple, if I run :
mvn test -Dtest.families.includes=SELENIUM,DATA_ACCESS
every heavy tests (tests which take a long time to execute !) will be
executed.
Moreover, I'll be able to execute regression pre-emptive tests after each
commits by executing the following command line :
mvn test -Dtest.families.includes=NON-REGRESSION

I can't see how I could define these per-build properties (neither in
MAVEN_OPTS nor in my pom.xml file since it will be defined for every build I
run !) except by defining some profiles for that.
I don't really thing this would be the better way since I could have lots of
profiles (for now on, I have approx 6-7 test families ... and I don't want
to make a cartesian product of all of these families with profiles !)


2009/4/20 John Casey jdca...@commonjava.org

 Another couple things to consider:

 1. in Surefire, you should probably use the systemProperties to pass on
 system properties explicitly. Just a suggestion.

 2. For actual system properties, it might be wiser to set them in
 MAVEN_OPTS instead of the mvn -D option. This is because Maven has
 deprecated the propagation of -D options into system properties, in order to
 make it a little friendlier for people trying to run multiple maven
 instances in a single JVM (without getting cross-pollution of sysprops).

  Using MAVEN_OPTS (which IIRC you can set in Hudson), you can still specify
 '-Dsystem.property=foo' and have it work fine.

 -john


 edward eric pedersson wrote:

 yes you are right.

 It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.

 will lock down the version is the pom.

 thanks for your help

 2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com:

 Have you locked down the version of surefire you are using in your pom?

 if you have not locked it down, then you will be picking up a newer
 version of surefire with 2.1.0.

 AFAIK, a newer version of surefire has issues passing system
 properties to the forked process.

 in any case you should always lock down the versions of plugins that
 you are using or else your build is not fully reproducible

 -Stephen

 2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:

 Hi

 We use the command line to pass on system properties to the java
 virtual machine when running our Hudson builds on a Linux box. It used
 to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
 stopped working altogether. The system properties just never make it
 to the java virtual machine.

 I have created a small test project and indeed it does not work at
 all. I have attached it in case you want to give it a go. [it got
 blocked so sending without attachment]

 This should work just fine with maven 2.0.9

 mvn2.0.9 -Dsystem.test.property=test test

 But this will fail

 mvn2.1 -Dsystem.test.property=test test

 The java code simply does this

 assertTrue( System.getProperty(system.test.property) != null);


 Any thoughts

 --


 -- e

 -
 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




-- 
Frédéric Camblor


Simple maven question

2009-04-20 Thread Tony Giaccone
I've been using maven for a while now, but have finally had to go deeper
then just the basics of a pom file.  As a result I now am curious about the
internal workings of maven.

I understand that there are phases to a build, and that each phase is
composed of goals. I also understand that plug-ins can add new goals to the
list of goals to be accomplished/dispatched in a phase.

My questions are all about goals.

How are goals ordered in a phase?

What determines the order in which a set of goals are dispatched?

Can that ordering be seen?
Can it be changed?
When a new goal is added to a phase how is it placed in the list of goals
for that phase, first, last, indeterminate?


Curious minds want to know.



Tony

PS I've done a fair amount of reading  but haven't really found anything on
this topic. If you can point me to something that answers my questions, that
would ROCK.


mvn site : per version folder

2009-04-20 Thread nicolas de loof
Hi,
When I deploy my project (gwt-maven-plugin) site it is set as site root,
with no version number subfolder.
I'd like to avoid users to complain about doc not matching current release.
How can I for the site plugin to deploy under /artifact/version/
(I inherit mojo-parent:18)

Cheers,
Nicolas


RE: WAR Dependency Mediation Problem

2009-04-20 Thread Wolff, Dave
You're a life saver...that solved the issues.

Thanks!
Dave

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Monday, April 20, 2009 12:28 PM
To: Maven Users List
Subject: Re: WAR Dependency Mediation Problem

 So the question is:  How are these duplicates ending up in my WAR file
 if they aren't showing up in the dependency tree?  I'm lost...

Try again with mvn clean package. It is possibly/likely that the
extra jars are from earlier builds and /target has not been cleaned
up.

Wayne

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



-- 
BEGIN-ANTISPAM-VOTING-LINKS
--

Teach CanIt if this mail (ID 31760286) is spam:
Spam:http://antispam.letu.edu/canit/b.php?i=31760286m=6910a3624efbc=s
Not spam:http://antispam.letu.edu/canit/b.php?i=31760286m=6910a3624efbc=n
Forget vote: http://antispam.letu.edu/canit/b.php?i=31760286m=6910a3624efbc=f
--
END-ANTISPAM-VOTING-LINKS



Re: Simple maven question

2009-04-20 Thread Stephen Connolly
AFAIK the order is, for each phase:

1. lifecycle added goals, in the order they are defined in the lifecycle
2. project added goals in plugin order from the pom.

where it gets confusing is profiles and inherited plugins, and where
they go in the sequence

-Stephen

2009/4/20 Tony Giaccone tgiacc...@gmail.com:
 I've been using maven for a while now, but have finally had to go deeper
 then just the basics of a pom file.  As a result I now am curious about the
 internal workings of maven.

 I understand that there are phases to a build, and that each phase is
 composed of goals. I also understand that plug-ins can add new goals to the
 list of goals to be accomplished/dispatched in a phase.

 My questions are all about goals.

 How are goals ordered in a phase?

 What determines the order in which a set of goals are dispatched?

 Can that ordering be seen?
 Can it be changed?
 When a new goal is added to a phase how is it placed in the list of goals
 for that phase, first, last, indeterminate?


 Curious minds want to know.



 Tony

 PS I've done a fair amount of reading  but haven't really found anything on
 this topic. If you can point me to something that answers my questions, that
 would ROCK.


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



A style question about testing

2009-04-20 Thread Grant Rettke
Hi folks,

I've got a question for you about managing unit testing.

The situation that we are in is that right now, we have a single
module 'Products' that has a lot of classes in it. We know that
eventually we will refactor it into multiple modules (one for each
Product), but at this moment we have no clue when. However, we do know
that we have this goal in mind and that we would adhere to the
standard main/test structure in those separated modules

That said, there is a desire to get this stuff in place. The sooner I
have a plan there the sooner I feel like it might happen. Here is how
I am thinking I would do it:

For each product that we break out, create a module, and basically
don't have any source in it yet, just the tests, and add a test-time
dependency for the classes being tested (back to the mega module
basically).

This way all of the individual product moules would be in place, their
tests would be set up, developed and running, and it would allow for
developers to migrate over the product functionality source code when
they are ready.

Is this a good approach?

It makes sense, but I want to do idiomatic Maven, and I am just getting started.

I will give this a try tomorrow.

Best wishes,

Grant

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



Re: maven 2.1.0 not passing on system properties to java virtual machine

2009-04-20 Thread Frederic Camblor
John,
I am in the same case of edward and want to enable/disable test families
while executing my maven builds.

For instance, I'll want to execute every data access tests once per day
-and not after each commits because it takes time !-
For some other tests, I'd like to execute only selenium tests (which rely on
deployed app and take long long time too) = this tests will be planned
twice per week.

My personnal test framework allows to tag tests with families in order to
execute (or not) tests depending on system properties.

By exemple, if I run :
mvn test -Dtest.families.includes=SELENIUM,DATA_ACCESS
every heavy tests (tests which take a long time to execute !) will be
executed.
Moreover, I'll be able to execute regression pre-emptive tests after each
commits by executing the following command line :
mvn test -Dtest.families.includes=NON-REGRESSION

I can't see how I could define these per-build properties (neither in
MAVEN_OPTS nor in my pom.xml file since it will be defined for every build I
run !) except by defining some profiles for that.
I don't really thing this would be the better way since I could have lots of
profiles (for now on, I have approx 6-7 test families ... and I don't want
to make a cartesian product of all of these families with profiles !)


2009/4/20 John Casey jdca...@commonjava.org

 Another couple things to consider:

 1. in Surefire, you should probably use the systemProperties to pass on
 system properties explicitly. Just a suggestion.

 2. For actual system properties, it might be wiser to set them in
 MAVEN_OPTS instead of the mvn -D option. This is because Maven has
 deprecated the propagation of -D options into system properties, in order to
 make it a little friendlier for people trying to run multiple maven
 instances in a single JVM (without getting cross-pollution of sysprops).

  Using MAVEN_OPTS (which IIRC you can set in Hudson), you can still specify
 '-Dsystem.property=foo' and have it work fine.

 -john


 edward eric pedersson wrote:

 yes you are right.

 It seems 2.4.3 of the plugin is broken but 2.4.2 works just fine.

 will lock down the version is the pom.

 thanks for your help

 2009/4/20 Stephen Connolly stephen.alan.conno...@gmail.com:

 Have you locked down the version of surefire you are using in your pom?

 if you have not locked it down, then you will be picking up a newer
 version of surefire with 2.1.0.

 AFAIK, a newer version of surefire has issues passing system
 properties to the forked process.

 in any case you should always lock down the versions of plugins that
 you are using or else your build is not fully reproducible

 -Stephen

 2009/4/20 edward eric pedersson cpsmadn...@googlemail.com:

 Hi

 We use the command line to pass on system properties to the java
 virtual machine when running our Hudson builds on a Linux box. It used
 to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has
 stopped working altogether. The system properties just never make it
 to the java virtual machine.

 I have created a small test project and indeed it does not work at
 all. I have attached it in case you want to give it a go. [it got
 blocked so sending without attachment]

 This should work just fine with maven 2.0.9

 mvn2.0.9 -Dsystem.test.property=test test

 But this will fail

 mvn2.1 -Dsystem.test.property=test test

 The java code simply does this

 assertTrue( System.getProperty(system.test.property) != null);


 Any thoughts

 --


 -- e

 -
 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: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-04-20 Thread Arnaud HERITIER
Ping ??Nobody wants to test it ?
Without your help, will never be able to produce a plugin which replies to
your needs.
Cheers,

Arnaud

On Thu, Apr 16, 2009 at 10:42 AM, Arnaud HERITIER aherit...@gmail.comwrote:

 Hi Community,
   The recent release 2.6 of the maven-eclipse-plugin created many problems
 for all of those who had/wanted to store non-java files under src/*/java
 (which is required for wicket, ajdt, and probably others usecases).
   Even we have many integration tests in this plugin we didn't notice this
 issue because our testcases allow us to check that generated configuration
 files aren't evolving and that we are able to import and use a project in
 eclipse (too heavy to do).

   To fix this issue we (Barrie to be honest) improved the plugin to allow
 the usage of includes and excludes. :
 http://jira.codehaus.org/browse/MECLIPSE-104
   The documentation of these feature is here :

 http://maven.apache.org/plugins/maven-eclipse-plugin-2.7-SNAPSHOT/examples/specifying-source-path-inclusions-and-exclusions.html
 There are many broken links on the site and I don't know why. I'll
 investigate later.
 Others pages are the same in
 http://maven.apache.org/plugins/maven-eclipse-plugin/
 For AJDT project you can have a look at this page :
 http://maven.apache.org/plugins/maven-eclipse-plugin-
 2.7-SNAPSHOT/examples/ajdt-projects.html

 To test the plugin you have to add in your project or in your settings this
 repository :
 https://repository.apache.org/content/repositories/snapshots/
 (be careful to the https protocol)
 The last version I deployed is : 2.7-20090416.000603-3

 Please, test it and give us your feedback. If it is positive this week,
 we'll launch the release process the next one.

 cheers,

 --
 Arnaud




-- 
Arnaud


Re: Is maven so inflexible?

2009-04-20 Thread João Pereira
2009/4/21 João Pereira joaomiguel.pere...@gmail.com

 Hello,
 Fisrt I used to love maven, at this moment I'm not sure.

 I have a folder with a bunch of jars+wsdls+properties that need to be in
 the class path for my project compile in maven. How I do that without having
 to deploy each jar to the local repository or a remote repository? How do I
 deal with the wsdl files?



 --
 João Miguel Pereira, PMP
 http://jpereira.eu
 http://www.linkedin.com/in/joaomiguelpereira
 joaomiguel.pere...@gmail.com
 (351) 96 275 68 58




-- 
João Miguel Pereira, PMP
http://jpereira.eu
http://www.linkedin.com/in/joaomiguelpereira
joaomiguel.pere...@gmail.com
(351) 96 275 68 58


RE: Is maven so inflexible?

2009-04-20 Thread Bryan Loofbourrow

 Fisrt I used to love maven, at this moment I'm not sure.

 I have a folder with a bunch of jars+wsdls+properties that need to be in
 the class path for my project compile in maven. How I do that without having
 to deploy each jar to the local repository or a remote repository? 

IMO, you don't. The best thing about Maven is that it brings order to the chaos 
that came before it, with respect to orderly management of dependencies. The 
existence of free-floating jars in a folder somewhere is exactly the sort of 
chaos that Maven was designed to bring order to. Deploy them to a repository.

 How do I
 deal with the wsdl files?

Put them in a jar and deploy them to a repository? Seriously. If you need them 
to compile your project, then your project depends on them. Maven provides ways 
to declare and manage such a relationship. Why not use it, rather than seek to 
bypass it?




 --
 João Miguel Pereira, PMP
 http://jpereira.eu
 http://www.linkedin.com/in/joaomiguelpereira
 joaomiguel.pere...@gmail.com
 (351) 96 275 68 58




-- 
João Miguel Pereira, PMP
http://jpereira.eu
http://www.linkedin.com/in/joaomiguelpereira
joaomiguel.pere...@gmail.com
(351) 96 275 68 58

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

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



Re: Is maven so inflexible?

2009-04-20 Thread David C. Hicks
Are the jars part of the project, or are they artifacts that you depend 
on?  That seems to be a large part of what you may need to change.  If 
the jars are artifacts that can be found in a standard repository, just 
mark them up as dependencies.  If they are generated by your project, 
they should end up in the reactor when you build.  Why you would have 
them in a directory in your project is something of a mystery to me, but 
I suppose there are always exceptions to the rule.


Properties files can easily be put into the src/main/resources directory 
and will end up in the classpath by default.  I'm afraid I can't speak 
for the WSDL.


Dave


On 4/20/09 9:11 PM, João Pereira wrote:

2009/4/21 João Pereirajoaomiguel.pere...@gmail.com

   

Hello,
Fisrt I used to love maven, at this moment I'm not sure.

I have a folder with a bunch of jars+wsdls+properties that need to be in
the class path for my project compile in maven. How I do that without having
to deploy each jar to the local repository or a remote repository? How do I
deal with the wsdl files?



--
João Miguel Pereira, PMP
http://jpereira.eu
http://www.linkedin.com/in/joaomiguelpereira
joaomiguel.pere...@gmail.com
(351) 96 275 68 58

 




   


Re: Is maven so inflexible?

2009-04-20 Thread Dan Tran
can you use jaxws-maven-plugin to manage your wsdl files?

-D

On Mon, Apr 20, 2009 at 6:36 PM, David C. Hicks dhi...@i-hicks.org wrote:
 Are the jars part of the project, or are they artifacts that you depend on?
  That seems to be a large part of what you may need to change.  If the jars
 are artifacts that can be found in a standard repository, just mark them up
 as dependencies.  If they are generated by your project, they should end up
 in the reactor when you build.  Why you would have them in a directory in
 your project is something of a mystery to me, but I suppose there are always
 exceptions to the rule.

 Properties files can easily be put into the src/main/resources directory and
 will end up in the classpath by default.  I'm afraid I can't speak for the
 WSDL.

 Dave


 On 4/20/09 9:11 PM, João Pereira wrote:

 2009/4/21 João Pereirajoaomiguel.pere...@gmail.com



 Hello,
 Fisrt I used to love maven, at this moment I'm not sure.

 I have a folder with a bunch of jars+wsdls+properties that need to be in
 the class path for my project compile in maven. How I do that without
 having
 to deploy each jar to the local repository or a remote repository? How do
 I
 deal with the wsdl files?



 --
 João Miguel Pereira, PMP
 http://jpereira.eu
 http://www.linkedin.com/in/joaomiguelpereira
 joaomiguel.pere...@gmail.com
 (351) 96 275 68 58








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



Is maven so inflexible?

2009-04-20 Thread João Pereira
Hello,
Fisrt I used to love maven, at this moment I'm not sure.

I have a folder with a bunch of jars+wsdls+properties that need to be in the
class path for my project compile in maven. How I do that without having to
deploy each jar to the local repository or a remote repository? How do I
deal with the wsdl files?



-- 
João Miguel Pereira, PMP
http://jpereira.eu
http://www.linkedin.com/in/joaomiguelpereira
joaomiguel.pere...@gmail.com
(351) 96 275 68 58