Project-wide default profile?

2007-01-22 Thread pjungwir

Hello,

I know that profiles get discussed here all the time, but I just wanted to
confirm that the feature I want really doesn't exist. I want to create two
mutually-exclusive profiles. To build the project successfully, you must
activate one of these profiles. Therefore they should be in the pom.xml, not
the settings.xml. They are not activated by interrogating the environment;
you must specify one. But it's annoying to give a profile every time you run
maven. And new developers might not even know that specifying a profile is
required. So is there a way to make one the default? Even better, can the
project come with a default?

I tried using activeProfiles in my settings.xml, but that doesn't work,
because activeProfiles only applies to profiles defined in settings.xml,
but my profiles are defined in pom.xml. But even if that solution worked, it
wouldn't be that great, because I want to give developers a default as part
of their checkout. They shouldn't have to create the default themselves.

Does maven give me any way to do what I want? This seems like such a basic
and obvious requirement.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/Project-wide-default-profile--tf3059791s177.html#a8508102
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: Project-wide default profile?

2007-01-22 Thread pjungwir

Ah, thank you. The key is right here:

activation
  property
name!jsf/name
  /property
/activation

I didn't know you could activate a profile based on an *unset* property. But
that gives me just what I need.

Thanks again,
Paul

-- 
View this message in context: 
http://www.nabble.com/Project-wide-default-profile--tf3059791s177.html#a8508531
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: Assembly plugin for multi module project

2006-11-29 Thread pjungwir

Hello,

I hit that error once! It is very confusing, but it means that the resulting
tarball (or whatever) would be empty. In other words, Maven isn't finding
any files to include in the assembly. I guess there is something wrong with
your moduleSet, but I don't know; I haven't used this plugin on
multi-module projects.

Paul



-- 
View this message in context: 
http://www.nabble.com/Assembly-plugin-for-multi-module-project-tf2685658s177.html#a7606167
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: Using the assembly plugin to build a stand-alone application

2006-11-21 Thread pjungwir

Hi Larry,

I'm doing this, too. I think you'll need to create your own assembly
descriptor. Here is mine:

assembly
idbin/id
formats
formattar.gz/format
formatzip/format
/formats
fileSets
fileSet
directorytarget/directory
outputDirectory/outputDirectory
includes
include*.jar/include  !-- the jar of this project's
classes --
/includes
/fileSet
fileSet
directorytarget/scripts/directory
outputDirectory/outputDirectory
includes
include*/include  !-- clui scripts to launch the main
java class --
/includes
fileMode755/fileMode
/fileSet
fileSet
directorytarget/doc/directory
outputDirectory/outputDirectory
includes
include*/include
/includes
/fileSet
/fileSets
files
file
sourceREADME/source
outputDirectory//outputDirectory
fileMode644/fileMode   !-- broken. see
http://jira.codehaus.org/browse/MASSEMBLY-153 --
/file
/files
dependencySets
dependencySet
/dependencySet
/dependencySets
/assembly

Paul


Larry Meadors-2 wrote:
 
 Hi, I am using maven for the first time, so I apologize if this is a
 retarded question, but I can't find it anywhere in the docs.
 
 I have an app that is a command line app. I want to create an assembly
 that has my jar, along with the other jars that are listed as
 dependencies on it.
 
 I tried the jar-with-dependencies approach, and that *almost* works,
 but one of the jars i am including has some added files in the
 META-INF directory, and they do not end up getting included, so the
 app fails. Bummer. :(
 
 So, I guess i am looking for one of two things:
 
 1) how can I get *all* the files in the uber jar.
 
 -or-
 
 2) how can I get the assembly to just put all the individual dependent
 jars in a directory somewhere?
 
 I think I'd prefer #2, but at this point... I'll take what I can get! :-)
 
 TIA,
 Larry
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7448665
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: Using the assembly plugin to build a stand-alone application

2006-11-21 Thread pjungwir

Hi Larry,

I believe the descriptorId is required. You must also reference assembly.xml
from your POM by giving the assembly plugin a configuration like this:

  configuration
descriptorassembly.xml/descriptor
  /configuration

But the 4 files result is correct, I think. What's in them? The jar should
contain only your current project's classes. That is not the result of the
assembly plugin, but of the jar plugin (probably running automatically on
account of jar packaging). The other three files are coming from the
assembly plugin. What's in them? You should see your jar plus your
dependency jars. That's what you wanted, right?

Paul



Larry Meadors-2 wrote:
 
 Thanks, Paul - I added that as a file named assembly.xml in the
 directory with my pom.xml in it.
 
 I then added this to my pom (in the build/plugins section):
 ===
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 version2.0-beta-1/version
 configuration
 descriptorIdbin/descriptorId
 descriptors
 descriptor./assembly.xml/descriptor
 /descriptors
 finalNamemarcdelivery/finalName
 outputDirectorytarget/assembly/outputDirectory
 workDirectorytarget/assembly/work/workDirectory
 /configuration
 /plugin
 ===
 
 But it still only creates 4 files:
  - target/marc-delivery-1.0-SNAPSHOT.jar
  - target/assembly/marcdelivery-bin.tar.gz
  - target/assembly/marcdelivery-bin.tar.bz2
  - target/assembly/marcdelivery-bin.zip
 
 If I remove the descriptorIdbin/descriptorId line from the pom, I
 get only one file (target/marc-delivery-1.0-SNAPSHOT.jar) and an
 error. :(
 
 How do you have this in your project?
 
 Larry
 
 
 On 11/20/06, pjungwir [EMAIL PROTECTED] wrote:

 Hi Larry,

 I'm doing this, too. I think you'll need to create your own assembly
 descriptor. Here is mine:

 assembly
 idbin/id
 formats
 formattar.gz/format
 formatzip/format
 /formats
 fileSets
 fileSet
 directorytarget/directory
 outputDirectory/outputDirectory
 includes
 include*.jar/include  !-- the jar of this project's
 classes --
 /includes
 /fileSet
 fileSet
 directorytarget/scripts/directory
 outputDirectory/outputDirectory
 includes
 include*/include  !-- clui scripts to launch the
 main
 java class --
 /includes
 fileMode755/fileMode
 /fileSet
 fileSet
 directorytarget/doc/directory
 outputDirectory/outputDirectory
 includes
 include*/include
 /includes
 /fileSet
 /fileSets
 files
 file
 sourceREADME/source
 outputDirectory//outputDirectory
 fileMode644/fileMode   !-- broken. see
 http://jira.codehaus.org/browse/MASSEMBLY-153 --
 /file
 /files
 dependencySets
 dependencySet
 /dependencySet
 /dependencySets
 /assembly

 Paul


 Larry Meadors-2 wrote:
 
  Hi, I am using maven for the first time, so I apologize if this is a
  retarded question, but I can't find it anywhere in the docs.
 
  I have an app that is a command line app. I want to create an assembly
  that has my jar, along with the other jars that are listed as
  dependencies on it.
 
  I tried the jar-with-dependencies approach, and that *almost* works,
  but one of the jars i am including has some added files in the
  META-INF directory, and they do not end up getting included, so the
  app fails. Bummer. :(
 
  So, I guess i am looking for one of two things:
 
  1) how can I get *all* the files in the uber jar.
 
  -or-
 
  2) how can I get the assembly to just put all the individual dependent
  jars in a directory somewhere?
 
  I think I'd prefer #2, but at this point... I'll take what I can get!
 :-)
 
  TIA,
  Larry
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7448665
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7449750
Sent from the Maven - Users mailing

Re: site-deploy

2006-11-17 Thread pjungwir

I'm not positive, but it is probably something like what I've got for
wagon-ftp in one of my projects:

project
  ...
  extensions
  extension
  groupIdorg.apache.maven.wagon/groupId
  artifactIdwagon-ftp/artifactId
  version1.0-beta-1/version
  /extension
  /extensions
 ...
/project

Paul


Francois Le Fevre wrote:
 
 Paul,
 
 i have made a false copy and paste : the post was 
 
 http://jira.codehaus.org/browse/WAGONSSH-44
 
 
 a more precise question: where can I overwrite the version of 
 wagon-ssh-external or wagin-ssh ?
 in which pom ? in which parapgraph.
 
 Thanks a lot.
 
 Francois
 
 Dear Paul,
 You are right but I could find the solution.
 I have founded this post :

 http://jira.codehaus.org/browse/MASSEMBLY-153

 Upgrading wagon to version 1.0-beta-1 seems to have solved this issue 
 for us. Just replace the wagon*.jar files in the maven/lib directory 
 with the newer versions.

 But it doesn't change anything!

 Can you tell me where to configure in my pom which version of wagon to 
 use ??

 Thanks

 Francois

 Hi Francois,

 I'm not sure about the password prompt, but the file permissions problem
 looks like another case of this:

 http://jira.codehaus.org/browse/MASSEMBLY-153

 Paul


 Francois Le Fevre wrote:
  

 Dear all,

 I am using maven 2 on a linux OS
 I want to deploy my project.

 I have 2 problems:
 -password authentification
 -right on the web site files

   1. Password
  * so when i execute the commande mvn site-deploy,
  * I need to enter each time my password !!, soi i need tyo put
it in my settings.xml even if i use a id_rsh key
   2. Right on files
  * the file generated have the following rights :
o drwx-w   5 flefevre g_nemo  8192 Nov 16 12:00
  nemo-studio-bio
o -rw--w   1 flefevre g_nemo  5478 Nov 16 12:00
  jxr.html
  * i would like to have 664, and even if i put it to my
settings.xml it doesn't work

 Thanks a lot for your help.
 Francois

* My pom.xml
  o distributionManagement
site
idNemo Projects Website/id
url
 
 scp://masaya1.genoscope.cns.fr/env/cns/pub/www/data/externe/nemo/projects/${project.artifactId}
  

/url
/site
* My settings.xml
  o server
idNemo Projects Website/id
usernameflefevre/username
 
 privateKey/env/export/masaya/home/flefevre/.ssh/id_rsa/privateKey
   
 !--directoryPermissions775/directoryPermissions
filePermissions664/filePermissions--
passwordXX/password
/server


 -- 
 Francois Le Fevre
 Bioinformatics Engineer
 Computational Systems Biology Group
 Genoscope
 Tél. : (+33) 1 60 87 45 83
 Web : http://www.genoscope.cns.fr/bioinfo



   


  



 
 
 -- 
 Francois Le Fevre
 Bioinformatics Engineer
 Computational Systems Biology Group
 Genoscope
 Tél. : (+33) 1 60 87 45 83
 Web : http://www.genoscope.cns.fr/bioinfo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/site-deploy-tf2642252s177.html#a7405500
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: Help on profiles

2006-11-17 Thread pjungwir

Hi Deluigi,

You can solve your second problem by adding this below plugin:

inheritedfalse/inherited

I'm not sure about problem 1.

Paul



Deluigi Marcus wrote:
 
 
 Hi
 
 I have the following scenario:
 
 I have a project with several modules.
 
 One of the modules starts a container with Cargo in the
 pre-integration-phase, tests something in the integration phase and
 stops Tomcat in the post-integration-phase.
 
 There is a profile called 'tomcat' which is activated by default that
 sets the container to Tomcat for Cargo.
 
 In order to make sure that Tomcat is started with the right
 configuration, I always want to copy my custom configuration file into
 the Tomcats configuration directory. This is done by ant ant-task which
 should only be executed, if the actual profile is really Tomcat. It is
 also important that the configuration file is copied _before_ the
 container is started.
 
 So, the layout is the following:
 
 profiles
  ...
 profile
 idauto/id
 build
 plugins
 .. let cargo start, deploy, undeploy, stop, etc
 /plugins
 /build
 /profile
 
 profile
 idtomcat/id
 activationactiveByDefaulttrue/activeByDefault/activation
 build
 plugins
 .. let the ant-task copy the configuration file
 /plugins
 /build
 /profile
 
 
 Now I have two problems:
 First, the ant-task is not the first task in the pre-integration task.
 It always gets executed _after_ the container is started.
 
 Second: when I execute 'mvn help:effective-pom', for the different
 modules, I see that all other ant tasks in every module contains the
 copy task. I must have completely misunderstood something very basic.
 How do I tell maven only to execute the ant task in this project?
 
 Thanks for any help!
 
 
 Greetings,
 Marcus
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Help-on-profiles-tf2650962s177.html#a7405710
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: site-deploy

2006-11-16 Thread pjungwir

Hi Francois,

I'm not sure about the password prompt, but the file permissions problem
looks like another case of this:

http://jira.codehaus.org/browse/MASSEMBLY-153

Paul


Francois Le Fevre wrote:
 
 Dear all,
 
 I am using maven 2 on a linux OS
 I want to deploy my project.
 
 I have 2 problems:
 -password authentification
 -right on the web site files
 
1. Password
   * so when i execute the commande mvn site-deploy,
   * I need to enter each time my password !!, soi i need tyo put
 it in my settings.xml even if i use a id_rsh key
2. Right on files
   * the file generated have the following rights :
 o drwx-w   5 flefevre g_nemo  8192 Nov 16 12:00
   nemo-studio-bio
 o -rw--w   1 flefevre g_nemo  5478 Nov 16 12:00
   jxr.html
   * i would like to have 664, and even if i put it to my
 settings.xml it doesn't work
 
 Thanks a lot for your help.
 Francois
 
 * My pom.xml
   o distributionManagement
 site
 idNemo Projects Website/id
 url


 scp://masaya1.genoscope.cns.fr/env/cns/pub/www/data/externe/nemo/projects/${project.artifactId}
 /url
 /site
 * My settings.xml
   o server
 idNemo Projects Website/id
 usernameflefevre/username


 privateKey/env/export/masaya/home/flefevre/.ssh/id_rsa/privateKey

 !--directoryPermissions775/directoryPermissions
 filePermissions664/filePermissions--
 passwordXX/password
 /server
 
 
 -- 
 Francois Le Fevre
 Bioinformatics Engineer
 Computational Systems Biology Group
 Genoscope
 Tél. : (+33) 1 60 87 45 83
 Web : http://www.genoscope.cns.fr/bioinfo
 
 
 

-- 
View this message in context: 
http://www.nabble.com/site-deploy-tf2642252s177.html#a7380192
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: Execute phase in weblogic:appc

2006-11-16 Thread pjungwir

I think forked lifecycles are often too helpful, like Clippy the Paperclip.
If you can't find a real solution, you could patch the plugin. Give it a new
Mojo that just calls the original, and put different annotations on the new
mojo so it doesn't fork a lifecycle. That seems to be roughly how the
assembly plugin provides both assembly:assembly and assembly:attached.

Paul



Dmystery wrote:
 
 I've doubts in weblogic-maven-plugin's appc mojo. The executePhase in
 the plugin.xml is 'package' which means that it will bounded to the pom
 along with other goals with 'package' phase. 
 
 According to the write up at
 http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html,
 when the appc mojo will execute the tasks already executed in the package
 phase and the preceding phases will rerun. 
 
 I've appc in an pom with 'ear' packaging. The ear plugin has the following
 life-cycle, 
 
 http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html#ear
 
 So when appc is executed it will again generate the application.xml and
 the ear . Also i've a antrun plugin defined to in the 'package' phase that
 generates webservices using the generated ear. 
 
 The whole life cycle executing twice is adding a considerable amount of
 time to the build process. 
 
 Is there a way to avoid this? Moving the appc to install phase will
 install the ear to the repository first and run appc on the ear in the
 build directory. Which is not desirable. 
 
 Any thoughts??? 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Execute-phase-in-weblogic%3Aappc-tf2642288s177.html#a7380573
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: Best practice for source-generating multiple archetype plugin

2006-11-15 Thread pjungwir

Why not limit your plugin to generating the sources, and use the existing
plugins for compiling and packaging? This is likely to be more flexible,
plus it's a lot less work.

If you want different artifactIds for each bundle, you should use a separate
module for each. But you could also put them all into one module if you
wanted to use classifiers. Then you'd get names like this:

- generated-1.0-j2me.jar
- generated-1.0-j2se.jar
- generated-1.0-ansi-c.zip

Paul


Tomas Carlsson wrote:
 
 Hi,
 
 We have a tool that given one input file generates code for different
 purposes (currently j2me, j2se, ansi-c). I'm planning to write an m2
 plugin
 for this tool but I'm not really sure how to do it.
 
 What I'm trying to achieve is to only have one copy of the original input
 file and whenever it is changed there should be a simple build/release
 step
 generating the result deliverables where the different types of
 deliverables
 preferably has the same version number (ie. generated-j2me-1.0.jar, 
 generated-j2se-1.0.jar, generated-ansi-c-1.0.zip)
 
 My initial thought is to create a plugin that first generates sources for
 the different purposes, then compiles them and lastly packages one archive
 for each type.
 
 I.e:
   1 input file = 3 generated source trees = 3 compiled classes tress
 =
 3 packed archetypes
 
 I'm seeing some trouble with this though:
 
  1. It violates the maven philosophy of only having one archetype
  2. The plugin seems to get quite complicated which I think should be
 possible to avoid
 
 
 Anyone having experience with this kind of setup? Any best practices out
 there?
 
 
 best regards
 Tomas
 
 

-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-source-generating-multiple-archetype-plugin-tf2622203s177.html#a7361402
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: Maven plugin interaction

2006-11-15 Thread pjungwir

I think you have the right approach, but there are two missing bits:

  - make sure the assembly plugin doesn't attach its result.
  - make sure the last step does attach its result.

An attached file is one that maven considers an artifact and will upload
when you run install/deploy/etc. By default, the assembly plugin tells maven
that its outputs are attached. Probably if you read the assembly
documentation you can turn this off.

The last step of your build should attach the final artifact. I guess
preverification doesn't actually produce a new jar, so the final artifact
would be the result of obfuscating?

There is no way in the pom to attach an artifact; it requires plugin code.
An obfuscator plugin should know how to do this, unless you're just running
some command line tool or an ant task.

I've been meaning to write a plugin that just attaches things, but I haven't
even started yet. Maybe you'd like to do it? :-) It would be very simple,
and I think a lot of people would find it useful. If maven supports it,
maybe it should also have an unattach feature.

Paul



Mikko wrote:
 
 Hi,
 
 First the environment: 
 
 1. Multimodule midp2.0 application - must have (OK)
 2. Assembly is required - must have (OK)
 3. Assembled code jar obfuscation - optinal (NOK)
 3. Assembled code jar preverification - must have (NOK)
 
 What I'm trying to do is to write a plugin(s) for our MIDP project so that
 above steps are accomplished. My problem is that after the assembly is
 complete some jar is constructed and once either the obfuscation or the
 preverification needs to take place the plugin does not know the name of
 the jar that was produced by the maven-assembly-plugin.
 
 It might be that I'm approaching this the wrong way, but could someone
 point me to the right direction, either by suggesting another approach or
 whatever... ;) Basically once the assembly is complete I need to do the
 obfuscation and preverification with the result.
 
 thanks in advance,
 Mikko
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-plugin-interaction-tf2628577s177.html#a7364650
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: Maven plugin interaction

2006-11-15 Thread pjungwir

Hi Mikko,

The assembly plugin by default puts its result in target/ and names it
${finalName}-${version}-${classifier}.${type}, e.g. encc-1.0-bin.zip. I
would write your plugin so it accepts the input jar's filename as a
parameter, which defaults to the same naming scheme (or whatever is
convenient for you). Normally assembly's output is a finished product, so to
speak, but in your case it is an intermediate product; the build isn't
finished with it yet. Right? It is intermediate just like class files before
instrumentation. You control the build, so you can say where assembly puts
the jar and where the other plugins find it. If you were doing this in ant,
your jar and obfuscate tasks would need to cooperate; it's no different
here.

If you prefer to put the unobfuscated jar somewhere else, I believe you can
set that with the assembly descriptor or perhaps the assembly plugin's
configuration section.

Paul


Mikko wrote:
 
 Thanks, but still its not clicking in my brain ;) I fail to see how my
 plugin will be able to do the preverification and obfuscation if the
 assembly plugin does not attach its result. Basically as far as I can see
 my biggest issue is that my plugin does not know what the assembly plugin
 produced.
 
 I guess I'm missing something, can you explain perhaps with more detail.
 
 thanks,
 Mikko
 
 
 pjungwir wrote:
 
 I think you have the right approach, but there are two missing bits:
 
   - make sure the assembly plugin doesn't attach its result.
   - make sure the last step does attach its result.
 
 An attached file is one that maven considers an artifact and will upload
 when you run install/deploy/etc. By default, the assembly plugin tells
 maven that its outputs are attached. Probably if you read the assembly
 documentation you can turn this off.
 
 The last step of your build should attach the final artifact. I guess
 preverification doesn't actually produce a new jar, so the final artifact
 would be the result of obfuscating?
 
 There is no way in the pom to attach an artifact; it requires plugin
 code. An obfuscator plugin should know how to do this, unless you're just
 running some command line tool or an ant task.
 
 I've been meaning to write a plugin that just attaches things, but I
 haven't even started yet. Maybe you'd like to do it? :-) It would be very
 simple, and I think a lot of people would find it useful. If maven
 supports it, maybe it should also have an unattach feature.
 
 Paul
 
 
 
 Mikko wrote:
 
 Hi,
 
 First the environment: 
 
 1. Multimodule midp2.0 application - must have (OK)
 2. Assembly is required - must have (OK)
 3. Assembled code jar obfuscation - optinal (NOK)
 3. Assembled code jar preverification - must have (NOK)
 
 What I'm trying to do is to write a plugin(s) for our MIDP project so
 that above steps are accomplished. My problem is that after the assembly
 is complete some jar is constructed and once either the obfuscation or
 the preverification needs to take place the plugin does not know the
 name of the jar that was produced by the maven-assembly-plugin.
 
 It might be that I'm approaching this the wrong way, but could someone
 point me to the right direction, either by suggesting another approach
 or whatever... ;) Basically once the assembly is complete I need to do
 the obfuscation and preverification with the result.
 
 thanks in advance,
 Mikko
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-plugin-interaction-tf2628577s177.html#a7367049
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: [M2] Referencing Project Modules in plugin

2006-11-15 Thread pjungwir

Why do you have an asterisk after @parameter? Shouldn't you have a quote mark
after =?

Paul


M Campbell wrote:
 
 I need my plugin to make an arraylist out of the modules in the parent
 pom.
 
 I'm creating a List out of them. I'm trying
 
 [EMAIL PROTECTED] expression=${project.modules}
 
 But i get an error saying I didnt specify
 
 configuration
   ...
 childrenVALUE/children
 /configuration.
 
 
 Is there a way to directly reference my modules listed in
 project
 modules
 modulemodule1/module
 modulemodule2/module
 /modules
 /project
 
 

-- 
View this message in context: 
http://www.nabble.com/-M2--Referencing-Project-Modules-in-plugin-tf2636261s177.html#a7368230
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: error to package jar project

2006-11-15 Thread pjungwir

Please post the jar plugin section from your pom.


Barbier-Accary Aurélien wrote:
 
 Hello,
 
  
 
 I obtain an internal error when I try « mvn package » or « mvn install »
 for a « jar » project. The trace is:
 
  
 
 [INFO] Internal error in the plugin manager executing goal
 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar': Unable to find the
 mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar' in the plugin
 'org.apache.maven.plugins:maven-jar-plugin'
 
  
 
 Can you help me to find the reason of this error??
 
  
 
 Regards,
 
  
 
 Bastien Jacoud
 
  
 
 
 

-- 
View this message in context: 
http://www.nabble.com/error-to-package-jar-project-tf2636731s177.html#a7368259
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: Intalled pom version is not expanded resulting in a bogus pom version in the repository.

2006-11-14 Thread pjungwir

If you're installing the artifact every build, you might want to use a
-SNAPSHOT version.

Paul


Arne Saeten wrote:
 
 
 Hi,
 
 I have the same problem. Any solutions out there?
 
 Thanks,
 Arne
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Intalled-pom-version-is-not-expanded-resulting-in-a-bogus-pom-version-in-the-repository.-tf1558832s177.html#a7340673
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to get path to artifact for a dependency in a plugin

2006-11-13 Thread pjungwir

Hi Joachim,

Some methods on MavenProject are deliberately limited to what you see in the
pom, and others contain computed values. getDependencies() and
getDependencyArtifacts() are the former type. Probably you want
getArtifacts(). That will give you a Set of Artifact objects which should
have the information you want.

Regards,
Paul



Joachim Van der Auwera wrote:
 
 I am writing a plugin where I need access to the jar file for a
 dependency.
 
 I have tried looping the dependencies to find this (from 
 MavenProject.getDependencies()), but the dependencies always seem to 
 have null as their getSystemPath() value.
 
 I have also tried checking the artifacts, but similarly, getFile() on 
 the artifacts is also always null...
 
 So, what is the proper way to find the path where the artifact can be
 found?
 
 Thanks for the help,
 Joachim
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-path-to-artifact-for-a-dependency-in-a-plugin-tf2579609s177.html#a7326788
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: problem with provided scope

2006-11-13 Thread pjungwir

I believe that dependencyManagement does not actually add dependencies. It
just specifies which version should be used if a child adds that dependency.
So instead of using dependencyManagement, perhaps you should try
dependencies.

Paul




Joachim Van der Auwera wrote:
 
 Thanks for the help.
 
 I had at least two libraries with this problem, and one of them did not 
 have any transitive dependencies, the other one has. So unfortunely, it 
 cannot be just that.
 
 Any other ideas?
 
 Thanks for the help,
 Joachim
 
 Edwin Punzalan wrote:

 hmm... I'm pretty sure the provided scoped artifacts appear in the 
 compile phase... maybe what your project is missing are the transitive 
 dependencies of the provided artifact?

 Joachim Van der Auwera wrote:
 I am using maven 2.0.4

 In my project, I have some artifacts which are defined as provided 
 scope as these artifacts should not be included in the war file. So 
 far so good.

 However, once I change the scope, my project does not *compile* any 
 more as the artifacts seem to have disappeared from the compile 
 classpath as well.

 I have defined the scope in my global pom (in dependecyManagement 
 section) and the classes which reference these are in a module, where 
 the dependency is mentioned without scope (or version).

 What am I doing wrong?

 Thanks for the help,
 Joachim

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

-- 
View this message in context: 
http://www.nabble.com/problem-with-%22provided%22-scope-tf2579617s177.html#a7327408
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: Assembly plugin - packaging chaning the extension

2006-11-13 Thread pjungwir

Hi Ste,

I'm not sure how to get a s4j extension. You could rename the file, but then
it wouldn't be an attached artifact, so things like deploy would break.

To get rid of the top-level directory, put this in your assembly descriptor:

  includeBaseDirectoryfalse/includeBaseDirectory

Paul



Stefano Nichele-2 wrote:
 
 Hi All,
 I have a problem with the assembly plug-in.
 My project builds a war application but the output should be a zip file 
 with the following structure:
 
 /webapp/ 
 myapp.war
 /config
 configFile1.xml
 configFile2.xml
 configFile3.xml
 
 I'm using the following assembly descriptor:
 
 assembly
   idbin/id
   formats
 formatzip/format
   /formats
  
   fileSets
 fileSet
   directorysrc/main/resources/bean/directory
   outputDirectoryconfig/outputDirectory
   includes
 include**/*.*/include
   /includes
 /fileSet
 
 fileSet
   directorytarget/directory
   outputDirectorywebapp/outputDirectory
   includes
 include*.war/include
   /includes
 /fileSet
   /fileSets
 /assembly
 
 Using that descriptor, the output file is a zip file but i need a 
 different extension. I mean, I need a zip file (as format) with 
 extension s4j.
 
 How can i do to  obtain that ?
 
 Moreover, using the above descriptor I obtain a zip file that contains:
 
 /myartifactid
 /webapp
  myapp.war
/config
 *.xml
 
 How can I remove the first level myartifactid ?
 
 Thanks in advance.
 Ste
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Assembly-plugin---packaging-chaning-the-extension-tf2584876s177.html#a7328439
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: Continue Build and Site Generation on Junit failure

2006-11-13 Thread pjungwir

Suppose you say this:
  
  mvn test  mvn site

That gives you a failure but not a site. And if you say this:

  mvn test; mvn site

you get a site but not a failure.

So what if you wrote a quick plugin that checks for errors in the surefire
reports? Then you could say:

  mvn test; mvn site; mvn my-group:check-for-failures

Paul


jp4 wrote:
 
 I am interested in what you did.  We use CC as well.  Any info you can
 provide would be greatly appreciated.  This is very important as we have a
 huge codebase and would like to identify all errors every night (NOT JUST
 THE FIRST ONE!)
 
 Thanks,
 
 jp4
 
 
 Jon SlinnHawkins wrote:
 
 TestFailureIgnore will then result in a build success.  When infact the 
 tests failed, so the build needs to be failed.
 
 I had exeactly the same issue.
 
 We are using CruiseControl for our Continuous Integration system. 
 Unfortunately I had to modify the CC code.  It was only a minor change
 but 
 it has enable us to
 
 execute maven 3 times as part of the same build, if any of the 3 runs
 fail 
 the build will continue until all 3 are finshed and THEN report a build 
 failure.
 
 FYI -
 1 - Checkout source and cleanup folders
 2 - Maven deploy (inculding unit and functional testing)
 3 - Build the site.
 
 If you are using CC i will try and find the peice of code i changed.  It
 was 
 a very simple change.
 
 Cheers
 
 Jon
 
 Alexandre Russel [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED] 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Continue-Build-and-Site-Generation-on-Junit-failure-tf2553508s177.html#a7329947
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: Add Directory to Jar Manifest Classpath

2006-10-27 Thread pjungwir

Oh, I'm sorry, I thought you were saying that the Class-Path entry in the
manifest couldn't refer to non-jar items. It's very easy to set the
Class-Path entry using either the jar plugin or the assembly plugin. In the
configuration section, specify an archive element. The jar plugin has
pretty good docs for this. If you want maven to include your dependencies,
say this:

archive
  manifest
mainClasscom.example.App/mainClass
addClasspathtrue/addClasspath
  /manifest
/archive

To give your own classpath (or prepend to what maven writes), do this:

archive
  ...
  manifestEntries
Class-Pathconfig/ classes//Class-Path
  /manifestEntries
/archive

But note that currently the assembly plugin has a bug and ignores
manifestEntries. The jar plugin does not have this bug.

Paul



berndq wrote:
 
 Hi,
 
 Are you sure that documentation wasn't talking about applets? I've run
 executable jars with Class-Path manifest entries referencing the
 filesystem
 many times.
 
 I looked it up again:
 
 http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java.html
 goto -jar option, there it says
 When you use this option [Main-Class:classname], the JAR file is the 
 source of all user classes, and other user class path settings are
 ignored.
 
 I was trying to extend the classpath from outside the jar (-cp xxx)
 and this is what does not work according to the specs.
 
 I did not try to extend the classpath in the manifest inside the jar.
 Is this possible at all when using the assembly plugin the create the
 classpath entry in the manifest?
 
 thanks for you info!
 
 Bernd
 
 Paul
 
 
 berndq wrote:
 SingleShot wrote:
 I am building an executable JAR that depends on a handful of other JARs
 and a
 few config files being on the classpath. I want the config files to be
 editable by the end user, so did not add them as internal JAR
 resources.
 I've configured the maven-jar-plugin to generate a manifest and add the
 dependencies to its classpath (and create a mainclass entry), but
 cannot
 figure out how to configure it to add my config directory (containing
 the
 config files) to the classpath.

 Is it possible to add a directory to the classpath of a Maven-generated
 Manifest?
 Hi,

 I had exactly the same problem. This is not a maven but a (sun?) Java 
 problem:

 Executable jars use a classloader that can only load resources/classes 
 from other jars and not from the file system. I found this documented 
 somewhere under java.sun.com.


 So I had to stop using executable jars :-(

 best regards
 Bernd

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



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

-- 
View this message in context: 
http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a7031994
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to get the groupId and other values from a Maven pom file using

2006-10-26 Thread pjungwir

Are you writing a plugin? In that case, declare a parameter of type
org.apache.maven.project.MavenProject and give it these javadoc annotations:

  @parameter default-value=${project}
  @required
  @readonly

You can call methods as shown here:

http://maven.apache.org/ref/current/maven-project/apidocs/index.html

Paul


Sheshabhattar, Sharda [CIB-IT] wrote:
 
 Hi,
 I have a java code which should extract the groupId ,artifactId and
 other details from a pom file.
 What apis should I use to achieve this?
 Please help.
 Thanks,
 Sharda
  
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-the-groupId-and-other-values-from-a-Maven-pom-file-using-java-code-tf2513557.html#a7013602
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: Add Directory to Jar Manifest Classpath

2006-10-26 Thread pjungwir

I don't understand. 2.2 is the plugin version, not the maven version, right?
That appears to be released. For me, it's what maven just uses; I didn't do
anything special.

Paul


Syvalta wrote:
 
 
 pjungwir wrote:
 
 
 Syvalta wrote:
 
 But that doesn't work for me, see:
 http://jira.codehaus.org/browse/MJAR-60.
 
 I didn't get any error with a trailing slash inside Class-Path. JIRA
 says this is fixed against 2.2. I'm not sure why the bug is still open in
 that case. . . .
 
 
 There isn't snapshot of 2.2 yet, so I didn't test with that, so I can't
 confirm. However, as I understand it, fix for means that is should be
 fixed before that release, not that it's fixed.
 

-- 
View this message in context: 
http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a7014719
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: ftp-wagon Unrecognised tag: 'extensions'

2006-10-26 Thread pjungwir

I'm not positive, but I think that extensions block will just make
wagon-ftp available as it is needed. I think it's the maven-deploy-plugin
that does the work of picking what to send. But maybe someone with more
knowledge of multi-module builds can help?

Paul


Jeff Mutonho wrote:
 
 On 10/25/06, pjungwir [EMAIL PROTECTED] wrote:

 Hi Jeff,

 What is the benefit of loading wagon-ftp in a profile? That extensions
 block doesn't per se do anything; it just makes wagon-ftp available. I
 guess
 you're loading it for the sake of the sftp:// repository in the top-level
 POM? Then why not just put extensions up there, too (with no profile)?

 Paul

 --
 
 If I put it in the top-level POM , how will it know which ear file to
 ftp to the sftp:// repository ?
 My build results in two different ear files, one with a web
 application and another with some ejb application.The reason for
 having two different ears is that the two ears are deployed
 differently and they serve different purposes.
 Basically all I want to do is ftp two ear files at the end of my build
 to  my sftp:// repository.That's all I wanna do.
 
 -- 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-Unrecognised-tag%3A-%27extensions%27-tf2496953.html#a7014831
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: maven plugin execution phase: post-site?

2006-10-26 Thread pjungwir

Hello,

@execute means that when the mojo is run, it should spawn a separate
lifecycle and run everything up to the given phase before running itself.
It's useful for running a mojo from the command line like mvn plugin:mojo,
but it's problematic when you want to bind the mojo to a phase.

In your pom, you're binding your plugin to the site phase. So when maven
gets there, it processes your mojo. It sees the mojo's @execute tag, so it
spawns a separate lifecycle, runs everything from the beginning up to
post-site, then runs your mojo.

So first remove the @execute tag. Then either change the pom so you're
binding the mojo to the post-site phase, or use the @phase tag to set a
default phase of post-site, and don't give any phase in your pom.

Paul



kovalen pechaycaren wrote:
 
 Hi,
 I am writing a maven plugin to be run on other projects.  It needed to be
 executed after the site phase.  For a multi-project (one parent and
 several
 modules), how to I configure the plugin to be run after reports have been
 generated for all modules?
 
 The problem is that the plugin is being run DURING the site phase (which
 results in a number of invocation when only one for a project was
 expected) when i include the following in the parent pom:
 
 plugin
 groupIdcom.accenture.collab.maven.plugin/groupId
 artifactIdcollab-quality/artifactId
 version0.1-SNAPSHOT/version
 executions
  execution
   phasesite/phase
   goals
goalquality/goal
   /goals
  /execution
 /executions
 /plugin
 I have also included the following in my plugin's mojo, but no success:
 * @execute phase=post-site
 
 Anyone can help?
 
 Thanks
 -- 
 Kovalen
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-plugin-execution-phase%3A-post-site--tf2513362.html#a7014966
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: Using Cactus with Maven 2

2006-10-26 Thread pjungwir

Hi Mohan,

There is an integration-test phase that comes after package. But if you
really want to test inside a container, you probably want to use a
continuous-build system, unless you tell maven to deploy to the app server
during package.

Paul


Mohan Gopal wrote:
 
 Hi,
 I have been trying to run cactus test cases with Maven
 2 using all possible approaches and to no avail. Would
 be grateful if someone can answer the following
 
 1. Is there any cactus plugin for Maven 2. There is
 absolutely no documentation on this plugin. Anything,
 a sample code would help very much.
 
 2. Testing life cycle stage comes before packaging
 life cycle stage. An in-container test, as we do with
 cactus, cannot be done unless you deploy your
 application. 
 
 So there is this contradiction - you cannot test
 unless you deploy and you cannot deploy unless you
 test. 
 
 Did someone think about itand can share what did
 they finally decide on :)
 
 Thanks,
 Mohan
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-Cactus-with-Maven-2-tf2513964.html#a7015077
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: Add Directory to Jar Manifest Classpath

2006-10-26 Thread pjungwir

That's a very handy command! You're right, it says 2.1. Yesterday I tried
running with -X, and I thought it said it was getting 2.2, but now -X also
says 2.1, so I must have made a mistake. My apologies!

But the trailing slash still works on my system. :-) But I'm running linux,
and the bug is filed against windows

Paul


Syvalta wrote:
 
 
 pjungwir wrote:
 
 I don't understand. 2.2 is the plugin version, not the maven version,
 right? That appears to be released. For me, it's what maven just uses; I
 didn't do anything special.
 
 
 Yes, the version of jar-plugin. To my knowledge 2.1 is the latest version
 (see
 http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/).
 Jira lists both 2.1 and 2.2 unreleased ( which is wrong for the latter).
 Are you sure you have checked the version of the correct plugin? Yuo can
 check the version with command mvn -Dplugin=jar help:describe.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a7016303
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: Add Directory to Jar Manifest Classpath

2006-10-26 Thread pjungwir

Are you sure that documentation wasn't talking about applets? I've run
executable jars with Class-Path manifest entries referencing the filesystem
many times.

Paul


berndq wrote:
 
 SingleShot wrote:
 I am building an executable JAR that depends on a handful of other JARs
 and a
 few config files being on the classpath. I want the config files to be
 editable by the end user, so did not add them as internal JAR resources.
 I've configured the maven-jar-plugin to generate a manifest and add the
 dependencies to its classpath (and create a mainclass entry), but cannot
 figure out how to configure it to add my config directory (containing the
 config files) to the classpath.
 
 Is it possible to add a directory to the classpath of a Maven-generated
 Manifest?
 
 Hi,
 
 I had exactly the same problem. This is not a maven but a (sun?) Java 
 problem:
 
 Executable jars use a classloader that can only load resources/classes 
 from other jars and not from the file system. I found this documented 
 somewhere under java.sun.com.
 
 
 So I had to stop using executable jars :-(
 
 best regards
 Bernd
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a7019847
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: Maven Snapshot Repository Down?

2006-10-25 Thread pjungwir

Someone yesterday mentioned running mvn -o to prevent updating snapshots.
Of course you must already have them, but this will apparently prevent maven
from failing trying to get newer ones.

Paul

-- 
View this message in context: 
http://www.nabble.com/Maven-Snapshot-Repository-Down--tf2506571.html#a6993443
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Using ant-tasks inside antrun

2006-10-25 Thread pjungwir

Hello,

This is kind of a weird question. Suppose I'm writing a tasks block for
maven-antrun-plugin. Now suppose I want to use maven's ant-tasks there. For
example (to borrow from another poster):

  tasks
  delete dir=target/
  artifact:pom id=maven.project
file=pom.xml/
  artifact:dependencies
filesetId=dependency.fileset
  pom refid=maven.project/
  /artifact:dependencies
  mkdir dir=target/deps/
  copy todir=target/deps
  fileset refid=dependency.fileset/
  /copy
  /tasks

I'm having trouble with two things. First, I need to include
maven-artifact-ant-2.0.4-dep.jar in ant's classpath. I tried adding this to
the beginning of tasks:

  typedef
resource=org/apache/maven/artifact/ant/antlib.xml
uri=urn:maven-artifact-ant
  classpath
  pathelement
location=/home/pjungwir/maven-artifact-ant-2.0.4-dep.jar/
  /classpath
  /typedef

That didn't work. I also tried this inside my plugin tag (with and without
the classifier element):

  dependencies
  dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-artifact-ant/artifactId
  version2.0.4/version
  classifierdep/classifier
  /dependency
  /dependencies

Without the classifier, I just get the regular ant error message about not
recognizing artifact:pom. With classifier, I get this perplexing stack
trace:

java.lang.ClassCastException:
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute(AutoConfigurePhase.java:34)

at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:524)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:390)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
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)

How do I get maven to include the ant-tasks jar in the classpath?

Second, where do I put xmlns:artifact=urn:maven-artifact-ant? Right now
I'm putting it on maven's project tag, but perhaps it belongs on the
tasks tag.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/Using-ant-tasks-inside-antrun-tf2508452.html#a6994761
Sent from the Maven - Users mailing list archive at Nabble.com

Re: Deploy fails if directory exists using wagon-file

2006-10-25 Thread pjungwir

Hi Dave,

Is wagon-file even necessary? I used a file-based repository for a while,
and I didn't even mention wagon. I just had a urlfile:////url in my
/project/distributionManagement/repository section. But maybe wagon-file was
used implicitly.

I wonder if the problem is related to windows shares. Try deploying to C:
and see if that fixes the problem.

Paul

-- 
View this message in context: 
http://www.nabble.com/-m204--deploy-fails-if-directory-exists-using-file-tf2495919.html#a6994821
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: ftp-wagon Unrecognised tag: 'extensions'

2006-10-25 Thread pjungwir

Hi Jeff,

What is the benefit of loading wagon-ftp in a profile? That extensions
block doesn't per se do anything; it just makes wagon-ftp available. I guess
you're loading it for the sake of the sftp:// repository in the top-level
POM? Then why not just put extensions up there, too (with no profile)?

Paul

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-Unrecognised-tag%3A-%27extensions%27-tf2496953.html#a6995538
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: basedir

2006-10-25 Thread pjungwir

${basedir} :-)

Technically, this gives the directory where the pom is located, not the
directory from which you run mvn.

Paul


EJ Ciramella-2 wrote:
 
 Is there some property readily available that represents the directory
 from which maven was run from?
  
 Something like ${basedir} in ant?
 
 

-- 
View this message in context: 
http://www.nabble.com/basedir-tf2509183.html#a6997723
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: basedir

2006-10-25 Thread pjungwir

Hmm. It works for me in a plain, single-module setup. You may need to say
filteringtrue/filtering; I don't know if it's the default. I'm not sure
what ${basedir} means with many modules. Are you getting weird results, or
is it just not getting replaced at all?

Paul


EJ Ciramella-2 wrote:
 
 I haven't been able to get that kind of thing to work when running
 process-resources.
 
 Additionally, if I have three levels, (parent pom.xml - parent pom.xml
 - module pom.xml) and the resource processing happens at the module
 level, would the basedir be of the parent pom or of the module pom? 
 
 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 25, 2006 2:35 PM
 To: users@maven.apache.org
 Subject: Re: basedir
 
 
 ${basedir} :-)
 
 Technically, this gives the directory where the pom is located, not the
 directory from which you run mvn.
 
 Paul
 
 
 EJ Ciramella-2 wrote:
 
 Is there some property readily available that represents the directory
 from which maven was run from?
  
 Something like ${basedir} in ant?
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/basedir-tf2509183.html#a6997723
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/basedir-tf2509183.html#a6998607
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: basedir

2006-10-25 Thread pjungwir

Oh, okay. By default, all paths are relative to basedir already, so I'm not
sure why you'd need it. But in my setup, this still works:

  resource
directory${basedir}/foo/directory
  /resource

Again, I'm not sure what it means with multiple modules, but it should at
least get resolved. What does you pom look like, and what results are you
seeing?

Paul



EJ Ciramella-2 wrote:
 
 Ahh - I'm not talking about having it IN a resource, I'm talking about
 having it in the resource mapping in the POM file. 
 
 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 25, 2006 3:31 PM
 To: users@maven.apache.org
 Subject: RE: basedir
 
 
 Hmm. It works for me in a plain, single-module setup. You may need to
 say
 filteringtrue/filtering; I don't know if it's the default. I'm not
 sure
 what ${basedir} means with many modules. Are you getting weird results,
 or
 is it just not getting replaced at all?
 
 Paul
 
 
 EJ Ciramella-2 wrote:
 
 I haven't been able to get that kind of thing to work when running
 process-resources.
 
 Additionally, if I have three levels, (parent pom.xml - parent
 pom.xml
 - module pom.xml) and the resource processing happens at the module
 level, would the basedir be of the parent pom or of the module pom? 
 
 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 25, 2006 2:35 PM
 To: users@maven.apache.org
 Subject: Re: basedir
 
 
 ${basedir} :-)
 
 Technically, this gives the directory where the pom is located, not
 the
 directory from which you run mvn.
 
 Paul
 
 
 EJ Ciramella-2 wrote:
 
 Is there some property readily available that represents the
 directory
 from which maven was run from?
  
 Something like ${basedir} in ant?
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/basedir-tf2509183.html#a6997723
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/basedir-tf2509183.html#a6998607
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/basedir-tf2509183.html#a6998978
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: basedir

2006-10-25 Thread pjungwir

Oh sorry, I missed this post. So you're using it in targetPath. That is
actually relative to the target/classes directory, not the pom's directory.
Apparently maven's code doesn't check whether you've given it an absolute
path; that is a bug and you should file a jira.

I have a project where I put some resources in target/scripts. I use this:

  targetDirectory../scripts/targetDirectory

So you I guess you could just do this:

  targetDirectory../../scripts/targetDirectory

Paul


EJ Ciramella-2 wrote:
 
 I wind up with this:
 
 [INFO] Error copying resources
 
 Embedded error:
 E:\work\LTY-P39\frontoffice\memberApp\target\classes\E:\work\LTY-P00
 0039\frontoffice\memberApp\scripts\startApp.sh (The filename, directory
 name, or volume label syn
 tax is incorrect)
 
 When I have this:
 
   resource
 directorysrc/main/scripts/directory
 targetPath${basedir}/scripts/targetPath
 filteringtrue/filtering
   /resource
 
  
 
 -Original Message-
 From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 25, 2006 3:36 PM
 To: Maven Users List
 Subject: RE: basedir
 
 Ahh - I'm not talking about having it IN a resource, I'm talking about
 having it in the resource mapping in the POM file. 
 
 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 25, 2006 3:31 PM
 To: users@maven.apache.org
 Subject: RE: basedir
 
 
 Hmm. It works for me in a plain, single-module setup. You may need to
 say
 filteringtrue/filtering; I don't know if it's the default. I'm not
 sure
 what ${basedir} means with many modules. Are you getting weird results,
 or
 is it just not getting replaced at all?
 
 Paul
 
 
 EJ Ciramella-2 wrote:
 
 I haven't been able to get that kind of thing to work when running
 process-resources.
 
 Additionally, if I have three levels, (parent pom.xml - parent
 pom.xml
 - module pom.xml) and the resource processing happens at the module
 level, would the basedir be of the parent pom or of the module pom? 
 
 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 25, 2006 2:35 PM
 To: users@maven.apache.org
 Subject: Re: basedir
 
 
 ${basedir} :-)
 
 Technically, this gives the directory where the pom is located, not
 the
 directory from which you run mvn.
 
 Paul
 
 
 EJ Ciramella-2 wrote:
 
 Is there some property readily available that represents the
 directory
 from which maven was run from?
  
 Something like ${basedir} in ant?
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/basedir-tf2509183.html#a6997723
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 View this message in context:
 http://www.nabble.com/basedir-tf2509183.html#a6998607
 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]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/basedir-tf2509183.html#a6999103
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: [m2/ant] ClassCastException jwsc

2006-10-25 Thread pjungwir

I'm not sure how to fix your problem, but if you're really stuck, you could
go back to your build.xml script and call it from maven by using the antrun
plugin with just tasksant antfile=build.xml//tasks. That might be
give you more control over your classpath by letting you handle taskdefing
manually.

Paul



ihowle wrote:
 
 I'm running the maven-antrun plugin currently to execute various pieces of
 an older build script. This script uses some taskdefs, such as weblogic's
 jwsc, to accomplish most of its tasks. The build script for the original
 ant file executes all these correctly, however, when ported to the plugin
 for maven, I receive the following error:
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error executing ant tasks
 
 Embedded error: java.lang.ClassCastException:
 com.bea.xbean.values.XmlTokenImpl
 
 This error appears when the build gets to the jwsc function
 (weblogic.wsee.tools.anttasks.JwscTask). This error did occur using the
 original ant file, but by adding bea jars to the classpath, it was fixed.
 However, when this was done for the Maven build it did not fix the
 problem. I'm not sure what I need to alter within Maven itself to allow it
 to see the same classpath, but I believe that the internal classpath has
 something to do with it.
 
 This is the portion of code at which the build fails:
 
 jwsc 
srcdir=${dir.src}
destdir=${dir.ear}
tempdir=${dir.temp} 
   classpathref=ext.build.class.path 
   fork=true memoryinitialsize=256m memorymaximumsize=512m 
   verbose=on keepGenerated=yes debuglevel=9
   debug=on deprecation=on  source=${compiler-source}
  module name=${ws.module.name} explode=false
 contextpath=ws
  jws file=${file.path.ws.portImpl}.java 
   compiledWsdl=${dir.dist}/${file.name.wsdl.sc.jar}/
  /module
/jwsc
 
 I've been caught on this for quite a while. Haven't been able to find any
 issues about this, so I'm not sure what might be conflicting to cause
 this.
 

-- 
View this message in context: 
http://www.nabble.com/-m2-ant--ClassCastException-jwsc-tf2509682.html#a6999170
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: Using ant-tasks inside antrun

2006-10-25 Thread pjungwir

Thanks Dan, that got me what I need. The missing link in my mind was using
maven.dependency.classpath to connect the plugin's deps to the taskdef. I
never even thought about that, but I guess that's what it's there for! :-)
Here is the final, working xml:

  plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
  execution
  idcopy-tree/id
  phaseinitialize/phase
  goalsgoalrun/goal/goals
  configuration
  tasks
  typedef
resource=org/apache/maven/artifact/ant/antlib.xml
  classpath
refid=maven.dependency.classpath/
  /typedef
  delete dir=target/
  pom id=maven.project file=pom.xml/
  dependencies filesetId=dependency.fileset
  pom refid=maven.project/
  /dependencies
  mkdir dir=target/deps/
  copy todir=target/deps
  fileset refid=dependency.fileset/
  /copy
  /tasks
  /configuration
  /execution
  /executions
  dependencies
  dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-artifact-ant/artifactId
  version2.0.4/version
  /dependency
  /dependencies
  /plugin

Note there is no classifier on the dependency, and I did away with the
artifact: namespace entirely.

Paul


dan tran wrote:
 
 see if this helps
 
 http://www.nabble.com/M2-antrun-plugin-problem-tf1400135.html#a5892203
 
 -D
 
 
 On 10/25/06, pjungwir [EMAIL PROTECTED] wrote:


 Hello,

 This is kind of a weird question. Suppose I'm writing a tasks block for
 maven-antrun-plugin. Now suppose I want to use maven's ant-tasks there.
 For
 example (to borrow from another poster):

  tasks
  delete dir=target/
  artifact:pom id=maven.project
 file=pom.xml/
  artifact:dependencies
 filesetId=dependency.fileset
  pom refid=maven.project/
  /artifact:dependencies
  mkdir dir=target/deps/
  copy todir=target/deps
  fileset refid=dependency.fileset/
  /copy
  /tasks

 I'm having trouble with two things. First, I need to include
 maven-artifact-ant-2.0.4-dep.jar in ant's classpath. I tried adding this
 to
 the beginning of tasks:

  typedef
 resource=org/apache/maven/artifact/ant/antlib.xml
 uri=urn:maven-artifact-ant
  classpath
  pathelement
 location=/home/pjungwir/maven-artifact-ant-2.0.4-dep.jar/
  /classpath
  /typedef

 That didn't work. I also tried this inside my plugin tag (with and
 without
 the classifier element):

  dependencies
  dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-artifact-ant/artifactId
  version2.0.4/version
  classifierdep/classifier
  /dependency
  /dependencies

 Without the classifier, I just get the regular ant error message about
 not
 recognizing artifact:pom. With classifier, I get this perplexing stack
 trace:

 java.lang.ClassCastException:
 org.codehaus.plexus.component.configurator.BasicComponentConfigurator
at

 org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute
 (AutoConfigurePhase.java:34)
at
 org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(
 AbstractLifecycleHandler.java:101)
at

 org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle
 (AbstractComponentManager.java:105)
at

 org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance
 (AbstractComponentManager.java:95)
at

 org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent
 (PerLookupComponentManager.java:48)
at
 org.codehaus.plexus.DefaultPlexusContainer.lookup(
 DefaultPlexusContainer.java:331)
at
 org.codehaus.plexus.DefaultPlexusContainer.lookup(
 DefaultPlexusContainer.java:440)
at
 org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
 DefaultPluginManager.java:524)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo

Re: Using ant-tasks inside antrun

2006-10-25 Thread pjungwir

Actually, I don't need the classpath refid=maven.dependency.classpath/ at
all. It works if I just omit it entirely.

I tried printing the various classpaths as in that post from Margaret
Martin. I get weird results for maven.dependency.classpath. Here it is with
just the default junit dependency listed:

 [echo] maven.dependency.classpath =
/home/pjungwir/src/ant-test/junit:/home/pjungwir/src/ant-test/jar:/home/pjungwir/src/ant-test/3.8.1:/home/pjungwir/src/ant-test/test

That can't be right. The other four maven.*.classpath refids come out
correct. I looked through MANTRUN on jira and didn't see a bug listed for
this. Is that the right project?

Thanks,
Paul




pjungwir wrote:
 
 Thanks Dan, that got me what I need. The missing link in my mind was using
 maven.dependency.classpath to connect the plugin's deps to the taskdef.
 I never even thought about that, but I guess that's what it's there for!
 :-) Here is the final, working xml:
 
   plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idcopy-tree/id
   phaseinitialize/phase
   goalsgoalrun/goal/goals
   configuration
   tasks
   typedef
 resource=org/apache/maven/artifact/ant/antlib.xml
   classpath
 refid=maven.dependency.classpath/
   /typedef
   delete dir=target/
   pom id=maven.project file=pom.xml/
   dependencies
 filesetId=dependency.fileset
   pom refid=maven.project/
   /dependencies
   mkdir dir=target/deps/
   copy todir=target/deps
   fileset refid=dependency.fileset/
   /copy
   /tasks
   /configuration
   /execution
   /executions
   dependencies
   dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-artifact-ant/artifactId
   version2.0.4/version
   /dependency
   /dependencies
   /plugin
 
 Note there is no classifier on the dependency, and I did away with the
 artifact: namespace entirely.
 
 Paul
 
 
 dan tran wrote:
 
 see if this helps
 
 http://www.nabble.com/M2-antrun-plugin-problem-tf1400135.html#a5892203
 
 -D
 
 
 On 10/25/06, pjungwir [EMAIL PROTECTED] wrote:


 Hello,

 This is kind of a weird question. Suppose I'm writing a tasks block
 for
 maven-antrun-plugin. Now suppose I want to use maven's ant-tasks there.
 For
 example (to borrow from another poster):

  tasks
  delete dir=target/
  artifact:pom id=maven.project
 file=pom.xml/
  artifact:dependencies
 filesetId=dependency.fileset
  pom refid=maven.project/
  /artifact:dependencies
  mkdir dir=target/deps/
  copy todir=target/deps
  fileset refid=dependency.fileset/
  /copy
  /tasks

 I'm having trouble with two things. First, I need to include
 maven-artifact-ant-2.0.4-dep.jar in ant's classpath. I tried adding this
 to
 the beginning of tasks:

  typedef
 resource=org/apache/maven/artifact/ant/antlib.xml
 uri=urn:maven-artifact-ant
  classpath
  pathelement
 location=/home/pjungwir/maven-artifact-ant-2.0.4-dep.jar/
  /classpath
  /typedef

 That didn't work. I also tried this inside my plugin tag (with and
 without
 the classifier element):

  dependencies
  dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-artifact-ant/artifactId
  version2.0.4/version
  classifierdep/classifier
  /dependency
  /dependencies

 Without the classifier, I just get the regular ant error message about
 not
 recognizing artifact:pom. With classifier, I get this perplexing stack
 trace:

 java.lang.ClassCastException:
 org.codehaus.plexus.component.configurator.BasicComponentConfigurator
at

 org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase.execute
 (AutoConfigurePhase.java:34)
at
 org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(
 AbstractLifecycleHandler.java:101

Re: basedir

2006-10-25 Thread pjungwir

I just noticed that the resources plugin supports an outputDirectory
configuration element. So you could try a relative targetPath and an
absolute outputDirectory. Note that the former is on the resource
itself; the latter, on the plugin's configuration.

Paul

-- 
View this message in context: 
http://www.nabble.com/basedir-tf2509183.html#a7001106
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: Malformed manifest classpath entry

2006-10-25 Thread pjungwir

Hello,

Could you please post your MANIFEST.MF file so we can see what royally
screwed up means?

Thanks,
Paul


Alexander Sack-3 wrote:
 
 Hi Everybody,
 
 I did check the email archives on this one and I'm not sure what's what...
 
 If I specify a manifest entry such as:
 
 archive
   manifestEntries
  Class-Pathlib/some1.jar lib/some2.jar lib/some3.jar lib/some4.jar
 lib/some5.jar/Class-Path
/manifestEntries
 /archive --
 
 The actual manifest entry is royally screwed up in terms of formatting. 
 I'm
 porting projects so I realize I need to play around with dependencies so I
 can just use the addClassPath entry, but shouldn't this work regardless?
 
 Also, can someone tell me the difference between compile, runtime, and
 provided with respect to the addClassPath tag? Its not very obvious from
 the doc (or I'm looking at the wrong doc).
 
 Thanks!
 
 -aps
 
 -- 
 What lies behind us and what lies in front of us is of little concern to
 what lies within us. -Ralph Waldo Emerson
 
 

-- 
View this message in context: 
http://www.nabble.com/Malformed-manifest-classpath-entry-tf2497595.html#a7001669
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: Add Directory to Jar Manifest Classpath

2006-10-25 Thread pjungwir


Syvalta wrote:
 
 But that doesn't work for me, see:
 http://jira.codehaus.org/browse/MJAR-60.
 

I didn't get any error with a trailing slash inside Class-Path. JIRA says
this is fixed against 2.2. I'm not sure why the bug is still open in that
case. . . .

Paul

-- 
View this message in context: 
http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a7001786
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: Malformed manifest classpath entry

2006-10-25 Thread pjungwir

Yeah, I wish maven wouldn't wrap the Class-Path entry, too.

I'm pretty new to maven myself, so I haven't tried out multi-module builds
or J2EE builds. But I think you have the right idea. Marking things provided
is the surest way I know to keep transitive dependencies out of your
artifacts. There is also the exclusions tag, but then you have to catch
every path from which the dependency is coming. A lot of people seem to get
bit by your problem, so perhaps a flag to exclude transitive dependencies
would be a good idea. You could override it on a per-dependency basis.

Paul

-- 
View this message in context: 
http://www.nabble.com/Malformed-manifest-classpath-entry-tf2497595.html#a7002290
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: ftp-wagon Unrecognised tag: 'extensions'

2006-10-24 Thread pjungwir

Hi Jeff,

Could you please post your whole pom, and also the version of maven you're
running?

Thanks,
Paul


Jeff Mutonho wrote:
 
 On 10/23/06, Wayne Fay [EMAIL PROTECTED] wrote:
 Fair enough, I hadn't noticed that.

 I've only ever used extensions inside a plugin so I figured this
 was the only valid place for it. Next time I'll have to check the
 entire XSD and not assume... ;-)

 In that case, I really have no idea why its not recognized. Try moving
 it under plugin just for fun and see if the unrecognised tag error
 goes away.

 Wayne

 
 I've tried moving it to just before plugins  and immediately after
 /plugins and I still get the same error.
 
 Where are the maven gurus?Please help
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-Unrecognised-tag%3A-%27extensions%27-tf2496953.html#a6975428
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: cvs.apache.org connection problems

2006-10-24 Thread pjungwir

There were a variety of servers out yesterday. This one still isn't
responding.

-- 
View this message in context: 
http://www.nabble.com/cvs.apache.org-connection-problems-tf2499791.html#a6975473
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: m2, surefire console output

2006-10-24 Thread pjungwir

I think by default stacktraces do not appear. To see them, you have to add
this to the maven-surefire-plugin section of your pom:

configuration
  useFilefalse/useFile
/configuration

Have you done that? If so, then removing it should get you what you want.

Paul

-- 
View this message in context: 
http://www.nabble.com/m2%2C-surefire-console-output-tf2500944.html#a6975651
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: Downloading a non-jar dependancy

2006-10-24 Thread pjungwir

Hello,

First, the Dojo zip file must be in a maven remote repository somewhere. If
it isn't, you could just put it in private remote repository and point your
project at it using the repositories element. There are lots of docs on
setting up your own repository. It's just a directory structure like what
you see on ibiblio. You don't even need a webserver if you're working alone;
just give your pom a file:// url pointed at the repository root.

Second, you can tell maven that the dependency is a zip and not a jar using
typezip/type in your dependency section.

Paul


-- 
View this message in context: 
http://www.nabble.com/Downloading-a-non-jar-dependancy-tf2503103.html#a6981477
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: Re: exec:exec java NoClassDefFoundError

2006-10-23 Thread pjungwir

Well, this isn't a NoClassDefFoundError, so perhaps we're making progress.
Now java is returning a 1. It would help if you could see stdout, but I'm
not sure how to do that. Perhaps Eclipse is running but complaining about
your arguments. That would make sense, because it looks like you have an
error similar to the one before. Look here:

argument-f
${ECLIPSE_HOME}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml/argument

That should be two separate arguments, right? Maybe that's what Eclipse is
complaining about.

HTH,
Paul
-- 
View this message in context: 
http://www.nabble.com/exec%3Aexec-java-NoClassDefFoundError-tf2472771.html#a6958694
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: [maven2] subversion revision in MANIFEST file

2006-10-23 Thread pjungwir


Daniel Serodio-2 wrote:
 
 I'm using the assembly plugin to generate a jar with dependencies, so
 the MANIFEST.MF is static (not generated dinamically); how can I add
 the scm.revision to such a jar?
 

When you say static, do you mean that you have a MANIFEST.MF sitting on
your filesystem, and you're telling the assembly plugin to pick it up? If
so, then you could filter this file as a resource to get the svn info into
it.

Or do you just mean that the assembly plugin is creating the MANIFEST.MF for
you? In that case, you can still customize the manifest. You do this in the
assembly plugin's configuration section (in the pom, not the assembly.xml
file). It looks just like the jar configuration:

configuration
 
descriptorRefsdescriptorIdjar-with-dependencies/descriptorId/descriptorRefs
   archive
manifestEntries
Revision${scm.revision}/Revision
/manifestEntries
   /archive
/configuration

At least, that's how it should work. But as far as I can tell, the assembly
plugin only honors manifest, not manifestEntries. I think this must be a
bug. Does anyone else know if this is right?

Paul

-- 
View this message in context: 
http://www.nabble.com/-maven2--subversion-revision-in-MANIFEST-file-tf2485250.html#a6959646
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: Odd dependency behaviour with java.servlet servlet-api in M2 2.0.4

2006-10-23 Thread pjungwir

Hello,

Compile scope doesn't mean compile-time only. In fact, it is the broadest of
maven's scopes. Here is what the scopes mean (as far as I can tell):

compile  available when compiling, testing, and running
runtime  available when testing and running
provided  available when compiling and testing
test  available when testing

Here, testing means both the compileTest and test phases.

So I think you want the provided scope.

Paul

-- 
View this message in context: 
http://www.nabble.com/Odd-dependency-behaviour-with-java.servlet-servlet-api-in-M2-2.0.4-tf2496526.html#a6959778
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: webstart-maven-plugin needs maven-jar-plugin:jar:2.1-SNAPSHOT

2006-10-23 Thread pjungwir

Snapshots live in a separate repository. See here for information on
obtaining snapshots:

http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html

HTH,
Paul

-- 
View this message in context: 
http://www.nabble.com/webstart-maven-plugin-needs-maven-jar-plugin%3Ajar%3A2.1-SNAPSHOT-tf2495644.html#a6960222
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: [m204] deploy fails if directory exists using file

2006-10-23 Thread pjungwir

I think perhaps your post had a typo, because you can't be switching from
wagon-ftp to wagon-ftp. What transport are you using now that's giving you
this error?

Paul


-- 
View this message in context: 
http://www.nabble.com/-m204--deploy-fails-if-directory-exists-using-file-tf2495919.html#a6960389
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: [M2] Ant-based plugin and target classpath

2006-10-23 Thread pjungwir

Hello,

I just finished a launch4j plugin. You can find info on it here:

http://9stmaryrd.com/tools/launch4j-maven-plugin/

Paul

-- 
View this message in context: 
http://www.nabble.com/-M2--Ant-based-plugin-and-target-classpath-tf2485665.html#a6960634
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: ftp-wagon Unrecognised tag: 'extensions'

2006-10-23 Thread pjungwir

It appears to me from that schema that extensions is also a valid child of
build. This is where I'm using it, and it seems to work fine. Perhaps the
problem is using extensions in a module?

Paul

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-Unrecognised-tag%3A-%27extensions%27-tf2496953.html#a6961153
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: [maven2] subversion revision in MANIFEST file

2006-10-23 Thread pjungwir

Yep, I agree. At least it's already filed! :-)

Paul

-- 
View this message in context: 
http://www.nabble.com/-maven2--subversion-revision-in-MANIFEST-file-tf2485250.html#a6961406
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: assembly warning message

2006-10-19 Thread pjungwir

This refers to the files being tarred?

If so, it's because different versions of tar support long filenames in
different ways. A good explanation is in the Ant user manual, under Core
Tasks : Tar. Because of the frames, I can't give a direct link, but here is
the manual: 

http://ant.apache.org/manual/

I bet maven supports the same options.

Paul



-- 
View this message in context: 
http://www.nabble.com/assembly-warning-message-tf2472583.html#a6898577
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: ftp-wagon NullPointerException

2006-10-19 Thread pjungwir

Thanks, this is exactly what I needed to know. Works fine! I filed a jira for
the NPE, because wagon should give you a sensible error message instead.

Paul


Zeltner Martin wrote:
 
 Hello Paul
 
 The NullPointerException seams to occur when the ftp wagon tries to get
 the authentication data. Try to set the following settings in your
 settings.xml (default location ~/.m2).
 
 settings
 ...
 servers
 server
 idakathist-repository/id
 usernamexyz_user/username
 passwordxyz_password/password
 /server
 /servers
 ...
 /settings
 
 
 Cheers,
 Martin
 http://el4j.sf.net
 
  
 
 -Original Message-
 From: pjungwir [mailto:[EMAIL PROTECTED] 
 Sent: Mittwoch, 18. Oktober 2006 22:46
 To: users@maven.apache.org
 Subject: Re: ftp-wagon NullPointerException
 
 
 Ah, there is a beta-1. I tried that, but I still get the same problem.
 
 -- 
 View this message in context: 
 http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460
 .html#a6885414
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460.html#a6899162
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: exec:exec java NoClassDefFoundError

2006-10-19 Thread pjungwir

Hello,

The problem appears to be this line:

argumentorg.eclipse.core.launcher.Main -application
org.eclipse.ant.core.antRunner -f
${ECLIPSE_HOME}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/build.xml/argument

That is all one argument, which is not what you intend. Take a look at the
error message:

[INFO] java.lang.NoClassDefFoundError: org/eclipse/core/launcher/Main 
-applicati
on org/eclipse/ant/core/antRunner -f 
C:\Programme\eclipse/plugins/org/eclipse/pd
e/build_3/2/1/r321_v20060823/scripts/build/xml

Java thinks you're trying to run a class with one really long and strange
classname.

Just break your argument into several: one for the classname and others for
the arguments you want to give your application.

Paul
-- 
View this message in context: 
http://www.nabble.com/exec%3Aexec-java-NoClassDefFoundError-tf2472771.html#a6903908
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: Mojo and it's own dependencies

2006-10-19 Thread pjungwir

You can get the plugin's model class by declaring a property set to
${project.build.plugins}. It will be a Collection of
org.apache.maven.model.Plugin objects. Iterate it until you find your plugin
(using groupId and artifactId). I'm sorry; that's the best way I know in a
mojo to do ${this}. The Plugin class has a getDependencies() method
returning a List; that might have want you want.

Paul
-- 
View this message in context: 
http://www.nabble.com/Mojo-and-it%27s-own-dependencies-tf2474701.html#a6904199
Sent from the Maven - Users mailing list archive at Nabble.com.


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



ftp-wagon NullPointerException

2006-10-18 Thread pjungwir

Hello,

I'm trying to use ftp-wagon to deploy a plugin to my remote repository, as
described on page 69 of the BBWM book. Here is my POM:

. . .
  extensions
  extension
  groupIdorg.apache.maven.wagon/groupId
  artifactIdwagon-ftp/artifactId
  version1.0-alpha-6/version
  /extension
  /extensions
  /build
  distributionManagement
  repository
  idakathist-repository/id
  nameAkathist Repository/name
  urlftp://ftp.9stmaryrd.com/public_html/maven/url
  /repository
  /distributionManagement
/project

But I getting this error (running mvn with -X):

[INFO] [deploy:deploy]
[DEBUG] not adding permissions to wagon connection
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[DEBUG] Trace
java.lang.NullPointerException
at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:127)
at
org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:178)
at
org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:109)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:77)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:133)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
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)

An NPE is not very informative. Does anyone have any idea what the problem
is here?

One thing to note: a username/password is required by the ftp server. I
didn't include it in the POM because it wasn't in the book, and what good is
a username/password if it's in the soon-to-be-published POM? I figured wagon
would prompt me or something. Am I mistaken?

Thanks,
Paul


-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460.html#a6885239
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: ftp-wagon NullPointerException

2006-10-18 Thread pjungwir

I should add that I tried searching around http://maven.apache.org/wagon/,
but almost all the links are 404s.

Paul

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460.html#a6885299
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: ftp-wagon NullPointerException

2006-10-18 Thread pjungwir

Ah, there is a beta-1. I tried that, but I still get the same problem.

-- 
View this message in context: 
http://www.nabble.com/ftp-wagon-NullPointerException-tf2469460.html#a6885414
Sent from the Maven - Users mailing list archive at Nabble.com.


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



html link tags in the project description?

2006-10-18 Thread pjungwir

Hello,

I'm using maven to generate a website for my plugin. I would like the About
page of my site to show a link. The text for this page is based on the
projectdescription element of the POM, so I tried this:

  description![CDATA[This plugin creates Windows executables from Java
jar files using  http://launch4j.sourceforge.net the Launch4j utility
.]]/description

Alas, maven was too clever for me, and the tags get escaped when it
generates the html page.

Is there any way to include links on this report? Or just set the report's
text directly? I don't see anything here:

http://maven.apache.org/plugins/maven-project-info-reports-plugin/index-mojo.html

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/html-link-tags-in-the-project-description--tf2470116.html#a6887192
Sent from the Maven - Users mailing list archive at Nabble.com.


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



property substitution in site files?

2006-10-18 Thread pjungwir

Hello,

I am trying to generate some site files using the .apt format. (I'm not
wedded to that format, but I'm starting there since it's the easiest.) I was
hoping to do something like this:

  ${project.name}

${project.description}


But that doesn't work. The curly braces disappear, but the properties aren't
replaced. So I guess maven doesn't do property substitution before
processing these files, huh? Is there a switch to turn that on? Should I
just hack it by running my site files through a resource filter?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/property-substitution-in-site-files--tf2470206.html#a6887419
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: Issue with Maven Deploy

2006-10-18 Thread pjungwir

Hello,

Maven will use known hosts from the user's .ssh directory if available, so
after the first connection these questions won't appear. Please see:

http://www.nabble.com/How-to-prevent-Maven%27s-questions--tf2465228.html

Paul

-- 
View this message in context: 
http://www.nabble.com/Issue-with-Maven-Deploy-tf2470124.html#a6887461
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: Conditional execution of plugin in maven2

2006-10-17 Thread pjungwir

Hello,

How complicated is your ant script? If it's simple, you might consider
replacing it with a bonafide plugin. That way you should be able to query
the API for modules and only operate on the web ones.

Sorry I don't know an ant-based solution.

Paul

-- 
View this message in context: 
http://www.nabble.com/Conditional-execution-of-plugin-in-maven2-tf2458436.html#a6866074
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: NoClassDefFoundError when running jar

2006-10-17 Thread pjungwir

Just a wild guess, but could this be a matter of / vs. \? I see you're
running on windows; maybe java isn't parsing the classpath as you think it
is. When you're sharing a directory with argparser.jar, try -cp
argparser.jar instead of -cp ./argparser.jar.

Paul

-- 
View this message in context: 
http://www.nabble.com/NoClassDefFoundError-when-running-jar-tf2453430.html#a6866209
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: plugin naming advice

2006-10-16 Thread pjungwir

I've finished work on the launch4j plugin. Besides the core plugin artifact,
there are four attached artifacts, named with classifiers: one for each
platform that l4j supports. The plugin uses the maven apis to download and
unpack one if necessary.

Here is some more info on the plugin:

I wrote it against maven 2.0.4 and l4j 3.0.0-pre1.

One of my goals was to avoid forcing the user to download the l4j distro, so
the plugin includes all the non-graphics l4j code. As I said, there are
separate artifacts for the platform-specific bits like ld and windres. I
wound up hacking l4j to support changing the work directory. It was a small
change that shouldn't break the main code, so I think I'll submit it
as a patch.

Users provide the l4j configuration inside a configuration section of the
pom; it doesn't support exterior files yet. Due to how maven unmarshals xml,
I had to adjust the xml format a bit, like including lib inside libs,
etc. I also added some sub-elements to classPath so that the plugin can
build the classpath for you based on dependencies, if you like. Other than
that, the configuration format is just like l4j's.

I bound it to the package phase by default. Here is how I use the plugin in
one of my personal projects: My project is a single module, packaged as a
jar. So during the package phase, the jarrring runs first automatically.
I've also configured the package phase to run l4j to make the executable,
then assembly to tar it up along with docs and dependencies. Note that if
you bind assembly to a phase, you must run the assembly:attached goal, not
assembly:assembly.

I hope to put this online, including source code, within the next few days.
I want to write a bit of documentation first, so if it's not up tonight,
probably it will be up tomorrow. I'll post when it's there.

Although I can serve this from my own website, I'd rather distribute it from
maven central. How do I go about that?

Thanks Dan for all your help!

Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6837279
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: run maven plugin without installing in local repo?

2006-10-16 Thread pjungwir

Hi,

Are you creating your plugin using assembly, or are you running assembly in
the project that uses your plugin?

I doubt you can run a plugin from outside ~/.m2, because maven has to load
the info from somewhere. As long as your plugin has a packaging type of
maven-plugin, it should be installable. But maybe one of the experts knows
differently.

Paul

-- 
View this message in context: 
http://www.nabble.com/run-maven-plugin-without-installing-in-local-repo--tf2451033.html#a6838524
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: plugin naming advice

2006-10-16 Thread pjungwir

This plugin is online now. Instructions are here:

http://9stmaryrd.com/tools/launch4j-maven-plugin/

The source bundle is here:

http://www.9stmaryrd.com/shared/launch4j/launch4j-maven-plugin-1.0.tar.gz

The maven repository I'm using for now is here:

http://www.9stmaryrd.com/maven

I'd like to host this on central or codehaus. How do I do that?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6848177
Sent from the Maven - Users mailing list archive at Nabble.com.


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



getting a plugin's own version?

2006-10-14 Thread pjungwir

Hello,

Is there an easy way for a plugin to get its own version? I can't just do a
property set to ${project.version}, because that will get the version of the
user's project. So far, the easiest thing I've come up with is to write
${project.version} to a filtered resource file, but that seems very
circuitous. Can I just get it in java?

Thanks,
Paul




-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812276
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: getting a plugin's own version?

2006-10-14 Thread pjungwir

By the way, what are the get/setPluginContext methods on AbstractMojo for?
When I look in the Map, it is empty. Is this a way to pass information to
your plugin from the plugin's pom? Maybe I could use this for what I want.


-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812346
Sent from the Maven - Users mailing list archive at Nabble.com.


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



can plugins use other plugins?

2006-10-14 Thread pjungwir

Hello,

Is it possible for a plugin to tell maven that other plugins must be run
prior to itself? All I see for this is the @execute goal annotation. But
if I do that, how do I pass configuration to that goal? Can I set it up in
the plugin, or does the user have to set it up? Can specify two goals?

I would like to have something like executions in the plugin.xml so I can
specify everything about the pre- and post-goals I want to run. Within that
element, it'd be nice to have ${} syntax for referencing values both in the
plugin's own pom and the user's pom. I guess this would be something like
ant macros.

Thanks,
Paul







-- 
View this message in context: 
http://www.nabble.com/can-plugins-use-other-plugins--tf2443342.html#a6812467
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: getting a plugin's own version?

2006-10-14 Thread pjungwir

Hi Dan, you're coding on a Saturday, too?


dan tran wrote:
 
 use project to browse the user pom which for sure has your plugin.
 

I was hoping nobody would suggest this! :-) But I'm giving it a try. I get
all the artifacts via project.getPluginArtifacts().
But when I find my own, I can only get RELEASE as the version. I need the
real number. I've tried getVersion(), getBaseVersion(), and
getSelectedVersion().getQualifier(). I see that ArtifactVersion (from
getSelectedVersion()) has the major/minor numbers. Do I have to patch these
together myself? Or is there an easier way?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812758
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: getting a plugin's own version?

2006-10-14 Thread pjungwir


pjungwir wrote:
 
 I see that ArtifactVersion (from getSelectedVersion()) has the major/minor
 numbers. Do I have to patch these together myself?
 

Actually, these are all set to zero

-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6812804
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: getting a plugin's own version?

2006-10-14 Thread pjungwir

Oh, that is much better! Thank you.
-- 
View this message in context: 
http://www.nabble.com/getting-a-plugin%27s-own-version--tf2443270.html#a6813179
Sent from the Maven - Users mailing list archive at Nabble.com.


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



xstream missing pom?

2006-10-14 Thread pjungwir

Hello, I'm trying to use xstream 1.1.3 by thoughtworks in my project. It is
here:

http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.1.3/

I can get the dependency all right, but I get a warning every time I compile
because the pom isn't there:

Downloading:
http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.1.3/xstream-1.1.3.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Is this a m1-m2 thing? Is there anything I can do to supply a pom?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/xstream-missing-pom--tf2445540.html#a6817736
Sent from the Maven - Users mailing list archive at Nabble.com.


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



test scope should inherit provided scope?

2006-10-13 Thread pjungwir

Hello,

I noticed that when I run my tests, the classpath includes all my
provided-scope dependencies. The docs online don't say they should be there,
but I guess it makes sense, right? Provided scope means I need them to run,
but they'll be available after I deploy. Therefore maven needs to provide
them when I'm just running tests. So therefore I have a question:

The docs here have a chart about transitive dependencies:

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

According to this chart, if I rely on library A with a test scope, and A
relies on B with a provided scope, I won't get B at all. Is that right?
Don't I need B to run my tests? If my test classpath includes immediate
provided-scope dependencies, shouldn't it include mediate ones?

Thanks,
Paul


-- 
View this message in context: 
http://www.nabble.com/test-scope-should-inherit-provided-scope--tf2435171.html#a6790293
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: test scope should inherit provided scope?

2006-10-13 Thread pjungwir

I rigged up a test. The chart is accurate, but the behavior seems wrong to
me. Could someone please explain why dropping that dependency is the right
thing to do?

Just to repeat, here is the setup:

Project depends on A with test scope.
A depends on B with provided scope.

When I run A's tests, I have B in my classpath.
When I run Project's tests, I don't have B in my classpath.

Is there any use case when it's good not to have B? Since we're still just
running unit tests, we can't get B otherwise than from maven.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/test-scope-should-inherit-provided-scope--tf2435171.html#a6790794
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: docbook plugin

2006-10-13 Thread pjungwir


ir. ing. Jan Dockx wrote:
 
 http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
 
 hope this helps.
 

Thanks. That is the best table I've seen so far. I eventually figured this
out by looking here:

https://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4/maven-core/src/main/resources/META-INF/plexus/components.xml

One thing I still don't understand: most of the lists out there don't
mention the initialize phase. The list you posted has it, but in brackets
with no description. Why is that?

Paul

-- 
View this message in context: 
http://www.nabble.com/docbook-plugin-tf2408569.html#a6796874
Sent from the Maven - Users mailing list archive at Nabble.com.


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



lists arrays as plugin parameters

2006-10-13 Thread pjungwir

Hello,

I'm writing a plugin, and I would like to accept configuration xml like
this:

someOption
anotherOption
var
var
var
... [more vars] ...

Is this possible without wrapping the var tags inside a container like
vars? In the docs, all the examples have a wrapper tag for lists and
arrays.

I know I can just get the full xml and query it, but is there an easier way?
I'd like to keep a private String[] vars with javadoc so when maven builds
the documentation, it is included.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/lists---arrays-as-plugin-parameters-tf2437539.html#a6797048
Sent from the Maven - Users mailing list archive at Nabble.com.


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



plugin annotations on plugin members' classes

2006-10-13 Thread pjungwir

Hello,

The plugin I'm writing wants some configuration xml like this:

configuration
...
classPath
mainClasscom.whatever.Main/mainClass
cpthis.jar;that.jar/cp
/classPath
...
/configuration

The classPath element is required, and the mainClass element is also
required.
But maven doesn't seem to care about annotations I put on ClassPath.java.
It only looks at annotations on the mojo class.
Is there any way I can make mainClass be required?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6798129
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: plugin annotations on plugin members' classes

2006-10-13 Thread pjungwir


dan tran wrote:
 
 Not that I know of, you will need to validate it your self.
 
 but you can file a JIRA against MNG for this feature enhancement
 

Hi Dan, thanks for your reply (this one and the many others!). I've been
thinking about filing a jira, and maybe starting on a patch. I think the
first step would be to include some extra data in plugin.xml. It would
probably break things to add additional parameter tags, but what if
complex parameters had sub tags? Then whatever code doesn't know about them
could just ignore them.

Step 2 is making maven read those tags and do something with them. Of course
this shouldn't break plugins that don't have those tags.

Step 3 is making the plugin documentation include them in the parameter
tables.

Anything else?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6799184
Sent from the Maven - Users mailing list archive at Nabble.com.


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



plugin naming advice

2006-10-13 Thread pjungwir

Hello,

I'm writing a plugin for the launch4j tool. This tool wraps jar files in
windows executables so you don't have to deal with finding a jre, setting
your classpath, etc. The distribution is a little bit different depending on
whether you're running on linux, windows, solaris, or os x. I don't see any
way around distributing the plugin four different ways. I'll just include a
-linux- or -win32- or whatever in the name somewhere. So I'm wondering:
is one part of the name better than another? Should I make this part of the
groupId, the artifiactId, or the version? At first I thought the version was
the best way to go, but I'm worried about whether this will confuse maven's
efforts to get the latest version. Users should be able to say get me the
latest windows version or whatever. So I'm thinking the artifactId is the
best place. What do others think?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6802682
Sent from the Maven - Users mailing list archive at Nabble.com.


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



directory type artifact?

2006-10-13 Thread pjungwir

Hello again,

Is it possible to create an artifact that, once retrieved to your local
~/.m2 repository, automatically unarchives itself and becomes a little
directory there?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/%22directory%22-type-artifact--tf2439632.html#a6802957
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: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 sorry it is for maven1.
 
 What the technical difficulty prevent you from having only 1 plugin to
 handle all support platforms?
 

Thank you for pointing me to that other plugin! I just emailed the author. I
did search for such a thing before I started my work, but I didn't find it.
But since it's for maven 1 and an old version of launch4j, I think I will
continue working.

The reason I need four different distributions is because to build the exe
file, launch4j runs the windres and ld binaries. It includes these as part
of its distribution, and of course they are different for each platform.

If there are java tools that do the same thing, I suppose I could use those
instead, but I am not aware of them.

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6804049
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: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 does the build need to stay on the supported platform to build the
 executable?
 

I'm not exactly sure what you're asking. But if your project uses a solaris
launch4j plugin, then you checkout the project on mas os x, building the exe
will fail. I had envisioned people using all four and choosing one based on
the host system via profiles. But I suppose the plugin could include the
binaries from all four OSes and decide itself. . . . Actually, that's not
such a bad idea! Heh heh heh

Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6804237
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: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 I think this plugin is more like a assembly plugin with launch4j
 specifics.
 am i wrong?
 

I intend to use it in conjunction with the assembly plugin. I'll generate an
exe file to wrap my jar, then I'll use the assembly plugin to tar up my exe
along with docs, a lib directory for dependencies, etc.

But from reading this mailing list, I've gotten the impression that people
use the assembly plugin in all sorts of elaborate ways. I have a
single-module project, packaged as a jar, and as part of the packaging
phase, I toss that jar into a tarball along with everything else. Is that
normal? It sounds like a lot of people use a top-level pom-packaged module
that just runs the assembly plugin, and then a sub-module to create the jar.

I don't really want to recreate the assembly plugin. I just want to turn a
jar into an exe.

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805028
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: plugin naming advice

2006-10-13 Thread pjungwir

Hi Dan,

Ask all the questions you like. :-)

Only grabbing the necessary binary bundle is a nice idea. I'll think about
that one. So that means the plugin would have a variable dependency based on
platform. I'm not sure how to do that, but it sounds fun to figure out.
Profiles? I need an excuse to try those out. Can a plugin declare profiles
so that one is chosen whenever the plugin is used?

I would like to license the plugin the same way that launch4j is licensed:
gpl for the tool itself; lgpl for everything linked to the executable it
produces. Since the plugin is hardly more than a repackaging of the launch4j
distro, that seems most appropriate.

Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805328
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: plugin naming advice

2006-10-13 Thread pjungwir

Ah, thanks, that sounds like a good pointer. I'll take a look at the
dependency plugin. I agree, querying java properties is the way to go.

I'm not religious about licenses. :-) If necessary, I can host the plugin
myself.

Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805881
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: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 You can ping list about their licence policy. But I am sure we allow to
 load
 GPL artifacts onto maven central.  We just never load a bundle before
 

I don't understand--what is the difference between an artifact and a bundle?

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6806843
Sent from the Maven - Users mailing list archive at Nabble.com.


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



properties in plugins vs. pom

2006-10-12 Thread pjungwir

Hello,

I'm developing a plugin in maven 2.0.4. My plugin has a property annotated
like this:

/**
 * @parameter default-value=${artifactId}.exe
 */
private File outfile;

When I use the plugin, outfile is set to /home/pjungwir/src/encc/null.exe.

But suppose I use this javadoc instead:

/**
 * @parameter default-value=${project.artifactId}.exe
 */
private File outfile;

Now outfile is set correctly, to /home/pjungwir/src/encc/encc.exe.

I thought this was strange, because when I use the antrun plugin, both of
these produce the correct result:

execution
  idblah/id
  phasegenerate-sources/phase
  goalsgoalrun/goal/goals
  configuration
tasks
  echo message=${artifactId}/
  echo message=${project.artifactId}/
/tasks
  /configuration
/execution

When I run this, I see:

[INFO] Executing tasks
[echo] encc
[echo] encc

So why does ${artifactId} work in the pom, but not in the plugin javadoc? Do
maven variables have different names depending on context?

Thanks,
Paul
-- 
View this message in context: 
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6788751
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: properties in plugins vs. pom

2006-10-12 Thread pjungwir


dan tran wrote:
 
 inconsistency i guess, I suggest to always start with ${project}
 

I'm surprised at the implication: different code handles variable
replacement here vs. there.

Inconsistencies like this can be maddening. Could I file this as a jira?
Maybe I'll even supply a patch. :-)

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6789008
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: properties in plugins vs. pom

2006-10-12 Thread pjungwir


dan tran wrote:
 
 when you are in pom.xml, ${someVar} means a reference of a variable under
 root of the pom
 

Ah, so within the pom, the project. prefix is optional. It looks like it
is also optional when filtering resource files. But not when annotating
plugins. That's still a little annoying, but if it's a general rule, it's
not too hard to remember.

Thanks!
Paul

-- 
View this message in context: 
http://www.nabble.com/properties-in-plugins-vs.-pom-tf2434529.html#a6789254
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: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir

Hi Satish,

Maven expects to find a pom.xml in the current directory. That message means
there isn't one there. I don't know what daytrader is. Are you trying to
build it from source?

Paul



Satish Gupta wrote:
 
 I am just starting to learn Maven. I am trying to follow the instrucations
 in Better Builds with Maven but get the following message right off the
 bat:
 
 It requires a project with an existing pom.xml , but the build is not
 using
 one.
 
 I am using maven2.0.4 on Windows XP.
 
 I'd appreciate any help.
 
 Thanks
 
 

-- 
View this message in context: 
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6789679
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: mvn -N install not working for daytrader

2006-10-12 Thread pjungwir

Hmm, I think these directories should already have pom.xml files of their
own. If you copy pom.xmls from other projects, you're probably going to get
errors. I'm not sure about the Cannot find parent error, but perhaps these
foreign poms are the cause?

I agree, the documentation for maven is tough going.



-- 
View this message in context: 
http://www.nabble.com/mvn--N-install-not-working-for-daytrader-tf2434911.html#a6790244
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: docbook plugin

2006-10-09 Thread pjungwir


Jacek Laskowski-4 wrote:
 
 On 10/9/06, Andr?s [EMAIL PROTECTED] wrote:
 I don't know about such a pre-site phase. Indeed, I think there's no
 site phase either. Is it a typo, or I'm missing something?.
 It's executed right before the 'site' phase. Run 'mvn site' and see
 what happens.
 

I went to that link, but I don't see any reference to phases. I also checked
the lifecycle doc here:

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

That doesn't mention the site or pre-site phases. I suppose generating a
site must be a different lifecycle from a regular build. Can you point me to
a description of how this works? What are all the phases when you say mvn
site?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/docbook-plugin-tf2408569.html#a6726350
Sent from the Maven - Users mailing list archive at Nabble.com.


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



property naming convention

2006-10-09 Thread pjungwir

Hello,

The Better Builds with Maven book says that you can get any element from the
POM with a property like ${project.foo.bar.baz}. Is there a more general
naming convention for properties used by plugins? I see that the
maven-surefire-plugin has configuration elements with these property names:

parallel   ${parallel}
printSummary   ${surefire.printSummary}
redirectTestOutputToFile   ${maven.test.redirectTestOutputToFile}
remoteRepositories   ${project.pluginArtifactRepositories}

Is there a method to this madness? Is there any magic to these properties
like ones starting with ${project...}? I see that one even starts with
${project...} itself. What happens if I have
projectpluginArtifactRepositoriesX// and
pluginconfigurationremoteRepositoriesY///? Then what does
${project.pluginArtifactRepositories} equal?

Thanks,
Paul




-- 
View this message in context: 
http://www.nabble.com/property-naming-convention-tf2413184.html#a6726716
Sent from the Maven - Users mailing list archive at Nabble.com.


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



reactor?

2006-10-09 Thread pjungwir

Hello,

I'm sorry for such a noobie question, but what is the reactor? I keep seeing
references to it, but I don't know what it is. Googling just turns up more
references, but no definition. Is this a maven 1 thing? I found this:

http://www.ibiblio.org/pub/packages/maven2/maven/maven-reactor-plugin/

But maven-reactor-plugin is not listed here:

http://maven.apache.org/plugins/

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/reactor--tf2413288.html#a6727089
Sent from the Maven - Users mailing list archive at Nabble.com.


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



assembly:assembly does everything twice

2006-10-09 Thread pjungwir

Hello,

I tried binding the assembly plugin to the package phase, so it would just
be part of my regular build. Here is what my pom says:

  plugin
  artifactIdmaven-assembly-plugin/artifactId
  executions
  execution
  idassembly/id
  phasepackage/phase
  goalsgoalassembly/goal/goals
  configuration
  descriptorassembly.xml/descriptor
  /configuration
  /execution
  /executions
  /plugin

But I see that when I type mvn package, everything runs twice:
compilation, tests, etc. Fortunately for compile at least, the plugin is
smart enough not to recompile everything. But this still seems very strange.
Is there an explanation? It didn't happen when I ran mvn clean
assembly:assembly; then things like compilation happened, but only once.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/assembly%3Aassembly-does-everything-twice-tf2413291.html#a6727120
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: assembly:assembly does everything twice

2006-10-09 Thread pjungwir


Eric Redmond wrote:
 
 Does it run twice in a row? When you run package, Maven will print out
 all
 of the goals executed, one by one. Can you list them please?
 

Hi, thanks for replying! Here is what I see:

$ mvn clean package
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
[INFO] [surefire:test]
[INFO] [jar:jar]
[WARNING] Removing: assembly from forked lifecycle, to prevent recursive
invocation.
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
[INFO] [surefire:test]
[INFO] [jar:jar]
[INFO] [assembly:assembly {execution: assembly}]

So as you can see, it runs everything up to the package phase--except
itself--then runs everything up to the package phase again, this time
including myself.

When I unbind it from the pom, I can just run mvn clean assembly:assembly.
And then it still runs everything up to package, but only once.

So I'm guessing that assembly:assembly knows it needs everything up to
package, but it expects to be run unbound to any phase, so it runs all that
stuff itself.


-- 
View this message in context: 
http://www.nabble.com/assembly%3Aassembly-does-everything-twice-tf2413291.html#a6727306
Sent from the Maven - Users mailing list archive at Nabble.com.


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



  1   2   >