Re: error using custom achetype catalog within m2eclipse plugin

2009-03-11 Thread Merv Green
M2eclipse lists everything from the catalog, but cannot generate the 
corresponding projects unless the Nexus indexer also finds the 
archetypes. Manually updating the local index from Eclipse's 'Nexus 
Indexes view' lets m2e use them.


This comes with the inconvenience that m2e fails to release its grip on 
the archetype jar in the local repo. If I install foo-archetype via CLI, 
then update my local index, then generate son-of-foo via m2e, then 
reinstall foo-archetype, then generate spawn-of-foo, m2e chokes. During 
kludgy manual install-test-fix-install cycles, this could get annoying.


Kludgier workaround: Test the archetype-under-development from the 
command line. Once deployed to a remote repository, Eclipse will find 
it, assuming m2eclipse downloads that repository's index.


Soap Box: Prefer a real template mechanism to Maven archetypes.

Mick Knutson wrote:

I created an archetype and a local catalog as per:
http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html

But when I am in the M2Eclipse plugin, after running through the New Maven
Project, using this archetype I get this error:

*Unable to create project from archetype
[com.fedex.ground.archetypes:executable_jar-archetype:1.0 - null]
The desired archetype does not exist
(com.fedex.ground.archetypes:executable_jar-archetype:1.0)*
  



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



maven-javadoc-plugin 2.5 and Illegal package name

2009-03-11 Thread Damien Lecan
Hello,

I used to used  maven-javadoc-plugin 2.4 for custom doclet processing.
If I try to upgrade to version 2.5, I get :

 javadoc: error - Illegal package name: Copyright © 2009. All Rights Reserved.
Command line was:C:\Program
Files\Java\jdk1.6.0_11\jre\..\bin\javadoc.exe @options

Extract from pom :

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
!-- version configured by parent --
executions
execution
phaseprocess-resources/phase
goals
goaljavadoc/goal
/goals
/execution
/executions
configuration
subpackagesmy.package/subpackages
excludeanother.package/exclude
docletcompany.tools.DocletSearchEjbService/doclet
docletArtifacts
docletArtifact
groupIdcompany/groupId

artifactIdconfig-servicelocator-doclet/artifactId
version1.0-SNAPSHOT/version
/docletArtifact
/docletArtifacts
additionalparam-tag

${project.build.outputDirectory}/file.properties/additionalparam
/configuration
/plugin

I tried to configure bottom tag, but it always fail.

Thanks

Damien

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



Re: maven-javadoc-plugin 2.5 and Illegal package name

2009-03-11 Thread Santos Patel
Hi damien,

Does your path contain spaces. If any directory name contains spaces then 
javadoc plugin seems to fail. The issue is reported as solved with 2.5 but 
that doesn't seem to be the case.
For your reference http://jira.codehaus.org/browse/MJAVADOC-144

Santosh Patel
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Profile Inheritance

2009-03-11 Thread Roman Kournjaev
Hi All

I have done a little search on the net , and understood from it that a
profile defined in the parent pom cant be explicitly invoked from when
running the child pom.

It just sound so unbelivable to me! So I just wanted to hear it from you
guys too.

Thanks in Advance.
Roman


classpath ordering

2009-03-11 Thread nicolas de loof
Hi,
I'm using gwt, and Google folks had the strange idea to include some old
version of apache commons-* in the jar.
I get NoSuchMethodError in unit tests becausse I can't specify the classpath
ordering of my dependencies during tests.

Is there any surefire Hack I could use to EXCLUDE this dependency from test
classpath ?

Cheers,
Nicolas


Re: Profile Inheritance

2009-03-11 Thread Gabriele Columbro
That is not correct,
if I have a project structure like this:

A
|pom.xml
 --- B
  | pom.xml


And I define the profile profile1 in A/pom.xml when running :

B myuser$ mvn help:active-profiles -Pprofile1

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

[INFO] Building Project B
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO]

[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'com.mycompany:b:jar:0.9.0-SNAPSHOT':

The following profiles are active:

 - profile1 (source: pom)


For more info [1]  and [2] can also help.

HTH,
Gab


[1]
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
[2]
http://mindthegab.com/2008/12/02/howto-give-your-multimodule-maven-build-subprojectenvironment-specific-behavior/

2009/3/11 Roman Kournjaev kournj...@gmail.com

 Hi All

 I have done a little search on the net , and understood from it that a
 profile defined in the parent pom cant be explicitly invoked from when
 running the child pom.

 It just sound so unbelivable to me! So I just wanted to hear it from you
 guys too.

 Thanks in Advance.
 Roman




-- 
Gabriele Columbro
Alfresco ECM Product Strategy Consultant
+31 627 565 103
Sourcesense - Making sense of open Source (http://www.sourcesense.com)


Re: maven-javadoc-plugin 2.5 and Illegal package name

2009-03-11 Thread Damien Lecan
 Does your path contain spaces.

Which path ?
Path to javadoc tool : yes (c:\program files)
Path to dependencies (doclet) : yes (c:\document and settings)

I tried with debug option.

Plugin fails because of theses lines in options :

...
-author
-bottom
'Copyright #169; 2009 a href=http://www.gip-cps.fr;GIP-CPS/a.
All Rights Reserved.'
...

If I remove -author (authorfalse/author), it works perfectly.

Is it a new bug ?

Damien

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



[ANN] Maven Site Plugin 2.0 Released

2009-03-11 Thread Dennis Lundberg
The Maven team is pleased to announce the release of the Maven Site
Plugin, version 2.0

The Site Plugin is used to generate a site for the project. The
generated site also includes the project's reports that were configured
in the reporting section of the POM.

http://maven.apache.org/plugins/maven-site-plugin/

You should specify the version in your project's plugin configuration:

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-site-plugin/artifactId
 version2.0/version
/plugin


Release Notes - Maven 2.x Site Plugin - Version 2.0


** Bug
* [MSITE-129] - modules list empty if modules don't use this project
as parent in reactor build
* [MSITE-136] - when inheriting site.xml the menu ref='parent'
expands to a menu with links for *all* ancestors and not just the
immediate parent
* [MSITE-150] - Inconsistent navigational mechanisms: If project
defines its own index page (e.g. apt/index.apt) the Project
Information-About link is missing.
* [MSITE-163] - The modules menu is not inherited if the parent
project has no modules of its own
* [MSITE-180] - Missing url tag in (parent) pom make it ignore the
site inheritence system
* [MSITE-238] - multi project default URL is wrong
* [MSITE-275] - site:stage  for multimodule project creates wrong links
* [MSITE-311] - NPE on absolute URLs if project.url not defined
* [MSITE-320] - Reference documentation
* [MSITE-362] - Site upload is not compatible with sourceforge.net
changes
* [MSITE-384] - site:stage-deploy fails on Windows for projects with
3 levels of modules
* [MSITE-386] - site is generated with empty site.css file

** Improvement
* [MSITE-132] - Use artifactId instead of name for staged
directories
* [MSITE-287] - Clarify/fix documentation about encoding for
translated resource bundles.
* [MSITE-349] - Update this plugin's site documentation page:
Configuring the Site Descriptor to include the version element
* [MSITE-350] - site:deploy not verbose enough, not, _at all_ with -X
* [MSITE-351] - New language - Portuguese (Portugal)
* [MSITE-352] - Link to L10n Status Report for Project Info Reports
Plugin
* [MSITE-382] - Add localization for  zh_TW

** New Feature
* [MSITE-340] - use ${project.reporting.outputEncoding} as default
value for outputEncoding parameter and default to UTF-8

** Task
* [MSITE-101] - schedule and release doxia 1.0
* [MSITE-242] - remove copy of plexus-utils sources from site plugin
sources since it is a dependency
* [MSITE-355] - Upgrade to Wagon 1.0-beta-4
* [MSITE-388] - Update to maven-doxia-tools 1.0.2


Enjoy,

-The Maven team

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



Re: [ANN] Maven Site Plugin 2.0 Released

2009-03-11 Thread stug23

As of 9:20 am PDT the version 2.0 plugin doesn't appear to have made it to
Maven Central yet:

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/


dennisl-2 wrote:
 
 The Maven team is pleased to announce the release of the Maven Site
 Plugin, version 2.0
 
 The Site Plugin is used to generate a site for the project. The
 generated site also includes the project's reports that were configured
 in the reporting section of the POM.
 
 http://maven.apache.org/plugins/maven-site-plugin/
 
 You should specify the version in your project's plugin configuration:
 
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-site-plugin/artifactId
  version2.0/version
 /plugin
 
 
 Release Notes - Maven 2.x Site Plugin - Version 2.0
 
 
 ** Bug
 * [MSITE-129] - modules list empty if modules don't use this project
 as parent in reactor build
 * [MSITE-136] - when inheriting site.xml the menu ref='parent'
 expands to a menu with links for *all* ancestors and not just the
 immediate parent
 * [MSITE-150] - Inconsistent navigational mechanisms: If project
 defines its own index page (e.g. apt/index.apt) the Project
 Information-About link is missing.
 * [MSITE-163] - The modules menu is not inherited if the parent
 project has no modules of its own
 * [MSITE-180] - Missing url tag in (parent) pom make it ignore the
 site inheritence system
 * [MSITE-238] - multi project default URL is wrong
 * [MSITE-275] - site:stage  for multimodule project creates wrong
 links
 * [MSITE-311] - NPE on absolute URLs if project.url not defined
 * [MSITE-320] - Reference documentation
 * [MSITE-362] - Site upload is not compatible with sourceforge.net
 changes
 * [MSITE-384] - site:stage-deploy fails on Windows for projects with
 3 levels of modules
 * [MSITE-386] - site is generated with empty site.css file
 
 ** Improvement
 * [MSITE-132] - Use artifactId instead of name for staged
 directories
 * [MSITE-287] - Clarify/fix documentation about encoding for
 translated resource bundles.
 * [MSITE-349] - Update this plugin's site documentation page:
 Configuring the Site Descriptor to include the version element
 * [MSITE-350] - site:deploy not verbose enough, not, _at all_ with -X
 * [MSITE-351] - New language - Portuguese (Portugal)
 * [MSITE-352] - Link to L10n Status Report for Project Info Reports
 Plugin
 * [MSITE-382] - Add localization for  zh_TW
 
 ** New Feature
 * [MSITE-340] - use ${project.reporting.outputEncoding} as default
 value for outputEncoding parameter and default to UTF-8
 
 ** Task
 * [MSITE-101] - schedule and release doxia 1.0
 * [MSITE-242] - remove copy of plexus-utils sources from site plugin
 sources since it is a dependency
 * [MSITE-355] - Upgrade to Wagon 1.0-beta-4
 * [MSITE-388] - Update to maven-doxia-tools 1.0.2
 
 
 Enjoy,
 
 -The Maven team
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-ANN--Maven-Site-Plugin-2.0-Released-tp22458511p22458844.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: classpath ordering

2009-03-11 Thread Wayne Fay
 I'm using gwt, and Google folks had the strange idea to include some old
 version of apache commons-* in the jar.
 I get NoSuchMethodError in unit tests becausse I can't specify the classpath
 ordering of my dependencies during tests.

Even if you could hack Surefire to include the newer Commons jar in
front of the GWT jar, how do you plan to get this to run once you're
done with it? Eventually you're going to run into this again in your
j2ee container, right?

It seems the more pragmatic solution would be to change your code to
use the old Commons API. Or perhaps modify the GWT jar and remove the
old Commons files, and encourage the GWT devs to bump their files to a
more recent version in a future release.

Wayne

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



RE: classpath ordering

2009-03-11 Thread Todd Thiessen
Defining what version of the jar to use in the depedencyManagement
section doesn't work here?

---
Todd Thiessen
 

 -Original Message-
 From: Wayne Fay [mailto:wayne...@gmail.com] 
 Sent: Wednesday, March 11, 2009 12:26 PM
 To: Maven Users List
 Subject: Re: classpath ordering
 
  I'm using gwt, and Google folks had the strange idea to 
 include some 
  old version of apache commons-* in the jar.
  I get NoSuchMethodError in unit tests becausse I can't specify the 
  classpath ordering of my dependencies during tests.
 
 Even if you could hack Surefire to include the newer Commons 
 jar in front of the GWT jar, how do you plan to get this to 
 run once you're done with it? Eventually you're going to run 
 into this again in your j2ee container, right?
 
 It seems the more pragmatic solution would be to change your 
 code to use the old Commons API. Or perhaps modify the GWT 
 jar and remove the old Commons files, and encourage the GWT 
 devs to bump their files to a more recent version in a future release.
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 

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



Issue with importing Maven project in Eclipse !

2009-03-11 Thread Gauba, Naveen
Hi

I am new to Maven. I imported an existing multi-module (with 8 modules) Maven 
project into Eclipse. I am using Eclipse Europa 3.3 with Maven 2.0 plugin.

I see 9 occurrences for this error in the Problems view. Could any of you help 
me here? This plugin is not referenced in any of the pom files.

The PluginDescriptor for the plugin 
org.codehaus.mojo:jboss-packaging-maven-plugin was not found. Should have been 
in realm: 
ClassRealm[/plugins/org.codehaus.mojo:jboss-packaging-maven-plugin:2...@48/thread:Worker-8,
 parent: null]

Thanks in advance

Naveen


[Maven assembly plugin] Error using the assembly plugin on CentOs4.7

2009-03-11 Thread Raphaël Piéroni
Hi folks,

I have a strange error using the assembly plugin on CentOs4.7.
Obvioulsy the same checkout on windows works like a charm.

For information my build is multi-module an two modules have an assembly.
The first succeed and the second fails. It even fails when i call it
in a mono module.

I attached the offending assembly descriptor.

Thanks in advance for any help.

Regards,

Raphaël

Here the error i have:
[INFO] Failed to create assembly: Error creating assembly archive
source-distribution: Failed to retrieve numeric file attributes using:
'/bin/sh -c ls -1nlaR /'

[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
create assembly: Error creating assembly archive source-distribution:
Failed to retrieve numeric file attributes using: '/bin/sh -c ls
-1nlaR /'
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
create assembly: Error creating assembly archive source-distribution:
Failed to retrieve numeric file attributes using: '/bin/sh -c ls
-1nlaR /'
at 
org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:405)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException:
Error creating assembly archive source-distribution: Failed to
retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
at 
org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:194)
at 
org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:354)
... 18 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to
retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
at 
org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:366)
at 
org.apache.maven.plugin.assembly.filter.ComponentsXmlArchiverFileFilter.finalizeArchiveCreation(ComponentsXmlArchiverFileFilter.java:166)
at 
org.codehaus.plexus.archiver.AbstractArchiver.runArchiveFinalizers(AbstractArchiver.java:760)
at 
org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:784)
at 
org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver.createArchive(AssemblyProxyArchiver.java:496)
at 
org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:190)
... 19 more
Caused by: java.io.IOException: Failed to retrieve numeric file
attributes using: '/bin/sh -c ls -1nlaR /'
at 
org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java:238)
at 
org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:179)
at 
org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:145)
at 
org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:140)
at 

Re: classpath ordering

2009-03-11 Thread nicolas de loof
The issue is that gwt-dev INCLUDES org.apache.commons.* classes, it does not
depend on some commons-* as maven projet may expect (Gwt guys don't use
Maven)
I've found a workaround anyway, and it is now included in gwt-maven-plugin

On Wed, Mar 11, 2009 at 5:30 PM, Todd Thiessen thies...@nortel.com wrote:

 Defining what version of the jar to use in the depedencyManagement
 section doesn't work here?

 ---
 Todd Thiessen


  -Original Message-
  From: Wayne Fay [mailto:wayne...@gmail.com]
  Sent: Wednesday, March 11, 2009 12:26 PM
  To: Maven Users List
  Subject: Re: classpath ordering
 
   I'm using gwt, and Google folks had the strange idea to
  include some
   old version of apache commons-* in the jar.
   I get NoSuchMethodError in unit tests becausse I can't specify the
   classpath ordering of my dependencies during tests.
 
  Even if you could hack Surefire to include the newer Commons
  jar in front of the GWT jar, how do you plan to get this to
  run once you're done with it? Eventually you're going to run
  into this again in your j2ee container, right?
 
  It seems the more pragmatic solution would be to change your
  code to use the old Commons API. Or perhaps modify the GWT
  jar and remove the old Commons files, and encourage the GWT
  devs to bump their files to a more recent version in a future release.
 
  Wayne
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 

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




Re: [ANN] Maven Site Plugin 2.0 Released

2009-03-11 Thread Peter Horlock
Same problem here! That broke our entire builds on hudson. :-(


Peter


Re: Profile Inheritance

2009-03-11 Thread Rusty Wright

But try it with a profiles.xml file; for example, if I create a project with 
the app-fuse archetype:

mvn \
   archetype:create \
   -DarchetypeGroupId=org.appfuse.archetypes \
   -DarchetypeArtifactId=appfuse-modular-spring \
   -DremoteRepositories=http://static.appfuse.org/releases \
   -DgroupId=com.mycompany.app \
   -DartifactId=myproject

Then go into myproject and create the following profiles.xml file:

?xml version=1.0?
profilesXml
   xmlns=http://maven.apache.org/xsd/profiles-1.0.0;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/xsd/profiles-1.0.0.xsd;

   profiles
   profile
   idprofile1/id

   activation
   activeByDefaultfalse/activeByDefault
   /activation
   /profile
   /profiles
/profilesXml

Then notice that profile1 is only active for the parent; not the children.

$ mvn help:active-profiles -Pprofile1
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   AppFuse Modular Application
[INFO]   AppFuse Modular Application - Core
[INFO]   AppFuse Modular Application - Web (Spring MVC)
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] 
[INFO] Building AppFuse Modular Application
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO] 
[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'com.mycompany.app:myproject:pom:1.0-SNAPSHOT':

The following profiles are active:

- profile1 (source: profiles.xml)



Active Profiles for Project 'com.mycompany.app:myproject-core:jar:1.0-SNAPSHOT':

There are no active profiles.



Active Profiles for Project 
'com.mycompany.app:myproject-webapp:war:1.0-SNAPSHOT':

The following profiles are active:

- integration-test (source: pom)



[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Mar 11 10:04:27 PST 2009
[INFO] Final Memory: 5M/11M
[INFO] 

Likewise, if you go into a child module:

$ cd web
$ mvn help:active-profiles -Pprofile1
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] 
[INFO] Building AppFuse Modular Application - Web (Spring MVC)
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO] 
[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 
'com.mycompany.app:myproject-webapp:war:1.0-SNAPSHOT':

The following profiles are active:

- integration-test (source: pom)



[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Mar 11 10:05:29 PST 2009
[INFO] Final Memory: 5M/11M
[INFO] 



Gabriele Columbro wrote:

That is not correct,
if I have a project structure like this:

A
|pom.xml
 --- B
  | pom.xml


And I define the profile profile1 in A/pom.xml when running :

B myuser$ mvn help:active-profiles -Pprofile1

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

[INFO] Building Project B
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO]

[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'com.mycompany:b:jar:0.9.0-SNAPSHOT':

The following profiles are active:

 - profile1 (source: pom)


For more info [1]  and [2] can also help.

HTH,
Gab


[1]
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
[2]
http://mindthegab.com/2008/12/02/howto-give-your-multimodule-maven-build-subprojectenvironment-specific-behavior/

2009/3/11 Roman Kournjaev kournj...@gmail.com


Hi All

I have done a little search on the net , and understood from it that a
profile defined in the parent pom cant be explicitly invoked from when
running the child pom.

It just sound so unbelivable to me! So I just wanted to hear it from you
guys too.

Thanks in Advance.
Roman







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



Re: classpath ordering

2009-03-11 Thread Wayne Fay
 The issue is that gwt-dev INCLUDES org.apache.commons.* classes, it does not
 depend on some commons-* as maven projet may expect (Gwt guys don't use
 Maven)

I still think you should file a bug against GWT itself and ask them to
shade these classes if they're going to package them in their jar...

Wayne

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



Version ranges

2009-03-11 Thread Johannes Schneider
Hi,

I have a problem with version ranges. I try to compile Spring Rich
Client Platform.
There is a dependency to Jide defined:

[2.2.0, 3.0.0)

In my local repository there is the version 2.2.7 located.
But compiling fails with this message:

No versions are present in the repository for the artifact with a range
[2.2.0,3.0.0)
  com.jidesoft:jide-action:jar:null


When I change the version to 2.2.7 manually, everything works fine.

Could anyone give me a hint how to solve this?



Thanks,

Johannes




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



installing a war from a war based project automatically

2009-03-11 Thread EJ Ciramella
Is there a good way to, when building a war type project, to have the
resulting war file placed in the users local repository?
 
A friend pointed me to the build-helper-maven-plugin maintained by
codehaus, but I see the primaryArtifact option to the war plugin but
it doesn't seem to work.


Re: Problems with maven-kogo-plugin

2009-03-11 Thread neil hart
Can you post an example of the Ant file and the pom.xml code to call it?
 That would help a great deal.
Thanks


Re: installing a war from a war based project automatically

2009-03-11 Thread Wendy Smoak
On Wed, Mar 11, 2009 at 12:48 PM, EJ Ciramella ecirame...@upromise.com wrote:
 Is there a good way to, when building a war type project, to have the
 resulting war file placed in the users local repository?

Just 'mvn install' should do that.  What command are you using and
what's going wrong?

-- 
Wendy

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



Re: dependency lookup url

2009-03-11 Thread mcystems
I tried every possible combination on settings.xml: without mirrors,
with mirrors defining snapshot a release repositories remove them.
Nothing. It seems that the build-in central repository configuration
cannot be override in settings.xml. While I debugged maven I find that
the central repository policy is always disabled no matter what.

However! If I put my snapshot repository url into the projects pom.xml
it works.

Csaba

On Tue, 2009-03-10 at 16:29 -0700, Wayne Fay wrote:
  I'm mirroring everything to my artifactory instance (maybe that is
  misconfigured/bugy but since I don't know the lookup url I can't figure
  out).
 
 You still need to declare a snapshot-enabled repo somewhere in your
 settings.xml.
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


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



maven-war-plugin: War Manifest Customization

2009-03-11 Thread Davis Ford
Hi, the war plugin explains how to customize the manifest here:

http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html

I can't seem to repeat this.  I'm wondering what I'm doing wrong.
Here's a quick example with two projects: one jar project (foo-bar),
and one webapp project.  The foo-bar project depends on commons-cli,
and the webapp project depends on foo-bar.  If I configure the pom.xml
as follows, and run 'mvn package' on the webapp project, it includes
commons-cli in the WEB-INF/lib folder.  I don't want this. I want it
to include it in the META-INF/Manifest classpath, but not in
WEB-INF/lib -- any ideas?

Thanks in advance!

$ mvn archetype:create -DgroupId=com.example -DartifactId=foo-bar

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 groupIdcom.example/groupId
 artifactIdfoo-bar/artifactId
 packagingjar/packaging
 version1.0-SNAPSHOT/version
 namefoo-bar/name
 urlhttp://maven.apache.org/url
 dependencies
   dependency
 groupIdcommons-cli/groupId
 artifactIdcommons-cli/artifactId
 version1.0/version
   /dependency
 /dependencies
/project

$ mvn archetype:create -DgroupId=com.example -DartifactId=webapp
-DarchetypeArtifactId=maven-archetype-webapp

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 groupIdcom.example/groupId
 artifactIdwebapp/artifactId
 packagingwar/packaging
 version1.0-SNAPSHOT/version
 namewebapp Maven Webapp/name
 urlhttp://maven.apache.org/url
 dependencies
   dependency
 groupIdcom.example/groupId
 artifactIdfoo-bar/artifactId
 version1.0-SNAPSHOT/version
 optionaltrue/optional
   /dependency
 /dependencies
 build
   finalNamewebapp/finalName
   plugins
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  version2.0/version
  configuration
archive
  manifest
addClasspathtrue/addClasspath
  /manifest
/archive
  /configuration
/plugin
   /plugins
 /build
/project

-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

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



Prevent a reactor build from filtering in child projects

2009-03-11 Thread Pankaj Tandon

Hello,
I have a top level project that specifies a resource directory that I
require filtering on.

  filters
filtersrc/main/filters/${label}.properties/filter
   /filters

   resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering   
  /resource
   /resources

Then I have (several) child projects that do NOT require filtering (and
consequently are missing the resources section in their poms).

However, the reactor build attempts to filter each project including the
child projects and errors out.

Is there a way to prevent the child project from being filtered?

I have tried:
1/ Placing a filtering = false at child pom level
2/ Excluding the child directory in the top level pom's resources config.

Neither worked.

Any suggestions?

Thanks,
Pankaj

-- 
View this message in context: 
http://www.nabble.com/Prevent-a-reactor-build-from-filtering-in-child-projects-tp22464371p22464371.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: installing a war from a war based project automatically

2009-03-11 Thread EJ Ciramella
Mvn assembly:directory, but I've tried mvn install and that doesn't seem
to work either.

I think I see what's going on now - we have a custom packaging type that
extends the war functionality.  What's weird is, we're building the jar,
then the war and finally our custom packaging type.  But only the jar
and the custom one are installed by default.

I'm looking at the plexus configuration we have right now 

-Original Message-
From: Wendy Smoak [mailto:wsm...@gmail.com] 
Sent: Wednesday, March 11, 2009 4:12 PM
To: Maven Users List
Subject: Re: installing a war from a war based project automatically

On Wed, Mar 11, 2009 at 12:48 PM, EJ Ciramella ecirame...@upromise.com
wrote:
 Is there a good way to, when building a war type project, to have the 
 resulting war file placed in the users local repository?

Just 'mvn install' should do that.  What command are you using and
what's going wrong?

--
Wendy

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


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



Re: Version ranges

2009-03-11 Thread Michael McCallum
you must have valid metadata to use ranges... did you install the jar into your 
local repository?

On Thu, 12 Mar 2009 08:37:51 Johannes Schneider wrote:
 Hi,
 
 I have a problem with version ranges. I try to compile Spring Rich
 Client Platform.
 There is a dependency to Jide defined:
 
 [2.2.0, 3.0.0)
 
 In my local repository there is the version 2.2.7 located.
 But compiling fails with this message:
 
 No versions are present in the repository for the artifact with a range
 [2.2.0,3.0.0)
   com.jidesoft:jide-action:jar:null
 
 
 When I change the version to 2.2.7 manually, everything works fine.
 
 Could anyone give me a hint how to solve this?
 
 
 
 Thanks,
 
 Johannes
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 



-- 
Michael McCallum
Enterprise Engineer
mailto:gho...@apache.org

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



dynamic version modification

2009-03-11 Thread fenix77

Is it possible for a plugin to dynamically update an artifact version? 

I have written the code to make the change, however the project still uses
with the version defined in the pom. Thanks!

- J

-- 
View this message in context: 
http://n2.nabble.com/dynamic-version-modification-tp2464438p2464438.html
Sent from the maven users mailing list archive at Nabble.com.


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



Which phase does a plugin's goal execute ?

2009-03-11 Thread Balasubramanian, Ravi Shankar
Hi all,

I am executing a plugin's goal directly through the maven command. It is
executed as follows:

 

mvn clover2:setup ( which executes the setup goal of the clover2 plugin)


 

However, I want another plugin's goal to be executed before the
clover2:setup goal is executed which I have to mention in the pom.xml.
Is there a way to find out which phase does the plugin's goal actually
executes when we call it directly ? 

 

Tx, 

Ravi 



Re: Which phase does a plugin's goal execute ?

2009-03-11 Thread Geoffrey Wiseman
On Wed, Mar 11, 2009 at 9:21 PM, Balasubramanian, Ravi Shankar 
rbala...@informatica.com wrote:

 Hi all,

 I am executing a plugin's goal directly through the maven command. It is
 executed as follows:

 mvn clover2:setup ( which executes the setup goal of the clover2 plugin)

 However, I want another plugin's goal to be executed before the
 clover2:setup goal is executed which I have to mention in the pom.xml.
 Is there a way to find out which phase does the plugin's goal actually
 executes when we call it directly ?


As far as I understand it, when you invoke a plugin directly, there is no
phase per se -- you're just invoking a plugin.  You could invoke two plugins
(mvn clover2:setup jetty:run), or create a profile where you bind each
plugin two phases in sequence, but you can't bind one plugin to another's
invocation.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/


Re: [ANN] Maven Database Migration Plugin v0.9.1

2009-03-11 Thread Christian Nelson
Geoffrey:

I haven't used Liquibase, so I'm not the best person to highlight all of the
differences between the two projects.  Like some other folks on this list, I
only learned about Liquibase a few weeks ago (and haven't tried it out
yet).  However, there are a few notable differences as far as I can see:

Liquibase captures changes in XML while db-migration captures changes in SQL
or Groovy.  I personally find it easier to develop migrations in Toad
(choose your preferred db tool) than in a meta-language, especially when it
comes to tricky migrations that must shuffle and massage between tables.
Also, the full suite of database specific functionally is available when
writing straight SQL/DDL.  Is it when using liquibase, or is everything
expressed in a database-agnostic meta-language?  For me, unless there's a
compelling reason to learn yet another language (liquibase configuration),
I'd rather use something I already know well (SQL).

In a quick search, I didn't see support in liquidbase for the create, drop,
or reset goals supported in db-migration.  We reset our unit test database
all the time.  It's also very helpful when configuring developer's
environments and continuous integration (I recently blogged about
thishttp://blog.carbonfive.com/2009/03/agile/continuous-integration-and-build-promotionif
you want more on the subject).

I don't know much about configuring liquibase, but the db-migration-plugin
really only needs 3 peices of information (url, username, password).  The
barrier to getting started for db-migration-plugin seems like it might be a
little lower.  Despite being simple, it's worked quite nicely for us on the
projects we've used it on.

In the end, it's about choices and a little healthy competition.  Liquibase
looks like a great project and I bet there are tons of people using it and
loving it.  I hope people give my project a whirl and find that it suites
their needs just fine.  If you try db-migration-plugin, I'd be psyched to
get your feedback.

Regards,
Christian

On Tue, Mar 10, 2009 at 8:56 AM, Geoffrey Wiseman 
geoffrey.wise...@gmail.com wrote:

 On Mon, Mar 9, 2009 at 10:38 PM, Christian Nelson cnel...@slac.com
 wrote:

  The db-migration-maven-plugin
  http://code.google.com/p/c5-db-migration/provides support for
  managing project database structure changes over time
  (a la rails migrations).  Each change is captured as a discrete migration
  (implemented in SQL or Groovy).  A history of which migrations have been
  applied is stored in the database (table schema_version) and all pending
  migrations can be applied using a single goal.  The following goals are
  provided by the plugin:


 Care to characterize how this project differs from Liquibase?

  - Geoffrey
 --
 Geoffrey Wiseman
 http://www.geoffreywiseman.ca/




-- 
Christian Nelson -- (e) cnel...@slac.com -- (m) 415-378-3988


Maven Meetup @ Sonatype on March 19th 20th

2009-03-11 Thread Jason van Zyl

Hi,

For those interested in knowing what Sonatype is working on in the  
Maven community, we're having a Maven Meetup the week before  
EclipseCon in Mountain View.


It's a full day of presentations on Maven and related technologies  
like m2eclipse, Nexus, Tycho, Hudson, NMaven, NAR, FlexMojos and  
more.  That will be followed up by a full day hackathon.


You can see the full description here:

http://www.sonatype.com/people/2009/03/sonatype-maven-meetup-on-march-19th-20th/

And you can signup to attend here:

https://docs.sonatype.org/display/COMM/Maven+Meetup+on+March+19th+and+20th+at+Sonatype

We are syncing up with the Hippo folks who are putting on the Maven  
Meetup in Amsterdam (unfortunately the conference organizers didn't  
notice that EclipseCon and ApacheCon are in the same week) as none of  
the Sonatype folks can attend ApacheCon. We are planning to record all  
the sessions on the 19th and so they should be available for everyone  
at ApacheCon.


Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
--

A party which is not afraid of letting culture,
business, and welfare go to ruin completely can
be omnipotent for a while.

  -- Jakob Burckhardt