Re: Filtering web.xml?

2012-11-06 Thread Tomasz Pik
On Tue, Nov 6, 2012 at 4:45 PM, Billy Newman  wrote:

> I am trying to filter my web.xml with no luck.
>
> Current structure:
> pom.xml
> --> src
> --->main
> >webapp
> ->WEB-INF
> -->web.xml
>
> I have the war plugin defined as follows:
>
>   
> org.apache.maven.plugins
> maven-war-plugin
> 2.3
> 
>   
> 
>   ${basedir}/src/main/webapp/WEB-INF
>   true
>   
> *.xml
>   
> 
>

Please, try to add second section of resources:


  ${basedir}/src/main/webapp/WEB-INF
  false
  
*.xml
  


Regards,
Tomek


>   
> 
>   
>
> After I build I can look in the target directory and the web.xml that
> lives in the exploded dir is correctly filtered.  However the web.xml
> that gets packaged up in the war is not filtered.  So its like my
> filtered web.xml got copied into target after the war was built.  I
> imagine that I am not filtering the web.xml correctly, any ideas?
>
> Thanks!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Can not get a jar from maven central

2012-11-05 Thread Tomasz Pik
On Mon, Nov 5, 2012 at 7:48 PM, Jason Swank  wrote:

> Hi,
>
> This issue has been traced to two errant CDN nodes; the provider has
> advised us that these nodes have been removed for maintenance.  If
> possible, can you confirm that this artifact is now accessible for you?
>

I've just tried and it works fine. no problems.

Thanks!
Tomek

Regards,
Jason

On Mon, Nov 05, 2012 at 04:05:57PM +0100, Tomasz Pik wrote:

> [ipsilon ss]# wget -dv
>
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
> Setting --verbose (verbose) to 1
> DEBUG output created by Wget 1.13.4 on linux-gnu.
>
> URI encoding = `UTF-8'
> --2012-11-05 16:01:36--
>
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
> Resolving repo1.maven.org (repo1.maven.org)... 68.232.34.223
> Caching repo1.maven.org => 68.232.34.223
> Connecting to repo1.maven.org (repo1.maven.org)|68.232.34.223|:80...
> connected.
> Created socket 3.
> Releasing 0x012ae740 (new refcount 1).
>
> ---request begin---
> GET
>
/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
> HTTP/1.1
> User-Agent: Wget/1.13.4 (linux-gnu)
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
>
> ---request end---
> HTTP request sent, awaiting response... Read error (Connection reset by
> peer) in headers.
> Closed fd 3
> Retrying.
>
> --2012-11-05 16:02:37--  (try: 2)
>
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
> Found repo1.maven.org in host_name_addresses_map (0x12ae740)
> Connecting to repo1.maven.org (repo1.maven.org)|68.232.34.223|:80...
> connected.
> Created socket 3.
> Releasing 0x012ae740 (new refcount 1).
>
> ---request begin---
> GET
>
/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
> HTTP/1.1
> User-Agent: Wget/1.13.4 (linux-gnu)
> Accept: */*
> Host: repo1.maven.org
> Connection: Keep-Alive
>
> ---request end---
> HTTP request sent, awaiting response... ^C

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


Re: Can not get a jar from maven central

2012-11-05 Thread Tomasz Pik
On Mon, Nov 5, 2012 at 3:45 PM, Jason Swank  wrote:

> Hi,
>
> I'm opening a ticket with the CDN provider regarding this issue; the
> diagnostic info you've provided will hopefully provide enough
> information to track down the root cause of the issue.


One more case from my side:
spring-asm-3.1.3.RELEASE-sources.jar can be downloaded (it seems to be
empty jar btw)
spring-asm-3.1.3.RELEASEjar cannot be downloaded,

[ipsilon ss]# !curl
curl http://ifconfig.me
158.75.202.2

Maybe it's something with file/cache system on httpd level?

Regards,
Tomek

Full wget output:

[ipsilon ~]# wget -dv
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE-sources.jar
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
--2012-11-05 15:57:37--
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE-sources.jar
Resolving repo1.maven.org (repo1.maven.org)... 68.232.34.223
Caching repo1.maven.org => 68.232.34.223
Connecting to repo1.maven.org (repo1.maven.org)|68.232.34.223|:80...
connected.
Created socket 3.
Releasing 0x01c6ef50 (new refcount 1).

---request begin---
GET
/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE-sources.jar
HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: repo1.maven.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Type: application/java-archive
Date: Mon, 05 Nov 2012 14:57:39 GMT
Last-Modified: Wed, 31 Oct 2012 18:33:58 GMT
Server: ECAcc (fcn/40AE)
X-Cache: HIT
Content-Length: 543

---response end---
200 OK
Registered socket 3 for persistent reuse.
Length: 543 [application/java-archive]
Saving to: `spring-asm-3.1.3.RELEASE-sources.jar'

100%[>]
543 --.-K/s   in 0s

2012-11-05 15:57:37 (26.2 MB/s) - `spring-asm-3.1.3.RELEASE-sources.jar
saved [543/543]

[ipsilon ss]# wget -dv
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
Setting --verbose (verbose) to 1
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
--2012-11-05 16:01:36--
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
Resolving repo1.maven.org (repo1.maven.org)... 68.232.34.223
Caching repo1.maven.org => 68.232.34.223
Connecting to repo1.maven.org (repo1.maven.org)|68.232.34.223|:80...
connected.
Created socket 3.
Releasing 0x012ae740 (new refcount 1).

---request begin---
GET
/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: repo1.maven.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... Read error (Connection reset by
peer) in headers.
Closed fd 3
Retrying.

--2012-11-05 16:02:37--  (try: 2)
http://repo1.maven.org/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
Found repo1.maven.org in host_name_addresses_map (0x12ae740)
Connecting to repo1.maven.org (repo1.maven.org)|68.232.34.223|:80...
connected.
Created socket 3.
Releasing 0x012ae740 (new refcount 1).

---request begin---
GET
/maven2/org/springframework/spring-asm/3.1.3.RELEASE/spring-asm-3.1.3.RELEASE.jar
HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: repo1.maven.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... ^C




>  If you'd like to
> respond offline to me with your IP address, that will also be helpful:
>
> $ curl http://ifconfig.me
>
> In the meantime, you can retrieve this artifact from search.maven.org:
>
>
> http://search.maven.org/#artifactdetails%7Corg.codehaus.woodstox%7Cwoodstox-core-asl%7C4.1.4%7Cjar
>
> Regards,
> Jason
>
> On Mon, Nov 05, 2012 at 06:35:57AM -0800, eugene wrote:
> > Hello Brian,
> >
> > Here you go:
> >
> > curl -I
> >
> http://repo1.maven.org/maven2/org/codehaus/woodstox/woodstox-core-asl/4.1.4/woodstox-core-asl-4.1.4.jar
> > -v
> > * About to connect() to repo1.maven.org port 80 (#0)
> > *   Trying 68.232.34.223...
> > * connected
> > * Connected to repo1.maven.org (68.232.34.223) port 80 (#0)
> > > HEAD
> > >
> /maven2/org/codehaus/woodstox/woodstox-core-asl/4.1.4/woodstox-core-asl-4.1.4.jar
> > > HTTP/1.1
> > > User-Agent: curl/7.27.0
> > > Host: repo1.maven.org
> > > Accept: */*
> > >
> >
> > And it froze.
> >
> > Thank You,
> > Eugene.
> >
> >
> >
> > --
> > View this message in context:
> http://maven.40175.n5.nabble.com/Can-not-get-a-jar-from-maven-central-tp5729478p5729513.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsu

Re: writing a parent pom that does not execute its plugins

2011-10-18 Thread Tomasz Pik
On Tue, Oct 18, 2011 at 1:28 PM, Dirk Olmes  wrote:
> Hi,
>
> our Maven (2.2.1) build generates install zips with obfuscated sources
> from the artifacts within the build. Over the last year we created more
> and more installer packages this way, using the famous copy/paste approach.
>
> I'd like to clean things up so I thought I'd create a parent POM with
> pom and have the installer modules inherit from
> it. Now the problem is that in the installer-parent module I'm binding
> plugins to the specific lifecycle phases already, e.g.
>
> 
>  org.codehaus.mojo
>  properties-maven-plugin
>  
>    
>      initialize
>      
>        read-project-properties
>      
>      
>        
>          ${basedir}/build.properties
>        
>      
>    
>  
> 
>
> My problem is that I don't want the newly created installer-parent
> module to execute those plugins but rather the child modules.
>
> I am aware of the  section but fail to see if it would
> help: I'd still have to list all the plugins to be executed in the
> individual installer POMs.

Maybe put those plugins into dedicated profile in parent pom and then
activate this profile in children?

Regards,
Tomek

PS http://jira.codehaus.org/browse/MNG-4154

>
> I'm thankful for any hint ...
>
> -dirk
>
> -
> 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: Configure External Repository Credentials in POM

2010-01-27 Thread Tomasz Pik
On Tue, Jan 26, 2010 at 11:01 PM, Brig Lamoreaux
 wrote:
>
> How can you set external repository credentials in the POM file?
>
> I know that you can create a settings.xml file with values below, but how can 
> I configure a POM file with username/password. I looked at 
> http://maven.apache.org/maven-v4_0_0.xsd and I don't see a username and 
> password.

This is 'by design'. POM is a 'public artifcat' that you'd share with
your co-workers
(by default it's being packaged into jar file) so it should not
contains passwords.
settings.xml is in your home directory, so it's 'private'.

Regards,
Tomek

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



Re: script-maven-plugin: suport for JSR223

2010-01-02 Thread Tomasz Pik
On Fri, Jan 1, 2010 at 12:29 PM, Stefano Fornari
 wrote:
> Hi All,
> I needed a plugin to run JavaScript scripts and I ran into
> script-maven-plugin. It looks that id does most of what I need, but I
> would need to extend it anyway to allow the evaluation of more than
> one script. Looking at the documentation and code, I noticed, it seems
> a bit outdated and supports BSF 2.x only.
> In the JDK 1.6, JSR223 is implemented and provides already the Rhino
> JavaScript engine implementation. I was therefore wondering if it
> makes sense at all to develop a script-maven-plugin 2.0 that supports
> JSR223 and drops support for BSF (who wants to use BSF engines can
> keep using 1.0-SNAPSHOT). I would develop such version and contribute
> it to the project if Tomasz is fine with it. The alternative is to
> develop a separate plugin, but it would be a pity to fragment this
> simple mojo.

Yes, go for it.
Initially, I've been developing this plugin with groovy in mind
and then whole GMaven thing comes...
Also, with JDK1.6 being a de facto standard on developer's environments,
I think it would be better to use JSR233 instead of BSF.

Regards,
Tomek
>
> What do you think?
>
> Stefano
>
> --
> Ste
>

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



Re: Converting to Maven 1.x

2009-04-23 Thread Tomasz Pik
On Wed, Apr 22, 2009 at 7:21 PM, Michael K. Craghead
 wrote:
> I know this seems like a strange request, but what is the best way to convert 
> a Maven 2 project to
> Maven 1? Our development team was going to start to move to Maven 2, but the 
> plans have
> changed. Unfortunately, I've already built all of my code using Maven 2. I 
> need to know how to
> convert my various projects to Maven 1. That includes changing the directory 
> structure to leave
> out the "main" directory folder between the "src" and "java" folders, as well 
> as any other directory
> differences that I might not be thinking of at the moment. Thanks.

This will depend on complexity of your projects etc.
But as a first hint:
mvn dependency:list
will resolve dependencies dependencies for your projects so you'll know,
what you should define as a list of dependencies in project.xml.

Regards,
Tomek (still using maven1 in some projects..)

>  Michael K. Craghead

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



Re: pde-maven-plugin

2009-01-09 Thread Tomasz Pik
On Fri, Jan 9, 2009 at 2:10 AM, Jason van Zyl  wrote:
> Pull the latest dev builds, the wiki page is here:
>
> http://docs.codehaus.org/display/M2ECLIPSE/Tycho+builds
>
> The sync from apache to central seems to be failing which is why it's
> choking on 3.0-alpha-1.

Are there plans to release Tycho (alpha-1 or sth) and push to central repo
so it can be used with released 3.0-alpha-1 of maven?

Regards,
Tomek

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



Re: End User License Agreements

2008-12-03 Thread Tomasz Pik
On Wed, Dec 3, 2008 at 7:51 PM, Jason Voegele <[EMAIL PROTECTED]> wrote:
> We have a need to ask the user to accept a license agreement at the time that
> Maven downloads and installs some of the artifacts we host on our Maven
> repository.  I have read som information here:
> http://maven.apache.org/pom.html#Licenses
>
> I see that the POM supports a  element that allows us to specify the
> license, but unfortunately it appears that this cannot be used to prompt the
> user to accept (or decline) the license.
>
> Is there any way to make Maven prompt the user to accept a license agreement?

Not yet, see http://jira.codehaus.org/browse/MNG-671

Regards,
Tomek

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



Re: Versioning builds

2008-11-21 Thread Tomasz Pik
On Thu, Nov 20, 2008 at 5:03 PM, Costin Caraivan <[EMAIL PROTECTED]> wrote:
>
> Hello.
>
> I'm trying to build a lot of Eclipse plugins with Maven. I've finished the
> hardest part (I hope :) ), and now I'm trying to version the builds. That
> is, I want the output of the build process to be a zip named something like
> this:
>
> com.whatever.me_2.2.2.MMDDHHmm.zip, where 2.2.2 is a relatively static
> version, but MMDDHHmm is obviously the timestamp of the build (and it's
> not static at all :) ).
>
> Thing is, I can't figure out how to do this. Any ideas? (Can I give Maven
> project.version numbers as command line parameters?)
>
> Later on I have to automate this with Continuum, so if anyone knows how to
> pass the timestamp from Continuum, be my guest :)

Continuum is not passing timestamp to projects during build but you may use
${continuum.project.nextBuild.number} - this will be a number.
Or, for timestamp, as Mick pointed out - buildnumber plugin.

Regards,
Tomek

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



Re: How to add a jar in project package.

2008-11-10 Thread Tomasz Pik
On Mon, Nov 10, 2008 at 9:51 PM, kunduruswaroop <[EMAIL PROTECTED]> wrote:
>
>
> Wayne
>
>
> I am using Sun JVM from JDK1.5. I wanted a structure in the project jar file
> it should include log4j jar file so that I can port this entire jar to
> different machine where there is no Maven and and run the class.

You may use jar-with-dependencies:
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies
Then, after 'package' you'll have two jars:
my-jar-1.0-SNAPSHOT.jar contains your classes
and my-jar-jar-with-dependecies-1.0-SNAPSHOT.jar
contains your classes and classes from your dependencies.
This will not be 'jar within a jar' but just a regular jar.
I think that's what you're looking for.

HTH,
Tomek
>
>
> Regards,
>
> Swaroop Kunduru.
> --
> View this message in context: 
> http://www.nabble.com/How-to-add-a-jar-in-project-package.-tp20407563p20427615.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: building two artifacts with shared source code

2008-09-25 Thread Tomasz Pik
On Thu, Sep 25, 2008 at 6:51 AM, Tomek Maciejewski
<[EMAIL PROTECTED]> wrote:
> P.S
> I have one more question. Let's assume that I deployed some artifact.
> Some people have used it so they have copy of it in local repository.
> Now I change something in artifact and deploy it with the same version
> number. Will all the people which have a copy of previous version in
> local repository still use old version, or maybe maven will see that
> there is a new version of this library (with the same version number
> as previous) and automatically download it from remote repository
> during the building?

It's possible to force maven to reload dependencies, see
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
But it's a very bad idea.
If you release something with given version number, then, if
you need to make a fix, release new version and let users know,
that they should change version in  their projects, not
're-download' artifacts from repositories.
I do not know for sure but I think that repository managers
(archiva, nexus) will not 're-download' your 're-released' projects
if you do such a trick.
Also - perhaps this will help:
http://mojo.codehaus.org/versions-maven-plugin/display-dependency-updates-mojo.html

Regards,
Tomek

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



Re: Maven descriptor - what is it good for?

2008-09-18 Thread Tomasz Pik
On Thu, Sep 18, 2008 at 7:44 AM, Ellecer Valencia <[EMAIL PROTECTED]> wrote:
> I'm trying to clarify what is the purpose of the Maven descriptor, and
> what systems make use of it,  and if there is any point in working on
> this issue we have with the pom.xml that is added to our generated
> artifacts.
>
> Our projects are set up to have their version numbers passed in via
> the build system. When a build is performed on Hudson, it passes in
> the property major.minor.version and BUILD_NUMBER.
>
> So the version element in our pom.xml looks like this:
>
> ${major.minor.version}.${BUILD_NUMBER}
>
> and the build command in the Hudson config for this project is like this
>
> mvn -Dmajor.minor.version=1.0.0 -DBUILD_NUMBER=${BUILD_NUMBER} clean package
>
> (actually, Hudson sets BUILD_NUMBER in the environment so we can also
> leave it out)
>
> Now the problem is, when the pom.xml gets added to the generated
> artifact, it's the same as the original pom.xml, so that the version
> is still
>
> ${major.minor.version}.${BUILD_NUMBER}
>
> and does not get the details passed in on the command line.  Is this a
> bug or how it's really supposed to work?
>
> I would've thought it would pick up on the parameters that have been
> set and add a pom.xml that is more like the one you get when you do
> "mvn help:effective-pom"
>
> The pom.properties has all the right values, so the "version" property
> has whatever values were passed in from command line.
>
> It's not a major issue, but it's a small annoyance when you upload it
> manually via Artifactory and it thinks that the version of the
> artifact is the string "${major.minor.version}.${BUILD_NUMBER}".
>
> It would be great if other users or maven developers could clarify
> what it is used for, and if the behaviour I'm seeing is intentional.

This is how it's supposed to work. During 'install' or 'deploy' pom
is just copied to repository. And it's a maven-release-plugin task
to modify pom  during release process so there's a change in
version of artifact.
mvn help:effective-pom provides you how maven interpret your
pom. Maybe there should be a (I think that a very dangerous)
property that will allow maven to 'install/deploy' serialized version
of 'effective pom' instead of just copy project pom with
non-interpolated properties?

Regards,.
Tomek

>
> (btw, am using Maven 2.0.8)
>
> thanks,
>
>
> Ellecer
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Extending maven to accomplish some tasks

2008-03-06 Thread Tomasz Pik
On 3/6/08, VUB Stefan Seidel <[EMAIL PROTECTED]> wrote:
> Tomasz Pik wrote:
>  > On 3/6/08, VUB Stefan Seidel <[EMAIL PROTECTED]> wrote:
>
> >> install
>  >
>  > Is there a way to setup it so maven will 'copy' artifact
>  > in 'package' phase, without installing artifact to local repo?
>  >
>
> package?
>  Maybe even verify.
>  Then run "mvn package".

nop :(
If this is being bind to 'package', then maven:
1. builds and package project into 'target/...'
2. use dependency mechanism to locate artifact
  defined in configuration for plugin through repositories
  (both local and remote) and copy one  from repository,
  not the new one.
Should I report it as a feature request?

Regards,
Tomek

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



Re: Extending maven to accomplish some tasks

2008-03-06 Thread Tomasz Pik
On 3/6/08, VUB Stefan Seidel <[EMAIL PROTECTED]> wrote:
> Ah, the universal antrun solution. Guys, maven is better than ant, why
>  do you keep using ant?
>
>  For copying the built file use dependency plugin:
>   
> 
>   
> org.apache.maven.plugins
> maven-dependency-plugin
> 
>   
> copy-installed
> install

Is there a way to setup it so maven will 'copy' artifact
in 'package' phase, without installing artifact to local repo?

Thanks,
Tomek

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



Re: Handling webapp dependencies

2008-02-19 Thread Tomasz Pik
On Feb 19, 2008 9:56 PM, Chris <[EMAIL PROTECTED]> wrote:
> We have two webapps. One is the basic app, and one is the enhanced
> version of the same app.
>
> In our current setup, when we want to run the enhanced app we copy the
> basic app into /webapps/mywebapp, then we overwrite the directory with
> the files from the enhanced app. This is necessary because the enhanced
> app replaces index.jsp, some of the .css files, and a number of other pages.
>
> This scheme works fine, but now I'm migrating to Maven, and this isn't a
> very maven-ish way to do things. Is there a more standard way to handle
> the situation when one webapp depends on another?

If I'm reading correctly:
* create war project (packaging==war), the basic one;
* handle basic app in standard maven way (install/deploy/release and so on);
* create war project (...), enhanced one, adding
  
yourgroupid
basic one
I-do-not-know-but-you-know-for-sure
war
  
and during 'package' maven will unpack 'basic' one and copy resources
(src/main/webapp and so on) from enhanced (so you may override 'basic'
things like web.xml).
Which is probably exactly what you're looking for and is in maven way.
More about this here:
http://maven.apache.org/plugins/maven-war-plugin/overlays.html

HTH,
Tomek

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



Re: .m2/settings.xml

2008-02-04 Thread Tomasz Pik
On Feb 4, 2008 7:00 PM, amit kumar <[EMAIL PROTECTED]> wrote:
> Hi,
> where is .m2/settings.xml? I saw this first in the maven plugin for
> eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can
> not find this file inside the .m2 folder. Do I have to create it
> manually? Or it is supposed to be generated at the time of .m2 folder
> gets created.

You need to create it manually.
This may also help: http://maven.apache.org/settings.html

Regards,
Tomek

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



Re: release:perform plugin: after release properties are changed to real values

2008-01-26 Thread Tomasz Pik
On Jan 26, 2008 6:46 PM, Vytautas Čivilis <[EMAIL PROTECTED]> wrote:
> Hi.
>
> If I have pom with the following, for instance:
>
> 
>
> scm:cvs:ext:[EMAIL 
> PROTECTED]:/fold/cvs:${groupId}/${artifactId}/
>
> scm:cvs:ext:[EMAIL 
> PROTECTED]:/fold/cvs:${groupId}/${artifactId}/
> 
>
> then after release:perform, the pom in the head would contain real
> values of those properties, e.g.:
>
> 
>
> scm:cvs:ext:[EMAIL 
> PROTECTED]:/fold/cvs:mygroup/myartf/
>
> scm:cvs:ext:[EMAIL 
> PROTECTED]:/fold/cvs:mygroup/myartf/
> 
>
> That's surely undesired. Is this done on purpose (what it is then), and
> how could I avoid such behavior?

This problem has been reported, you may track it here:
http://jira.codehaus.org/browse/MRELEASE-128

Regards,
Tomek

>
> Thanks.
> Vytautas
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Avoid Dependency version

2008-01-21 Thread Tomasz Pik
On Jan 21, 2008 2:21 PM, Guillaume Lederrey
<[EMAIL PROTECTED]> wrote:
> On 20/01/2008, Brian E. Fox <[EMAIL PROTECTED]> wrote:
> > You can use dependencyManagment in a parent pom to avoid specifying the
> > version in all your child poms. If you really want the "latest" you have
> > two choices:
> > LATEST - latest snapshot
> > RELEASE - latest release
> >
> > Or you could specify a range like [0,)
>
> Probably a dummy question on my part : I can get ranges to work, but
> not RELEASE nor LATEST. If y put the version of a dependency to
> either, I get :
>
>
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) myGroup:myProject:jar:RELEASE
>
>
> And the usual "dependency not found, would you like to install it" message.
>
> I tried to find docs, but found not much. Do you know since which
> version of maven this is available ?

As far as I know it works only for plugins.
For general usage - please, vote here, maybe this issue will get
some attention:
http://jira.codehaus.org/browse/MNG-2431

Regards,
Tomek

>
>   Thanks !
>
>
> > -Original Message-
> > From: amit kumar [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 18, 2008 8:38 AM
> > To: Maven Users List
> > Subject: Avoid Dependency version
> >
> > Hi,
> > Can I make it possible for my dependencies(jar files) declared in
> >  tags, not have version. Just like in case of plugin it
> > happens,
> > the latest on gets fetched?
> > When I don't put a version in my dependency tag, it throws error.
> >
> > Regards,
> > Amit
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jabber : [EMAIL PROTECTED]
> Skype : Guillaume.Lederrey
> Projects :
> * http://rwanda.wordpress.com/
> * http://rwandatech.wordpress.com/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: A question about setting in the POM.xml

2008-01-07 Thread Tomasz Pik
On Jan 7, 2008 3:23 PM, Thomas Chang <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>   Formerly I used maven1 and I can use the  in the project.xml 
> as follow:
>   ...
>   
>   commons-logging
>   commons-logging
>   1.0.4
>   jar
>   
>   true
>   
>   
>   ...
>
>   Now I use maven2. And I try to do the same in the POM.xml. But as I run 
> mvn-command I get error as follow. If I take out the , it will 
> be OK. But I do need the . Somebody can tell me what's wrong?

It works differently in maven2.
If you project has packaging == war, then, dependencies will be
included in war file.
You may define that you do not want them to be in bundled, then you have to add
provided which means that servlet container (J2EE server)
will provide those libraries for your application.
Typical usage: dependency on servlet-api.
More about this here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

HTH,
Tomek

>
>   Regards
>
>   Thomas
>
>
>   
>   E:\Projekte\TestSpringJpa>mvn -s "..\TestMavenConfig\settings.xml" clean
> [INFO] Scanning for projects...
> [INFO] 
> 
> [ERROR] FATAL ERROR
> [INFO] 
> 
> [INFO] Error building POM (may not be this project's POM).
>
> Project ID: unknown
> POM Location: E:\Projekte\TestSpringJpa\pom.xml
>   Reason: Parse error reading POM. Reason: Unrecognised tag: 'properties' 
> (positio
> n: START_TAG seen ...\r\n\t\t\t... @17:16)  for project 
> unkno
> wn at E:\Projekte\TestSpringJpa\pom.xml
>
> [INFO] 
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. 
> Reaso
> n: Unrecognised tag: 'properties' (position: START_TAG seen 
> ...\r\n\t\t\t
> ... @17:16)  for project unknown at 
> E:\Projekte\TestSpringJpa\pom.xm
> l
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error 
> re
> ading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG seen 
> ...<
> /type>\r\n\t\t\t... @17:16)  for project unknown at 
> E:\Projekte\Test
> SpringJpa\pom.xml
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1422)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1379)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> leInternal(DefaultMavenProjectBuilder.java:477)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:200)
> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
> at 
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
> ... 11 more
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: 
> Unrecognise
> d tag: 'properties' (position: START_TAG seen 
> ...\r\n\t\t\t..
> . @17:16)
> at 
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency(MavenX
> pp3Reader.java:1261)
> at 
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
> ader.java:2323)
> at 
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
> ava:4422)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1418)
> ... 17 more
> [INFO] 
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Jan 07 15:21:01 CET 2008
> [INFO] Final Memory: 1M/2M
> [INFO] 
> 
>   E:\Projekte\TestSpringJpa>
>
>
> -
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit 
> dem

Re: Existance of ZIP Archetype? | How to distribute DB code to different mvn modules?

2008-01-04 Thread Tomasz Pik
On Jan 4, 2008 3:57 PM,  <[EMAIL PROTECTED]> wrote:
> Unfortunately it is not just a new version of a plugin, but a new version of 
> maven itself. To build it, check out the maven trunk and follow the 
> instructions on this page: 
> http://maven.apache.org/guides/development/guide-building-m2.html

perhaps it's a question rather for 'dev' list but would it be a big
problem to create
maven-zip-plugin with appropriate plexus configs so packaging == zip may
be used in maven 2.0.x land?

Regards,
Tomek

>
> Hth,
>
> Nick Stolwijk
>
>
>
> -Original Message-
> From: Matthew Tordoff [mailto:[EMAIL PROTECTED]
> Sent: Fri 1/4/2008 3:54 PM
> To: Maven Users List
> Subject: RE: Existance of ZIP Archetype? | How to distribute DB code to 
> different mvn modules?
>
> Does that mean that I have to download and build that version from scratch? 
> If so where can I download it from? I have been looking at 
> http://jira.codehaus.org/browse/MNG/fixforversion/13143 but there doesn't 
> seem an obvious place where I can get the source. Is it easy to build?
>
> Regards,
>
> Matt
>
> -Original Message-
> From: Brian E. Fox [mailto:[EMAIL PROTECTED]
> Sent: 04 January 2008 13:42
> To: Maven Users List
> Subject: RE: Existance of ZIP Archetype? | How to distribute DB code to 
> different mvn modules?
>
> The fix version in the jira is 2.1-alpha-1. Mystery solved
>
> -Original Message-
> From: Tomasz Pik [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 04, 2008 7:36 AM
> To: Maven Users List
> Subject: Re: Existance of ZIP Archetype? | How to distribute DB code to 
> different mvn modules?
>
> On Jan 4, 2008 12:53 PM, Jeff MAURY <[EMAIL PROTECTED]> wrote:
> > Use the zip packaging in your POM
>
> hm, according to http://jira.codehaus.org/browse/MNG-1683 there should be 
> 'zip' packaging.
> But:
> $ cat pom.xml
>   xmlns="http://maven.apache.org/POM/4.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   4.0.0
>   a.b.c
>   d
>   zip
>   1.0-SNAPSHOT
>
> 
>
> [EMAIL PROTECTED] ~/xip
> $ mvn -U package
> [INFO] Scanning for projects...
> [INFO] 
> 
> [INFO] Building Unnamed - a.b.c:d:zip:1.0-SNAPSHOT
> [INFO]task-segment: [package]
> [INFO] 
> 
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Cannot find lifecycle mapping for packaging: 'zip'.
> Component descriptor cannot be found in the component repository:
> org.apache.maven.lifecycle.mapping.LifecycleMappingzip.
> [INFO] 
> 
> [INFO] For more information, run Maven with the -e switch [INFO] 
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Fri Jan 04 13:09:56 CET 2008 [INFO] Final Memory: 1M/4M 
> [INFO] 
> 
>
> shows that such packaging is not supported.
>
> Anyone knows what should I do to make it working?
>
> Thanks,
> Tomek
>
> >
> > Jeff
> >
> >
> >
> > On Jan 4, 2008 12:18 PM, Matthew Tordoff <[EMAIL PROTECTED]> wrote:
> >
> > > Hi all,
> > >
> > > Does anyone know if there is an existance of a ZIP archetype or
> > > similar for maven. I am looking to build a project organised in the
> > > following
> > > way:
> > >
> > > Super Module => contains => WAR => contains => JAR => contains =>
> > > SQLJ code which depends on PL/SQL
> > > => contains => PL/SQL
> > >
> > > The PL/SQL code also has to be delivered as part of the Super Module
> > > so it can be run on the various environments upon which it will be
> > > deployed. The way I thought of solving this was to create a zip
> > > maven module which was a child module of the Super Module, and was
> > > depended upon by the JAR module which would subsequently unpack that
> > > dependency locally to allow the building of the SQLJ (which is
> > > precompiled against the database, and requires the appropriate
> > > PL/SQL to have been 

Re: Existance of ZIP Archetype? | How to distribute DB code to different mvn modules?

2008-01-04 Thread Tomasz Pik
On Jan 4, 2008 12:53 PM, Jeff MAURY <[EMAIL PROTECTED]> wrote:
> Use the zip packaging in your POM

hm, according to http://jira.codehaus.org/browse/MNG-1683 there should
be 'zip' packaging.
But:
$ cat pom.xml

http://maven.apache.org/POM/4.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  a.b.c
  d
  zip
  1.0-SNAPSHOT



[EMAIL PROTECTED] ~/xip
$ mvn -U package
[INFO] Scanning for projects...
[INFO] 
[INFO] Building Unnamed - a.b.c:d:zip:1.0-SNAPSHOT
[INFO]task-segment: [package]
[INFO] 
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Cannot find lifecycle mapping for packaging: 'zip'.
Component descriptor cannot be found in the component repository:
org.apache.maven.lifecycle.mapping.LifecycleMappingzip.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Jan 04 13:09:56 CET 2008
[INFO] Final Memory: 1M/4M
[INFO] 

shows that such packaging is not supported.

Anyone knows what should I do to make it working?

Thanks,
Tomek

>
> Jeff
>
>
>
> On Jan 4, 2008 12:18 PM, Matthew Tordoff <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > Does anyone know if there is an existance of a ZIP archetype or similar
> > for maven. I am looking to build a project organised in the following
> > way:
> >
> > Super Module => contains => WAR => contains => JAR => contains => SQLJ
> > code which depends on PL/SQL
> > => contains => PL/SQL
> >
> > The PL/SQL code also has to be delivered as part of the Super Module so
> > it can be run on the various environments upon which it will be
> > deployed. The way I thought of solving this was to create a zip maven
> > module which was a child module of the Super Module, and was depended
> > upon by the JAR module which would subsequently unpack that dependency
> > locally to allow the building of the SQLJ (which is precompiled against
> > the database, and requires the appropriate PL/SQL to have been run on
> > the DB, creating views, types and packages).
> >
> > Am I going about this in the correct way? Any ideas to help me with my
> > approach would be greatly appreciated.
> >
> > Cheers,
> >
> > Matt
> >
> >
> >
> > The content of this e-mail is confidential and may be privileged. It may
> > be read, copied and used only by the intended recipient and may not be
> > disclosed, copied or distributed. If you received this email in error,
> > please contact the sender immediately by return e-mail or by telephoning +44
> > 20 7260 2000, delete it and do not disclose its contents to any person. You
> > should take full responsibility for checking this email for viruses. Markit
> > reserves the right to monitor all e-mail communications through its network.
> > Markit and its affiliated companies make no warranty as to the accuracy or
> > completeness of any information contained in this message and hereby exclude
> > any liability of any kind for the information contained herein. Any opinions
> > expressed in this message are those of the author and do not necessarily
> > reflect the opinions of Markit.
> > For full details about Markit, its offerings and legal terms and
> > conditions, please see Markit's website at http://www.markit.com <
> > http://www.markit.com/> .
> >
>
>
>
> --
> 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
>

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



Re: Is it possible to activate a profile from settings.xml?

2007-12-27 Thread Tomasz Pik
On Dec 27, 2007 5:51 PM, Steinar Bang <[EMAIL PROTECTED]> wrote:
> Is it possible to activate a profile in the top POM from settings.xml?
>
> What I want to do is to have a set of properties describing OS name, and
> architecture of shared libraries (ie. redhat4 and x86, or win32 and
> x86_64) for different build systems, and to have a single switch in
> settings.xml, to set the right set of values for a configuration.
>
> Is this possible to do?

yes, add something like this:


   idOfProfile
   idOfOtherProfile


listing profiles that needs to be activated at the end of settings.xml
file (before ).

Regards,
Tomejk

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

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



Re: distributing files / set of files to remove server (maven wagon plugin ???)

2007-12-27 Thread Tomasz Pik
On Dec 27, 2007 11:58 AM, John Coleman
<[EMAIL PROTECTED]> wrote:
>
> I've been looking at this for a while - at the end of the release
> process I would like to be able to FTP, or network copy the built
> artefact(s) to a distribution area where clients can collect them.
> Dropping them in a common repository is not helpful with respect to this
> as our artefacts vary according to client and need to be in separate
> client areas.

What about 'altDeploymentRepository' elements with different repository
ids for different clients?
Then you'll have all artifacts in your main repository and given
client artifacts in 'clients' repos as a side effect of deploying to main
repository.
See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

Regards,
Tomek

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



Re: 1 depency find, 10 downloaded!

2007-11-21 Thread Tomasz Pik
On Nov 21, 2007 12:53 PM, Michael Bernagou <[EMAIL PROTECTED]> wrote:
> Hello (world),
>
> I'm a sort of noob in Maven2.0.7. I'm using Eclipse WTP and the latest
> maven-eclipse-plugin.
>
> I defined theses dependencies :

[...]

> And when I launched the script :
> %M2_HOME%\bin\mvn eclipse:eclipse -Dwtpversion=1.5
>
> It download something like 20 librairies more such as avalon-framework,
> neethi, etc... why?? I suppose there is a dependency who create many
> inherance but for example, axis2-kernel, I was able to use it in the past
> without all these libraries...

execute "mvn -X test" and maven will print whole dependency tree
so you will see which dependencies are defined as child dependencies
of your dependencies.
This is called 'transitive dependencies' and you may find how to exclude them
here:
http://docs.codehaus.org/display/MAVENUSER/FAQs-1#FAQs-1-CanIdisabletransitivedependencies%3F

HTH,
Tomek

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



Re: Maven1.x Integration with Eclipse

2007-11-19 Thread Tomasz Pik
On Nov 19, 2007 10:58 AM,  <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Is there any pluggin available for integrating maven1.x with Eclipse

http://mevenide.codehaus.org/mevenide-ui-eclipse/features.html

Regards,
Tomek

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



Re: maven 2.0.7 assembly plugin

2007-11-06 Thread Tomasz Pik
On 11/6/07, John Coleman <[EMAIL PROTECTED]> wrote:
> I have used the assembly plugin, but not like this.
>
> I don't think such a JAR (i.e. a JAR of JARS) will work unless you are
> loading the classes up by your own JAR exploration mechanism. Class
> files must be locatable from the JARs root to appear on the classpath.

There's  such a thing in maven1 - please, take a look here:
http://maven.apache.org/maven-1.x/plugins/uberjar/
Perhaps it may be ported as a layout in maven-assembly-plugin.
But - I was using this with maven1 with project containing big
jars (i.e. oracle jdbc driver) and it's very slow so I do not think
it's a right way to go.

> Perhaps you need to consider unpacking the various JARS into a common
> target and repcaking that into a single JAR. This could be a trivial
> Maven project.

This may be achieved using maven-assembly-plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies

HTH,
Tomek

>
> Perhaps this isn't really a JAR application, and would be better as a
> ZIP?
>
> John
>
> -Original Message-
> From: Brandon Enochs [mailto:[EMAIL PROTECTED]
> Sent: 06 November 2007 00:26
> To: Maven Users List
> Subject: maven 2.0.7 assembly plugin
>
> I'm trying to assemble a multi-module project with a single jar file for
>
> all of the modules in my project and a lib directory with all of jar
> files for my dependencies.  Does anyone know how to do this with the
> assembly plugin?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
> exercise control over the content of information in E-Mails. Any views and 
> opinions expressed may be personal to the sender and are not necessarily 
> those of Eurobase. Eurobase will not enter into any contractual obligations 
> in respect of any part of its business in any E-mail.
>
> Privileged / confidential information may be contained in this message and 
> /or any attachments. This E-mail is intended for the use of the addressee(s) 
> only and may contain confidential information. If you are not the / an 
> intended recipient, you are hereby notified that any use or dissemination of 
> this communication is strictly prohibited.  If you receive this transmission 
> in error, please notify us immediately, and then delete this E-mail.
>
> Neither the sender nor Eurobase accepts any liability whatsoever for any 
> defects of any kind either in or arising from this E-mail transmission. 
> E-Mail transmission cannot be guaranteed to be secure or error-free, as 
> messages can be intercepted, lost, corrupted, destroyed, contain viruses, or 
> arrive late or incomplete. Eurobase does not accept any responsibility for 
> viruses and it is your responsibility to scan any attachments.
>
> Eurobase Systems Limited is the main trading company in the Eurobase 
> International Group; registered in England and Wales as company number 
> 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
> CM2 0RE, UK.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Generating Test Sources

2007-10-25 Thread Tomasz Pik
On 10/25/07, Brandon Enochs <[EMAIL PROTECTED]> wrote:
> Where should plugins place generated test sources?

Choose an arbitrary named directory under
${project.build.directory,  (${project.build.directory/generated/myplugin
for example), put tests there  and then add this directory to compileSourceRoot.
See:
http://mojo.codehaus.org/build-helper-maven-plugin/add-test-source-mojo.html
and maybe
http://mojo.codehaus.org/script-maven-plugin/examples/test-generation-simple.html
(second one is an example for unreleased plugin).

HTH,
Regards,
Tomek

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



Re: setting the version number in Maven

2007-10-10 Thread Tomasz Pik
On 10/10/07, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Is it me or is that site horribly slow (and that link didn't work)?

works for me.
here's a shortcut: http://tinyurl.com/2dkf6p

Regards,
Tomek

>
> -Original Message-
> From: Erez Nahir [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 10, 2007 4:07 PM
> To: Maven Users List
> Subject: Re: setting the version number in Maven
>
> Hi Bob,
>
> Have a look at
> http://docs.codehaus.org/display/MAVEN/best+practices+-+version+manageme
> nt+in+multi+project+bu
>
> In our project we use the ${applicationVersion} concept described in
> this URL.
>
> Erez.
>
> Bob Aiello wrote:
> > Hi,
> >
> > What is the easiest way to set a version in the pom.xml ?
> >
> > I have a maven app that has 30 poms and in order to update
> > the version, I have to modify each of these poms manually.
> >
> > 1.1.0
> >
> > I would like to be able to separate out the version
> > So that I can just change it in one place and the 30
> > poms will pick up the change. I keep thinking that I
> > should be able to have something like...
> >
> > ${myversion}
> >
> > And a properties file somewhere in which I set the version.
> >
> > Any suggestions on a simply way to do this would be
> > greatly appreciated!!!
> >
> > Bob Aiello
> > [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: release:prepare fails to create branch for svn+ssh

2007-10-09 Thread Tomasz Pik
On 10/9/07, Jörg Schaible <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> this is totally weird ... has anybody seen this?

yes, 20 minutes ago in my project :)
Please, try to remove 'scm:svn' prefix from tagBase and configure it as:
svn+ssh://svn.berlios.de/svnroot/repos/jsunit/tags

And then let us know the result.

HTH,
Tomek

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



Re: Build's state in report

2007-10-04 Thread Tomasz Pik
On 10/4/07, Gisbert Amm <[EMAIL PROTECTED]> wrote:
> A failed build won't result in a complete site. In other words: All
> reports that exist result from sucessfull builds.

hm,, i'm not sure if it's true.
in such a case having a result of unit test in surefire report
is useless because it will always be 'ok'.

regards,
Tomek

>
> What is your use case? What are you looking for?
>
> -Gisbert
>
> Martin Alejandro Villalobos wrote:
> > Hello.
> > Some body knows if there is some report in site plugin  that include the
> > build's state, i.e failure or sucessfull?
> >
> > Thanks for all and cheers.
> >
> > Martin.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> Gisbert Amm
> Softwareentwickler Infrastruktur
> Telefon: (0721) 91374 - 4224
> Telefax: (0721) 91374 - 2740
> E-Mail: [EMAIL PROTECTED]
> Internet: www.1und1.de
>
> 1&1 Internet AG
> Elgendorfer Strasse 57
> 56410 Montabaur
>
> Amtsgericht Montabaur HRB 6484
>
> Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas
> Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert
> Lang, Achim Weiss
> Aufsichtsratsvorsitzender: Michael Scheeren
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Do WAR overlays merge web.xml entries?

2007-10-01 Thread Tomasz Pik
On 10/1/07, Manos Batsis <[EMAIL PROTECTED]> wrote:
>
> Subject says it all :-)

With war - nop.
But - maybe this: http://cargo.codehaus.org/Merging+WAR+files
will help.
Note that this is not a part of [EMAIL PROTECTED], it's a separate
project ([EMAIL PROTECTED]) providing a plugin for maven2.

Regards,
Tomek

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

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



Re: Controlling the test cases called in build process

2007-09-28 Thread Tomasz Pik
On 9/29/07, Suneet Shah <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new to maven.  Is there a way to control which test classes are called
> when I do an mvn install? One of my junit test cases is causing the jvm to
> run out of memory, but works fine in eclipse. I would like to be able to
> troubleshoot it and was wondering if there is a way to just to call that
> test case.

http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html
also - look over other examples, listed there (Examples section)
Maybe 'forking' with help in your case if you'll provide -Xmx argument
with appropriate value to JVM executing your test.

> Alternatively, is it possible to do an mvn install or other
> command that will build the project without running the test cases.

Also there:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html

HTH,
Tomek

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



Re: How to suppress the deploy for a given module?

2007-09-27 Thread Tomasz Pik
On 9/27/07, Yan Huang <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there a way to skip the "deploy" phase for a module? I tried "skip" tag
> for the "maven-deploy-plugin" and it seems not working ...

You've a parent pom with some child modules and do not want to 'deploy'
one of them during 'mvn deploy' executed from top right?
You may define a profile in parent pom containing modules that you do not want
to deploy and then activate this profile for 'all-but-not-deploy' builds.
Unfortunately (AFAIK) there's no way do disable profile using
a command line.

Something like this:


  api
  impl



  
it

 itest

  



HTH,
Tomek

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



Re: Using a parent POM plugin config in only some child modules?

2007-09-27 Thread Tomasz Pik
On 9/27/07, Steinar Bang <[EMAIL PROTECTED]> wrote:
> >>>>> "Tomasz Pik" <[EMAIL PROTECTED]>:
>
> > Configure plugins in profiles in parent pom and activate profiles in
> > child poms?  This won't be automatic (I do not know if there's a way
> > to activate profile using packaging, maybe there's?) - you'll need
> > to add avtivation to child poms but should solve problem with
> > storing configuration in one place.
>
> Yes, I was wondering about if profiles could be triggered by
> packaging, and if that was a way to go...?

a bit strange thing...
this do not work for me (in fact, as expected):

  xxx
  

  ${pom.packaging}
  war

  

this works:

  xxx
  

  src/main/webapp/WEB-INF/web.xml

  

so maybe you may distinguish by looking for a particular file
(dedicated MANIFEST?).

the strange thing is that this is not working:

  xxx
  

  ${basedir}/src/main/webapp/WEB-INF/web.xml

  

and I do not know why, maybe somebody knows (mvn 2.0.6).

HTH,
Regards,
Tomek

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



Re: Why Maven is Hard?

2007-09-27 Thread Tomasz Pik
On 9/27/07, Insitu <[EMAIL PROTECTED]> wrote:
> "Lally Singh" <[EMAIL PROTECTED]> writes:
>
> > On 9/27/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >> On 9/26/07, Tomasz Pik <[EMAIL PROTECTED]> wrote:
> >> > Example - please, try to find out how to skip executing of tests
> >> > during build starting from http://maven.apache.org
>
> 
> Answer is: you never ever skip executing tests ;-)
> 

Hehe, this was just an example, I can start finding out
more examples but this is probably won't contribute anything
good to this thread.

Regards,
Tomek

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



Re: Using a parent POM plugin config in only some child modules?

2007-09-27 Thread Tomasz Pik
On 9/26/07, Steinar Bang <[EMAIL PROTECTED]> wrote:
> Is it possible to create a  configuration in a top level POM
> with pom, that will only be executed in child
> modules with bundle (modules using the apache
> FELIX maven-bundle-plugin)?
>
> The use case is where I have a dependency:copy config in the POM of
> each bundle projects, that copies the installed bundle into an eclipse
> PDE target platform.
>
> I would like to move the config up to a common parent, but that causes
> the projects with pom to be copied to the PDE
> target platform as well.  They aren't bundles, so they won't have any
> effect on eclipse, but it's clutter I'd like to avoid...

Configure plugins in profiles in parent pom and activate profiles in child poms?
This won't be automatic (I do not know if there's a way to activate profile
using packaging, maybe there's?) - you'll need to add avtivation to child poms
but should solve problem with storing configuration in one place.

HTH,
Tomek

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



Re: Why Maven is Hard?

2007-09-26 Thread Tomasz Pik
On 9/26/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 9/26/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote:
>
> > As I recommended earlier, I think we should copy and paste the Better Builds
> > with Maven book into the official Maven documentation.
> >
> > Why not?
>
> The book is already free.  (Yes, you have to register.)  There's
> another very good book at http://www.sonatype.com/book/ .
>
> Copying and pasting that content would not solve the problem that the
> Maven site is considered difficult to navigate.  And that despite all
> the improvements in plugin docs, people still find then inadequate.
> (There *is* a doc standard that they have to pass prior to being
> promoted from the sandbox and released.  Does it need to be changed?)

I think - yes.
See spring and hibernate docs - all thing in one long document (which
may be browsed chapter by chapter but also downloaded and printed
as PDF).
I'm sure many users will say 'those examples are bad because of...'
but I think this would be better for maven to have one document
describing things from pom structure and standard directory layout
to use cases of (for example) ear plugin
Maybe some very magic scrips merging together guides from current
main maven site and plugin documentations?
I know that ability to make good things with plugins (== some kind
of modularity of maven architecture) is a GOOD thing but without
a good understanding it's hard to where to find out an info about some
basic thing.
Example - please, try to find out how to skip executing of tests
during build starting from http://maven.apache.org

Regards,
Tomek

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



Re: How to deploy source jar generated by source plug-in into repository when running mvn deploy?

2007-05-09 Thread Tomasz Pik

On 5/9/07, JesseLiu <[EMAIL PROTECTED]> wrote:

Hi,all
How to deploy source jar generated by source plug-in into repository when 
running mvn deploy?


For SNAPSHOT versions right?
Try "mvn -DperformRelease=true deploy"

Regards,
Tomek

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



Re: Sync of repository.jboss.com to repo1.maven.org

2007-05-09 Thread Tomasz Pik

On 5/9/07, LAMY Olivier <[EMAIL PROTECTED]> wrote:

Hi,
I'd like to know why the repository http://repository.jboss.com/maven2
isn't synch with http://repo1.maven.org/maven2.
Specially the jboss folder (http://repository.jboss.com/maven2/jboss/).

Is there any special request to made ?


Yes, there's a "Sync'ing your own repository to the central repository
automatically"
paragraph on
http://maven.apache.org/guides/mini/guide-central-repository-upload.html
But - there are SNAPSHOTs in this repo, see
http://repository.jboss.com/maven2/org/jboss/server/common/jboss-common/5.0-SNAPSHOT/
while repo1.maven.org/maven2 accepts only releases.
So - probably there should be 'brand new repository' at jboss.org, containing
only releases.
Another thing - I don't know current state but when I was looking over this
repository, there was a lot of artifacts, that are not 'synced' with their
primary locations at repo1.maven.org, like this one:
http://repository.jboss.com/maven2/apache-collections/commons-collections/2.1/
This should be clearified I think.

Regards,
Tomek

PS1 I'm not a maven developer or repo1.maven.org maintainer, just a user,
that would be happy if things like jboss or hibernate libraries will
be synced to repo1 automatically, like spring libraries are for example).
PS2 http://jira.jboss.org/jira/browse/JBBUILD-318


Or it's impossible ?

Thanks,

--
Olivier


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). If 
you have received this message in error please send it back to the sender and delete it. 
Unauthorized publication, use, dissemination or disclosure of this message, either in 
whole or in part is strictly prohibited.
**
Ce message electronique et tous les fichiers joints ainsi que  les informations contenues 
dans ce message ( ci apres "le message" ), sont confidentiels et destines 
exclusivement a l'usage de la  personne a laquelle ils sont adresses. Si vous avez recu 
ce message par erreur, merci  de le renvoyer a son emetteur et de le detruire. Toutes 
diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit 
non expressement autorisees de ce message, sont interdites.
**


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




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



Re: Build number and current date

2007-04-25 Thread Tomasz Pik

On 4/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

hello,
how can I get the current date (formatted in english) and/or build number ??

i.e : something like a property or a filter or a $mvn.something


check ${project.artifact.version}

Regards,
Tomek

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



Re: Ant generated JAR file to be handeled with Maven...how?

2007-04-20 Thread Tomasz Pik

On 4/20/07, Styve Arne <[EMAIL PROTECTED]> wrote:

Hi,

I have a project based on an Ant build.xml file. I want to keep this
build-file, and keep building the project it self using this build-file
and Ant, but to wrap Maven2 around it.
I've managed to "call" the ant-build file (build.xml) from my POM, and
it works fine. However, the Ant script produses a JAR not known to
Maven, and Maven ends up creating a JAR on its own, which is empty. I
want to take the JAR file generated by Ant, making Maven aware of it,
and deploy it (from my POM) in our company Maven2 repo using the
groupId-artifactId-version concept. How do I go about to get this to
work ? Any ideas ?


Maybe this: http://maven.apache.org/ant-tasks.html will help you?

Regards,
Tomek

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



Re: Is there a "mvn" command to clean the local repo?

2007-04-16 Thread Tomasz Pik

On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:

Davis,

Thanks for replying.

After I reviewed the webpage, I wonder how i can delete/refresh one
single directory... for example, "com" directory under the local repo.
There is only "exclude" but no "include".


With purge-local-repository goal you may refresh (delete and then
download) dependencies for your project (including transitive
dependencies). With resolutionFuzziness you may also 'expand'
'scope' of deletion (see
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html#resolutionFuzziness).
But this will work only for dependencies listed in your project (pom.xml).
So - it's not designed for removing 'whole repository' but only for those
parts of repository, which are required for your project.
And that's why there's no 'include' - you're 'including artifacts
for deletion' by adding them as dependencies to your project...
For removing whole 'com' tree in local repo simple filesystem operation
will work better IMHO.

Regards,
Tomek



B.

On 4/16/07, Davis Ford <[EMAIL PROTECTED]> wrote:
> http://maven.apache.org/plugins/maven-dependency-plugin/index.html
>
> see purge-local-repository goal
>
>
>
> On 4/16/07, Baz <[EMAIL PROTECTED]> wrote:
> >
> > All,
> >
> > Is there a mvn command that clean the local repo?
> >
> > Thanks.
> >
> > B.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Zeno Consulting, Inc.
> http://www.zenoconsulting.biz
> 248.894.4922 phone
> 313.884.2977 fax
>

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




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



Re: Include Common JSPs in multiple wars

2007-04-03 Thread Tomasz Pik

On 4/3/07, Doug Tanner <[EMAIL PROTECTED]> wrote:

How do you include commons JSPs in multiple wars?  We have a common
module that produces a jar instead of a war, but I need to include all
the JSPs in this module in all my other webapps.  I tried using the
 tag, but that places the files in WEB-INF/classes.  Is there
another tag that I am missing from the documentation?


There's no way to 'pass' those jsp to your 'war' projects from within
'jar' project (at least I do not know such a way).
But you may change packaging of your 'shared' project from 'jar'
to 'war'. Then this 'shared' war will contain all required jsp files
and compiled classes, under WEB-INF/classes.
Then, for your 'war' projects maven will include all of this (both
classes and jsp files) in created war and that will be, what are
you looking for,

HTH,
Tomek

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



Re: Using alternative JDK

2007-02-27 Thread Tomasz Pik

On 2/27/07, Bernshtam, Pavel <[EMAIL PROTECTED]> wrote:

Hi!
How can I tell for one specific pom use a JDK different from my
JAVA_HOME for a compilation?


http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html
but - never tried myself...

HTH,
Tomek

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



tagging using SNAPSHOT numbers

2007-02-14 Thread Tomasz Pik

Hello,

Maybe somebody have a receipt for using generated 'number' for
SNAPSHOT as a tag name.
In other words: during 'mvn deploy' for SNAPSHOT project maven
assigns an unique number (say 20070212.142718-1) as a version
and then deploy file using that version and put this into maven-metadata.xml
And now - I'd like to use this number to tag project in CVS so
I'll be able to sycn given SNAPSHOT with tag in CVS.
Does anybody have such a thing implemented?

Thanks in advance,
Tomek

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



Re: Maven, SCM and release builds

2007-02-13 Thread Tomasz Pik

On 2/13/07, Christian Sauer <[EMAIL PROTECTED]> wrote:

Hi all,

Is it possible to forbid the SCM plugin to generate the complete SCM connection 
in a
project's POM once a release build was performed?

Most of the SCM settings are specified as variables in the parent POM in order 
to allow
various developers performing release builds using alternating user ids for SCM
authentication. Currently the SCM section of a released projects' POM must be 
changed
manually by changing the user id in the connection string before performing a 
realease
build using an alternative user id.


This has been already reported as an issue in JIRA, see
http://jira.codehaus.org/browse/MRELEASE-128.
So far I don't know a solution.

Regards,
Tomek

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



Re: Do we have a way to declare dependency on the latest released version of an artifact?

2007-01-15 Thread Tomasz Pik

On 1/15/07, Raymond Feng <[EMAIL PROTECTED]> wrote:

Hi,

I understand we can use "SNAPSHOT" as the version id to reference the latest
"unreleased" code. Do we have a special version id such as "LATEST" to reference
the latest released version? In some cases, I prefer not to use the fixed 
version id
as it will change over time as newer versions are released.


No but feel free to vote for such a thing:
http://jira.codehaus.org/browse/MNG-2431

Regards,
Tomek


Thanks,
Raymond


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



Re: Can't access ibiblio with amven anymore, with browser it works

2007-01-12 Thread Tomasz Pik

On 1/12/07, Roland Kofler <[EMAIL PROTECTED]> wrote:

And even if I try wget, I get 403: Forbidden

[EMAIL 
PROTECTED]:~/releasemanagement/systemone/core/systemone-core-configuration$
wget
http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom
--13:53:58--
http://repo1.maven.org/maven2/commons-configuration/commons-configuration/1.3/commons-configuration-1.3.pom
   => `commons-configuration-1.3.pom'
Resolving repo1.maven.org... 63.246.7.148
Connecting to repo1.maven.org[63.246.7.148]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
13:53:58 ERROR 403: Forbidden.


It should work for maven (or for download using regular browser).
wget (and some other mass-download tools I think) are 'disabled'
at server side because users were trying to download whole
repository using them and this causes high traffic (and cost)
for maven.org maintaners.
So - add dependency to your pom.xml and maven2 will download
files for you.

HTH,
Tomek

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



Re: Packaging application with dependent jars?

2007-01-06 Thread Tomasz Pik

On 1/4/07, matthewadams <[EMAIL PROTECTED]> wrote:


I use the assembly plugin to create a jar that contains the contents of all
jars that the application depends on.  From my pom:


[...]


jar-with-dependencies


[...]


Many things can be customized.  See the doc on the assembly plug in
(http://maven.apache.org/plugins/maven-assembly-plugin,
http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html).


Do you know, how to configure name of executable class so
java -jar xxx-jar-with-dependencies.jar will work?
I was checking if 'mainClass' element of maven-jar-plugin will be
propagated to xxx-jar-with-dependencies.jar' but MANIFEST in
result jar is do not contain anything from project, only three lines:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 1.5.0_07-b03 (Sun Microsystems Inc.)

Regards,
Tomek



HTH,
Matthew


mxc wrote:
>
> Hi all,
>
> Is there a goal that will allow me to create a jar with all the
> dependencies so that I can just send it to people and give them a command
> line to run without them having to set their classpath?
>
> ie. java -jar myjar.jar?
>
>
> Thanks
>
>  http://www.jumpingbean.co.za/java Jumping Bean
>

--
View this message in context: 
http://www.nabble.com/Packaging-application-with-dependent-jars--tf2916305s177.html#a8154206
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: compatibility Maven Eclipse 3.2 and wtp

2006-12-13 Thread Tomasz Pik

On 12/13/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Everytime you add a dependency, you need to run mvn eclipse:eclipse 
-Dwtpversion=1.0

Especially the last part is important.  Then check your .component file, to see 
whether the dependencies were added.  If so, Eclipse should publish your 
dependencies to the lib-folder.


Or add this to pom.xml, into  section:


  org.apache.maven.plugins
  maven-eclipse-plugin
  
1.0
  


so you don't have to add -D option during mvn invocation.

Regards,
Tomek



-Original Message-
From: lmk [mailto:[EMAIL PROTECTED]
Sent: mardi 12 décembre 2006 15:11
To: users@maven.apache.org
Subject: compatibility Maven Eclipse 3.2 and wtp


hi;

i try to integrate maven  multiproject on eclipse 3.2. i use tomcat 5.5,
when i start the server, Eclipse dont publish the dependencies.

is  maven eclipse plugin compatible with the Eclipse 3.2, perhapse I must
upgrade the  pluging ?? how can i do that?


thanks..

--
View this message in context: 
http://www.nabble.com/compatibility-Maven-Eclipse-3.2-and-wtp-tf2807719s177.html#a7833866
Sent from the Maven - Users mailing list archive at Nabble.com.


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



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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




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



Re: maven2+subclipse+svn+m2eclipse plugin

2006-11-07 Thread Tomasz Pik

On 11/6/06, szefo <[EMAIL PROTECTED]> wrote:


Hi,
Can someone give me any clues how to integrate
maven2+subclipse+svn+m2eclipse plugin ?
I have a multi-module project, stored in one repository.
The problem is that when I checkout this project from repo using subclipse
it is seen by eclipse as single project...
I can go to the folder of the project and run "mvn eclipse:eclipse" but it
doesn't help...


and then go to 'File' menu and 'Import' as 'Existing project into workspace'
subdirectories.

Regards,
Tomek


Thanks in advance...
Tom


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



Re: Maven 1.1 RC1 SNAPSHOT needs testers

2006-10-16 Thread Tomasz Pik

On 10/16/06, Vincent Massol <[EMAIL PROTECTED]> wrote:


Another option is to clean the cache by default upon installation. One
simple way of doing it would be to add a marker file named after the
version. If there's no file with the current version then maven would clean
the cache when it runs and create such a marker file.


This will be very helpful, but should 'clear' only plugins provided
by maven distro so users do not have to reinstall 3-rd party plugins.

Regards,
Tomek

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



passing a property through scm:bootstrap

2006-10-04 Thread Tomasz Pik

Hi,

Does anybody knows if there's a possiblity to pass a property
to reactor executing goals passed as -Dgoals=
with:
$ mvn -DconnectionUrl=scm:cvs:pserver. \
 -Dtag=xxx -Dgoals=package  scm:bootstrap
I'd like to have access to 'xxx' during build.

Thanks in advance,
Tomek

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



Re: not allowed in settings.xml

2006-09-08 Thread Tomasz Pik

On 9/4/06, Andreas Guther <[EMAIL PROTECTED]> wrote:

Hi,

I noticed that it is not possible to define the distribution management
inside the settings.xml.

In my case the distribution management configuration is the same for all
projects and so far I had it defined within a parent pom.  Since
distribution management configuration is only relevant for developers
who actually can write to a repository, I thought it would be cleaner to
define that in the individual settings.xml, which to my surprise was not
possible.

Is there a reason why this cannot be used in the settings.xml or is this
something that could contribute to the improvement of Maven?


Vote here: http://jira.codehaus.org/browse/MNG-2553
I also thing that make some things to be configurable through settings.xml
(distributionManagement, plugins) will solve many problems.

Regards,
Tomek

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



Re: Cargo and Ant Properties

2006-08-31 Thread Tomasz Pik

On 8/31/06, Matt Raible <[EMAIL PROTECTED]> wrote:

On 8/31/06, Vincent Massol <[EMAIL PROTECTED]> wrote:
> Hi Matt,
>
> > -Original Message-
> > From: Matt Raible [mailto:[EMAIL PROTECTED]
> > Sent: jeudi 31 août 2006 22:50
> > To: Maven Users List
> > Subject: Cargo and Ant Properties
> >
> > This might be a Cargo question, but I tried to subscribe to their
> > mailing list several times w/o success.  Must be on of those days...
> > ;-)
>
> I thought you were already subscribed... Codehaus has moved to a new system
> since the outage of a few months back. There's now a web interface for doing
> everything. See http://xircles.codehaus.org/manage_email

Yeah, I saw (and used) that.  For some reason, it didn't subscribe me
using Firefox on OS X.  The problem is likely user error. ;-)


Maybe you've the same problem I had today (Ruby error...) - try to go to
http://xircles.codehaus.org/my/email/settings
and just save your settings, even if it looks like current setup is OK.
After doing that I was able to subscribe to one of lists.

HTH,
Tomek

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



Re: Re: mvn2: war packaging

2006-08-30 Thread Tomasz Pik

On 8/30/06, Attila Mezei-Horvati <[EMAIL PROTECTED]> wrote:

> From: "Henry S. Isidro" <[EMAIL PROTECTED]>
> To: "Maven Users List" 
> Subject: Re: mvn2: war packaging
> Date: Wed, 30 Aug 2006 07:43:56 +0800
>
> If you're trying to include a jar in the lib folder
> of a war package, just
> declare the jar file as a dependency in the war's
> pom file. This will make
> maven automatically put it in the lib folder during
> packaging.
>
> - Henry

The problem is I am creating the jar file during the
war compilation. As I know, I can specify dependency
only for another pom jar package.

However I am running an ant task to generate code from
xsd files and compiling it. I was hoping I don't have
to move it out to a separate project; I can keep it in
this project and just copy it. Unfortunately copy
works _after_ the war is created and I don't know how
to specify the order (first copy then war). I also
tried to add it as web resource with a targetPath
option. Unfortunately that doesn't work either.


Is there a specific reason for having those files in jar?
If not, I think you may add directory, where you create your
files as 'resource' and files will be copied into 'WEB-INF/classes'
folder.

And yes - the best option will be to create separate subproject.

Regards,
Tomek

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



Re: How to write groovy plugins/mojos?

2006-08-24 Thread Tomasz Pik

On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi all,

I've seeing on the mailing list that it should be possible to write groovy
mojos, like to write Ant mojos.

But the project : groovy-maven-tools doesn't seem to work ...
(http://mojo.codehaus.org/groovy-maven-tools = not found)


you may find it here:
http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/mojo-sandbox/groovy-maven-tools
but I'm worry that's all I can help.

regards,
Tomek

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



Re: mvn 2: create jar in war

2006-08-21 Thread Tomasz Pik

On 8/21/06, Attila Mezei-Horvati <[EMAIL PROTECTED]> wrote:

How can I create a jar from the classes compiled into
the war? (for tomcat)

Currently if I run the war package it leaves my
sources in the web-inf/classes dir as compiled
classes. I would like to put them in a jar and have it
included in the web-inf/lib dir. Is that possible?


I think you should try 'archiveClasses' config element in 
element for maven-war-plugin but Ive never used it myself...
More here: 
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveClasses

HTH,
Tomek

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



Re: Oracle JDBC Dependency

2006-08-04 Thread Tomasz Pik

On 8/4/06, CodingPlayer <[EMAIL PROTECTED]> wrote:


Hi,

i'm currently looking for the correct dependency (for my pom.xml) to the
Oracle JDBC Driver 10.2.0.1.0 (ojdbc14-10.2.0.1.0.jar).

I couldn't find it in the central repository (ibiblio).

Do i have to install it manually?


Yes, due to Oracle licensing you need to install it manually.


Or does anyone know if it is hosted somewhere else, and if so, tell me the
correct dependency?


No, you need to download if from oracle (or find in your oracle
installation) and add to your local repository.
It will be good to have poms for oracle jars on ibiblio (so artifact/group
ids will be defined), I think it's just waiting for volunteer...

Regards,
Tomek

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



Re: test classes in submodule as dependencies for other modules

2006-08-01 Thread Tomasz Pik

On 8/1/06, Wojciech Biela <[EMAIL PROTECTED]> wrote:

I have test helper classes (AbstractMyProjectTestCase) in one
submodule, and I would like tests in other submodules to see that
class. I have a  element pointing to the submodule where
the test helper class resides. Unfortunately this doesn't work, the
dependency mechanism sees only the product artifact without the test
classes and this is clear why it is supposed to work this way.

So how do you share through multiple projects common helper classes
for tests? One way is to put this class from the test dir do main dir,
and then it'll be visible to all, but this is polluting the production
code and I don't want this.


http://maven.apache.org/guides/mini/guide-attached-tests.html
shows a solution.
Other solution will be to create another module, with tests only
and then depend on it.

Regards,
Tomek

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



Re: Maven2 command line reference

2006-07-31 Thread Tomasz Pik

On 7/31/06, jan_bar <[EMAIL PROTECTED]> wrote:

Hi,

I searched maven site and even used Google, but I cannot find any
documentation about maven command line switches. For instance "mvn -N
install", what is the meaning of the -N?


you may get some base info with 'mvn --help':

$ mvn --help
usage: mvn [options] [] []

Options:
[...]
-N,--non-recursiveDo not recurse into sub-projects
[...]

So mvn -N install won't look into sub-projects and will install
only top project.

HTH,
Tomek

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



Re: sending email on every build

2006-07-19 Thread Tomasz Pik

On 7/19/06, Kapil Gupta(CT) <[EMAIL PROTECTED]> wrote:

I think there is setting in application.xml file under mail settings

false

Setting it to true may send mail even if there is no state change.


Yes, that solves my problem.

Thank you,
Tomek




-Original Message-
From: Jo Vandermeeren [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 19, 2006 1:19 PM
To: continuum-users@maven.apache.org
Subject: Re: sending email on every build

I don't believe that this feature is currently supported.

On 7/19/06, Tomasz Pik <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Does anybody knows if there's a way to configure Continuum to send
> email on every build. not on a 'state change' only?
>
> Thanks,
> Tomek
>



Re: why modules are added when I create multi module project?

2006-07-13 Thread Tomasz Pik

On 7/13/06, Kamil Dworakowski <[EMAIL PROTECTED]> wrote:

Hello,

when one adds a multi module project separate continuum projects for
parent and modules are created. Moreover parent project has
--non-recursive option. This seems to make sens at first. The bad news
was that modifying a module that every other depends on doesn't trigger
rebuild of others. Just parent and the modified module are rebuild.
Removing --non-recursive option from parent builds everything but than
why do I need continuum projects for modules?


I just manually removed them and all works fine :)


Dependencies between
modules are easy to figure out from pom. It should work.


yes, but...
those are dependencies inside given project and reactor can resolve
them.
but when you've other project depending subproject of your project
and this subproject is not registered as a project in contunuum, then
something like 'trigger build of my project if one of projects i'm depending
on has been rebuild'[*] won't work.

Regards,
Tomek

[*] is there such a funcionality already implemented in continuum?
I remember I saw such a thing in cruisecontrol.


Re: Is it possible to *embed* the management of libraries of Maven2 into a product?

2006-07-11 Thread Tomasz Pik

On 7/11/06, Tugdual Grall <[EMAIL PROTECTED]> wrote:

Hello,


[]


Is-it possible to leverage Maven dependencie analysis and library
management is other application than Maven? If yes could you please
give me pointer?


There's a 'maven embedder' project.
This link http://maven.apache.org/guides/mini/guide-embedding-m2.html
may be used as a some kind of pointer.
Embedder may be downloaded separately from
http://maven.apache.org/download.html

Regards,
Tomek

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



Re: Wanted: Jelly script for deploying maven 1.0 web app to tomcat

2006-07-01 Thread Tomasz Pik

On 7/1/06, siegfried <[EMAIL PROTECTED]> wrote:


Now build.xml scripts usually have a deploy target for them. Is there a
jelly or some other script for maven 1.0 to do that last step of copying the
war file to the web server?


There's a dedictaed plugin that may help you with deploying to tomcat:
http://www.codeczar.com/products/maven-tomcat-plugin/

Regards,
Tomek

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



Re: Confusion: m2 dependancy download

2006-06-28 Thread Tomasz Pik

On 6/28/06, Graham Leggett <[EMAIL PROTECTED]> wrote:

Hi all,

I am trying to use maven2 to build an existing ant based project, and am
trying to get the dependancies right.

Some of the jars we need are not published on ibilio, and so we have
installed them locally using mvn install:install-file.

The trouble is, our build still fails like so:

6/28/06 3:21:49 PM SAST: Reading /alchemy-trader/pom.xml
6/28/06 3:23:04 PM SAST: Unable to get dependency information: Unable to
read the metadata file for artifact 'eclipse:eclipse-swt:jar': Error
getting POM for 'eclipse:eclipse-swt' from the repository: Error
transferring file
  eclipse:eclipse-swt:pom:3.1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 eclipse:eclipse-swt-3.1.0.jar

Why is maven2 trying to read the metadata file, when the jar file is
already present?


To find out, if there are also dependencies, that needs to be downloaded
and so on.


Is there some way to tell maven2 "this is a local file in the local
repository, do not try and download this file remotely"?


Install them in local repository with generic POM, see
http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html

Regards,
Tomek

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



Re: inhouse WebSphere repo

2006-06-08 Thread Tomasz Pik

On 6/8/06, Jeff Jensen <[EMAIL PROTECTED]> wrote:

That is interesting...how does one then utilize POMs like that once in a
remote repo, with the jars in my own proxy or local repo?


Somebody, who wants to work on your project will know, where to
go to download jars and how to name them so (s)he do not have to
think how to name them.
This approach works very good for Sun jars (javax.transaction and others).
Personally I think it will be good if threre'll be also a possiblity to specify
in such 'download it from here' POM a md5/sha hash of required jar,
so while installing mvn will check it and maybe raise an error (warning?).

Regards,
Tomek


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Wednesday, June 07, 2006 5:13 PM
To: Maven Users List
Subject: Re: inhouse WebSphere repo

You can submit your poms for inclusion in ibiblio making sure that everybody
follos some naming conventions

On 6/7/06, SlinnHawkins, Jon (ELS) <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to find a nice way of building a repository for all the IBM
> WebSphere Application Server jars.
>
> To explain a little background.
>
> dev environment
> Eclipse
> Tomcat
>
> Live environment
> WebSphere Application Server 5.1
>
> I would like to be able to build against the jars that are shipped
> with WebSphere rather than the ones available via ibiblio or Sun.
>
> So what i am trying to achieve is to create a repository that contains
> all the jars from the /lib folder of the WAS installation.
>
> I have seen the guide on the Maven site regarding the Sun Jars, and
> from what i can see IBM seem to have even less naming conventions.
>
>
> Has anyone done this kind of thing?
>
> Does anyone build against IBM specific jars ?
>
> Can anyone offer any thoughts ?
>
> Thanks
>
> Jon
>
>
>
>
>
>
>
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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


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




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



Re: [m2] Unit tests and integration tests in the same module?

2006-06-06 Thread Tomasz Pik

On 6/7/06, Vincent Massol <[EMAIL PROTECTED]> wrote:

I don't believe it's currently possible within the same build module.

We started discussing it on
http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies


What about:
* src/itest instead of src/it
* Unit/Integration/Functional/System/Custom instead of
 Unit/IT/Functional/System/Custom

Regards
Tomek

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



Re: Maven 1.0.2 Snapshots

2006-06-01 Thread Tomasz Pik

On 6/1/06, Eric White <[EMAIL PROTECTED]> wrote:

To answer my own question, maven-artifact-plugin-1.5.1 or higher is required
to do what's listed below.  And in the release notes for this version of the
plugin, it states that it is to be used with Maven 1.1 only not 1.0.
So, I guess I'll have to upgrade to 1.1-Beta to get this.
Also good to note that the maven 1.x documentation seems to be accurate for
the 1.1 beta not the 1.0.2 release.


Many people using 1.1beta2 as a stable release, I'd recommend it to you also.
The problem may be in fact, that 1.1beta2 maven cannot use project.xml
files linked with entities, if you do not need them, use 1.1beta2.
Also this may be useful, if you'll have beta2 installed:
http://maven.apache.org/maven-1.x/plugins/bundledHistory.html

Regards,
Tomek

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



Re: Maven 2.04, Eclipse 3.1/WTP 1.0 combination?

2006-05-16 Thread Tomasz Pik

On 5/16/06, Andreas Schildbach <[EMAIL PROTECTED]> wrote:

Hello everyone,

I'd like to use Maven 2.04 together with the Servers view in Web Tools
Project 1.0 (alternatively Eclipse 3.2/WTP 1.5). The servers view allows
to start an application server or servlet container inside Eclipse,
allowing to debug easily.

Unfortunately, WTP expects all libraries in WEB-INF/lib, as defined by
the Servlet specification.

Mavens Eclipse-Plugin (which has basic WTP support) links all
dependencies directly from the local Maven repository. Can I tell the
plugin to copy all libs to WEB-INF/lib, or to somehow modify WTP
configuration to pull libraries from the repository?


Please, execute:
mvn -Dwtpversion=1.0 eclipse:eclipse
and you'll have what you're expecing - during building eclise
will be using jars from M2_REPO and not store them src/main/webapp/WEB-INF/lib.

After mvn call take a look at .settings/.component and/or J2EE Module
Dependecies to see how it works.

See also:
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html

HTH,
Tomek

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



Re: war resource filtering

2006-05-11 Thread Tomasz Pik

On 5/11/06, Jorg Heymans <[EMAIL PROTECTED]> wrote:

Thanks for the help Max.

You can specify snapshot version to be used if you

1) define the plugin repository


[...]


2) define the version of the plugin you want to use


[...]


However i did this for the war plugin, the resources don't get filtered
using above configuration so i'm wondering if there is anything else i
should do in the pom to make it work. Right now i'm only doing this, which
IMO is the most logical way it should work.

  

  
org.apache.maven.plugins
maven-war-plugin
2.0-beta-3-SNAPSHOT
  




Try  instead of 

Regards,
Tomek

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



Re: How to get a copy of the repository ?

2005-12-28 Thread Tomasz Pik
On 30/11/05, Christian Schulte <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to have a local copy of some of the components in the
> remote repository at . Is there an easy
> way to get a local copy of this ? I tried rsync but it seems ibiblio
> does not support rsync. Is the repository also available via ftp ?

rsync -v -t -l -r ftp.ibiblio.org::maven2 /path/to/mirror
works for me (but it's a huge download).

Regards,
Tomek

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



Re: Maven Plug-in for Eclipse

2005-12-14 Thread Tomasz Pik
On 15/12/05, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> Hi,
>
> By popular demand the source for the Maven 2.x Plug-in for Eclipse has
> been released. All the information is here:
>
> http://maven.apache.org/eclipse-plugin.html
>
> Please note that there are separate mailing lists for this project.
> There will be a lot of questions and we don't want to flood this list
> with the specifics of the Eclipse Plug-in.

I'm sending email here as it's on Apache Maven page.
'subscribe' link for user's list is incorrect, it should be
user-subscribe at m2eclipse.codehaus.org not
users-subscribe at m2eclipse.codehaus.org

And thanks for this plugin!

Regards,
Tomek

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



Re: Webservices plugin for M2

2005-12-08 Thread Tomasz Pik
On 08/12/05, Jesse McConnell <[EMAIL PROTECTED]> wrote:

> btw, the wsdl2java plugin has been superceeded by the axistools-maven-plugin
> in the mojo-sandbox...

Maybe it should be names axis1tools-maven-plugin?
Axis2 is coming and I don't think that one plugin will be able to handle both.

Regards,
Tomek

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



Re: New JIRA project for the Maven 2.x plug-in for Eclipse

2005-10-26 Thread Tomasz Pik
On 26/10/05, Pilgrim, Peter <[EMAIL PROTECTED]> wrote:
>
> > -Original Message-
> > From: Tomasz Pik [mailto:[EMAIL PROTECTED]
> > Sent: 26 October 2005 10:58
> > To: Maven Users List
> > Subject: Re: New JIRA project for the Maven 2.x plug-in for Eclipse
> >
> >
> > On 26/10/05, Pilgrim, Peter <[EMAIL PROTECTED]> wrote:
> > >
> > > Is this plug-in for Mevenide or is it generating
> > > eclipse project file e.g `maven eclipse:eclipse' ?
> >
> > It's a plugin for Eclipse, something like Mevenide.
> > maven eclipse:eclipse issues are tracked here:
> > http://jira.codehaus.org/browse/MPECLIPSE
> > mvn (m2) eclipse:eclipse issues are tracked as component of
> > http://jira.codehaus.org/browse/MNG
> >
> > -- Tomek
>
> Ok thanks
> Where can I download this plug-in for Eclipse?

At this moment you need to contact Jason van Zyl directly.

Tomek

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



Re: New JIRA project for the Maven 2.x plug-in for Eclipse

2005-10-26 Thread Tomasz Pik
On 26/10/05, Pilgrim, Peter <[EMAIL PROTECTED]> wrote:
>
> Is this plug-in for Mevenide or is it generating
> eclipse project file e.g `maven eclipse:eclipse' ?

It's a plugin for Eclipse, something like Mevenide.
maven eclipse:eclipse issues are tracked here:
http://jira.codehaus.org/browse/MPECLIPSE
mvn (m2) eclipse:eclipse issues are tracked as component of
http://jira.codehaus.org/browse/MNG

Tomek

> > -Original Message-
> > From: Jason van Zyl [mailto:[EMAIL PROTECTED]
> > Sent: 25 October 2005 20:36
> > To: Maven Users List
> > Subject: New JIRA project for the Maven 2.x plug-in for Eclipse
> >
> >
> > Hi,
> >
> > I've created a project so that people who are trying out the new Maven
> > 2.x plug-in for Eclipse can raise issues/concerns:
> >
> > http://jira.codehaus.org/browse/MNGECLIPSE
> >
> > --
> > jvz.
> >
> > Jason van Zyl
> > jason at maven.org
> > http://maven.apache.org
>
> ====
>
> --
> Peter Pilgrim :: J2EE Software Development
> Operations/IT - Credit Suisse First Boston,
> Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
> Tel: +44-(0)207-883-4497
>
>
> ==
> Please access the attached hyperlink for an important electronic 
> communications disclaimer:
>
> http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
>
> ==
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: sun jars

2005-10-19 Thread Tomasz Pik
On 19/10/05, Marcel Schutte <[EMAIL PROTECTED]> wrote:
> Couldn't someone from the maven development team ask Sun for their
> explicit permission to publish all these jars? As we say in Holland:
> 'Nee heb je, ja kun je krijgen' ('No you've got, yes you can get').

Here's link to story: http://maven.apache.org/project/sun-licensing-journey.html
In case if it disapear, here's the file in SVN repo: http://tinyurl.com/dxjwy

Regards,
Tomek

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



Re: Is there a Forehead plugin?

2005-03-02 Thread Tomasz Pik
On Wed, 2 Mar 2005 13:57:26 -0500, Helck, Christopher <[EMAIL PROTECTED]> wrote:
> I'm looking for a Forehead plugin. 

[...]

Maybe this plugin will help you:
http://maven.apache.org/reference/plugins/uberjar/

Regards,
Tomek

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



Re: RFE for the war plugin

2004-06-28 Thread Tomasz Pik
On Mon, 28 Jun 2004 16:02:44 +0200, "Göschl,Siegfried"
<[EMAIL PROTECTED]> wrote:
> 
> Hi Tomasz,
> 
> It is actually very convenient to supply a project specific log4j.properties since 
> this is the vey first one to be found regardless of any other log4j.properties found 
> in JARs

Yes, I know.
And that's why I'm not sure if it's the best idea to package classes into jar
file during building war file.
I understand that it might be useful in case of  huge set of small classes but
generally packaging classes in 'war' project into jar during build war file may
leads to problems.
So, it there'll be such possibilty in 'war' plugin - please, make it
not-default.

Regards,
Tomek

> Cheers,
> 
> Siegfried Goeschl
> 
> 
> -Original Message-
> From: Tomasz Pik [mailto:[EMAIL PROTECTED]
> Sent: Montag, 28. Juni 2004 15:03
> To: Maven Users List
> Subject: Re: RFE for the war plugin
> 
> On Mon, 28 Jun 2004 08:53:45 -0400, Brill Pappin <[EMAIL PROTECTED]> wrote:
> 
> > I'm sure some of us would prefer to keep the WEB-INF/classes dir, so
> > my suggestion would be to include a switch property that would allow
> > the user to use one or the other.
> 
> Here's one reason: servlet specs define, that classes from WEB-INF/classes are 
> loaded before WEB-INF/lib so this may be used as some kind of 'overloading', for 
> example for classes from 'third party' libraries (I know it's ugly but it's possible 
> due to spec).
> 
> Regards,
> Tomek
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: RFE for the war plugin

2004-06-28 Thread Tomasz Pik
On Mon, 28 Jun 2004 08:53:45 -0400, Brill Pappin <[EMAIL PROTECTED]> wrote:

> I'm sure some of us would prefer to keep the WEB-INF/classes dir, so my
> suggestion would be to include a switch property that would allow the
> user to use one or the other.

Here's one reason: servlet specs define, that classes from WEB-INF/classes
are loaded before WEB-INF/lib so this may be used as some kind of 'overloading',
for example for classes from 'third party' libraries (I know it's ugly
but it's possible
due to spec).

Regards,
Tomek

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



Re: Using Maven on a very large integration project - how far can Maven go?

2004-04-05 Thread Tomasz Pik
Maczka Michal wrote:

I haven't been thinking about that but if somebody will find it useful I can
certainly do that.
I should not have any problems with creating zip plugin. It's bit more
difficult with war plugin
but doable. The idea is that when war plugins finds any dependency of type
"war" it should un-war it (unzip :)
and use files which were stored there as sources for building new war file.
I have it working but it's rather
a quick hack then "release quality". But I can try to improve it if somebody
will be interested.
Hmmm, maybe something like this:
if war plugin finds 'war' dependency then un-war it and merge content
of dependency war into created war.
At least web.xml files should be merged together, probably more
descriptor files too - but this may be done as postGoals.
Michal 
Tomek

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


Re: / /OREF:CPT4631E Deploy generated site on local server

2004-03-01 Thread Tomasz Pik
[EMAIL PROTECTED] wrote:

I would like to deploy a generated site on same server as to where
Maven is running.
I used to use SSH before because site was deployed on remote server.
For deploying site with Maven, is it possible to deploy it without
using SSH? (deploy on local computer using just cp command...)
If so, do I have to write my own goal to do this or can I use some
existing?
You should set maven.site.deploy.method=fs
More here: http://maven.apache.org/reference/plugins/site/properties.html
Regards,
Tomek
Thanks.


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


Re: List goals

2004-02-16 Thread Tomasz Pik
Freddy wrote:

Is there a goal that list all the the basic goals in maven (and the goals of
pluggins that are installed)?
Try 'maven --goals'

Regards,
Tomek
Freddy


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


Re: "private" goals

2004-01-30 Thread Tomasz Pik
Daniel Bonniot wrote:
Hi,

On 
http://wiki.codehaus.org/maven/PluginCreation?action=highlight&value=goal 
it is said the following:

  Goals that the user will never use directly (ie, goals that check a 
username,
  prepare a directory structure, etc) don't have descriptions.
I'm not sure if it's the best rule. Let's say it in Java language:
'method is private if don't have javadocs'.
Maybe it will be better to assume, that 'private' goal is named
using defined naming convention. With name starting with '_' for
example (so 'init' becomes '_init')?
Regards,
Tomek
Daniel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts-1.1.jar needs dependencies, but they aren't downloaded

2004-01-28 Thread Tomasz Pik
Seth Ladd wrote:

Hello,

I've tried to find this answer on the mailing list, but didn't find what
I was looking for.  (my apologies if I missed it)
I've started a new project that required struts-1.1.jar.  When running
maven, it was able to download struts-1.1.jar from ibiblio just fine
(very cool).  However, if I wanted to deploy a war using struts, I'll
need many more jars.  Is maven supposed to download those jars that
struts is dependent on?  I don't want to manage all 3rd party lib
dependencies and hope they are in ibiblio.  Am I wishing for too much
from maven, or did I discover a bug?
Again, the only dependency mentioned in my project.xml is the struts
jar.  I was assuming maven would go and fetch all other jars required
for deployment (required by struts, that is).
Not yet. Transitive dependencies fetching will be implemented in maven,
but AFAIK not in 1.0.
You've to define all dependencies in your project.xml.
Regards,
Tomek
Thanks for your help, I really appreciate it,
Seth


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


Re: Mutliple source directories in project.xml

2004-01-08 Thread Tomasz Pik
On 2004-01-08 22:38, Jason van Zyl wrote:

On Thu, 2004-01-08 at 16:25, John Casey wrote:

<2cents>
One easy way to get around this duality between single-source and
multiple source directories would be to stage out the java sources to
some temporary location under ${basedir}/target for subsequent
generation (back into that same directory) prior to java:compile
execution. Then, these generation tools would look in the
${basedir}/target/staged-source directory for their input, and would
output to the same directory...maybe all in a preGoal of java:compile or
something...



Do you think that could be a standard? Something we could add to the
POM? I think it might be useful ...

  

Something all the tools like Antlr, JavaCC, XDoclet, etc. could use.
Where I may vote for this? :)
Seems like a solution to problem that many people raised.
Regards,
Tomek


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


Re: Unit tests run twice ?

2003-11-25 Thread Tomasz Pik
Eric Berenguier wrote:

Hi,
Hi,

Maybe this help (sorry, not tested):

I'd like to write a single goal that install jar to repository and 
produce the maven site:
So i wrote something like this :


   


   

It works but both jar:install and site:generate call the test:test goal, 
so i have my unit tests run twice.
It's a real problem when unit tests take a long time to run.

Am i missing something ?
   Eric Berenguier
Tomek



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


Re: org.uddi4j.client.UDDIProxy has been deprecated problem

2003-11-14 Thread Tomasz Pik
alain wrote:

Hi,
I have compiled my project,and the maven jar command will notified me that there are 
some deprecated problem. I am sure my project uses some method that has been 
deprecated,but how can I set the javac option -deprecated?
Adding
maven.compile.deprecation=true
to your project.properties file?
See http://maven.apache.org/reference/plugins/java/properties.html

Regards,
Tomek
Alain




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


Re: password for CVS pserver ?

2003-10-30 Thread Tomasz Pik
Eric Pugh wrote:

What do you think of a maven.cvs.password or maven.changlog.password
property?
This disussion goes into the same direction as latest improvements
in Eclipse. One may define two CVS locations, one for read access
and one for write access.
This might be useful in Maven too, probably more then in Eclipse.
As I may imagine CVS settings in project.xml specify read access,
for changelogs and for letting people (non commiters) checkout
project from CVS.
Write access (defined in 'properties' way, based on
$HOME/build.properties) may be used by SCP plugin ('release'
goals).
Just my opinion...

Regards,
Tomek
Eric




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


Re: user.home

2003-10-10 Thread Tomasz Pik
Brian Murray wrote:

On *nix it's $HOME,
on Windows %HOMEPATH% (C:\Documents and Settings\youraccount) (even within
Cygwin).

Small clarification, in Windows (XP at least) %HOMEPATH% does not include
the drive letter.  You would need to use either
   %HOMEDRIVE%%HOMEPATH%
or
   %USERPROFILE%
Right, thanks for correction.

Regards,
Tomek


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


Re: user.home

2003-10-10 Thread Tomasz Pik
Harden ZHU wrote:

hi,

where set ${user.home}? what is default value?
It's system thing handled by JVM.
On *nix it's $HOME,
on Windows %HOMEPATH% (C:\Documents and Settings\youraccount)
(even within Cygwin).
Regards,
Tomek
thanks

harden




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


Re: Code Formatting Plugin ???

2003-09-22 Thread Tomasz Pik
Bateman, Patrick eMEDIA wrote:

Has anyone out there use a code formatting and if so is there any
integration with Maven??
Maybe this:
http://maven.apache.org/reference/plugins/jalopy/ ?
I didn't use it but I know it exists.
Regards,
Tomek
Thanks

Pat




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


Re: Maven Return Codes in a Continuous Integration environment

2003-08-14 Thread Tomasz Pik
[EMAIL PROTECTED] wrote:
There are these in App.java

/** return code for ok processing */
private static final int RC_OK = 0;

Maybe make them public and document their values as a part
of javadoc. So:
  /**
   * 0
?

Regards,
Tomek
dIon Gillard, Multitask Consulting




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


Re: master property file

2003-07-23 Thread Tomasz Pik
Brett Porter wrote:
>
Is there a reason for not using ${user.home}/build.properties? In my
experience, this is the best solution as it usualy has user specific
options, but they are shared across all projects.
Maybe it will be better to load this file from
${user.home}/.maven/build.properties?
Since b10 every Maven user has such directory so why
don't put this file there?
Tomek

- Brett


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


CVS usage page and reports

2003-06-10 Thread Tomasz Pik
Hi,

Is there a possibility to have CVS changelogs
and other reports but don't have 'cvs-usage.html'
page in ProjectInfo section?
I've found that even if I don't set 'url' element
for 'repository' definition, !empty tests passes
and xdoc plugin generate those pages. So there's
info about CVS access even if this CVS is not
accessible.
Any idea what to do without hacking jelly scripts?
Thanks,
Tomek


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