Access to the class path

2009-05-07 Thread James Crawford
Hi,

I need to be able to get access to the runtime class path
in my tests when invoked from the maven-surefire-plugin.

I can set system properties for the surefire plugin but I
can't find anyway that I can get access to the class path.

For example I want to do something like the following to
set some "runtime.classpath" system property (assuming maven
provided a "maven.runtime.classpath" property):

  
maven-surefire-plugin

  always
  

  runtime.classpath
  ${maven.runtime.classpath}

  


  ...

  

I can see that when running ant tasks the antrun plugin
provides access to this type of information but I can't
find anywhere where it is possible to get access to this
information in a general way within Maven without writing
my own plugin.

Can anyone tell me whether it is possible to do what I
want?

Thanks,
James.



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



Exclude dependency from scope runtime test classpath

2009-05-07 Thread Henrik

Hi,

I was wondering if there is a way to remove a dependency from the test 
classpath when using runtime
I want to make sure that the jar file is only used when running the 
application and not when testing it.


So it really comes down to, I want to have the dependency (jar file) but 
i don't want to add it to compile or test classpath.


Thanks,

Henrik

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



RE: Configuring a standalone EJB3 client

2009-05-07 Thread Fabien Kruba

Hi,
for the first part of yor question,
my guess is that you should try glassfish repository

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

There are more "standards" reference artifacts

 javax.ejb
 ejb-api
 3.0

Regards
Fabien





Configuring a standalone EJB3 client


Hi,

I am trying to set up a maven configuration for the very first
exercise in the O'reilly's EJB3 book. They use ANT to build the
classpath, execute, etc.

1) I was able to find a generic persistence-api-1.0.jar in the repo1,
but can't find a generic EJB3 api... does that exist? I had to specify
an extra repository to pull the JBoss ejb3 api jar. That seems strange
as the API is the API, no matter where the implementation is... Does a
generic one exist like with persistence?



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



Re: Exclude dependency from scope runtime test classpath

2009-05-07 Thread Fabien Kruba

Hi.

did you tried "provided" scope instead?

Hi,

I was wondering if there is a way to remove a dependency from the test 
classpath when using runtime
I want to make sure that the jar file is only used when running the 
application and not when testing it.


So it really comes down to, I want to have the dependency (jar file) 
but i don't want to add it to compile or test classpath.


Thanks,

Henrik

-
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: Exclude dependency from scope runtime test classpath

2009-05-07 Thread Baptiste MATHUS
I don't think it is. The only existing scopes are those listed here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

I guess you can file an enhancement request for this use, but I'm not sure
it would really make sense. Since you're likely to want to test this kind of
dependency too in your tests. At least, IMO you'll have to provide a good
use case to justify this new feature.

Cheers.

2009/5/7 Henrik 

> Hi,
>
> I was wondering if there is a way to remove a dependency from the test
> classpath when using runtime
> I want to make sure that the jar file is only used when running the
> application and not when testing it.
>
> So it really comes down to, I want to have the dependency (jar file) but i
> don't want to add it to compile or test classpath.
>
> Thanks,
>
> Henrik
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


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


Re: Exclude dependency from scope runtime test classpath

2009-05-07 Thread Baptiste MATHUS
As explained in the documentation, provided is "much like compile", and
"[...] available on the compilation and test classpath.

Cheers.

2009/5/7 Fabien Kruba 

> Hi.
>
> did you tried "provided" scope instead?
>
>  Hi,
>>
>> I was wondering if there is a way to remove a dependency from the test
>> classpath when using runtime
>> I want to make sure that the jar file is only used when running the
>> application and not when testing it.
>>
>> So it really comes down to, I want to have the dependency (jar file) but i
>> don't want to add it to compile or test classpath.
>>
>> Thanks,
>>
>> Henrik
>>
>> -
>> 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
>
>


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


Maven release plugin with SVN (using locks)

2009-05-07 Thread jm legrand

In our organization, we use SVN with the lock mechanism as the SCM 

During the release process, we invoke the maven release plugin. The
useEditMode property has been enabled in the plugin's configuration.

While invoking the "prepare" goal, we got an error stating

"[WARNING] Provider svn does not support edit operation.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error writing POM: D:\SVN-TRUNK\TestRequete_PARENT\pom.xml (Access is
denied)"


Is there any feature in the backlog to let the use of the maven release
plugin with SVN using lock?

Regards

jean-michel

-- 
View this message in context: 
http://www.nabble.com/Maven-release-plugin-with-SVN-%28using-locks%29-tp23424563p23424563.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: How to access the plugin class path in ant based mojo

2009-05-07 Thread gbremer

Maybe the following link to another posting showing the same problem makes my
problem more clear:

http://www.mail-archive.com/d...@maven.apache.org/msg75016.html

Maybe some more general question can help. Is there a running example that
shows how to invoke a java ant task with a thirdparty main class in an ant
based maven plugin? How can I construct the classpath in the java task to
refer to the thirdparty jar? 
* It does not make sense to hardwire a fixed path. 
* I could use a plugin parameter which contains the class path, but this is
not what I want, because I have to construct the class path myself with
different values in different projects.
* Is it possible to refer to the dependencies listed in the plugin pom (not
the project pom where the plugin is executed)? Then maven could construct
the class path for me.  

Gerd
-- 
View this message in context: 
http://www.nabble.com/How-to-access-the-plugin-class-path-in-ant-based-mojo-tp23409880p23425215.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: Exclude dependency from scope runtime test classpath

2009-05-07 Thread Cummings,Steven
Can the tests be in a separate jar? If so they could include the original jar 
with the code to test but exclude dependencies as needed.

Steven

-Original Message-
From: Henrik [mailto:hen...@team11.org] 
Sent: Thursday, May 07, 2009 6:04 AM
To: users@maven.apache.org
Subject: Exclude dependency from scope runtime test classpath

Hi,

I was wondering if there is a way to remove a dependency from the test 
classpath when using runtime
I want to make sure that the jar file is only used when running the 
application and not when testing it.

So it really comes down to, I want to have the dependency (jar file) but 
i don't want to add it to compile or test classpath.

Thanks,

Henrik

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

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

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



Re: Maven inconsistent build with flexbuilder

2009-05-07 Thread Marvin Froeder
Gordon,
This is a flex compiler issue, I already notice that too so time ago.  If
you compile the same MXML several times you will get different results
at some point they will repeat...  initially I thought was some bug on
flexmojos (flex plugin for maven), but then I start to try mxmlc and notice
the same problem.


VELO

On Wed, Apr 29, 2009 at 5:14 PM, Gordon Cody  wrote:

> Upon further investigation me thinks this is a flex issue.
>
> mxmlc x.mxml
>
> twice in a row is generating different swf files
> i have a support call open with them now
>
> Will let you know what I find out.
>
> Thanks for your time Nick
>
> Regards, Gord
>
>
> On Wed, Apr 29, 2009 at 4:05 PM, Nick Stolwijk 
> wrote:
> > Are the differences already present between the original source
> > (src/main/resources/ or src/main/webapp) and the files under /target
> > (whether in /target/classes or in /target/war)?
> >
> > With regards,
> >
> > Nick Stolwijk
> > ~Java Developer~
> >
> > Iprofs BV.
> > Claus Sluterweg 125
> > 2012 WS Haarlem
> > www.iprofs.nl
> >
> >
> >
> > On Wed, Apr 29, 2009 at 10:02 PM, Gordon Cody 
> wrote:
> >> I dont see anything like that in this project. Other projects unrelated
> to flex
> >> do use filtering.
> >>
> >> -Gord
> >>
> >> On Wed, Apr 29, 2009 at 3:51 PM, Nick Stolwijk 
> wrote:
> >>> Could it be that there is some resource filtering going on? [1]
> >>>
> >>> [1]
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
> >>>
> >>> Hth,
> >>>
> >>> Nick Stolwijk
> >>> ~Java Developer~
> >>>
> >>> Iprofs BV.
> >>> Claus Sluterweg 125
> >>> 2012 WS Haarlem
> >>> www.iprofs.nl
> >>>
> >>>
> >>>
> >>> On Wed, Apr 29, 2009 at 9:38 PM, Gordon Cody 
> wrote:
>  Hi Nick
>  On Wed, Apr 29, 2009 at 3:21 PM, Nick Stolwijk <
> nick.stolw...@gmail.com> wrote:
> >> When I compare the 2 wars, I see  that the swf files are different
> in the 2 versions.
> > What do you mean by different?
> >
>  When I do a byte by byte comparison large chunks of the files show up
>  as different
>  not just the occasional 4 bytes or even a date string.
> 
> >> As swf files are binary it is extremely difficult to determine if
> the only difference between the 2 is
> >> timestamps.
> > No, it is not. Just compare their checksums (md5). Maven copies the
> > resources to /target before war'ing them, so the timestamps could be
> > different.
> >
> > Another cause may be that due to svn:keywords and properties the
> files
> > indeed are different. Do you have svn:keywords on your binary files?
> >
>  No we are not using svn:keywords , but a good point that I will keep
> in mind.
> 
> > Did you do a new checkout?
>  Even if there were svn:keywords those fields would still have been the
> same
>  in 2 sequential builds since I did not check out the code again.
> 
>  Regards Gord
> 
> >
> > With regards,
> >
> > Nick Stolwijk
> > ~Java Developer~
> >
> > Iprofs BV.
> > Claus Sluterweg 125
> > 2012 WS Haarlem
> > www.iprofs.nl
> >
> >
> >
> > On Wed, Apr 29, 2009 at 9:14 PM, Gordon Cody 
> wrote:
> >> When I compare the 2 wars, I see  that the swf files are different
> in
> >> the 2 versions.
> >
> > -
> > 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
> >>
> >>
> >
> > -
> > 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 inconsistent build with flexbuilder

2009-05-07 Thread Jeff MAURY
Having played with flex-mojos, I remember that the MXML Flex compiler seems
to put the current date in the generated SWF and it may be binary encoded so
a simple diff will not clearly expose the difference.

Regards
Jeff MAURY

2009/4/30 Nick Stolwijk 

> Ah, those swf files were generated. :) I thought those came from your SVN.
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> On Wed, Apr 29, 2009 at 10:14 PM, Gordon Cody  wrote:
> > Upon further investigation me thinks this is a flex issue.
> >
> > mxmlc x.mxml
> >
> > twice in a row is generating different swf files
> > i have a support call open with them now
> >
> > Will let you know what I find out.
> >
> > Thanks for your time Nick
> >
> > Regards, Gord
> >
> >
> > On Wed, Apr 29, 2009 at 4:05 PM, Nick Stolwijk 
> wrote:
> >> Are the differences already present between the original source
> >> (src/main/resources/ or src/main/webapp) and the files under /target
> >> (whether in /target/classes or in /target/war)?
> >>
> >> With regards,
> >>
> >> Nick Stolwijk
> >> ~Java Developer~
> >>
> >> Iprofs BV.
> >> Claus Sluterweg 125
> >> 2012 WS Haarlem
> >> www.iprofs.nl
> >>
> >>
> >>
> >> On Wed, Apr 29, 2009 at 10:02 PM, Gordon Cody 
> wrote:
> >>> I dont see anything like that in this project. Other projects unrelated
> to flex
> >>> do use filtering.
> >>>
> >>> -Gord
> >>>
> >>> On Wed, Apr 29, 2009 at 3:51 PM, Nick Stolwijk <
> nick.stolw...@gmail.com> wrote:
>  Could it be that there is some resource filtering going on? [1]
> 
>  [1]
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
> 
>  Hth,
> 
>  Nick Stolwijk
>  ~Java Developer~
> 
>  Iprofs BV.
>  Claus Sluterweg 125
>  2012 WS Haarlem
>  www.iprofs.nl
> 
> 
> 
>  On Wed, Apr 29, 2009 at 9:38 PM, Gordon Cody 
> wrote:
> > Hi Nick
> > On Wed, Apr 29, 2009 at 3:21 PM, Nick Stolwijk <
> nick.stolw...@gmail.com> wrote:
> >>> When I compare the 2 wars, I see  that the swf files are different
> in the 2 versions.
> >> What do you mean by different?
> >>
> > When I do a byte by byte comparison large chunks of the files show up
> > as different
> > not just the occasional 4 bytes or even a date string.
> >
> >>> As swf files are binary it is extremely difficult to determine if
> the only difference between the 2 is
> >>> timestamps.
> >> No, it is not. Just compare their checksums (md5). Maven copies the
> >> resources to /target before war'ing them, so the timestamps could be
> >> different.
> >>
> >> Another cause may be that due to svn:keywords and properties the
> files
> >> indeed are different. Do you have svn:keywords on your binary files?
> >>
> > No we are not using svn:keywords , but a good point that I will keep
> in mind.
> >
> >> Did you do a new checkout?
> > Even if there were svn:keywords those fields would still have been
> the same
> > in 2 sequential builds since I did not check out the code again.
> >
> > Regards Gord
> >
> >>
> >> With regards,
> >>
> >> Nick Stolwijk
> >> ~Java Developer~
> >>
> >> Iprofs BV.
> >> Claus Sluterweg 125
> >> 2012 WS Haarlem
> >> www.iprofs.nl
> >>
> >>
> >>
> >> On Wed, Apr 29, 2009 at 9:14 PM, Gordon Cody 
> wrote:
> >>> When I compare the 2 wars, I see  that the swf files are different
> in
> >>> the 2 versions.
> >>
> >>
> -
> >> 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
> >>>
> >>>
> >>
> >> -
> >> 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: automatically calling "install" target for projects which are not in the repository

2009-05-07 Thread Blackbird

One solution is simple: create a Maven meta-project:


  4.0.0
  com.agipi
  metaproject-extranet
  pom
  1.0.0
  
  
../project1
../project2
[...]
../project10
  


- Calling "mvn clean" on this meta-project cleans all modules
- Calling "mvn package" on this meta-project calls "mvn package" on all
specified modules, and in the correct dependency order, regardless of the
order in which the modules are declared in the meta-project/pom.xml (which
is very nice)
-- 
View this message in context: 
http://www.nabble.com/automatically-calling-%22install%22-target-for-projects-which-are-not-in-the-repository-tp23403861p23426642.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: Issues with archetype:create-from-project

2009-05-07 Thread Raphaël Piéroni
Hi Matt,

Sorry for the late reply

Yes, please create the jiras

Raphaël

2009/4/29 mraible 

>
> I've been using archetype:create-from-project to create archetypes and have
> noticed some issues:
>
> 1. The generated archetype has a version of 1.0-SNAPSHOT. I want the
> archetype's version to be the same as my project.
>
> 2. When I have an empty property (e.g. ),
> it's removed from the resulting pom.xml.
>
> 3. When generating a multi-module archetype, the package names in my
> hibernate.cfg.xml are replaced with ${package}. This doesn't happen when
> generating a single-module archetype.
>
> 4. Package expansion doesn't happen for files in a package hierarchy under
> src/main/resources.
>
> 5. I'm unable to set a description for the generated archetype.
>
> 6. Replacing of package names with ${package} seems to work different b/w
> multi-module and single-module projects. In a multi-module project,
> "org.appfuse.webapp" gets replaced with "${package}.webapp". In a
> single-module project, "org.appfuse.webapp" gets replaced with
> "${package}".
>
> 7. TLD files are not scanned for packages to replace.
>
> 8. The web.xml file is not scanned for packages to replace.
>
> I've been able to workaround most of these issues by using Ant to
> manipulate
> the project after it's generated (before installing). Should I enter these
> as issues in JIRA?
>
> Thanks,
>
> Matt
> --
> View this message in context:
> http://www.nabble.com/Issues-with-archetype%3Acreate-from-project-tp23286970p23286970.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: Exclude dependency from scope runtime test classpath

2009-05-07 Thread Henrik
The jar file in question is a 3:de part jar that we can't and should not 
change. The application depends on the jar for a certain specific 
operation, but not for the building and testing of the module itself.


Don't ask me why, not my idea :)

We use the jar only to Acceptance test the application.
The problem is that the jar (dependency) is loaded in a separate 
classloader when you are running the application and are using the 
specific operation.


I use runtime scope for now and see if I can solve it some other way later.

Thanks for all help. Keep up the good work on Maven.

Henrik

Cummings,Steven skrev:

Can the tests be in a separate jar? If so they could include the original jar 
with the code to test but exclude dependencies as needed.

Steven

-Original Message-
From: Henrik [mailto:hen...@team11.org] 
Sent: Thursday, May 07, 2009 6:04 AM

To: users@maven.apache.org
Subject: Exclude dependency from scope runtime test classpath

Hi,

I was wondering if there is a way to remove a dependency from the test 
classpath when using runtime
I want to make sure that the jar file is only used when running the 
application and not when testing it.


So it really comes down to, I want to have the dependency (jar file) but 
i don't want to add it to compile or test classpath.


Thanks,

Henrik

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

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
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



Site generation download page

2009-05-07 Thread Daniel Maier

Hi,
Is it possible to generate a download page, where users can download the 
artifacts of the project, during the site generation?


Thanks
Daniel

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



sources attached twice during release:perform.

2009-05-07 Thread Nord, James
Hi all,
 
I recently updated to use the mave-source-plugin:2.1 with the following
config
 

  maven-source-plugin
  2.1
  

  attach-sources
  verify
  
jar-no-fork
test-jar-no-fork
  

  


 
this works as expceted for normal instals and deploys however when
running the release plugin it tries to attach the sources twice (which
fails as we have nexus setup to prevent re-deployments)
 
release plugin is set to the following inside pluginManagement

  maven-release-plugin
  2.0-beta-8
  
-DskipSCMCheck
  


My guess is this is being over-ridden by the super poms
"release-profile" and we have both the fork and no-fork sources being
attached.
 
So my question is how to disable this in either corporate pom (I don't
want to have to run mvn -P-release-profile release:perform) as I want
the updated release info - and anything that will occur in future
versions of maven that is needed.
 
/James

**
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only. Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited. If you have received this message in error, please immediately 
notify the postmas...@nds.com and destroy the original message. Messages sent 
to and from NDS may be monitored. NDS cannot guarantee any message delivery 
method is secure or error-free. Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses. We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission. You should carry out your 
own virus checks before opening any attachment. Any views or opinions presented 
are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales Registered no. 
3080780 VAT no. GB 603 8808 40-00
**


Re: Maven inconsistent build with flexbuilder

2009-05-07 Thread Gordon Cody
Hi Jeff

Its actually much uglier than that in my opinion. In builds done a few seconds
apart there are not just a few bytes that show as different but large chunks of
the swf. I have even seen it generate files that are different in size
(by 1 byte)
which really surprised me.


Regards, Gord

On Thu, May 7, 2009 at 9:06 AM, Jeff MAURY  wrote:
> Having played with flex-mojos, I remember that the MXML Flex compiler seems
> to put the current date in the generated SWF and it may be binary encoded so
> a simple diff will not clearly expose the difference.
>
> Regards
> Jeff MAURY
>
> 2009/4/30 Nick Stolwijk 
>
>> Ah, those swf files were generated. :) I thought those came from your SVN.
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> Iprofs BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> www.iprofs.nl
>>
>>
>>
>> On Wed, Apr 29, 2009 at 10:14 PM, Gordon Cody  wrote:
>> > Upon further investigation me thinks this is a flex issue.
>> >
>> > mxmlc x.mxml
>> >
>> > twice in a row is generating different swf files
>> > i have a support call open with them now
>> >
>> > Will let you know what I find out.
>> >
>> > Thanks for your time Nick
>> >
>> > Regards, Gord
>> >
>> >
>> > On Wed, Apr 29, 2009 at 4:05 PM, Nick Stolwijk 
>> wrote:
>> >> Are the differences already present between the original source
>> >> (src/main/resources/ or src/main/webapp) and the files under /target
>> >> (whether in /target/classes or in /target/war)?
>> >>
>> >> With regards,
>> >>
>> >> Nick Stolwijk
>> >> ~Java Developer~
>> >>
>> >> Iprofs BV.
>> >> Claus Sluterweg 125
>> >> 2012 WS Haarlem
>> >> www.iprofs.nl
>> >>
>> >>
>> >>
>> >> On Wed, Apr 29, 2009 at 10:02 PM, Gordon Cody 
>> wrote:
>> >>> I dont see anything like that in this project. Other projects unrelated
>> to flex
>> >>> do use filtering.
>> >>>
>> >>> -Gord
>> >>>
>> >>> On Wed, Apr 29, 2009 at 3:51 PM, Nick Stolwijk <
>> nick.stolw...@gmail.com> wrote:
>>  Could it be that there is some resource filtering going on? [1]
>> 
>>  [1]
>> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
>> 
>>  Hth,
>> 
>>  Nick Stolwijk
>>  ~Java Developer~
>> 
>>  Iprofs BV.
>>  Claus Sluterweg 125
>>  2012 WS Haarlem
>>  www.iprofs.nl
>> 
>> 
>> 
>>  On Wed, Apr 29, 2009 at 9:38 PM, Gordon Cody 
>> wrote:
>> > Hi Nick
>> > On Wed, Apr 29, 2009 at 3:21 PM, Nick Stolwijk <
>> nick.stolw...@gmail.com> wrote:
>> >>> When I compare the 2 wars, I see  that the swf files are different
>> in the 2 versions.
>> >> What do you mean by different?
>> >>
>> > When I do a byte by byte comparison large chunks of the files show up
>> > as different
>> > not just the occasional 4 bytes or even a date string.
>> >
>> >>> As swf files are binary it is extremely difficult to determine if
>> the only difference between the 2 is
>> >>> timestamps.
>> >> No, it is not. Just compare their checksums (md5). Maven copies the
>> >> resources to /target before war'ing them, so the timestamps could be
>> >> different.
>> >>
>> >> Another cause may be that due to svn:keywords and properties the
>> files
>> >> indeed are different. Do you have svn:keywords on your binary files?
>> >>
>> > No we are not using svn:keywords , but a good point that I will keep
>> in mind.
>> >
>> >> Did you do a new checkout?
>> > Even if there were svn:keywords those fields would still have been
>> the same
>> > in 2 sequential builds since I did not check out the code again.
>> >
>> > Regards Gord
>> >
>> >>
>> >> With regards,
>> >>
>> >> Nick Stolwijk
>> >> ~Java Developer~
>> >>
>> >> Iprofs BV.
>> >> Claus Sluterweg 125
>> >> 2012 WS Haarlem
>> >> www.iprofs.nl
>> >>
>> >>
>> >>
>> >> On Wed, Apr 29, 2009 at 9:14 PM, Gordon Cody 
>> wrote:
>> >>> When I compare the 2 wars, I see  that the swf files are different
>> in
>> >>> the 2 versions.
>> >>
>> >>
>> -
>> >> 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: sources attached twice during release:perform.

2009-05-07 Thread David Hoffer
Try


org.apache.maven.plugins
maven-release-plugin
2.0-beta-9

   ...
false





On Thu, May 7, 2009 at 10:01 AM, Nord, James  wrote:

> Hi all,
>
> I recently updated to use the mave-source-plugin:2.1 with the following
> config
>
>
>  maven-source-plugin
>  2.1
>  
>
>  attach-sources
>  verify
>  
>jar-no-fork
>test-jar-no-fork
>  
>
>  
>
>
>
> this works as expceted for normal instals and deploys however when
> running the release plugin it tries to attach the sources twice (which
> fails as we have nexus setup to prevent re-deployments)
>
> release plugin is set to the following inside pluginManagement
>
>  maven-release-plugin
>  2.0-beta-8
>  
>-DskipSCMCheck
>  
>
>
> My guess is this is being over-ridden by the super poms
> "release-profile" and we have both the fork and no-fork sources being
> attached.
>
> So my question is how to disable this in either corporate pom (I don't
> want to have to run mvn -P-release-profile release:perform) as I want
> the updated release info - and anything that will occur in future
> versions of maven that is needed.
>
> /James
>
>
> **
> This e-mail is confidential, the property of NDS Ltd and intended for the
> addressee only. Any dissemination, copying or distribution of this message
> or any attachments by anyone other than the intended recipient is strictly
> prohibited. If you have received this message in error, please immediately
> notify the postmas...@nds.com and destroy the original message. Messages
> sent to and from NDS may be monitored. NDS cannot guarantee any message
> delivery method is secure or error-free. Information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> We do not accept responsibility for any errors or omissions in this message
> and/or attachment that arise as a result of transmission. You should carry
> out your own virus checks before opening any attachment. Any views or
> opinions presented are solely those of the author and do not necessarily
> represent those of NDS.
>
> To protect the environment please do not print this e-mail unless
> necessary.
>
> NDS Limited Registered Office: One London Road, Staines, Middlesex, TW18
> 4EX, United Kingdom. A company registered in England and Wales Registered
> no. 3080780 VAT no. GB 603 8808 40-00
>
> **
>


exclude transitive dependency

2009-05-07 Thread tubin gen
My project needs spring-modules-osworklow.jar , this module has dependency
to spring-mock   , the spring-mock has the same classes as  spring-test and
this has more classes , so I want to exclude transitive dependency  for
spring-mock , please  tell me how to do this ?


RE: exclude transitive dependency

2009-05-07 Thread Cummings,Steven
Check out 
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

-Original Message-
From: tubin gen [mailto:fachh...@gmail.com] 
Sent: Thursday, May 07, 2009 11:52 AM
To: users@maven.apache.org
Subject: exclude transitive dependency

My project needs spring-modules-osworklow.jar , this module has dependency
to spring-mock   , the spring-mock has the same classes as  spring-test and
this has more classes , so I want to exclude transitive dependency  for
spring-mock , please  tell me how to do this ?

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

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



Re: include jars from a folder

2009-05-07 Thread fachhoch

I need it both for compile and runtime please suggest me how i can do this
with ant run ?


Wendy Smoak-3 wrote:
> 
> On Wed, May 6, 2009 at 1:00 PM, tubin gen  wrote:
>> I have some of the jar files modified and kept them under folder ext-lib,
>> there jars files are needed  by my application, can I tell maven to
>> include
>> jars from this folder   into the war file ?
>> my pom right now uses scope system and systempath , I donot  want to
>> install
>> them becasue we don't have   common repository manager and every user
>> working with the project must install these jar files into there local
>> repository
> 
> Installing the jars is easily done with a script, (or I've even seen
> it done in the pom,) and is the best way to do it.  Then you're all
> set for when you do establish an internal repository.
> 
> If you must, system scope will work.  Or (if you don't need them to
> compile but just want them included in the war,) a bit of antrun to
> copy them to the right place.)
> 
> -- 
> Wendy
> 
> -
> 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/include-jars-from-a-folder-tp23414365p23431074.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 inconsistent build with flexbuilder

2009-05-07 Thread Marvin Froeder
You could decompile it to try
I did bought Sothink SWF Decompiler is quite helpful.


VELO

On Thu, May 7, 2009 at 1:06 PM, Gordon Cody  wrote:

> Hi Jeff
>
> Its actually much uglier than that in my opinion. In builds done a few
> seconds
> apart there are not just a few bytes that show as different but large
> chunks of
> the swf. I have even seen it generate files that are different in size
> (by 1 byte)
> which really surprised me.
>
>
> Regards, Gord
>
> On Thu, May 7, 2009 at 9:06 AM, Jeff MAURY  wrote:
> > Having played with flex-mojos, I remember that the MXML Flex compiler
> seems
> > to put the current date in the generated SWF and it may be binary encoded
> so
> > a simple diff will not clearly expose the difference.
> >
> > Regards
> > Jeff MAURY
> >
> > 2009/4/30 Nick Stolwijk 
> >
> >> Ah, those swf files were generated. :) I thought those came from your
> SVN.
> >>
> >> Nick Stolwijk
> >> ~Java Developer~
> >>
> >> Iprofs BV.
> >> Claus Sluterweg 125
> >> 2012 WS Haarlem
> >> www.iprofs.nl
> >>
> >>
> >>
> >> On Wed, Apr 29, 2009 at 10:14 PM, Gordon Cody 
> wrote:
> >> > Upon further investigation me thinks this is a flex issue.
> >> >
> >> > mxmlc x.mxml
> >> >
> >> > twice in a row is generating different swf files
> >> > i have a support call open with them now
> >> >
> >> > Will let you know what I find out.
> >> >
> >> > Thanks for your time Nick
> >> >
> >> > Regards, Gord
> >> >
> >> >
> >> > On Wed, Apr 29, 2009 at 4:05 PM, Nick Stolwijk <
> nick.stolw...@gmail.com>
> >> wrote:
> >> >> Are the differences already present between the original source
> >> >> (src/main/resources/ or src/main/webapp) and the files under /target
> >> >> (whether in /target/classes or in /target/war)?
> >> >>
> >> >> With regards,
> >> >>
> >> >> Nick Stolwijk
> >> >> ~Java Developer~
> >> >>
> >> >> Iprofs BV.
> >> >> Claus Sluterweg 125
> >> >> 2012 WS Haarlem
> >> >> www.iprofs.nl
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Apr 29, 2009 at 10:02 PM, Gordon Cody 
> >> wrote:
> >> >>> I dont see anything like that in this project. Other projects
> unrelated
> >> to flex
> >> >>> do use filtering.
> >> >>>
> >> >>> -Gord
> >> >>>
> >> >>> On Wed, Apr 29, 2009 at 3:51 PM, Nick Stolwijk <
> >> nick.stolw...@gmail.com> wrote:
> >>  Could it be that there is some resource filtering going on? [1]
> >> 
> >>  [1]
> >>
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
> >> 
> >>  Hth,
> >> 
> >>  Nick Stolwijk
> >>  ~Java Developer~
> >> 
> >>  Iprofs BV.
> >>  Claus Sluterweg 125
> >>  2012 WS Haarlem
> >>  www.iprofs.nl
> >> 
> >> 
> >> 
> >>  On Wed, Apr 29, 2009 at 9:38 PM, Gordon Cody 
> >> wrote:
> >> > Hi Nick
> >> > On Wed, Apr 29, 2009 at 3:21 PM, Nick Stolwijk <
> >> nick.stolw...@gmail.com> wrote:
> >> >>> When I compare the 2 wars, I see  that the swf files are
> different
> >> in the 2 versions.
> >> >> What do you mean by different?
> >> >>
> >> > When I do a byte by byte comparison large chunks of the files show
> up
> >> > as different
> >> > not just the occasional 4 bytes or even a date string.
> >> >
> >> >>> As swf files are binary it is extremely difficult to determine
> if
> >> the only difference between the 2 is
> >> >>> timestamps.
> >> >> No, it is not. Just compare their checksums (md5). Maven copies
> the
> >> >> resources to /target before war'ing them, so the timestamps could
> be
> >> >> different.
> >> >>
> >> >> Another cause may be that due to svn:keywords and properties the
> >> files
> >> >> indeed are different. Do you have svn:keywords on your binary
> files?
> >> >>
> >> > No we are not using svn:keywords , but a good point that I will
> keep
> >> in mind.
> >> >
> >> >> Did you do a new checkout?
> >> > Even if there were svn:keywords those fields would still have been
> >> the same
> >> > in 2 sequential builds since I did not check out the code again.
> >> >
> >> > Regards Gord
> >> >
> >> >>
> >> >> With regards,
> >> >>
> >> >> Nick Stolwijk
> >> >> ~Java Developer~
> >> >>
> >> >> Iprofs BV.
> >> >> Claus Sluterweg 125
> >> >> 2012 WS Haarlem
> >> >> www.iprofs.nl
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Apr 29, 2009 at 9:14 PM, Gordon Cody <
> gc...@zafinlabs.com>
> >> wrote:
> >> >>> When I compare the 2 wars, I see  that the swf files are
> different
> >> in
> >> >>> the 2 versions.
> >> >>
> >> >>
> >> -
> >> >> 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.or

adding jars from project folder into my war file

2009-05-07 Thread tubin gen
I have some  jar files inside my project folder , and I want maven to
include them inside WEB-INF/lib   , I know one way to include is to create a
custom ant task but the problem is   maven creates a version number inside
target ,my project is audit and when I see the target folder I see audit-1
, in this case how can I specifically   write ant tasks  to include these
jar files inside WEB-INF/lib with out knowing what the root folder is  and
moreover i do not know  when compile happens , and when is WEB-INF folder is
created   etc  please suggest me   how to write ant task to update the war
file generated by maven install ,

if there is any other way with out maven-antrun-plugin  please tell me


Re: adding jars from project folder into my war file

2009-05-07 Thread Nick Stolwijk
Install[1]/deploy[2] the jar files in your local or company repository
and add a dependency. A workaround is to add a dependency with scope
system and set a path like this:


  tubin.gen
  your-jar-name
  1.0
  system
  ${project.basedir}/lib/your-jar.jar


[1] http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
[2] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Thu, May 7, 2009 at 8:51 PM, tubin gen  wrote:
> I have some  jar files inside my project folder , and I want maven to
> include them inside WEB-INF/lib   , I know one way to include is to create a
> custom ant task but the problem is   maven creates a version number inside
> target ,my project is audit and when I see the target folder I see audit-1
> , in this case how can I specifically   write ant tasks  to include these
> jar files inside WEB-INF/lib with out knowing what the root folder is  and
> moreover i do not know  when compile happens , and when is WEB-INF folder is
> created   etc  please suggest me   how to write ant task to update the war
> file generated by maven install ,
>
> if there is any other way with out maven-antrun-plugin  please tell me
>

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



Re: adding jars from project folder into my war file

2009-05-07 Thread Wayne Fay
> I have some  jar files inside my project folder , and I want maven to
> include them inside WEB-INF/lib   , I know one way to include is to create a

Use "mvn install:install-file" to put the jar files in your local repo
cache and/or "mvn deploy:deploy:file" to put the jar files in your
"corporate repo" and then add proper dependencies etc in your pom to
include them.

Any other method is a hack/workaround.

Wayne

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



Re: adding jars from project folder into my war file

2009-05-07 Thread fachhoch

1 we do not have a common repository , so every user who wants to work with
the project must  do the same , and  workaround does not include   system 
scope jar into war file , please help with   any other workaround 

Nick Stolwijk-4 wrote:
> 
> Install[1]/deploy[2] the jar files in your local or company repository
> and add a dependency. A workaround is to add a dependency with scope
> system and set a path like this:
> 
> 
>   tubin.gen
>   your-jar-name
>   1.0
>   system
>   ${project.basedir}/lib/your-jar.jar
> 
> 
> [1]
> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
> [2]
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
> 
> Hth,
> 
> Nick Stolwijk
> ~Java Developer~
> 
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
> 
> 
> 
> On Thu, May 7, 2009 at 8:51 PM, tubin gen  wrote:
>> I have some  jar files inside my project folder , and I want maven to
>> include them inside WEB-INF/lib   , I know one way to include is to
>> create a
>> custom ant task but the problem is   maven creates a version number
>> inside
>> target ,my project is audit and when I see the target folder I see
>> audit-1
>> , in this case how can I specifically   write ant tasks  to include these
>> jar files inside WEB-INF/lib with out knowing what the root folder is
>>  and
>> moreover i do not know  when compile happens , and when is WEB-INF folder
>> is
>> created   etc  please suggest me   how to write ant task to update the
>> war
>> file generated by maven install ,
>>
>> if there is any other way with out maven-antrun-plugin  please tell me
>>
> 
> -
> 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23433735.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: adding jars from project folder into my war file

2009-05-07 Thread fachhoch

but the probelm is we have releases for these other jar files frequently  
and every time I have to install them isnt there any other way to tell maven
to include these jar files into the war file ?

Wayne Fay wrote:
> 
>> I have some  jar files inside my project folder , and I want maven to
>> include them inside WEB-INF/lib   , I know one way to include is to
>> create a
> 
> Use "mvn install:install-file" to put the jar files in your local repo
> cache and/or "mvn deploy:deploy:file" to put the jar files in your
> "corporate repo" and then add proper dependencies etc in your pom to
> include them.
> 
> Any other method is a hack/workaround.
> 
> Wayne
> 
> -
> 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23433759.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: adding jars from project folder into my war file

2009-05-07 Thread Nick Stolwijk
Setting op a company repository is easy and really, it's the only way
that will really work. Just get a copy of Nexus, Artifactory or
Archiva.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Thu, May 7, 2009 at 9:40 PM, fachhoch  wrote:
>
> but the probelm is we have releases for these other jar files frequently
> and every time I have to install them isnt there any other way to tell maven
> to include these jar files into the war file ?
>
> Wayne Fay wrote:
>>
>>> I have some  jar files inside my project folder , and I want maven to
>>> include them inside WEB-INF/lib   , I know one way to include is to
>>> create a
>>
>> Use "mvn install:install-file" to put the jar files in your local repo
>> cache and/or "mvn deploy:deploy:file" to put the jar files in your
>> "corporate repo" and then add proper dependencies etc in your pom to
>> include them.
>>
>> Any other method is a hack/workaround.
>>
>> Wayne
>>
>> -
>> 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23433759.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
>
>

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



Re: adding jars from project folder into my war file

2009-05-07 Thread fachhoch

but what if my jar are updated every week , some other team is working on
them and whenever we find bugs  or for any enhancements  they will release
new jars , so if I set up my company repository every time   a new release
should be updated to my repository   ny workaround for this ?

Nick Stolwijk-4 wrote:
> 
> Setting op a company repository is easy and really, it's the only way
> that will really work. Just get a copy of Nexus, Artifactory or
> Archiva.
> 
> Hth,
> 
> Nick Stolwijk
> ~Java Developer~
> 
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
> 
> 
> 
> On Thu, May 7, 2009 at 9:40 PM, fachhoch  wrote:
>>
>> but the probelm is we have releases for these other jar files frequently
>> and every time I have to install them isnt there any other way to tell
>> maven
>> to include these jar files into the war file ?
>>
>> Wayne Fay wrote:
>>>
 I have some  jar files inside my project folder , and I want maven to
 include them inside WEB-INF/lib   , I know one way to include is to
 create a
>>>
>>> Use "mvn install:install-file" to put the jar files in your local repo
>>> cache and/or "mvn deploy:deploy:file" to put the jar files in your
>>> "corporate repo" and then add proper dependencies etc in your pom to
>>> include them.
>>>
>>> Any other method is a hack/workaround.
>>>
>>> Wayne
>>>
>>> -
>>> 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23433759.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
>>
>>
> 
> -
> 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23434011.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: adding jars from project folder into my war file

2009-05-07 Thread Nick Stolwijk
That is exactly one of the advantages of a company repo. The other
team can just use mvn deploy and each of your developers can retrieve
the new dependency. That is one of the keypoints of maven: dependency
management.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Thu, May 7, 2009 at 9:57 PM, fachhoch  wrote:
>
> but what if my jar are updated every week , some other team is working on
> them and whenever we find bugs  or for any enhancements  they will release
> new jars , so if I set up my company repository every time   a new release
> should be updated to my repository   ny workaround for this ?
>
> Nick Stolwijk-4 wrote:
>>
>> Setting op a company repository is easy and really, it's the only way
>> that will really work. Just get a copy of Nexus, Artifactory or
>> Archiva.
>>
>> Hth,
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> Iprofs BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> www.iprofs.nl
>>
>>
>>
>> On Thu, May 7, 2009 at 9:40 PM, fachhoch  wrote:
>>>
>>> but the probelm is we have releases for these other jar files frequently
>>> and every time I have to install them isnt there any other way to tell
>>> maven
>>> to include these jar files into the war file ?
>>>
>>> Wayne Fay wrote:

> I have some  jar files inside my project folder , and I want maven to
> include them inside WEB-INF/lib   , I know one way to include is to
> create a

 Use "mvn install:install-file" to put the jar files in your local repo
 cache and/or "mvn deploy:deploy:file" to put the jar files in your
 "corporate repo" and then add proper dependencies etc in your pom to
 include them.

 Any other method is a hack/workaround.

 Wayne

 -
 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23433759.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
>>>
>>>
>>
>> -
>> 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23434011.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
>
>

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



Dependency version precedence

2009-05-07 Thread Ylan Segal
I have a conflict with a jdom dependency: Two versions are appearing in 
my classpath.


The problem arises because my project uses the follwing two dependencies:



jdom
jdom
1.1


rome
rome
0.9



Now, rome in turn uses:


jdom
jdom
1.0


According to my (limited) understanding of maven, since I am explicitly 
stating that my project uses jdom 1.1, that should take precedence and 
jdom 1.0 should not be included.


Now, when I check the dependency tree I see that:

com.mydomain:myproject-1.0-SNAPSHOT
+ org.jdom:jdom:jar:1.0 (compile)
+ rome:rome:jar:0.9 (compile
+ jdom:jdom:jar:1.0 (compile)

Notice that groupID for the two jdom versions are different. It's jdom 
for 1.0 but org.jdom for 1.1. I believe that this is why maven is 
actually using both dependencies: It doesn't know that they are 
different versions of the same artifact.


(By the way I tried setting my dependecy's groupId to org.jdom or jdom 
and I get the same result: Somehow even if I specify jdom as the groupId 
it resolves to org.jdom).


Does anyone have any suggestions on how to address this?

--
Ylan Segal


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



Re: Dependency version precedence

2009-05-07 Thread Niels van Kampenhout
On Thu, May 7, 2009 at 1:10 PM, Ylan Segal  wrote:
> I have a conflict with a jdom dependency: Two versions are appearing in my
> classpath.
>
> The problem arises because my project uses the follwing two dependencies:
>
>
> 
>        jdom
>        jdom
>        1.1
> 
> 
>        rome
>        rome
>        0.9
> 
>
>
> Now, rome in turn uses:
>
> 
>        jdom
>        jdom
>        1.0
> 
>
> According to my (limited) understanding of maven, since I am explicitly
> stating that my project uses jdom 1.1, that should take precedence and jdom
> 1.0 should not be included.
>
> Now, when I check the dependency tree I see that:
>
> com.mydomain:myproject-1.0-SNAPSHOT
>        + org.jdom:jdom:jar:1.0 (compile)
>        + rome:rome:jar:0.9 (compile
>                + jdom:jdom:jar:1.0 (compile)
>
> Notice that groupID for the two jdom versions are different. It's jdom for
> 1.0 but org.jdom for 1.1. I believe that this is why maven is actually using
> both dependencies: It doesn't know that they are different versions of the
> same artifact.
>
> (By the way I tried setting my dependecy's groupId to org.jdom or jdom and I
> get the same result: Somehow even if I specify jdom as the groupId it
> resolves to org.jdom).
>
> Does anyone have any suggestions on how to address this?

You can exclude the rome's transitive jdom dependency like this (from
the top of my head):


rome
rome
0.9


jdom
jdom




As far as I know Maven does not automatically resolve version
conflicts between (transitive) dependencies, you just end up with both
versions of the jar.

HTH,

Niels

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



Other problem like "cannot resolve symbol", please help...

2009-05-07 Thread Jesfre

Hi everyone...
I'm trying to migrate a project with Ant for build tasks to Maven2.

� Oracle 9i and Oracle 10g
� Java 1.4
� Web Logic 8.1 SP3
� Maven

The project depends on some related projects like:

+paretProject
--+project1
+src
--+project2
+src
--+project3
+src


The first step I did was to change the structure to maven standard directory
structure and add some dependencies like junit, log4j, etc.
Currently I have this plug-ins within a parent pom.xml: log4j, junit,
servlet-api and jsp-api.
And I have the first project child with a pom.xml child. Now, with this one,
I have copied the others projects form the original project directory to the
new structure to resolve errors in the source files of the new project.
Also, I have copied the web.xml to the WEB_INF directory.
But, when I try to execute:
>mvn compile
I got the next error:


D:\dev\workspace\kronos-migration\ampc>mvn clean install
[INFO] Scanning for projects...
[INFO]

[INFO] Building ampc Maven Webapp
[INFO]task-segment: [clean, install]
[INFO]

[INFO] [clean:clean]
[INFO] Deleting directory D:\dev\workspace\kronos-migration\ampc\target
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [compiler:compile]
[INFO] Compiling 62 source files to
D:\dev\workspace\kronos-migration\ampc\target\classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure
D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[17,18]
package javax.mail does not exist
D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[18,18]
package javax.mail does not exist
.
. [ many "no exist packages" ]
.
D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[76,18]
cannot resolve symbol
symbol  : class InternetAddress
location: class com.posadas.amp.support.MailAlert
D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[81,33]
cannot resolve symbol
symbol  : class InternetAddress
location: class com.posadas.amp.support.MailAlert
D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[82,52]
package Message does not exist
D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[91,18]
cannot resolve symbol
symbol  : variable Transport
location: class com.posadas.amp.support.MailAlert
.
. [many "cannot resolve symbol" ]
.
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 4 seconds
[INFO] Finished at: Thu May 07 16:25:40 GMT 2009
[INFO] Final Memory: 9M/16M
[INFO]

D:\dev\workspace\kronos-migration\ampc>




The fact is, the compiler can't find any packages...
Googling, I found that the error can be in the version of java, but I change
it to version 1.4, because that is the version of the compiler for the
project, but the error still appears...

Can anybody help me? What am I doing wrong? 


Thanks in advance...
-- 
View this message in context: 
http://www.nabble.com/Other-problem-like-%22cannot-resolve-symbol%22%2C-please-help...-tp23435591p23435591.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 version precedence

2009-05-07 Thread Brian Fox
It will resolve the conflicts, but here no conflict exists from Maven's
point of view. The groupid is part of the coordinates so they appear to be
the same. Jdom should insert a "relocation" pom to solve these issues. Your
recourse is to use an exclusion.
Assuming the group was the same, you would get 1.1. And lets further assume
you didn't directly depend on 1.1 but had some other dependency foo, that
did. Which ever brought in jdom first in your pom would be the version you
end up with. In otherwords, if the depth is the same for a dependency, the
first one seen wins.

2009/5/7 Niels van Kampenhout 

> On Thu, May 7, 2009 at 1:10 PM, Ylan Segal  wrote:
> > I have a conflict with a jdom dependency: Two versions are appearing in
> my
> > classpath.
> >
> > The problem arises because my project uses the follwing two dependencies:
> >
> >
> > 
> >jdom
> >jdom
> >1.1
> > 
> > 
> >rome
> >rome
> >0.9
> > 
> >
> >
> > Now, rome in turn uses:
> >
> > 
> >jdom
> >jdom
> >1.0
> > 
> >
> > According to my (limited) understanding of maven, since I am explicitly
> > stating that my project uses jdom 1.1, that should take precedence and
> jdom
> > 1.0 should not be included.
> >
> > Now, when I check the dependency tree I see that:
> >
> > com.mydomain:myproject-1.0-SNAPSHOT
> >+ org.jdom:jdom:jar:1.0 (compile)
> >+ rome:rome:jar:0.9 (compile
> >+ jdom:jdom:jar:1.0 (compile)
> >
> > Notice that groupID for the two jdom versions are different. It's jdom
> for
> > 1.0 but org.jdom for 1.1. I believe that this is why maven is actually
> using
> > both dependencies: It doesn't know that they are different versions of
> the
> > same artifact.
> >
> > (By the way I tried setting my dependecy's groupId to org.jdom or jdom
> and I
> > get the same result: Somehow even if I specify jdom as the groupId it
> > resolves to org.jdom).
> >
> > Does anyone have any suggestions on how to address this?
>
> You can exclude the rome's transitive jdom dependency like this (from
> the top of my head):
>
> 
>rome
>rome
>0.9
> 
>
> jdom
>jdom
> 
>
> 
>
> As far as I know Maven does not automatically resolve version
> conflicts between (transitive) dependencies, you just end up with both
> versions of the jar.
>
> HTH,
>
> Niels
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Other problem like "cannot resolve symbol", please help...

2009-05-07 Thread Wayne Fay
> [INFO] Compilation failure
> D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[17,18]
> package javax.mail does not exist

Add a dependency in your pom.xml file on a jar which provides
javax.mail.*. If you aren't sure what dependency to add, use the
www.mvnrepository.com search engine to find a suitable artifact.

Wayne

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



Re: Access to the class path

2009-05-07 Thread Brian Fox
take a look at dependency:build-classpath

On Thu, May 7, 2009 at 3:11 AM, James Crawford wrote:

> Hi,
>
> I need to be able to get access to the runtime class path
> in my tests when invoked from the maven-surefire-plugin.
>
> I can set system properties for the surefire plugin but I
> can't find anyway that I can get access to the class path.
>
> For example I want to do something like the following to
> set some "runtime.classpath" system property (assuming maven
> provided a "maven.runtime.classpath" property):
>
>  
>maven-surefire-plugin
>
>  always
>  
>
>  runtime.classpath
>  ${maven.runtime.classpath}
>
>  
>
>
>  ...
>
>  
>
> I can see that when running ant tasks the antrun plugin
> provides access to this type of information but I can't
> find anywhere where it is possible to get access to this
> information in a general way within Maven without writing
> my own plugin.
>
> Can anyone tell me whether it is possible to do what I
> want?
>
> Thanks,
> James.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: include jars from a folder

2009-05-07 Thread Wendy Smoak
On Thu, May 7, 2009 at 9:55 AM, fachhoch  wrote:
>
> I need it both for compile and runtime please suggest me how i can do this
> with ant run ?

If you need the jars to compile, then they need to be listed as
dependencies.  The repository and dependency management are big parts
of Maven, it simply doesn't do "use that pile of jars in the lib
folder."  If you will not put them in a repository, then system scope
is the only thing I can think of.

-- 
Wendy

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



Re: hi, how to specify java_opts in maven

2009-05-07 Thread Brian Fox
set MAVEN_OPTS = -Xmx512m for example. It can't be done directly from the
cli.

On Thu, May 7, 2009 at 1:39 AM, shrimpywu  wrote:

>
> Before i run my program like this
>
> 
>org.codehaus.mojo
>exec-maven-plugin
>
>
>
>exec
>
>
>
><
>
>java
>
>-Xms32m
>-Xmx1024m
>-classpath
>
>org.myproject.Main
>
>
>
>
>
> however i have to pass arguments in run time,
> so i have to do things like this
>  mvn exec:java -Dexec.mainClass="org.myproject.Main"
> -Dexec.args="argument1"
>
> but i found out that, if i do in comand line, i can specify any argument in
> the POM any more,
> coz it will complain and throws exception.
> but i do want to increase the java heap size, otherwise i will get "Out of
> memory" exception
>
> So...can any one help me how can i do both???
> --
> View this message in context:
> http://www.nabble.com/hi%2C-how-to-specify-java_opts-in-maven-tp23420573p23420573.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: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-07 Thread Brian Fox
I think this will help you understand it better:
Think of inheritance as including the contents of the parents inside your
own pom. (obviously merging occurs). I used to be a C programmer so I refer
to this as #include-ing the contents.

Therefore the result of inheritance is that it updates your local pom.
Things declared in your local pom always superceede transitive, thus the
behavior seems to be correct.

So to restate the problem, you are using in one module a jar LIB that you
only need in your tests, but transitively you depend on something which
needs LIB at runtime and thus it should be packed into your war? If so, just
flip your dependency to a compile scope since this is also included in test
classpaths. This is generally an unusual scenario, I don't think it's solved
yet with Mercury.

My suggestion is to provide a sample project as an IT and write up an issue
for this.

On Wed, May 6, 2009 at 5:29 AM, Stevo Slavić  wrote:

> Hello Maven users,
>
> If a parent module (e.g. P) of a multi module project defines a test scope
> dependency to some library (e.g. library "LIB"), and if one of projects's
> child modules which inherit P (e.g. jar module A) defines compile scope
> dependency to the same (LIB) library, and if some other child module which
> also inherits P (e.g. war module B) defines compile scope dependency on
> module A, then (at least when using maven 2.1.0) library LIB does not get
> included in war of module B. It seems that scope (in this example test
> scope) of inherited dependency wins over scope (in this example compile
> scope) of transitive dependency.
>
> This looks like a bug to me (maybe just in maven-war-plugin:2.1-beta-1, or
> maven-dependency-plugin:2.1) - even though module B (through inheritance)
> defines LIB as test scope dependency but on the other hand it's dependency
> defines same LIB as compile scope dependency so LIB should be included in
> module B war. Currently a workaround is to explicitly define compile time
> dependency to LIB in module B, even though it doesn't make direct use of the
> LIB. As subject states, maybe I've misunderstood the dependency resolution
> mechanism.
>
> Attached is example project which demonstrates the issue.
>
> Regards,
> Stevo.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


Re: deploy:deploy Hangs in Release

2009-05-07 Thread Brian Fox
I wonder if it's waiting for some password input. Make sure you have a
server setting with the proper credentials for scp.

On Tue, May 5, 2009 at 6:33 PM, Harper, Brad  wrote:

> While performing a deployment from the release plugin, I see
>
>
>
> [INFO] [INFO] [install:install]
>
> [INFO] [INFO] Installing C:\eclipse-workspaces\...\x.war to
> C:\...\.m2\repository\com\...\x.war
>
> [INFO] [INFO] Installing C:\eclipse-workspaces\...\x-sources.jar to
> C:\...\.m2\repository\com\x-sources.jar
>
> [INFO] [INFO] Installing C:\eclipse-workspaces\...\x.zip to C:\...\x.zip
>
> [INFO] [INFO] [deploy:deploy]
>
>
>
> And that's it. Re-running with -X gives
>
>
>
> . . .
>
> [INFO] [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy' -->
>
> [INFO] [DEBUG]   (f) artifact = x:war:1.0.4
>
> [INFO] [DEBUG]   (f) attachedArtifacts =
> [com.y:x:java-source:sources:1.0.4, com.y:x:zip:1.0.4]
>
> [INFO] [DEBUG]   (f) deploymentRepository =
> Repository[internal|scp://dev-deploy/web-dev-repos/releases]
>
> [INFO] [DEBUG]   (s) localRepository =
> Repository[local|file://C:\...\.m2\repository]
>
> [INFO] [DEBUG]   (f) packaging = war
>
> [INFO] [DEBUG]   (f) pomFile =
> C:\eclipse-workspaces\...\x\target\checkout\pom.xml
>
> [INFO] [DEBUG]   (f) skip = false
>
> [INFO] [DEBUG]   (f) updateReleaseInfo = true
>
> [INFO] [DEBUG] -- end configuration --
>
> [INFO] [INFO] [deploy:deploy]
>
> [INFO] [DEBUG] not adding permissions to wagon connection
>
>
>
> I've recently moved from maven 2.0.8 to 2.1.0 with a completely
>
> new local [.m2] repo.
>
>
>
> Any thoughts? Is the "not adding permissions" message a clue? Thanks.
>
>
>
> Brad
>
>
>
>


Re: Managing Modified Dependencies

2009-05-07 Thread Brian Fox
I covered some strategies in this area here[1] and there are some other
how-tos here[2]

[1]
http://www.sonatype.com/people/2009/01/best-practices-for-releasing-with-3rd-party-snapshot-dependencies/
[2] http://www.sonatype.com/people/2009/04/summary-of-maven-how-tos/

On Mon, May 4, 2009 at 12:10 PM, daniel.green  wrote:

>
> The situation:
>
> * Company finds a show stopping bug in dependency Foo
> * Company can not wait for the owner of Foo to fix it
> * Company branches the source code locally and applies patch
> * Company now needs to maintained a modified third party dependency
>
> Currently some crazy system of relative paths and fake version numbers is
> being used to resolve the modified dependencies. However, this is obviously
> an eye soar sore and is cluttering up our source repository. What are some
> solutions for ensuring that changes don't get overwritten and our
> repository
> stays clean?
>
> Any suggestion will be welcomed!
>
> I appreciate your time, thank you at least for that :-),
> Daniel.
>
> --
> View this message in context:
> http://www.nabble.com/Managing-Modified-Dependencies-tp23371539p23371539.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 scm:checkin requires developerConnectionUrl ?

2009-05-07 Thread Nafter

I have to profiles in my pom.xml. The first profile does a scm:update in a
workingDirectory using the connectionUrl. This works just fine.

Then later during the same build within Hudson, another profile is triggered
which is also using the maven scm plugin. Now I would like to commit
(checkin) a modified file.
I did configure the workingDirectory and the connectionUrl.
But now an exception is thrown about the fact that the
developerConnectionUrl is missing! Why?

Why can't I just use the connectionUrl to do the checkin/commit?
Now I did try using the developerConnectionUrl and providing a message. But
now the actual file is not committed, but it seems it is looking at a time
file instead of the location of my workingdirectory.
I use tortoisesvn and the workingdirectory does already have a svn checkout.
And doing a commit with tortoisesvn is working just fine.

This is a part of my configuration:


  commit_version_id
  

  commit_version

  
  

  
org.apache.maven.plugins
maven-scm-plugin
1.2

  ${SVN_USERNAME}
  ${SVN_PASSWORD}
 
${SVN_CONNECTIONURL}


  
svn_commit
verify

  checkin


  Automatically generated build id
 
${SVN_WORKINGDIRECTORY__PV50}

  

  

  


-- 
View this message in context: 
http://www.nabble.com/Maven-scm%3Acheckin-requires-developerConnectionUrl---tp23436610p23436610.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: adding jars from project folder into my war file

2009-05-07 Thread Fabien KRUBA
No, just reupload the new jars in the repository manager ( updating the
version number) and update the versions number in the pom.xml ..

Or ask the other team to use the repository manager, seems a better practice
to me :)

On Thu, May 7, 2009 at 3:57 PM, fachhoch  wrote:

>
> but what if my jar are updated every week , some other team is working on
> them and whenever we find bugs  or for any enhancements  they will release
> new jars , so if I set up my company repository every time   a new release
> should be updated to my repository   ny workaround for this ?
>
> Nick Stolwijk-4 wrote:
> >
> > Setting op a company repository is easy and really, it's the only way
> > that will really work. Just get a copy of Nexus, Artifactory or
> > Archiva.
> >
> > Hth,
> >
> > Nick Stolwijk
> > ~Java Developer~
> >
> > Iprofs BV.
> > Claus Sluterweg 125
> > 2012 WS Haarlem
> > www.iprofs.nl
> >
> >
> >
> > On Thu, May 7, 2009 at 9:40 PM, fachhoch  wrote:
> >>
> >> but the probelm is we have releases for these other jar files frequently
> >> and every time I have to install them isnt there any other way to tell
> >> maven
> >> to include these jar files into the war file ?
> >>
> >> Wayne Fay wrote:
> >>>
>  I have some  jar files inside my project folder , and I want maven to
>  include them inside WEB-INF/lib   , I know one way to include is to
>  create a
> >>>
> >>> Use "mvn install:install-file" to put the jar files in your local repo
> >>> cache and/or "mvn deploy:deploy:file" to put the jar files in your
> >>> "corporate repo" and then add proper dependencies etc in your pom to
> >>> include them.
> >>>
> >>> Any other method is a hack/workaround.
> >>>
> >>> Wayne
> >>>
> >>> -
> >>> 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23433759.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
> >>
> >>
> >
> > -
> > 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/adding-jars-from-project-folder-into-my-war-file-tp23432996p23434011.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: test data location question

2009-05-07 Thread Pete Siemsen

That seems reasonable, but I still don't understand how to make it work.

The program I'm trying to test is like a compiler.  It reads source  
files that can contain "include" statements.  When it parses such a  
statement, the program needs to open the include file and start  
parsing statements in the include file.


If I use getResourceAsStream, what can I do when I encounter the  
"include" statement?  How can I open the include file if I can't  
specify the path that leads to the include file, relative to the  
initial input stream?


As I wrote, the program is working just fine.  It reads a file name  
from the command line.  My question is how to test it within the maven  
framework, without specifying absolute test file names.


Cheers,
-- Pete


On May 5, 2009, at 3:55 PM, Jeff MAURY wrote:

You should store your files under src/test/resources and load your  
files using getResourceAsStream


Regards
Jeff MAURY

On Tue, May 5, 2009 at 11:37 PM, Pete Siemsen   
wrote:


This is a basic question about how to run Java unit tests that  
require file names.


I use maven to develop a program that reads input file names from  
the command line.  It's working fine, but now I want to share the  
code with someone else.  The test programs live in ../src/test/ 
java, and the test data lives in ../src/test/data.  Until now, I've  
used fully-qualified paths hard-coded into my test programs, like / 
Users/siemsen/TranslateCIM/src/test/data/cim/ 
testArrayTypeOnNonArray/testATONA.mof.


If I tar up my development directory and give it to someone else,  
the fully-qualified paths obviously don't work.  I want to make the  
paths relative somehow.  The program reads an input file that may  
contain "include" statements that cause the program to open other  
files relative to the first input file.  It seems to my newbie eyes  
that using resources and getResourceAsStream won't allow me to open  
subfiles.


What I think I want is a runtime environment variable or something  
that tells me the path to the maven development directory.


Any suggestion would be appreciated.

-- Pete




Re: test data location question

2009-05-07 Thread Jeff MAURY
Your compiler should be aware of the resource it is working on and not only
of the input stream. This is a common case when dealing with embeded
resource. Look at XML parsers for example.

Regards
Jeff MAURY

On Fri, May 8, 2009 at 12:39 AM, Pete Siemsen  wrote:

> That seems reasonable, but I still don't understand how to make it work.
>
> The program I'm trying to test is like a compiler.  It reads source files
> that can contain "include" statements.  When it parses such a statement, the
> program needs to open the include file and start parsing statements in the
> include file.
>
> If I use getResourceAsStream, what can I do when I encounter the "include"
> statement?  How can I open the include file if I can't specify the path that
> leads to the include file, relative to the initial input stream?
>
> As I wrote, the program is working just fine.  It reads a file name from
> the command line.  My question is how to test it within the maven framework,
> without specifying absolute test file names.
>
> Cheers,
> -- Pete
>
>
> On May 5, 2009, at 3:55 PM, Jeff MAURY wrote:
>
>  You should store your files under src/test/resources and load your files
>> using getResourceAsStream
>>
>> Regards
>> Jeff MAURY
>>
>> On Tue, May 5, 2009 at 11:37 PM, Pete Siemsen  wrote:
>>
>>  This is a basic question about how to run Java unit tests that require
>>> file names.
>>>
>>> I use maven to develop a program that reads input file names from the
>>> command line.  It's working fine, but now I want to share the code with
>>> someone else.  The test programs live in ../src/test/java, and the test data
>>> lives in ../src/test/data.  Until now, I've used fully-qualified paths
>>> hard-coded into my test programs, like
>>> /Users/siemsen/TranslateCIM/src/test/data/cim/testArrayTypeOnNonArray/testATONA.mof.
>>>
>>> If I tar up my development directory and give it to someone else, the
>>> fully-qualified paths obviously don't work.  I want to make the paths
>>> relative somehow.  The program reads an input file that may contain
>>> "include" statements that cause the program to open other files relative to
>>> the first input file.  It seems to my newbie eyes that using resources and
>>> getResourceAsStream won't allow me to open subfiles.
>>>
>>> What I think I want is a runtime environment variable or something that
>>> tells me the path to the maven development directory.
>>>
>>> Any suggestion would be appreciated.
>>>
>>> -- Pete
>>>
>>
>


-- 
La mélancolie c’est communiste
Tout le monde y a droit de temps en temps
La mélancolie n’est pas capitaliste
C’est même gratuit pour les perdants
La mélancolie c’est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c’est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


Re: Dependency version precedence

2009-05-07 Thread Ylan Segal

Brian Fox wrote:

It will resolve the conflicts, but here no conflict exists from Maven's
point of view. The groupid is part of the coordinates so they appear to be
the same. Jdom should insert a "relocation" pom to solve these issues. Your
recourse is to use an exclusion.
Assuming the group was the same, you would get 1.1. And lets further assume
you didn't directly depend on 1.1 but had some other dependency foo, that
did. Which ever brought in jdom first in your pom would be the version you
end up with. In otherwords, if the depth is the same for a dependency, the
first one seen wins.


That's what I thought. I will use the exclusion then.

Thanks,

--
Ylan.


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



Re: Access to the class path

2009-05-07 Thread James Crawford
I did look at dependency:build-classpath but I could only
see how it outputs the class path to a file.

>From the web page:

"This goal will output a classpath string of dependencies
 from the local repository to a file or log."

Is there anyway to get access to it as a property?

I guess I could always write it out to a file and then read
it from the file in my tests but it seems a convoluted...

Cheers,
James.

On Thu, 2009-05-07 at 18:08 -0400, Brian Fox wrote:
> take a look at dependency:build-classpath
> 
> On Thu, May 7, 2009 at 3:11 AM, James Crawford 
> wrote:
> 
> > Hi,
> >
> > I need to be able to get access to the runtime class path
> > in my tests when invoked from the maven-surefire-plugin.
> >
> > I can set system properties for the surefire plugin but I
> > can't find anyway that I can get access to the class path.
> >
> > For example I want to do something like the following to
> > set some "runtime.classpath" system property (assuming maven
> > provided a "maven.runtime.classpath" property):
> >
> >  
> >maven-surefire-plugin
> >
> >  always
> >  
> >
> >  runtime.classpath
> >  ${maven.runtime.classpath}
> >
> >  
> >
> >
> >  ...
> >
> >  
> >
> > I can see that when running ant tasks the antrun plugin
> > provides access to this type of information but I can't
> > find anywhere where it is possible to get access to this
> > information in a general way within Maven without writing
> > my own plugin.
> >
> > Can anyone tell me whether it is possible to do what I
> > want?
> >
> > Thanks,
> > James.
> >
> >
> >
> > -
> > 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: Access to the class path

2009-05-07 Thread Manos Batsis

James Crawford wrote:

I did look at dependency:build-classpath but I could only
see how it outputs the class path to a file.




Probably not the best idea as I've been up straight wy too long, but 
it should take you 15 minutes to change the source so that an env 
property is stored.


Manos

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



Re: Access to the class path

2009-05-07 Thread Brian Fox
Yeah, someone else was looking for this too. If you supply a patch, i'll
integrate it.

On Thu, May 7, 2009 at 8:28 PM, Manos Batsis wrote:

> James Crawford wrote:
>
>> I did look at dependency:build-classpath but I could only
>> see how it outputs the class path to a file.
>>
>>
>
> Probably not the best idea as I've been up straight wy too long, but it
> should take you 15 minutes to change the source so that an env property is
> stored.
>
> Manos
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Access to the class path

2009-05-07 Thread James Crawford
On Thu, 2009-05-07 at 20:34 -0400, Brian Fox wrote:
> Yeah, someone else was looking for this too. If you supply a patch, i'll
> integrate it.

We are currently on Maven 2.0.4 so I can't even build the latest
source.

If I get time I will produce a patch when we finally upgrade to
a more recent version of aven.

> On Thu, May 7, 2009 at 8:28 PM, Manos Batsis 
> wrote:
> 
> > James Crawford wrote:
> >
> >> I did look at dependency:build-classpath but I could only
> >> see how it outputs the class path to a file.

One thing I noticed is that the classpath seems to be sorted 
alphabetically when using the dependency:build-classpath goal
and thus differs from the project.getClasspathElements() call
which is what I would have expected the results to look like.

Is there a reason for this?

Cheers,
James.



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



Re: Access to the class path

2009-05-07 Thread Brian Fox
No, that would be a bug.

On Thu, May 7, 2009 at 9:01 PM, James Crawford wrote:

> On Thu, 2009-05-07 at 20:34 -0400, Brian Fox wrote:
> > Yeah, someone else was looking for this too. If you supply a patch, i'll
> > integrate it.
>
> We are currently on Maven 2.0.4 so I can't even build the latest
> source.
>
> If I get time I will produce a patch when we finally upgrade to
> a more recent version of aven.
>
> > On Thu, May 7, 2009 at 8:28 PM, Manos Batsis  >wrote:
> >
> > > James Crawford wrote:
> > >
> > >> I did look at dependency:build-classpath but I could only
> > >> see how it outputs the class path to a file.
>
> One thing I noticed is that the classpath seems to be sorted
> alphabetically when using the dependency:build-classpath goal
> and thus differs from the project.getClasspathElements() call
> which is what I would have expected the results to look like.
>
> Is there a reason for this?
>
> Cheers,
> James.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: include jars from a folder

2009-05-07 Thread Brian Fox
You're shoving a square peg into a round hole by doing this. You won't get
much, if any of the benefits of Maven without using a repository.

On Wed, May 6, 2009 at 4:00 PM, tubin gen  wrote:

> I have some of the jar files modified and kept them under folder ext-lib,
> there jars files are needed  by my application, can I tell maven to include
> jars from this folder   into the war file ?
> my pom right now uses scope system and systempath , I donot  want to
> install
> them becasue we don't have   common repository manager and every user
> working with the project must install these jar files into there local
> repository
>


Re: hi, how to specify java_opts in maven

2009-05-07 Thread shrimpywu

so what should i do???



BRIAN FOX-5 wrote:
> 
> set MAVEN_OPTS = -Xmx512m for example. It can't be done directly from the
> cli.
> 
> On Thu, May 7, 2009 at 1:39 AM, shrimpywu  wrote:
> 
>>
>> Before i run my program like this
>>
>> 
>>org.codehaus.mojo
>>exec-maven-plugin
>>
>>
>>
>>exec
>>
>>
>>
>><
>>
>>java
>>
>>-Xms32m
>>-Xmx1024m
>>-classpath
>>
>>org.myproject.Main
>>
>>
>>
>>
>>
>> however i have to pass arguments in run time,
>> so i have to do things like this
>>  mvn exec:java -Dexec.mainClass="org.myproject.Main"
>> -Dexec.args="argument1"
>>
>> but i found out that, if i do in comand line, i can specify any argument
>> in
>> the POM any more,
>> coz it will complain and throws exception.
>> but i do want to increase the java heap size, otherwise i will get "Out
>> of
>> memory" exception
>>
>> So...can any one help me how can i do both???
>> --
>> View this message in context:
>> http://www.nabble.com/hi%2C-how-to-specify-java_opts-in-maven-tp23420573p23420573.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/hi%2C-how-to-specify-java_opts-in-maven-tp23420573p23440459.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: test data location question

2009-05-07 Thread Stephen Connolly
use getResource to get the URL of the resource and then parsethe URL
to find the file path

On 07/05/2009, Pete Siemsen  wrote:
> That seems reasonable, but I still don't understand how to make it work.
>
> The program I'm trying to test is like a compiler.  It reads source
> files that can contain "include" statements.  When it parses such a
> statement, the program needs to open the include file and start
> parsing statements in the include file.
>
> If I use getResourceAsStream, what can I do when I encounter the
> "include" statement?  How can I open the include file if I can't
> specify the path that leads to the include file, relative to the
> initial input stream?
>
> As I wrote, the program is working just fine.  It reads a file name
> from the command line.  My question is how to test it within the maven
> framework, without specifying absolute test file names.
>
> Cheers,
> -- Pete
>
>
> On May 5, 2009, at 3:55 PM, Jeff MAURY wrote:
>
>> You should store your files under src/test/resources and load your
>> files using getResourceAsStream
>>
>> Regards
>> Jeff MAURY
>>
>> On Tue, May 5, 2009 at 11:37 PM, Pete Siemsen 
>> wrote:
>>
>>> This is a basic question about how to run Java unit tests that
>>> require file names.
>>>
>>> I use maven to develop a program that reads input file names from
>>> the command line.  It's working fine, but now I want to share the
>>> code with someone else.  The test programs live in ../src/test/
>>> java, and the test data lives in ../src/test/data.  Until now, I've
>>> used fully-qualified paths hard-coded into my test programs, like /
>>> Users/siemsen/TranslateCIM/src/test/data/cim/
>>> testArrayTypeOnNonArray/testATONA.mof.
>>>
>>> If I tar up my development directory and give it to someone else,
>>> the fully-qualified paths obviously don't work.  I want to make the
>>> paths relative somehow.  The program reads an input file that may
>>> contain "include" statements that cause the program to open other
>>> files relative to the first input file.  It seems to my newbie eyes
>>> that using resources and getResourceAsStream won't allow me to open
>>> subfiles.
>>>
>>> What I think I want is a runtime environment variable or something
>>> that tells me the path to the maven development directory.
>>>
>>> Any suggestion would be appreciated.
>>>
>>> -- Pete
>
>

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