Re: Eclipse Plugin and WTP Facets problem

2008-05-22 Thread Guillaume Boucherie
Hello,

I'm think the m2eclipse goal is to be used with the eclipse plugin coled
m2eclipse (http://m2eclipse.codehaus.org/).
This plugin add support for maven2 directly in your eclipse and managed
dependencies in special way so you have to used m2eclipse goal.

Guillaume Boucherie


2008/5/21, Martin Höller [EMAIL PROTECTED]:

 On Wednesday 21 May 2008 Mario-Leander Reimer wrote:

  Another question: Do you know whether the eclipse:m2eclipse goal is meant
  be used in combination with the WTP settings?


 No idea, I never used the m2eclipse mojo.


 - martin




Release Prepare

2008-05-22 Thread René Johannes
Hi,

Using the maven-release-plugin : release:prepare

We use maven embedder in a project, when running the goal release:prepare then
the version numbers are changed and now the maven embedder does not have the 
correct
version number. 

The new version number is not installed during process but maven embedder wants 
to use it.

Please help.


Re: convert a maven project and xslt:transform

2008-05-22 Thread Javier Diaz

Hi:

First step is to create a pom for your project. Then add xalan as a 
dependency, for example:


   dependency
   groupIdxalan/groupId
   artifactIdxalan/artifactId
   version2.7.0/version
   scopecompile/scope
   /dependency

And that should be enough.

Regards,

Javier

Mansour wrote:

Hello:
I have been using maven for few month. I use it through eclipse plugin 
and only for getting the dependencies for the projects. Now I think I 
need a little more of maven. I have a project that has an xslt 
transformation. This project is NOT a maven project. I checked the 
source out of svn and attempted to run the transformation. However, it 
turned that xalan is not installed on this machine. I have not 
installed a jar file since I started using maven. It does everything I 
need from downloading the file to adding it to the classpath. I 
thought maven can help here in getting the transformation done.
I googled 
http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html but no 
example. Can someone give the steps to run this transformation? and 
possibly convert the project to maven?


I have checked this http://maven.apache.org/plugins/ and couldn't find 
anything related to xslt.




-
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: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Tim Kettler

 [x] Our team uses HTTP to retrieve our artifacts

HTTPS actually

 [ ] Our team uses the filesystem

Don't using this at the moment, but I think a filesystem based 
repository could be really useful for example when one wants/needs to 
ship a repository with a product.


-Tim

Jason van Zyl schrieb:

Hi,

I'm just trying to get some data on what protocol is used to retrieve 
artifacts. This question strictly relates to what you use for retrieval. 
Most people I have seen use a web server or a shared network drive, but 
I'd like to get some feedback.


[ ] Our team uses HTTP to retrieve our artifacts
[ ] Our team intends to use HTTP to retrieve our artifacts
[ ] Our team uses the filesystem
[ ] Our team does not use HTTP or the filesystem because  please say 
what protocol you use and the reason


Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

A language that doesn’t affect the way you think about programming is 
not worth knowing.


— Alan Perlis




-
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]



[archetype plugin] Cannot use -DarchetypeRepository if you have mirrors in your settings.xml file

2008-05-22 Thread Campbell, Jeff
I'm using the following command to create a new archetype project (only
the relevant portion of the command is below):

 

mvn archetype:generate -DarchetypeRepository=http://somehost.com/mvnrepo


 

But, because I have the following in my settings.xml file, I cannot
access the repository specified by the -DarchetypeRepository:

 

mirrors

mirror

idmy.nexus/id

name Nexus Mirror/name

urlhttp://somehost:8081/nexus/content/groups/public/url

mirrorOf*/mirrorOf

/mirror

/mirrors

 

 

What can I do... besides remove the mirrors section all together, or
list every single mirror that I have (I really like have all our
developers with a simple entry in the settings.xml file and the mirrors
configured in Nexus, but I don't want to have to add every possible repo
that might have some archetype in nexus Hence the reason to use the
-DarchetypeRepository)?

 

Jeff



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Daniele De Francesco
Hi all,

[X] Our team uses HTTP to retrieve our artifacts


Greetings

--
Daniele De Francesco
Senior Java Architect
Value Team S.p.A.

e-mail: [EMAIL PROTECTED]


Re: Can i use variables within the parentartifactId section?

2008-05-22 Thread Dobri Kitipov
Hi Baz,
my observations are that it is not possible to use a placeholder for the
groupId, artifactId, version of the parent pom for example. As you
said the CLI -D option is not taken into consideration.
Anyway, m2 take this option into consideration at some later stage, but not
when it identifies the effective-pom.
You can check the effective pom throughout the following. E.g.:

mvn help:effective-pom -DbuildType=-Debug

if you want just to check the effective pom, or check and execute clean
install :

mvn help:effective-pom -DbuildType=-Debug clean install

It is a little bit confusing are for me, but it seems m2 takes into
consideration the CLI -D option later in the life cycle, but not when the
effective pom is constructed.

 I am not an expert, so if someone has some more information, please provide
it to us.

Regards, Dobri

On Wed, May 21, 2008 at 5:17 AM, Wendy Smoak [EMAIL PROTECTED] wrote:

 On Tue, May 20, 2008 at 7:02 PM, Baz [EMAIL PROTECTED] wrote:

  I am trying to define a variable that i can use on command line to rename
  all artifacts (build type) during the build. Something like mvn clean
  install -DbuildType=-Debug.
  I made the change and it works if I build from the parent directory
 level.
  However, it does not the sub directory level.
 ...
  Is there any Maven statement that help me to achieve what I want to do?

 It's definitely a good idea to change the artifact filename if the
 contents change (regular vs. debug).

 You could use a profile, and in it, configure the jar or war plugin to
 append a classifier to the artifact.  I assume there is other
 configuration you need to activate in order to turn the jar into the
 debug flavor?

 --
 Wendy

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




Re: RES: Problem with classloader in maven plugin

2008-05-22 Thread Tim Kettler

Hi,

Claudio Ranieri schrieb:

Hi,

Why the maven plugins doesn´t load all libraries declared in pom.xml?


You have to distinguish between the plugin project and the project you 
are using the plugin with. All libraries (with a proper scope) declared 
in the pom of the plugin project are available (on the classpath) to the 
plugin during execution. This includes libraries you are specifying in 
the plugindependencies section of the project using your plugin.


The libraries declared in the pom of the project you are using your 
plugin in however, are not available. And for a good reason, just think 
abaout the bad things that could happen when both, the plugin and your 
project use the same library for example, but a different version of it.


The conclusion in one sentence: You don't ever want the dependencies 
(classpathes) of your project and the dependencies of a plugin used 
during the build of your project mixed.



I tried to use the initClassLoader because this code works in 
jaxws-maven-plugin.
In the code of jaxws-maven-plugin there is:

 Need to build a URLClassloader since Maven removed it form the chain 

Why?


I don't know the jaxws-maven-plugin, so I can't really tell anything 
about its design and implementation. You will have to ask the developers 
of the plugin about such specific questions.


All advice I can give you is that you should read and learn about the 
different kinds of classloaders (and classloaders in generel) in Java 
and how to properly use them.


So far, all plugins I've seen the source code of construct a new 
classloader with the classes the external tool needs and then use the 
loadClass() method of that classloader to get an instance of the class 
they need. Examples of this can be seen in the compiler-plugin or 
fit-maven-plugin (as someone on the dev list already wrote).



Thanks


-Tim


-Mensagem original-
De: Tim Kettler [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 21 de maio de 2008 10:57
Para: Maven Users List
Assunto: Re: Problem with classloader in maven plugin

Hi,

you've missunderstood the concept of a context classloader.

A documentation bug [1] is open since a long time. Setting the context
classloader doesn't mean that all classes created from that point on are
created through this classloader. See here [2] and [3] for more information.

[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4868493
[2] http://www.javaworld.com/javaqa/2003-06/01-qa-0606-load.html
[3] http://www.javageeks.com/Papers/ClassForName/index.html

-Tim

Claudio Ranieri schrieb:

Hi

I am trying to create a maven plugin to jboss wsconsume, but I have a problem 
with classloader in plugin.
My plugin is based in an ant task (WSConsumeTask).
I am using maven 2.0.8 on Windows machine.
When I created a simple Java project with libraries necessary, my code works.
How shown below:

public static void main(String[] args) {
  WSConsumeTask t = new WSConsumeTask();
  t.setWsdl(https://xxx/crypto?wsdl;);
  t.setVerbose(true);
  t.setKeep(true);
  t.execute();
}

But when I am using into maven plugin, I got problem with classloader.
I got this exception:

C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:7:
 cannot find symbol
symbol  : class Service
location: package javax.xml.ws
import javax.xml.ws.Service;
^
C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:8:
 cannot find symbol
symbol  : class WebEndpoint
location: package javax.xml.ws
import javax.xml.ws.WebEndpoint;
^
C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:9:
 cannot find symbol
symbol  : class WebServiceClient
location: package javax.xml.ws
import javax.xml.ws.WebServiceClient;

The plugin classloader doesn´t load the jaxws libraries. But this libraries was 
added in pom.xml of plugin.
I tried to add dependencies tag in my plugin config, but didn´t works. How 
shown below:

plugin
  groupIdjboss/groupId
  artifactIdmaven-jbossws-plugin/artifactId
  version1.0.0/version
  configuration
verbosetrue/verbose
keeptrue/keep
wsdlhttps://xxx/crypto?wsdl/wsdl
  /configuration
  dependencies
dependency
  groupIdjboss.jbossws/groupId
  artifactIdjaxws-tools/artifactId
  version3.0.1-native-2.0.4.GA/version
  scopecompile/scope
/dependency
dependency
  groupIdjboss.jbossws/groupId
  artifactIdjboss-jaxws/artifactId
  version3.0.1-native-2.0.4.GA/version
  scopecompile/scope
/dependency
  /dependencies
/plugin

I tried too to use an initClassLoader based in jaxws-maven-plugin source, how 
shown below:

   private String initClassLoader(ClassLoader parent) throws 
MojoExecutionException {
try {
List classpathFiles = 
project.getCompileClasspathElements();
URL[] urls = new URL[classpathFiles.size() + 4];
StringBuffer classPath 

Getting a dynamic property

2008-05-22 Thread Richard Chamberlain
Hi,

 

How can I run a command and get the return of that command put into a
maven property?

 

For example i'd like to get the latest perforce changelist number and
add it to my Manifest file

 

Thanks,

 

Rich



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread simon

On Wed, 2008-05-21 at 14:14 -0700, Jason van Zyl wrote:
 On 21-May-08, at 1:07 PM, Wendy Smoak wrote:
 
  On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED]  
  wrote:
 
  [X] Our team uses HTTP to retrieve our artifacts
 
  ... and should be using HTTPS because some repos require
  authentication.  While we're on the subject, the plain text passwords
  in settings.xml are a problem (violation of corporate policy that
  passwords always be encrypted.)
 
 
 Oleg implemented a solution in plexus-cipher and I haven't pushed him  
 to give me patches for the rest but I will eventually or someone else  
 can harass him :-) But he's got an encrypted store for passwords.

???

If the passwords are encrypted, then don't you need a password to
unencrypt them before use?

Do you maybe mean obfuscated passwords, eg ROT13 encoded, to make them
unreadable to a very casual glance? I hardly think that is worth doing.

The *proper* solution for people or corporations who care about security
is to use a KEY for authentication, not a password. Set up the
privateKey entry to point to the key, then use ssh-agent/ssh-add
to enter the passphrase. No passwords are then needed in plain text
anywhere.

Any corporate policy that claims to be secure but still relies on
passwords for authentication instead of keys is just plain stupid, and
time spent supporting that setup is time wasted.

Regards,
Simon


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



AW: Eclipse Plugin and WTP Facets problem

2008-05-22 Thread Baeriswyl Kuno - Extern (IT-BA-MV)
Hello,

I agree. Though, m2eclipse doens't handle WTP settings, as far as I know. I 
think it's planned for WTP 2.0 or so. Therefore, m2eclipse doens't work if you 
need those settings, e.g. for J2EE application servers.

At least, that's what I figured out..any other opinions?

Kuno

-Ursprüngliche Nachricht-
Von: Guillaume Boucherie [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 22. Mai 2008 08:49
An: Maven Users List
Betreff: Re: Eclipse Plugin and WTP Facets problem


Hello,

I'm think the m2eclipse goal is to be used with the eclipse plugin coled 
m2eclipse (http://m2eclipse.codehaus.org/). This plugin add support for maven2 
directly in your eclipse and managed dependencies in special way so you have to 
used m2eclipse goal.

Guillaume Boucherie


2008/5/21, Martin Höller [EMAIL PROTECTED]:

 On Wednesday 21 May 2008 Mario-Leander Reimer wrote:

  Another question: Do you know whether the eclipse:m2eclipse goal is
  meant be used in combination with the WTP settings?


 No idea, I never used the m2eclipse mojo.


 - martin



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



Create non conventional archetype

2008-05-22 Thread Ilya Ermolov

Hi! Please, help me.
I need to create directory structure shown below:

project
+-src
|  +-org
| +-mycompany
|+-app.java
+-test
|  +-org
| +-mycompany
|+-apptest.java
pom.xml

How can i create new archetype having this directory structure and redefine
source directory from src/main/java/org/mycompany to src/org/mycompany?
-- 
View this message in context: 
http://www.nabble.com/Create-non-conventional-archetype-tp17402009p17402009.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Create non conventional archetype

2008-05-22 Thread Richard Chamberlain
By creating this structure you are making it unfamiliar to other maven
developers.

But if you need to do it:
...
build
sourceDirectorysrc/sourceDirectory
testSourceDirectorytest/testSourceDirectory
...

In the pom.xml file will do it.

Cheers,

Rich

-Original Message-
From: Ilya Ermolov [mailto:[EMAIL PROTECTED] 
Sent: 22 May 2008 12:11
To: users@maven.apache.org
Subject: Create non conventional archetype


Hi! Please, help me.
I need to create directory structure shown below:

project
+-src
|  +-org
| +-mycompany
|+-app.java
+-test
|  +-org
| +-mycompany
|+-apptest.java
pom.xml

How can i create new archetype having this directory structure and
redefine
source directory from src/main/java/org/mycompany to
src/org/mycompany?
-- 
View this message in context:
http://www.nabble.com/Create-non-conventional-archetype-tp17402009p17402
009.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: Getting a dynamic property

2008-05-22 Thread Bracewell, Robert
Use an environmental property
For example some other system could set the env var called P4_CL and
then you could reference it using ${env.P4_CL}

-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED] 
Sent: 22 May 2008 11:10
To: Maven Users List
Subject: Getting a dynamic property

Hi,

 

How can I run a command and get the return of that command put into a
maven property?

 

For example i'd like to get the latest perforce changelist number and
add it to my Manifest file

 

Thanks,

 

Rich


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



Re: Error: MavenRequest

2008-05-22 Thread Clifton

I found out yesterday that my error may be due to the recent Surefire
upgrade. I'm going to do some legwork and post back with additional details.

Clifton wrote:
 
 Reason:
 org/apache/maven/toolchain/ToolchainManager
 That's what I'd been getting from time to time in IntelliJ Idea (using
 it's built in Maven support) and after playing with config options and
 forcing it to use the external Maven I have installed it goes away. Now
 I'm getting this from the latest release of Q4E in Eclipse. Can anyone
 tell me what it means or how to make it go away? Q4E doesn't allow you to
 use an external Maven install, which would likely sidestep the issue.
 

-- 
View this message in context: 
http://www.nabble.com/Error%3A-MavenRequest-tp17364309p17403552.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Create non conventional archetype

2008-05-22 Thread Raphaël Piéroni
Hi Ilya,

Create the structure you'd like to have (don't forget the pom.xml file)
go in the directory containing the pom file.
call mvn archetype:create-from-project.

You will have an archetype created in target/generated-sources/archetype.


Hope this helps.

Raphaël

2008/5/22 Ilya Ermolov [EMAIL PROTECTED]:

 Hi! Please, help me.
 I need to create directory structure shown below:

 project
 +-src
 |  +-org
 | +-mycompany
 |+-app.java
 +-test
 |  +-org
 | +-mycompany
 |+-apptest.java
 pom.xml

 How can i create new archetype having this directory structure and redefine
 source directory from src/main/java/org/mycompany to src/org/mycompany?
 --
 View this message in context: 
 http://www.nabble.com/Create-non-conventional-archetype-tp17402009p17402009.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]




Naming convention for multimoduled projects?

2008-05-22 Thread Magne Nordtveit
I'm just wondering, how do you name your artifacts in a large
multimoduled project to avoid having two modules with the same
artifact-id?

I am thinking in the lines of project-partofgroupid-descriptivename as
artifact-id. This would make the name of the final jar files (at least
more) unique and easily identified, but it might give some long
file-names...

I guess I'm just asking for suggestions here, or a pointer if it exists
a best-practise on it?

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

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



Re: Naming convention for multimoduled projects?

2008-05-22 Thread simon

On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
 I'm just wondering, how do you name your artifacts in a large
 multimoduled project to avoid having two modules with the same
 artifact-id?
 
 I am thinking in the lines of project-partofgroupid-descriptivename as
 artifact-id. This would make the name of the final jar files (at least
 more) unique and easily identified, but it might give some long
 file-names...
 
 I guess I'm just asking for suggestions here, or a pointer if it exists
 a best-practise on it?

Why not just set the groupId to something reasonable.

If your company is acme.com, then the groupId should *start* with
com.acme, but you can have any arbitrary number of parts after that.

And presumably your modules have structured java package names so that
the classnames don't collide. So why not model the groupId after the
package in which the code for each module lives?

  com.acme.tractor.engine
  com.acme.tractor.chassis
  com.acme.steamroller

IMO, that is nicer than embedding excessive structure into the
artifactId.

Regards,
Simon


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



Re: Naming convention for multimoduled projects?

2008-05-22 Thread Magne Nordtveit
On Thu, 2008-05-22 at 15:23 +0200, simon wrote:
 On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
  I'm just wondering, how do you name your artifacts in a large
  multimoduled project to avoid having two modules with the same
  artifact-id?
  
  I am thinking in the lines of project-partofgroupid-descriptivename as
  artifact-id. This would make the name of the final jar files (at least
  more) unique and easily identified, but it might give some long
  file-names...
  
  I guess I'm just asking for suggestions here, or a pointer if it exists
  a best-practise on it?
 
 Why not just set the groupId to something reasonable.
 
 If your company is acme.com, then the groupId should *start* with
 com.acme, but you can have any arbitrary number of parts after that.
 
 And presumably your modules have structured java package names so that
 the classnames don't collide. So why not model the groupId after the
 package in which the code for each module lives?
 
   com.acme.tractor.engine
   com.acme.tractor.chassis
   com.acme.steamroller
 
 IMO, that is nicer than embedding excessive structure into the
 artifactId.
 
 Regards,
 Simon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

Exactly.

But what happens when you have com.acme.tractor:common and
com.acme.steamroller:common if you for some reason need to have both
common-packages (ok, probably a bad example) as a dependency to another
project?

When running, wouldn't the classpath be set too
lib/common-1.0.jar:lib/common-1.0.jar? As far as I know, its only the
artifactId that gets put into the actual jar-file.

That's what i want to avoid before it happens and while our project is
still sub-100 modules.

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

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



Re: Naming convention for multimoduled projects?

2008-05-22 Thread simon

On Thu, 2008-05-22 at 15:33 +0200, Magne Nordtveit wrote:
 On Thu, 2008-05-22 at 15:23 +0200, simon wrote:
  On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
   I'm just wondering, how do you name your artifacts in a large
   multimoduled project to avoid having two modules with the same
   artifact-id?
   
   I am thinking in the lines of project-partofgroupid-descriptivename as
   artifact-id. This would make the name of the final jar files (at least
   more) unique and easily identified, but it might give some long
   file-names...
   
   I guess I'm just asking for suggestions here, or a pointer if it exists
   a best-practise on it?
  
  Why not just set the groupId to something reasonable.
  
  If your company is acme.com, then the groupId should *start* with
  com.acme, but you can have any arbitrary number of parts after that.
  
  And presumably your modules have structured java package names so that
  the classnames don't collide. So why not model the groupId after the
  package in which the code for each module lives?
  
com.acme.tractor.engine
com.acme.tractor.chassis
com.acme.steamroller
  
  IMO, that is nicer than embedding excessive structure into the
  artifactId.
  
  Regards,
  Simon
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 Exactly.
 
 But what happens when you have com.acme.tractor:common and
 com.acme.steamroller:common if you for some reason need to have both
 common-packages (ok, probably a bad example) as a dependency to another
 project?
 
 When running, wouldn't the classpath be set too
 lib/common-1.0.jar:lib/common-1.0.jar? As far as I know, its only the
 artifactId that gets put into the actual jar-file.
 
 That's what i want to avoid before it happens and while our project is
 still sub-100 modules.

I don't believe that problem can happen.

When you use maven to compile or run something during development, the
classpath looks like:
  ${M2REPO}/com/acme/tractor/common/1.0/common-1.0.jar:
  ${M2REPO}/com/acme/steamroller/common/1.0/common-1.0.jar
so no clash happens.

And when you use the maven-assembly-plugin or maven-shade-plugin or use
war packaging etc to build a distribution bundle for shipping, then
it should detect the filename collision, and build a fully-qualified
name for the jarfile rather than just using the short name.

When things like the assembly plugin copy files out of local maven
repository into an assembly directory, there is no requirement for them
to keep the same filename. When a plugin deliberately discards the
directory strucuture, it is responsible for avoiding resulting name
clashes.

Or at least I think that's how it is supposed to work.

Regards,
Simon



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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Jason van Zyl


On 22-May-08, at 12:41 AM, Tim Kettler wrote:


 [x] Our team uses HTTP to retrieve our artifacts

HTTPS actually

 [ ] Our team uses the filesystem

Don't using this at the moment, but I think a filesystem based  
repository could be really useful for example when one wants/needs  
to ship a repository with a product.




I have often has cases where this is desirable, but the the desire is  
usually to incorporate that into the existing repository  
infrastructure. So that mean a tool to create a repository, and then  
have that repository be imported.



-Tim

Jason van Zyl schrieb:

Hi,
I'm just trying to get some data on what protocol is used to  
retrieve artifacts. This question strictly relates to what you use  
for retrieval. Most people I have seen use a web server or a shared  
network drive, but I'd like to get some feedback.

[ ] Our team uses HTTP to retrieve our artifacts
[ ] Our team intends to use HTTP to retrieve our artifacts
[ ] Our team uses the filesystem
[ ] Our team does not use HTTP or the filesystem because   
please say what protocol you use and the reason

Thanks,
Jason
--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--
A language that doesn’t affect the way you think about programming  
is not worth knowing.

— Alan Perlis
-
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]



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

You are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it is going to rise tomorrow. When people are fanatically
dedicated to political or religious faiths or any other kind of
dogmas or goals, it's always because these dogmas or
goals are in doubt.

-- Robert Pirzig, Zen and the Art of Motorcycle Maintenance 





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



Re: Error: MavenRequest

2008-05-22 Thread Clifton

The problem comes from the recent Surefire upgrade. I found an issue in the
Q4E Jira explaining the fix but to save time I'll list it here. Force
Surefire 2.4.2 for now and the problem goes away. If you're using different
IDE integration that supports an external Maven runner then I'd suggest
using that over the below snippet. You can put this in your pom to force the
older Surefire plugin:
   pluginManagement
  plugins
 plugin
artifactIdmaven-surefire-plugin/artifactId
version2.4.2/version
 /plugin
  /plugins
   /pluginManagement


Clifton wrote:
 
 Reason:
 org/apache/maven/toolchain/ToolchainManager
 That's what I'd been getting from time to time in IntelliJ Idea (using
 it's built in Maven support) and after playing with config options and
 forcing it to use the external Maven I have installed it goes away. Now
 I'm getting this from the latest release of Q4E in Eclipse. Can anyone
 tell me what it means or how to make it go away? Q4E doesn't allow you to
 use an external Maven install, which would likely sidestep the issue.
 

-- 
View this message in context: 
http://www.nabble.com/Error%3A-MavenRequest-tp17364309p17405091.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Wendy Smoak
On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED] wrote:

[X] Our team uses the filesystem

I also use the filesystem with file:// urls, it's very useful for
testing a set of repository contents locally before making them
available in a remote repo, and for quick examples.  I wouldn't want
to see support for this dropped.

-- 
Wendy

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



Is there a list of available variables or expressions to use in POM file

2008-05-22 Thread Andreas Guther
Hi,

 

Is there a list of available variables and expressions one can insert
into a pom file?

 

In particular I am looking for inserting variables like the current date
into the manifest entries.

 

Andreas

 



Certification build question

2008-05-22 Thread Chris Helck
Hi,
We have multiple components and applications. When I hand an application
over to our certification team to build I need to tell them which (if
any) dependent components they need to build. So every release I have
provide specific instructions of the form:
  From SCM get this label, build with mvn
  From SCM get another label, build with mvn
  and so on.

The certification team hates this. They'd like to build the application
the same way on every release. The certification team doesn't care about
low level components, and don't have any way to test them directly.
Perhaps they should, but that is beside the point.

So my question is how to handle this?

Regards,
Christopher Helck


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Tom Huybrechts
I use HTTP for ordinary development.
However file is also used often in tooling. For example I have a
custom release plugin that deploys to a file based staging repository.
Only when the release completely succeeds, is the staging repository
uploaded (using the staging plugin) to the real repository. This buys
me atomic releases (because release:perform does fail sometimes even
if release:prepare didn't).

On Wed, May 21, 2008 at 8:15 AM, Jason van Zyl [EMAIL PROTECTED] wrote:
 Hi,

 I'm just trying to get some data on what protocol is used to retrieve
 artifacts. This question strictly relates to what you use for retrieval.
 Most people I have seen use a web server or a shared network drive, but I'd
 like to get some feedback.

 [ ] Our team uses HTTP to retrieve our artifacts
 [ ] Our team intends to use HTTP to retrieve our artifacts
 [ ] Our team uses the filesystem
 [ ] Our team does not use HTTP or the filesystem because  please say
 what protocol you use and the reason

 Thanks,

 Jason

 --
 Jason van Zyl
 Founder,  Apache Maven
 jason at sonatype dot com
 --

 A language that doesn't affect the way you think about programming is not
 worth knowing.

 — Alan Perlis




 -
 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: integration-test practices

2008-05-22 Thread Paul Davis
I actually meant
src/test/resources

I have found that if I place the resource (xml file) in both places, it
works
src/it/java
src/test/resources
However, if I only have one copy (in either location) it does not work.

I didn't try src/main/resources because it's an integration test.
Should I put it there?

Maybe my confusion is a result of the integration-test phase doesn't have a
similar life-cycle as the test phase?


On Wed, May 21, 2008 at 8:57 PM, Wendy Smoak [EMAIL PROTECTED] wrote:

 On Wed, May 21, 2008 at 3:35 PM, Paul Davis [EMAIL PROTECTED] wrote:

  It seems the documentation for the integration-test phase is pretty thin
 (as
  in, where is it?).

 There are some notes on the wiki:
 http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

  I can't seem to get resources accessible by the test code.

 We'll need more info in order to help.  Do you mean files in
 src/main/resources?

 --
 Wendy

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




retrieving jar with highest version

2008-05-22 Thread Brane F. Gračnar

Hello there ;)

First, i have to mention, that i'm just system administrator, not 
developer, so please, excuse me for the following stupid question.


I would like to retrieve jar with highest version number from our 
central maven repository using mvn command to some directory on a 
filesystem.


It this possible with single mvn command or i will have to write pom.xml 
with assembly goal?


Best regards, Brane

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



Downloading a unique snapshot

2008-05-22 Thread Richard Chamberlain
Hi,

 

Still on my quest of getting perforce numbered unique snapshots:

 

1)  If I specify a SNAPSHOT dependency in my pom, can I configure
maven to download the unique named artefact rather than one that has
SNAPSHOT on the end?

i.e. repo has myproduct-1.0-SNAPSHOT-20080522.114841-2.jar, when I
download it the artefact is: myproduct-1.0-SNAPSHOT.jar but i would like
to receive it as: myproduct-1.0-SNAPSHOT-20080522.114841-2.jar (the same
as the repo). I still always want the latest build.

 

2)  Can I specify the format of unique snapshots? Instead of UTC
Datetime - build number can I do perforce changelist?

 

Thanks for all your help so far!

 

Rich



Re: convert a maven project and xslt:transform

2008-05-22 Thread Mansour

Thank you Javier, but how do I perform the transformation ?
or in other words, in order to execute a transformation using xalan, I 
need to do this:

java org.apache.xalan.xslt.Process -xsl myxsl.xsl -in in.xml -out out.xml

How do I get this done from maven ? I have figured it using 
xsl-maven-plugin, but  I am interested in knowing if  there's another way.


Thank you.

Javier Diaz wrote:

Hi:

First step is to create a pom for your project. Then add xalan as a 
dependency, for example:


   dependency
   groupIdxalan/groupId
   artifactIdxalan/artifactId
   version2.7.0/version
   scopecompile/scope
   /dependency

And that should be enough.

Regards,

Javier

Mansour wrote:

Hello:
I have been using maven for few month. I use it through eclipse 
plugin and only for getting the dependencies for the projects. Now I 
think I need a little more of maven. I have a project that has an 
xslt transformation. This project is NOT a maven project. I checked 
the source out of svn and attempted to run the transformation. 
However, it turned that xalan is not installed on this machine. I 
have not installed a jar file since I started using maven. It does 
everything I need from downloading the file to adding it to the 
classpath. I thought maven can help here in getting the 
transformation done.
I googled 
http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html but no 
example. Can someone give the steps to run this transformation? and 
possibly convert the project to maven?


I have checked this http://maven.apache.org/plugins/ and couldn't 
find anything related to xslt.




-
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]



[m2] the maven-release-plugin alters the eol style of cdata sections

2008-05-22 Thread Adrian Herscu

Hi all,

Spent an hour or so to discover why subversion fails to commit the
pom.xml during a release:prepare...

If the pom.xml file contains CDATA sections (as required by few plugins,
such as the maven-eclipse-plugin), then the end of line sequence of
these lines is changed to LF.

The only solution I have found is to change the svn:eol-style of the
pom.xml to LF.

Adrian.


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



RE: Certification build question

2008-05-22 Thread Richard Chamberlain
Why do the team need to build your application? Can you not give them a
built version for them to test?
If you can do this, have an application project that depends on all the
components that you use. Configure the assembly plugin to zip all the
dependencies into a kit. You can then tell them to pick up this version
of the application from the repository and test it.

Hope I understood correctly.

Regards,

Rich 

-Original Message-
From: Chris Helck [mailto:[EMAIL PROTECTED] 
Sent: 22 May 2008 16:14
To: Maven Users List
Subject: Certification build question

Hi,
We have multiple components and applications. When I hand an application
over to our certification team to build I need to tell them which (if
any) dependent components they need to build. So every release I have
provide specific instructions of the form:
  From SCM get this label, build with mvn
  From SCM get another label, build with mvn
  and so on.

The certification team hates this. They'd like to build the application
the same way on every release. The certification team doesn't care about
low level components, and don't have any way to test them directly.
Perhaps they should, but that is beside the point.

So my question is how to handle this?

Regards,
Christopher Helck


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


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



Re: [m2] the maven-release-plugin alters the eol style of cdata sections

2008-05-22 Thread Adrian Herscu
This solution causes other problem with subversion -- the error 
message look like this:

svn: Can't move some tmp file some file access is denied

I couldn't make it work, even on a clean working copy with minimum 
running processes (search, anti-virus, tortoisesvn).


The only remedy was to comment out the CDATA section :(

Any suggestions?

Adrian Herscu wrote:

Hi all,

Spent an hour or so to discover why subversion fails to commit the
pom.xml during a release:prepare...

If the pom.xml file contains CDATA sections (as required by few plugins,
such as the maven-eclipse-plugin), then the end of line sequence of
these lines is changed to LF.

The only solution I have found is to change the svn:eol-style of the
pom.xml to LF.

Adrian.



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



RE: Certification build question

2008-05-22 Thread Chris Helck
Rich,
It's very common for corperations to implement this sort of thing. It
helps ensure that the products can be rebuilt from the source code, and
that helps certain audit/security processes. In any case, this is what
my company does, and they pay me every two weeks.

I do what you suggest for internal and informal releases of test tools
and report generators.

-Chris  

-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 12:00 PM
To: Maven Users List
Subject: RE: Certification build question

Why do the team need to build your application? Can you not give them a
built version for them to test?
If you can do this, have an application project that depends on all the
components that you use. Configure the assembly plugin to zip all the
dependencies into a kit. You can then tell them to pick up this version
of the application from the repository and test it.

Hope I understood correctly.

Regards,

Rich 

-Original Message-
From: Chris Helck [mailto:[EMAIL PROTECTED]
Sent: 22 May 2008 16:14
To: Maven Users List
Subject: Certification build question

Hi,
We have multiple components and applications. When I hand an application
over to our certification team to build I need to tell them which (if
any) dependent components they need to build. So every release I have
provide specific instructions of the form:
  From SCM get this label, build with mvn
  From SCM get another label, build with mvn
  and so on.

The certification team hates this. They'd like to build the application
the same way on every release. The certification team doesn't care about
low level components, and don't have any way to test them directly.
Perhaps they should, but that is beside the point.

So my question is how to handle this?

Regards,
Christopher Helck


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


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


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


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



Maven Unplugged (no network access)

2008-05-22 Thread Seth Geoghegan
  I am attempting to set up Maven on a corporate network without access to
the web. I've got Maven, a repository (Nexus) and now need to fill my
repository with all the needed plugins. Unfortunately, I don't have the
option of letting Maven connect to the web and download its
plugins/dependencies.  Instead, I need to tell a different group
(non-technical folk) what I need downloaded and they import it onto our
networks manually.  I know it sounds silly, but its the environment I'm
working in!

  Where can I find a list of plugins that Maven needs to support the basic
project lifecycle (compile, test, site, etc)?  Any recommendations would be
appreciated.


Thanks,
~Seth


RE: Certification build question

2008-05-22 Thread Richard Chamberlain
Oh I see.

How about having a release branch for each of your projects? Then you
wouldn't have to worry about specifying a svn number for each project.
A parent project could still work as they could do a multi-module build,
which builds each project in turn.

Rich

-Original Message-
From: Chris Helck [mailto:[EMAIL PROTECTED] 
Sent: 22 May 2008 17:11
To: Maven Users List
Subject: RE: Certification build question

Rich,
It's very common for corperations to implement this sort of thing. It
helps ensure that the products can be rebuilt from the source code, and
that helps certain audit/security processes. In any case, this is what
my company does, and they pay me every two weeks.

I do what you suggest for internal and informal releases of test tools
and report generators.

-Chris  

-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 12:00 PM
To: Maven Users List
Subject: RE: Certification build question

Why do the team need to build your application? Can you not give them a
built version for them to test?
If you can do this, have an application project that depends on all the
components that you use. Configure the assembly plugin to zip all the
dependencies into a kit. You can then tell them to pick up this version
of the application from the repository and test it.

Hope I understood correctly.

Regards,

Rich 

-Original Message-
From: Chris Helck [mailto:[EMAIL PROTECTED]
Sent: 22 May 2008 16:14
To: Maven Users List
Subject: Certification build question

Hi,
We have multiple components and applications. When I hand an application
over to our certification team to build I need to tell them which (if
any) dependent components they need to build. So every release I have
provide specific instructions of the form:
  From SCM get this label, build with mvn
  From SCM get another label, build with mvn
  and so on.

The certification team hates this. They'd like to build the application
the same way on every release. The certification team doesn't care about
low level components, and don't have any way to test them directly.
Perhaps they should, but that is beside the point.

So my question is how to handle this?

Regards,
Christopher Helck


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


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


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

Problem with tagging in maven-release-plugin

2008-05-22 Thread Alex Reina
Hi all,

I have a multi-module project that I'm trying to run the release plugin against.
scm connections are configured in the POMs and so is the tagBase.
Checkin of POMs with updated release numbers works, but the tagging
fails...
Strangely enough, I get prompted for the new release and development
numbers for all modules BUT I am only ever asked about the tag for the
root POM file.

Here's a excerpt:

[INFO] Checking in modified POMs...
[INFO] Executing: svn --non-interactive commit --file
/tmp/maven-scm-361988603.commit --targets /tmp/maven-scm-4489-targets
[INFO] Working directory: /home/build/release-0.5-4/(project name withheld)
[INFO] Tagging release with the label (project name)-0.5...
[INFO] Executing: svn --non-interactive copy --file
/tmp/maven-scm-1858598810.commit . svn+ssh://(URL)/svn/repos/(project
name withheld)/tags/(project name withheld)-0.5
[INFO] Working directory: /home/build/release-0.5-4/(project name withheld)

then I'm prompted for a password, even though I know the user
credentials are fine and the commit just succeded...

build@(URL)'s password:
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Connection closed unexpectedly

[INFO] 
[INFO] Trace
org.apache.maven.BuildFailureException: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Connection closed unexpectedly

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.plugin.MojoFailureException: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Connection closed unexpectedly

at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:144)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
[INFO] 
[INFO] Total time: 3 minutes 35 seconds
[INFO] Finished at: Thu May 22 19:08:23 CEST 2008
[INFO] Final Memory: 19M/296M
[INFO] 


I've tried many different things... half my kingdom for a good pointer!

Many thanks in advance

-- 
Alex

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



Using interactive mode with maven-archetype-plugin to define properties

2008-05-22 Thread Trent Rosenbaum
Hi there,

I have been exploring the 2.0-alpha-3 release of the
maven-archetype-plugin.  Understanding that it is still in alpha
release stages I wanted to try it out.
I defined a project, (a simple web project) and then ran the following command:

mvn archetype:create-from-project -Dinteractive=true

As expected I was asked to define properties and then I was shown my
input and asked to confirm it before the new archetype was generated.
When I went to inspect the generated sources I found that my new
property values were ignored and the default values where copied from
the example project over
into the archetype pom.xml file, (properties such as groupId and
artifactId).  So for example my example project was called 'my-webapp'
and I wanted an arcetype based on that project to be call
'mycompany-archetype-webapp', but instead it had an artifactId of
'my-webapp'.

Is this a know problem?  I have looked around but was not able to find anything.

When interacting with the plugin I was shown the following property keys

archetype.groupId
archetype.artifactId
archetype.version
version
package
groupId
artifactId

I was then asked to confirm the assigned values, but it was a bit
confusing because I didn't know which keys created specific changes
for the newly generated sources.  While executing the plugin I changed
all of the keys above to have new values, but still the newly
generated archetype contained the default values as explained
previous.

Would anyone be able to explaing the properties and how they impact
the newly generated sources?  Also is this expected behaviour for the
current state of the plugin?

I really like what the plugin but this just throw me because I could
generate something, but it would still need a bit of manual
intervention after generation to make the new archetype 100%.

Many thanks
Trent

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



Re: Weird Signed Jar Issue

2008-05-22 Thread Adam
On further investigation, it is a problem with the way the assembly
plugin setup I have is doing jar-with-dependencies -it's duplicate in
other projects as well, we just found it now since we are using it to
create the signed JAR in the other project.  Does anyone have any
insight as to what is wrong with what I'm doing?

Thanks.

On Wed, May 21, 2008 at 3:34 PM, Adam [EMAIL PROTECTED] wrote:
 Hey all,

 I have a project that is creating a signed JAR off of a JAR built with
 dependencies.  Up until recently (for the last year at least) it has
 worked fine with my configuration.  All of a sudden it will not build
 on Windows (but is fine on Linux).  The error I am getting is:

 [INFO] jarsigner: unable to sign jar: java.util.zip.ZipException:
 duplicate entry: com/mobilvox/../../applet/...Applet.class
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Result of cmd.exe /X /C 'C:\Program
 Files\Java\jdk1.6.0_02\jre\..\bin\jarsigner.exe -verbose -storepass
 ** -keypass ** -signedjar
 C:\dev\workspace\proj-113\..\..\applet\target\signed\...-1.2-SNAPSHOT.jar
 C:\dev\workspace\proj-113\...\...target...-1.2-SNAPSHOT-jar-with-dependencies.jar
 MobilVox' execution is: '1'.


 When I look at the JAR I do actually have 2 of the .class files but,
 the only places they exist are in the JAR in the build output
 directory and the other is in buildOutputDirectory/classes

 My environment:

 Windows XP SP2
 Maven 2.0.8
 Java 1.6.0_2


 Also, here is the pom configuration:

build
plugins
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
descriptorRefs

 descriptorRefjar-with-dependencies/descriptorRef
/descriptorRefs
/configuration
executions
execution
idmake-assembly/id
phasepackage/phase
goals
goalattached/goal
/goals
/execution
/executions
/plugin
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
alias.../alias
keypass.../keypass
storepass.../storepass
jarPath

 ${project.build.directory}/${project.build.finalName}-jar-with-dependencies.${project.packaging}
/jarPath
signedjar

 ${project.build.directory}/signed/${project.build.finalName}.jar
/signedjar
verifytrue/verify
verbosetrue/verbose
certstrue/certs
/configuration
executions
execution
goals
goalsign/goal
/goals
/execution
/executions
/plugin
/plugins
/build

  Again, this works fine in Linux and worked for the last year up until
 recently.

 Thanks in advance,

 Adam Altemus
 MobilVox, Inc
 http://www.mobilvox.com




-- 
Adam

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



Re: second zip artifact from the same pom?

2008-05-22 Thread James Levinson
I wanted to thank you for responding and giving me a good head start on the
maven-assembly-plugin. The documentation is Excellent and they are powerful
indeed. I also wanted to share the very simple solution to building the zip
file:

--in my profile sections for different env's I have the assembly plugin
activation attached to the package phase
  build
plugins
  plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
  descriptors
descriptorsrc/assembly/assembly.xml/descriptor
  /descriptors
/configuration
executions
  execution
idmake-assembly/id
phasepackage/phase
goals
  goalattached/goal
/goals
  /execution
/executions
  /plugin
/plugins
  /build

--and for the descriptor itself, all I needed was a fileSet
assembly
  idstatic-assembly/id
  formats
formatzip/format
  /formats
  includeBaseDirectoryfalse/includeBaseDirectory
  includeModuleDirectoryfalse/includeModuleDirectory
  fileSets
fileSet
  includes
includestyle/**/include
includejs/**/include
includeimages/**/include
  /includes
  directorytarget/${hard-coded-final-name}/directory  !-- this did
not work ${project.build.finalName} --
  outputDirectory//outputDirectory
/fileSet
  /fileSets
/assembly

Thanks again, James


Re: integration-test practices

2008-05-22 Thread Wendy Smoak
On Thu, May 22, 2008 at 8:39 AM, Paul Davis [EMAIL PROTECTED] wrote:

 I have found that if I place the resource (xml file) in both places, it
 works
 src/it/java
 src/test/resources
 However, if I only have one copy (in either location) it does not work.

I wouldn't expect src/it/* to work, unless you are configuring a
plugin to look there.  AFAIK, nothing looks there by default.  Neither
are any plugins bound to the integration test phases in the default
lifecycle, so if you want to use those phases you need to do the
bindings yourself.

I still don't have a good idea of what you're trying to do.  Can you
include some of the pom config and explain the project structure?  Are
the integration tests in a separate module?

-- 
Wendy

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



Re: Eclipse Plugin and WTP Facets problem

2008-05-22 Thread Arnaud HERITIER
0.9.4 of m2eclipse start to support natively WTP :
http://docs.codehaus.org/display/M2ECLIPSE/WTP+mini+howto

Arnaud


On Thu, May 22, 2008 at 11:54 AM, Baeriswyl Kuno - Extern (IT-BA-MV)
[EMAIL PROTECTED] wrote:

 Hello,

 I agree. Though, m2eclipse doens't handle WTP settings, as far as I know. I
 think it's planned for WTP 2.0 or so. Therefore, m2eclipse doens't work if
 you need those settings, e.g. for J2EE application servers.

 At least, that's what I figured out..any other opinions?

 Kuno

 -Ursprüngliche Nachricht-
 Von: Guillaume Boucherie [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 22. Mai 2008 08:49
 An: Maven Users List
 Betreff: Re: Eclipse Plugin and WTP Facets problem


 Hello,

 I'm think the m2eclipse goal is to be used with the eclipse plugin coled
 m2eclipse (http://m2eclipse.codehaus.org/). This plugin add support for
 maven2 directly in your eclipse and managed dependencies in special way so
 you have to used m2eclipse goal.

 Guillaume Boucherie


 2008/5/21, Martin Höller [EMAIL PROTECTED]:
 
  On Wednesday 21 May 2008 Mario-Leander Reimer wrote:
 
   Another question: Do you know whether the eclipse:m2eclipse goal is
   meant be used in combination with the WTP settings?
 
 
  No idea, I never used the m2eclipse mojo.
 
 
  - martin
 
 

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




versions on central-repo (stupid question)?

2008-05-22 Thread kawazu
Folks;

after merrily using maven2 for quite a while, by now I dealt with
defining dependency using version ranges for the first time - and
failed, not sure why. Maybe I am just too stupid, and maybe someone can
help me outta this?

Example: Dependency defined is

dependency
groupIdjmimemagic/groupId
artifactIdjmimemagic/artifactId
version[0.1,)/version
scopecompile/scope
/dependency


Looking to repo1.maven.org/maven2/jmimemagic/jmimemagic, I see there are
three different artifacts around (0.0.4a, 0.1.1, 0.1.2), and so as I
understodd this kind of version specification, I'd kinda expect maven to
use 0.1.2 in this situation. However, running mvn -U install on the
project ends up like this:

[...]
Couldn't find a version in [0.0.4a] to match range [0.1,)
  jmimemagic:jmimemagic:jar:null

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
[...]


Not quite what I expected to happen. My fault, or something I just
misunderstood? Maven version is 2.0.8, running a pretty recent Sun JDK... :/

TIA and best regards,
Kristian

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



Question about Maven, Eclipse WTP and war overlay

2008-05-22 Thread Lorenzo Arcaini
Hello everyone,

I have multiple maven projects sharing some code via a war overlay and
would like to use WTP in Eclipse to deploy my webapps and benefit from
the productivity gain it brings to the dev teams.
However, due to my war overlay, WTP seems unable to work properly as
my webapps depends on it.
My projects have war and ear packaging, but having only the war
projects working would already be a good thing.
Target application server is JOnAS 4.8.6, but then again, if it is
working with a good old tomcat it should be good enough.

I think I'm not the only one using war overlay and willing to use WTP
at the same time, so my question is : how are you dealing with this /
how should I proceed to make things work ?

Regards,

Lorenzo Arcaini
OCTO Technology - larcaini AT octo DOT com
www.octo.com | blog.octo.com

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



RE: How to include junit tests in a generated jar, using maven 1.1?

2008-05-22 Thread Morgan Fletcher
 I suggest adding a custom goal maven.xml that adds the test classes
dir to
 the list of source dirs, then creates the jar.

Thanks. I ended up adding this goal, which produces a separate test jar:

   goal name=test-build
 attainGoal name=test:compile/
 ant:jar destfile=./target/Module-test-${pom.currentVersion}.jar
 basedir=target/test-classes
 includes=**/**/
   /goal

I had to add this to project as well:

xmlns:ant=jelly:ant

Morgan 

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



Re: Naming convention for multimoduled projects?

2008-05-22 Thread Hilco Wijbenga
On Thu, May 22, 2008 at 6:44 AM, simon [EMAIL PROTECTED] wrote:
 On Thu, 2008-05-22 at 15:33 +0200, Magne Nordtveit wrote:
 On Thu, 2008-05-22 at 15:23 +0200, simon wrote:
  On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
   I'm just wondering, how do you name your artifacts in a large
   multimoduled project to avoid having two modules with the same
   artifact-id?
  
   I am thinking in the lines of project-partofgroupid-descriptivename as
   artifact-id. This would make the name of the final jar files (at least
   more) unique and easily identified, but it might give some long
   file-names...
  
   I guess I'm just asking for suggestions here, or a pointer if it exists
   a best-practise on it?
 
  Why not just set the groupId to something reasonable.
 
  If your company is acme.com, then the groupId should *start* with
  com.acme, but you can have any arbitrary number of parts after that.
 
  And presumably your modules have structured java package names so that
  the classnames don't collide. So why not model the groupId after the
  package in which the code for each module lives?
 
com.acme.tractor.engine
com.acme.tractor.chassis
com.acme.steamroller
 
  IMO, that is nicer than embedding excessive structure into the
  artifactId.
 
  Regards,
  Simon
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 Exactly.

 But what happens when you have com.acme.tractor:common and
 com.acme.steamroller:common if you for some reason need to have both
 common-packages (ok, probably a bad example) as a dependency to another
 project?

 When running, wouldn't the classpath be set too
 lib/common-1.0.jar:lib/common-1.0.jar? As far as I know, its only the
 artifactId that gets put into the actual jar-file.

 That's what i want to avoid before it happens and while our project is
 still sub-100 modules.

 I don't believe that problem can happen.

 When you use maven to compile or run something during development, the
 classpath looks like:
  ${M2REPO}/com/acme/tractor/common/1.0/common-1.0.jar:
  ${M2REPO}/com/acme/steamroller/common/1.0/common-1.0.jar
 so no clash happens.

 And when you use the maven-assembly-plugin or maven-shade-plugin or use
 war packaging etc to build a distribution bundle for shipping, then
 it should detect the filename collision, and build a fully-qualified
 name for the jarfile rather than just using the short name.

 When things like the assembly plugin copy files out of local maven
 repository into an assembly directory, there is no requirement for them
 to keep the same filename. When a plugin deliberately discards the
 directory strucuture, it is responsible for avoiding resulting name
 clashes.

 Or at least I think that's how it is supposed to work.

Yes, the name collisions will not happen. Maven (or the Maven plugins,
I'm not sure which) is/are smart enough to make the file names unique.

I've been wondering about a naming convention as well, though. Because
the naming collision avoidance behaviour doesn't help with modules.
You still end up with 2 common modules (which isn't possible if you
use 1 parent with multiple children in a single directory).

So how do people do that? Do you use multiple layers? Is that not
rather confusing? Or do you resort to repeating part of the group id
in the artifact id (i.e., tractor-common and steamroller-common)? Or
would you create 2 parent projects: 1 for tractor and 1 for
steamroller? (I guess this is very similar to multiple layers of
modules.)


Re: integration-test practices

2008-05-22 Thread Paul Davis
Before my response, I just want to say, I really appreciate you taking the
time to help me with this.

Yes, I am defining the src to look in src/it/java.
I heard a rumor that maven 2.1 would support that for integration tests so,
I wanted to start using the location.

I also have the integration tests in a separate module.

My project structure looks like:
/pom.xml
/my-data-api/pom.xml
/my-data-impl/pom.xml
/my-web-module/pom.xml
/functest/pom.xml

The functest module contains the integration tests
from the functest pom:

build
testSourceDirectorysrc/it/java/testSourceDirectory
testResources
testResource
filteringfalse/filtering
directorysrc/it/resources/directory
/testResource
/testResources
/build

There is a profile defined in that module to use the surefire plugin to run
the tests in the integration test phase. The profile also uses the cargo
plugin to start tomcat, deploy the web app for pre-integration-test, and
undeploy/shutdown tomcat for post-integration-test.

Everything is working fine for the integration tests to execute on the
integration-test part of the project life-cycle except getting the
resources to load up (unless they are in both places, mentioned before).

The app is designed so that the my-data-impl module uses REST to
communicate with an external server. It is instrumented with JMX so the
integration test can tell it to use mock data, injected via JMX, instead of
hitting the external server. This ensures tests that are repeatable.

The thing is, the tests need to load up the mock data in order to be
injected. Thus, my issue getting the files loaded from the classpath.

I could have the files duplicated but, it's going to cause maintenance
problems down the road

On Thu, May 22, 2008 at 11:55 AM, Wendy Smoak [EMAIL PROTECTED] wrote:

 On Thu, May 22, 2008 at 8:39 AM, Paul Davis [EMAIL PROTECTED] wrote:

  I have found that if I place the resource (xml file) in both places, it
  works
  src/it/java
  src/test/resources
  However, if I only have one copy (in either location) it does not work.

 I wouldn't expect src/it/* to work, unless you are configuring a
 plugin to look there.  AFAIK, nothing looks there by default.  Neither
 are any plugins bound to the integration test phases in the default
 lifecycle, so if you want to use those phases you need to do the
 bindings yourself.

 I still don't have a good idea of what you're trying to do.  Can you
 include some of the pom config and explain the project structure?  Are
 the integration tests in a separate module?

 --
 Wendy

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




RE: Maven Unplugged (no network access)

2008-05-22 Thread Brian E. Fox
Ouch. Is there any way this privileged group can hook up a Nexus to
the internet, and run through some of your builds? They could then
analyze and approve the contents which could then be moved to your
protected instance. Enumerating the full list of things and doing it
manually is going to be tedious at best.

-Original Message-
From: Seth Geoghegan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 11:25 AM
To: users@maven.apache.org
Subject: Maven Unplugged (no network access)

  I am attempting to set up Maven on a corporate network without access
to
the web. I've got Maven, a repository (Nexus) and now need to fill my
repository with all the needed plugins. Unfortunately, I don't have the
option of letting Maven connect to the web and download its
plugins/dependencies.  Instead, I need to tell a different group
(non-technical folk) what I need downloaded and they import it onto our
networks manually.  I know it sounds silly, but its the environment I'm
working in!

  Where can I find a list of plugins that Maven needs to support the
basic
project lifecycle (compile, test, site, etc)?  Any recommendations would
be
appreciated.


Thanks,
~Seth

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



RE: retrieving jar with highest version

2008-05-22 Thread Andreas Guther
Repositories have metadata xml files from where you can retrieve the highest 
number. It is usually pretty straightforward downloading the metadata file, 
extracting the information and constructing the required version number.

Andreas


-Original Message-
From: Brane F. Gračnar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 8:48 AM
To: Maven Users List
Subject: retrieving jar with highest version

Hello there ;)

First, i have to mention, that i'm just system administrator, not 
developer, so please, excuse me for the following stupid question.

I would like to retrieve jar with highest version number from our 
central maven repository using mvn command to some directory on a 
filesystem.

It this possible with single mvn command or i will have to write pom.xml 
with assembly goal?

Best regards, Brane

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



RE: Downloading a unique snapshot

2008-05-22 Thread Andreas Guther
Did you try to define in your dependency the part after myproduct as
version, i.e. 1.0-SNAPSHOT-20080522.114841-2?

Andreas


-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 8:48 AM
To: Maven Users List
Subject: Downloading a unique snapshot

Hi,

 

Still on my quest of getting perforce numbered unique snapshots:

 

1)  If I specify a SNAPSHOT dependency in my pom, can I configure
maven to download the unique named artefact rather than one that has
SNAPSHOT on the end?

i.e. repo has myproduct-1.0-SNAPSHOT-20080522.114841-2.jar, when I
download it the artefact is: myproduct-1.0-SNAPSHOT.jar but i would like
to receive it as: myproduct-1.0-SNAPSHOT-20080522.114841-2.jar (the same
as the repo). I still always want the latest build.

 

2)  Can I specify the format of unique snapshots? Instead of UTC
Datetime - build number can I do perforce changelist?

 

Thanks for all your help so far!

 

Rich


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



RE: Maven Unplugged (no network access)

2008-05-22 Thread Andreas Guther
In your scenario Nexus is not necessary since you are actually not
proxying anything.  If I understand your scenario correctly you need to
provide a managed and controlled repository.  An Apache Server is good
enough.  

I would suggest having the folks with the external access to run the
builds on their boxes with external access and then after verification
copy everything from their local repository to the folder from which
your Apache Maven server serves the artifacts.

Andreas


-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 4:03 PM
To: Maven Users List
Subject: RE: Maven Unplugged (no network access)

Ouch. Is there any way this privileged group can hook up a Nexus to
the internet, and run through some of your builds? They could then
analyze and approve the contents which could then be moved to your
protected instance. Enumerating the full list of things and doing it
manually is going to be tedious at best.

-Original Message-
From: Seth Geoghegan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 22, 2008 11:25 AM
To: users@maven.apache.org
Subject: Maven Unplugged (no network access)

  I am attempting to set up Maven on a corporate network without access
to
the web. I've got Maven, a repository (Nexus) and now need to fill my
repository with all the needed plugins. Unfortunately, I don't have the
option of letting Maven connect to the web and download its
plugins/dependencies.  Instead, I need to tell a different group
(non-technical folk) what I need downloaded and they import it onto our
networks manually.  I know it sounds silly, but its the environment I'm
working in!

  Where can I find a list of plugins that Maven needs to support the
basic
project lifecycle (compile, test, site, etc)?  Any recommendations would
be
appreciated.


Thanks,
~Seth

-
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]



artifact.jar - artifact.zip?

2008-05-22 Thread Russ Tremain
is it possible to coax the maven-jar-plugin to name my artifact with 
a .zip suffix instead of .jar?


also, can I tell it not to include any manifest?

I don't see anything helpful in the docs.

tia,
-Russ

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



Re: artifact.jar - artifact.zip?

2008-05-22 Thread Wendy Smoak
On Thu, May 22, 2008 at 5:59 PM, Russ Tremain [EMAIL PROTECTED] wrote:

 is it possible to coax the maven-jar-plugin to name my artifact with a .zip
 suffix instead of .jar?
 also, can I tell it not to include any manifest?
 I don't see anything helpful in the docs.

It sounds like the assembly plugin is a better fit for this task.

-- 
Wendy

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



Re: Is there a list of available variables or expressions to use in POM file

2008-05-22 Thread Maria Odea Ching
Maybe this would help :)
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

Thanks,
Deng

On Thu, May 22, 2008 at 10:46 PM, Andreas Guther 
[EMAIL PROTECTED] wrote:

 Hi,



 Is there a list of available variables and expressions one can insert
 into a pom file?



 In particular I am looking for inserting variables like the current date
 into the manifest entries.



 Andreas