Re: Using archetype:generate with internal repository

2009-03-16 Thread Sagara Gunathunga
Hi Shahzad,
Do you have archetype-catalog.xml file  on your internal repository  ?
,it is required to have a  archetype-catalog.xml file to get Archetype
information for Maven Archetype Plug-in. please see the [1]

[1] - 
http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html

Thanks ,

On Tue, Mar 17, 2009 at 12:07 AM, Qureshi,Shahzad [Ontario]
 wrote:
> Hi all,
>
> I am having difficulty using archetype:generate plugin where I want it
> to use an archetype stored in our internal repository. I was able to do
> so using archetype:create plugin. I've a settings.xml in .m2 directory
> and that's where archetype:create reads the internal repository
> information but archetype:generate doesn't seem to do that.
>
> I tried using -DarchetypeRepository but I probably am not entering the
> internal repository url properly. This is what I am typing and I am
> getting Build Error because it can't find my archetype
>
> mvn archetype:generate -DarchetypeArtifactId=default-archetype
> -DarchetypeGroupId=default-archetype -DarchetypeVersion=1.0
> -DarchetypeRepository=http://serveraddress/Intranet/maven-repo
>
> http://serveraddress/Intranet/maven-repo is where archetype-default
> archetype is residing
>
> Any ideas?
>
> thanks
>
> Shahzad Qureshi
> Systems Analyst/Programmer
> Applications Directorate, CIOB
> Environment Canada
> shahzad.qure...@ec.gc.ca
>
>



-- 
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

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



Re: Problem in release:prepare

2009-03-16 Thread Olivier Lamy
Hi,
The fix is deployed in last maven-release-plugin 2.0-beta-9-SNAPSHOT
As it's a really platform dependant issue, I'd like to have some tests
on various svn version / os.

To test it you have to use the apache snapshots repo :
https://repository.apache.org/content/groups/snapshots

And configuring release mojo as this :


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



As this fix very popular (a lot of votes) issues I hope to find some testers :-)

Thanks
--
Olivier


2009/3/14 Olivier Lamy :
> Hi Folks,
> I have added some proposals here : http://jira.codehaus.org/browse/SCM-262
>
> Comments are welcome !
> Thanks,
> --
> Olivier
>
> 2009/3/14 Jochen Wiedmann :
>> On Fri, Mar 13, 2009 at 11:43 PM, Edelson, Justin
>>  wrote:
>>
>>> This looks like http://jira.codehaus.org/browse/SCM-406. Run svn up and
>>> rerun release:prepare.
>>
>> Thanks for the hint, Justin!
>>
>>
>> --
>> I have always wished for my computer to be as easy to use as my
>> telephone; my wish has come true because I can no longer figure out
>> how to use my telephone.
>>
>>    -- (Bjarne Stroustrup,
>> http://www.research.att.com/~bs/bs_faq.html#really-say-that
>>       My guess: Nokia E50)
>>
>> -
>> 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: presentation material on maven?

2009-03-16 Thread Martijn Dashorst
Try slideshare.net, for example: http://www.slideshare.net/tag/maven

Martijn

On Mon, Mar 16, 2009 at 7:53 PM, Erik Putrycz  wrote:
>
> I'm thinking of doing a presentation of maven - IAM - archiva/nexus to a
> software quality local association and I was wondering if there is any
> existing open source presentation material available on these topics?
>
> Erik.
> --
> http://blog.erikputrycz.net
> --
> View this message in context: 
> http://www.nabble.com/presentation-material-on-maven--tp22541480p22541480.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
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Relative Path to a Local Repo

2009-03-16 Thread Lee Meador
Can you have them set an environment variable to the folder into which they
unzipped? there might be a way to make that work.

--Lee

On Mon, Mar 16, 2009 at 3:41 PM, Jeremy Sager wrote:

> Hi everyone -
>
> I appreciate any help that might be offered on this topic. I have
> researched
> this on google and have not been able to find an answer, so I'm hoping you
> guys can throw something out there to help, or point to a place I missed on
> the web that contains the correct information.
>
> I have a need for people to be able to execute a maven build against my
> project from source that is copied onto their machine.
>
> For government security reasons, the machine does not have internet access,
> and the people executing the build have no maven expertise.
>
> I include a copy of my repository within the zip file that contains the
> source code. I include a settings.xml file that tells maven to execute in
> offline mode, and points to a local repository.
>
> I then give the end users a single command that they execute from their
> shell, and everything works... except for one problem.
>
> The localRepository I specify in settings.xml does not seem to accept a
> relative path. The relative path to the local repo I've sent them will
> always remain the same.
>
> Alternatively to figuring out the relative path in the settings file I
> point
> them to, I am quite content to change what I'm doing on the command line,
> as
> in mvn -o -Dmaven.local-repo=foo/bar/repository. However, from what I've
> seen maven.local-repo no longer works.
>
> The goal is to give these guys a zip of my source, which includes my
> repository (thanks to the assembly plugin), and have them unzip and be able
> to run with a single command line. Again, they have no local repo and no
> internet access.
>
> One final point. If I use an absolute path to the repository in
> settings.xml, everything works great.
>
> Any advice is appreciated, and thank you for your time.
>
> Jeremy
>



-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com


Re: any way to leverage site documentation goal as a profile activation?

2009-03-16 Thread Mick Knutson
I started creating a blog entry for my issue:
http://baselogic.com/blog/archives/244

What is happening, is when I run a normal build with my hibernate3 plugin,
my database is created and my dbunit tests run and pass as expected. But
when I go to run my site documentation, I get a PersistenceException from
hibernate3 due to adding Cobertura. So what I did was chang ethe hibernate3
lifecyle executuion from *process-test-resources* to *package *just for site
documentation.

I created a profile to change the execution:


lazy-hibernate3

*package*



This seems to work well... Would also love some feedback on this solution if
possible. Or anything I should change.


---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Mon, Mar 16, 2009 at 3:38 PM, Wendy Smoak  wrote:

> On Mon, Mar 16, 2009 at 12:22 PM, Mick Knutson 
> wrote:
> > I would like to have a specific profile activate when I run mvn *site*
> >
> > Is this possible?
>
> Is the underlying goal to have some plugins execute only in the site
> (or pre-site) phase?  If not, what are you trying to do?
>
> If so, try binding the plugin executions to phases in the site
> lifecycle (pre-site, site, post-site, site-deploy).  Then they
> shouldn't execute unless you pass through those phases, which won't
> happen in a normal build using the default lifecycle (compile, test,
> install, deploy).
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: maven-compiler-plugin - where does it take compiler from?

2009-03-16 Thread Mick Knutson
I added this to our corporate pom.xml as such:


maven-compiler-plugin

${source.version}
${target.version}
${javac.executable}
${source.version}
true




Then have each project just override the values to suit their needs if these
do not work for them:



1.5
1.5

${JAVA_HOME}/bin/javac



---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Mon, Mar 16, 2009 at 3:38 PM, Thor  wrote:

> Last time I checked, the maven compiler plugin uses the 1.4 source level.
> In my case, I use Java 5, so my source level it's 1.5
>
> You tell the plugin to use that source level on it's configuration options:
>
> Here's a pom snippet:
> 
>maven-compiler-plugin
>
>  1.5
>  1.5
>
>  
>
> I you wish to guarantee the same exact jdk version for all your developers,
> you should try the enforcer plugin.
>
> On Fri, Mar 13, 2009 at 6:09 AM, tjunak  wrote:
>
> >
> > Hello,
> >
> > I've got some questions about maven-compiler-plugin regarding compiler.
> It
> > seems
> > it is not clarified well on documentation - please help me with those
> > questions as I think
> > they seem important.
> >
> > I would like to be able to know what compiler  version is used how to
> > change
> > it in case sources
> > need different version. I know from the (maven-compiler-plugin)
> > documentation that there is some builtin compiler in
> maven-compiler-plugin?
> >
> > What is the version ?
> > Does it change every time new release of JDK ?
> > How to check what is the current default version of the compiler ?
> >
> > There is often a need to compile sources with a specific version of Java
> > compiler then how can I specify a compiler version ?
> >
> > For example in my case is that I need to use: jdk1.6.0 u12
> >
> > How can I do it ?
> > Should I install this JDK on my machine or it exist somwhere packaged as
> an
> > artifact(s) ?
> >
> >
> > This is important as I would like to be sure that all developers will
> > compile sources with correct version
> > of Java compiler and there is always a consistent build.
> >
> >
> >
> > Thank you in advance!
> > Tomasz Junak
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/maven-compiler-plugin---where-does-it-take-compiler-from--tp22495176p22495176.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
> >
> >
>
>
> --
> Open Jfree Software in an Open World...
>


Relative Path to a Local Repo

2009-03-16 Thread Jeremy Sager
Hi everyone -

I appreciate any help that might be offered on this topic. I have researched
this on google and have not been able to find an answer, so I'm hoping you
guys can throw something out there to help, or point to a place I missed on
the web that contains the correct information.

I have a need for people to be able to execute a maven build against my
project from source that is copied onto their machine.

For government security reasons, the machine does not have internet access,
and the people executing the build have no maven expertise.

I include a copy of my repository within the zip file that contains the
source code. I include a settings.xml file that tells maven to execute in
offline mode, and points to a local repository.

I then give the end users a single command that they execute from their
shell, and everything works... except for one problem.

The localRepository I specify in settings.xml does not seem to accept a
relative path. The relative path to the local repo I've sent them will
always remain the same.

Alternatively to figuring out the relative path in the settings file I point
them to, I am quite content to change what I'm doing on the command line, as
in mvn -o -Dmaven.local-repo=foo/bar/repository. However, from what I've
seen maven.local-repo no longer works.

The goal is to give these guys a zip of my source, which includes my
repository (thanks to the assembly plugin), and have them unzip and be able
to run with a single command line. Again, they have no local repo and no
internet access.

One final point. If I use an absolute path to the repository in
settings.xml, everything works great.

Any advice is appreciated, and thank you for your time.

Jeremy


mvn site issue with cobertura

2009-03-16 Thread huser

Hi,

I am getting the following error while running mvn site.

What is wrong here ?

[INFO] Storing buildNumber: 65557 at timestamp: 2009-03-16T14:33:40-0500
[INFO] [cobertura:instrument]
[INFO] Not executing cobertura:instrument as the project is not a Java
classpath
-capable package
[INFO] [site:site]
[INFO] Not executing cobertura:report as the cobertura data file
(C:\ws\int_002_
dev_test\services-api\target\cobertura\cobertura.ser) could not be found
Downloading: http://domain.com:8081/nexus/content/groups/public/c
om/co/t3/t3/${co.t3.version}/t3-${co.t3.version}.pom
Downloading: http://domain.com:8081/nexus/content/groups/public/c
om/co/t3/t3/${co.t3.version}/t3-${co.t3.version}.pom
Downloading: http://domain.com:8081/nexus/content/groups/public/c
om/co/t3/t3/${co.t3.version}/t3-${co.t3.version}.pom
[INFO] Parent project loaded from repository.
Downloading: http://domain.com:8081/nexus/content/groups/public/c
om/co/t3/t3/${co.t3.version}/t3-${co.t3.version}-site_en.xml
Downloading: http://domain:8081/nexus/content/groups/public/c
om/co/t3/t3/${co.t3.version}/t3-${co.t3.version}-site_en.xml
Downloading: http://domain.com:8081/nexus/content/groups/public/c
om/co/t3/t3/${co.t3.version}/t3-${co.t3.version}-site_en.xml
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The site descriptor cannot be resolved from the repository: The
system ca
nnot find the path specified

[INFO]

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

[INFO] Total time: 18 seconds
[INFO] Finished at: Mon Mar 16 14:33:40 CDT 2009
[INFO] Final Memory: 43M/77M
[INFO]


The plugin for Cobertura is:

   
org.codehaus.mojo
   
cobertura-maven-plugin

true









-- 
View this message in context: 
http://www.nabble.com/mvn-site-issue-with-cobertura-tp22544188p22544188.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: changelog plugin SVN issue

2009-03-16 Thread huser

Thanks this worked ! 

MP


Reinhard Nägele wrote:
> 
> Why did you configure connection and developerConnection differently? I 
> guess they should both point to the trunk. The changelog plugin by 
> default uses "connection."
> 
> Reinhard
> 
> huser schrieb:
>> Any ideas anyone ? The code is under "trunk". How/Where can I change the
>> path
>> for Maven to look at the correct path ?
>>
>> Thanks,
>>
>>
>>
>>
>> huser wrote:
>>   
>>> Hi,
>>>
>>> I added the ChangeLog Plugin in Maven2. But I get the following error:
>>>
>>> [INFO] Executing: svn --non-interactive log -v -r "{2009-02-11 16:57:46
>>> +}:{
>>> 2009-03-14 16:57:46 +}" https://my-co-srvr/ABC_tools/ABC-tool
>>> s-src/ABC-maven/jarred-test-wsdls
>>> [INFO] Working directory:
>>> C:\ABC_tools\ABC-tools-src\ABC-maven\trunk\jarred-test
>>> -wsdls
>>> [ERROR] Provider message:
>>> [ERROR] The svn command failed.
>>> [ERROR] Command output:
>>> [ERROR] svn:
>>> '/ABC_tools/!svn/bc/39/ABC-tools-src/ABC-maven/jarred-test-wsdls' p
>>> ath not found
>>>
>>> This is because the correct paths need to be  svn --non-interactive log
>>> -v
>>> -r "{2009-02-11 16:57:46 +}:{
>>> 2009-03-14 16:57:46 +}" https://my-co-srvr/ABC_tools/ABC-tool
>>> s-src/ABC-maven/trunk/jarred-test-wsdls
>>>
>>> How can I pass the branch name as trunk ? My POM.xml looks like this:
>>> 
>>> 
>>> 
>>> scm:svn:https://my-co-srvr/ABC_tools/ABC-tools-src/ABC-maven
>>> 
>>> 
>>> 
>>> scm:svn:https://my-co-srvr/atx_tools/ABC-tools-src/ABC-maven/trunk
>>> 
>>> HEAD
>>> https://my-co-srvr/ABC_tools/ABC-tools-src/ABC-maven
>>> 
>>>
>>> 
>>>   org.apache.maven.scm
>>>   maven-scm-provider-svnexe
>>>   1.1
>>> 
>>> 
>>> 
>>> 
>>> 1.0-beta-4
>>>   
>>>
>>> 
>>> 
>>> org.apache.maven.plugins
>>> maven-changelog-plugin
>>> 
>>> 
>>> 
>>>
>>> 
>>
>>   
> 
> 
> -
> 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/changelog-plugin-SVN-issue-tp22500898p22543367.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



building clojure with maven; the bootstrapping problem

2009-03-16 Thread B Smith-Mannschott
I've been attempting to expand my understanding of maven by teaching
it to build clojure [1,2].

[1]: http://clojure.org
[2]: http://clojure.googlecode.com/svn/trunk
[3]: git://github.com/kevinoneill/clojure.git

Clojure already has a maven build, but all it does is package up the
build products left behind by a previously executed ant build. I'd
like a solution that's "pure maven". That would fit best into my
existing work-flow and build server. Consider this a first baby-step
toward "clojure-compiler-maven-plugin", if you like.

The "kernel" of clojure (runtime library, which includes the compiler)
is written in Java. The rest is written in Clojure. It is possible to
just compile the just the java and then package the clojure sources
together with the class files. This will work, but it's slow to start
up since the core clojure libraries must be compiled from source at
loading. It's more efficient to use the clojure to compile the clojure
sources ahead of time to class files. (This is essentially what the
ant build does.)

#!/bin/bash
mvn clean  # pom file included at end of message
# this compiles the java part of clojure, and copies the clojure
# sources to target/classes unchanged.
mvn compile
# this compiles the clojure sources, which have been copied to
# target/classes in place.
java -Dclojure.compile.path=$classes \
-cp target/classes clojure.lang.Compile \
clojure.core \
clojure.main \
clojure.set \
clojure.xml \
clojure.zip \
clojure.inspector
# this packages it all up: clojure sources, class files from java,
# class files from clojure.
mvn package

This is obviously a hack, and not "pure maven" by any stretch. How
would an experienced maven user go about this?

(1) Is there a way to embed imperative logic in the pom, perhaps with
a fragment of ant, and get it to run at the correct stage during the
build life cycle?

(2) This problem would be "solved" if we had a
clojure-compiler-maven-plugin to call upon, but of course if we wanted
it to perform well, we'd want to make sure that the copy of clojure it
used had itself been built with the clojure-compiler-maven-plugin. ;-)

How would you, as a maven user, go about this?

// ben

--


http://maven.apache.org/POM/4.0.0";
 xmlns:xsi="http//www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
  org.clojure.bpsm
  clojure-lang
  clojure-lang
  1.0-SNAPSHOT
  http://clojure.org/

  Clojure runtime library (and compiler).

  

  Eclipse Public License 1.0
  http://opensource.org/licenses/eclipse-1.0.php
  repo

  

  

src/jvm

  

src/clj
  


  
org.apache.maven.plugins
maven-compiler-plugin

  
  1.5
  1.5

  
  
org.apache.maven.plugins
maven-jar-plugin
2.2

  

  true
  clojure.main

  

  
  
org.apache.maven.plugins
maven-source-plugin

  
attach-sources
package

  jar

  

  

  



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



Re: any way to leverage site documentation goal as a profile activation?

2009-03-16 Thread Wendy Smoak
On Mon, Mar 16, 2009 at 12:22 PM, Mick Knutson  wrote:
> I would like to have a specific profile activate when I run mvn *site*
>
> Is this possible?

Is the underlying goal to have some plugins execute only in the site
(or pre-site) phase?  If not, what are you trying to do?

If so, try binding the plugin executions to phases in the site
lifecycle (pre-site, site, post-site, site-deploy).  Then they
shouldn't execute unless you pass through those phases, which won't
happen in a normal build using the default lifecycle (compile, test,
install, deploy).

-- 
Wendy

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



Re: maven-compiler-plugin - where does it take compiler from?

2009-03-16 Thread Thor
Last time I checked, the maven compiler plugin uses the 1.4 source level.
In my case, I use Java 5, so my source level it's 1.5

You tell the plugin to use that source level on it's configuration options:

Here's a pom snippet:

maven-compiler-plugin

  1.5
  1.5

  

I you wish to guarantee the same exact jdk version for all your developers,
you should try the enforcer plugin.

On Fri, Mar 13, 2009 at 6:09 AM, tjunak  wrote:

>
> Hello,
>
> I've got some questions about maven-compiler-plugin regarding compiler. It
> seems
> it is not clarified well on documentation - please help me with those
> questions as I think
> they seem important.
>
> I would like to be able to know what compiler  version is used how to
> change
> it in case sources
> need different version. I know from the (maven-compiler-plugin)
> documentation that there is some builtin compiler in maven-compiler-plugin?
>
> What is the version ?
> Does it change every time new release of JDK ?
> How to check what is the current default version of the compiler ?
>
> There is often a need to compile sources with a specific version of Java
> compiler then how can I specify a compiler version ?
>
> For example in my case is that I need to use: jdk1.6.0 u12
>
> How can I do it ?
> Should I install this JDK on my machine or it exist somwhere packaged as an
> artifact(s) ?
>
>
> This is important as I would like to be sure that all developers will
> compile sources with correct version
> of Java compiler and there is always a consistent build.
>
>
>
> Thank you in advance!
> Tomasz Junak
>
> --
> View this message in context:
> http://www.nabble.com/maven-compiler-plugin---where-does-it-take-compiler-from--tp22495176p22495176.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
>
>


-- 
Open Jfree Software in an Open World...


any way to leverage site documentation goal as a profile activation?

2009-03-16 Thread Mick Knutson
I would like to have a specific profile activate when I run mvn *site*

Is this possible?


---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---


presentation material on maven?

2009-03-16 Thread Erik Putrycz

I'm thinking of doing a presentation of maven - IAM - archiva/nexus to a
software quality local association and I was wondering if there is any
existing open source presentation material available on these topics?

Erik.
--
http://blog.erikputrycz.net
-- 
View this message in context: 
http://www.nabble.com/presentation-material-on-maven--tp22541480p22541480.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



Using archetype:generate with internal repository

2009-03-16 Thread Qureshi,Shahzad [Ontario]
Hi all,

I am having difficulty using archetype:generate plugin where I want it
to use an archetype stored in our internal repository. I was able to do
so using archetype:create plugin. I've a settings.xml in .m2 directory
and that's where archetype:create reads the internal repository
information but archetype:generate doesn't seem to do that.

I tried using -DarchetypeRepository but I probably am not entering the
internal repository url properly. This is what I am typing and I am
getting Build Error because it can't find my archetype 

mvn archetype:generate -DarchetypeArtifactId=default-archetype
-DarchetypeGroupId=default-archetype -DarchetypeVersion=1.0
-DarchetypeRepository=http://serveraddress/Intranet/maven-repo

http://serveraddress/Intranet/maven-repo is where archetype-default
archetype is residing

Any ideas?

thanks

Shahzad Qureshi
Systems Analyst/Programmer
Applications Directorate, CIOB
Environment Canada
shahzad.qure...@ec.gc.ca



Re: Proguard plugin error! Help!

2009-03-16 Thread Wayne Fay
>  I have an issue when I'm proguarding.  Maven seems to run out of memory.
> I tried increasing the memory by doing this :
> setenv MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M

Does this plugin execute in-process or out of process? That's the
first question to answer.

If in-process, then the MAVEN_OPTS should help resolve it. Try bumping
that to a gb or more.

If its out of process, then MAVEN_OPTS will do nothing. Some plugins
allow you to configure memory usage in the plugin. If the Proguard
plugin runs out of process and does not allow you to configure memory
usage, you might want to file as request to have it added.

Wayne

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



How to use maven-release-plugin to build/release from a branch?

2009-03-16 Thread Eric B.
Hi,

How can I use the release:perform goal in the maven-release-plugin to build
my module located in a CVS branch?

I have tried mvn release:perform -DtagBase=B_2_0_0 hoping / expect that it
would pass the tagBase command along to CVS to checkout the sources from
that tag.  Unfortunately, it doesn't:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] 
[INFO] Building DAME Common Utilities
[INFO]task-segment: [release:perform] (aggregator-style)
[INFO] 
[INFO] [release:perform]
[INFO] Checking out the project to perform the release ...
[INFO] Executing: cmd.exe /X /C "cvs -z3 -f -d
:pserver:e...@cvs.local.ca:/dame5 -q checkout -d checkout eric-test"
[INFO] Working directory: E:\Eric\Desktop\temp\cvs\eric-test\target
[INFO] Executing goals 'deploy'...



Of course, since my pom.xml is only in my B_2_0_0 branch, when cvs does the
checkout, mvn is unable to find the pom.xml and fails accordingly.


I have configured my pom.xml as follows:
...
  
scm:cvs:pserver:e...@cvs.local.ca:/dame5:eric-test
newBranch2
  
...
   
...

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

  connection

  

  
   org.apache.maven.plugins
 maven-release-plugin
 2.0-beta-8
 
${project.scm.connection}
 
   

  


Am I missing something?  Is this somthing that is not supported by the 
maven-release-plugin?

Thanks,

Eric




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



Maven-scm-plugin define -Dmaven.scm.provider.cvs.implementation in pom?

2009-03-16 Thread Eric B.
Hi,

I've been trying to figure out if there is a way to specify the 
maven.scm.provider.cvs.implementation in the pom or in a profile, but 
haven't been able to find anything.  I know I can 
specify -Dmaven.scm.provider.cvs.implementation=cvs_native on the command 
line, but would like to do it from the pom.

I did find http://jira.codehaus.org/browse/SCM-303, but I am running scm 
2.0-beta-8 and I still cant seem to get it to work.

Does anyone have any ideas?

Thanks,

Eric




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



Fun with properties and version specification

2009-03-16 Thread Stephen Connolly
OK, so In am currenty performing a major refactoring of
versions-maven-plugin...

I'm looking for some feedback from anyone using this plugin

Specifically anyone using the update-properties goal...

I have just finished a bit of refactoring (on my branch not trunk) that
associates a property with *all* dependencies that specify their version
using the property value... so thus:


  foo
  bar-core
  ${bar-version}


  foo
  bar-logging
  ${bar-version}


  foo
  bar-extn
  ${bar-version}

...

  1.0


will result in an association with all three artifacts, and the property
will be updated to the highest *common* version... whereas at the moment it
just associates the first property (which could be at a higher versions than
the others)

Also, it now correctly associates plugins with the plugin repository, so
that if your pluginRepository has a smaller subset of bar-maven-plugin that
will also control what version gets used (assuming that the plugin version
is controlled by ${bar-version})

Now for the fun.

profiles

what should I do with the damn profiles

At present all properties will be updated irrespective of where they are...
but I'm thinking this might not be quite so good an idea...

the simplest solution for me is to update all properties in *active*
profiles, and leave inactive profiles alone... this would also have the side
effect of not picking up associations from the inactive profiles...

Has anyone any good objections to this approach? Or suggestions for
alternative approaches?


Re: archetypes location

2009-03-16 Thread ChadDavis
> http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html

It says that there is a remote catalog file at
http://repo1.maven.org/maven2/archetype-catalog.xml

This file isn't there.  Is this just supposed to mean that you may
have a remote catalog file in your repo, or is there supposed to be
one in the repo1 repo?

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



Re: Maven Meetup @ Sonatype

2009-03-16 Thread Jason van Zyl

Sorry the URL for the signup is:

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

On 16-Mar-09, at 10:02 AM, Jason van Zyl wrote:


Hi,

Just a note that if you're interested in coming out please let us  
know because we're on the threshold of needing to find another venue  
as I didn't expect 30 people to sign up on such short notice. If we  
get more people who want to come out and we know by the end of the  
day we can sort out a larger venue in time.


Thanks!

Jason

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

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

-- Jacques Ellul, The Technological Society



Thanks,

Jason

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

the course of true love never did run smooth ...

-- Shakespeare


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



Maven Meetup @ Sonatype

2009-03-16 Thread Jason van Zyl

Hi,

Just a note that if you're interested in coming out please let us know  
because we're on the threshold of needing to find another venue as I  
didn't expect 30 people to sign up on such short notice. If we get  
more people who want to come out and we know by the end of the day we  
can sort out a larger venue in time.


Thanks!

Jason

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

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

 -- Jacques Ellul, The Technological Society


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



Re: archetypes location

2009-03-16 Thread ChadDavis
> http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html

Sorry about that.  I actually "scoured" over the archetype docs on the
site, but hadn't checked out the specification link.  Now I know to
check the specification link -- ;)

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



Re: archetypes location

2009-03-16 Thread ChadDavis
But I can use a groupId, artifactId, and version to target an
archetype in the repository with out the aid of a catalog . . .
correct?

On Sat, Mar 14, 2009 at 6:12 PM, Wayne Fay  wrote:
>> Where are these located? In http://repo2.maven.org/maven2?
>
> http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-catalog.html
>
> 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: multimodule project does not include test-scope dependencies

2009-03-16 Thread aldana

sorry, wrong mailinglist (there is a m2eclipse one)


aldana wrote:
> 
> wrong inclusion of test scoped deps was told to be resolved
> (http://jira.codehaus.org/browse/MNGECLIPSE-493), but it still occurs in
> my multimodule project (compilation error of test sources). 
> 
> when changing scope in parent pom from test to default, everything
> compiles fine.
> 
> I am using m2eclipse 0.9.7. 
> 


-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/multimodule-project-does-not-include-test-scope-dependencies-tp22541200p22541205.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



multimodule project does not include test-scope dependencies

2009-03-16 Thread aldana

wrong inclusion of test scoped deps was told to be resolved
(http://jira.codehaus.org/browse/MNGECLIPSE-493), but it still occurs in my
multimodule project (compilation error of test sources). 

when changing scope in parent pom from test to default, everything compiles
fine.

I am using m2eclipse 0.9.7. 

-
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: 
http://www.nabble.com/multimodule-project-does-not-include-test-scope-dependencies-tp22541200p22541200.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



Proxy configuration and keystore

2009-03-16 Thread Robert Morse

Hello,
The documentation on setting up a Maven proxy ( http://maven.apache.org/guides/mini/guide-proxies.html 
 ) mentions that a keystore may be used in the future.
Is this available today?  I have a client that is concerned about  
keeping proxy credentials in the settings.xml file.


Thanks.


The human mind is an iterative processor, it never does anything right  
the first time.  What it does well is to make improvements on every  
iteration (deMarco)





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



Proguard plugin error! Help!

2009-03-16 Thread solo1970

Hello, 
  I have an issue when I'm proguarding.  Maven seems to run out of memory.
I tried increasing the memory by doing this :

setenv MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M

But I still get the following:

 [proguard] Reading library jar
[/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/wss4j-1.5.3.jar]
 [proguard] Reading library jar
[/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/wstx-asl-3.2.1.jar]
 [proguard] Reading library jar
[/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/xalan.jar]
 [proguard] Reading library jar
[/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/xbean.jar]
 [proguard] Note: duplicate definition of library class
[javax.xml.namespace.NamespaceContext]
 [proguard] Note: duplicate definition of library class
[javax.xml.namespace.QName]
 [proguard] Exception in thread "main" java.lang.OutOfMemoryError: Java heap
space
 [proguard] at java.lang.StringCoding.trim(StringCoding.java:74)
 [proguard] at java.lang.StringCoding.access$100(StringCoding.java:37)
 [proguard] at
java.lang.StringCoding$CharsetSD.decode(StringCoding.java:201)
 [proguard] at java.lang.StringCoding.decode(StringCoding.java:228)
 [proguard] at java.lang.String.(String.java:405)
 [proguard] at java.lang.String.(String.java:433)
 [proguard] at
proguard.classfile.constant.Utf8Constant.switchToStringRepresentation(Utf8Constant.java:158)
 [proguard] at
proguard.classfile.constant.Utf8Constant.getString(Utf8Constant.java:128)
 [proguard] at
proguard.classfile.io.LibraryClassReader.getString(LibraryClassReader.java:318)
 [proguard] at
proguard.classfile.io.LibraryClassReader.visitLibraryMember(LibraryClassReader.java:230)
 [proguard] at
proguard.classfile.io.LibraryClassReader.visitLibraryClass(LibraryClassReader.java:191)
 [proguard] at
proguard.classfile.LibraryClass.accept(LibraryClass.java:248)
 [proguard] at proguard.io.ClassReader.read(ClassReader.java:86)
 [proguard] at
proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
 [proguard] at proguard.io.ClassFilter.read(ClassFilter.java:70)
 [proguard] at proguard.io.JarReader.read(JarReader.java:67)
 [proguard] at
proguard.io.DirectoryPump.readFiles(DirectoryPump.java:76)
 [proguard] at
proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
 [proguard] at proguard.InputReader.readInput(InputReader.java:201)
 [proguard] at proguard.InputReader.readInput(InputReader.java:175)
 [proguard] at proguard.InputReader.readInput(InputReader.java:153)
 [proguard] at proguard.InputReader.execute(InputReader.java:101)
 [proguard] at proguard.ProGuard.readInput(ProGuard.java:195)
 [proguard] at proguard.ProGuard.execute(ProGuard.java:78)
 [proguard] at proguard.ProGuard.main(ProGuard.java:499)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Obfuscation failed (result=1)
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Obfuscation failed
(result=1)
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: Obfuscation
failed (result=1)
at
com.pyx4me.maven.proguard.ProGuardMojo.proguardMain(ProGuardMojo.java:623)
at
com.pyx4me.maven.proguard.ProGuardMojo.execute(ProGuardMojo.java:476)
at
org.

RE: Maven Multi-module Hierarchy & Archetype

2009-03-16 Thread Nord, James
http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-m
ulti-module-project.html 

> -Original Message-
> From: jtdeane [mailto:jde...@collaborative.ws] 
> Sent: 16 March 2009 15:16
> To: users@maven.apache.org
> Subject: Maven Multi-module Hierarchy & Archetype
> 
> 
> Is is possible to create a Maven Archetype that would create 
> a Multi-Module Hierarchy? And if it possible could someone 
> please point me to an example or existing documentation?
> --
> View this message in context: 
> http://www.nabble.com/Maven-Multi-module-Hierarchy---Archetype
> -tp22540377p22540377.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
> 
> 

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

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

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

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



Sorry about an email that was sent from my email

2009-03-16 Thread Savitha Rajiv

Hi Everyone,

There was some automated mail that went out to all contacts in my address book. 
I was unaware of it, till I got a bunch of undelivered emails. I am so sorry 
for any inconvenience this has caused you.

Thank you.
Savitha



  

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



Maven Multi-module Hierarchy & Archetype

2009-03-16 Thread jtdeane

Is is possible to create a Maven Archetype that would create a Multi-Module
Hierarchy? And if it possible could someone please point me to an example or
existing documentation?
-- 
View this message in context: 
http://www.nabble.com/Maven-Multi-module-Hierarchy---Archetype-tp22540377p22540377.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven adding wrong jar files in war lib

2009-03-16 Thread agent59624285

Yes, I am using mvn clean package

To find out where the asm dependency was coming from. I changed the scope of
all dependency entries to provided, but I am still seeing all the jar files
(except serverlet-api) in side the lib folder in the war file.

If provided  is added to dependency, shouldn't it be not
added in the lib folder of the war file when you do "mvn clean package"? Do
you need a separate plugin for it to work?

Thanks

-- 
View this message in context: 
http://www.nabble.com/maven-adding-wrong-jar-files-in-war-lib-tp22500900p22540300.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: Disable unit tests only in release:perform as it is already done in :prepare?

2009-03-16 Thread Stephen Connolly
have a look at the release profile... but beware the old adage:

less haste, more speed

i.e. In trying to make this short-cut you could make much more work for you
than the short cut removes...

This is akin to those fools who try to only run the unit tests once when
they are using a code coverage tool and miss the tests that are broken when
instrumented to measure code coverage.

Depending on what your preparation goals are you could have issues.

I'd favour aborted releases than risking bad releases (i.e. change your
preparation goals from "clean verify" to "clean") as at least that way
you've tagged the release and the tests are being run on the code checked
out from the tag...

With your approach you could have code that passed the preparation goals but
when checked out from the tag does not build because of SCM issues.

With the short preparation goals, only artifacts that can build from the tag
will be deployed to your remote repository... (but maybe not all of the tag
will build)

-Stephen

2009/3/16 Christian Hammers 

> Hello
>
> I've learned to do "mvn release:prepare && mvn release:perform" to do a
> release.
>
> Apparently though both steps perform a "mvn test" which takes quite a
> time in one of my projects so I would like to eleminate the redundant
> second test pass.
>
> Is it possible to do something like "mvn release" which automatically does
> both steps in a more clever way or is there something I can write in the
> pom.xml to disable the unit testing only in the release:perform but of
> course
> not in the release:prepare stage?
>
> bye,
>
> -christian-
>
> --
> NETCOLOGNE Gesellschaft für Telekommunikation mbH
> Am Coloneum 9 | 50829 Köln
> Tel: 0221 -8711 | Fax: 0221 -78711
>
> www.netcologne.de
>
> Geschäftsführer:
> Werner Hanf
> Karl-Heinz Zankel
> HRG 25580, AG Köln
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Install Artifacts During Build

2009-03-16 Thread Hoover, William
Is there a proper way to install an artifact during the build process
based upon a path? There is a proprietary set of artifacts that I would
like to define in the a parent pom that will install the artifacts based
upon a path defined in the child project pom. 


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



Disable unit tests only in release:perform as it is already done in :prepare?

2009-03-16 Thread Christian Hammers
Hello

I've learned to do "mvn release:prepare && mvn release:perform" to do a
release.

Apparently though both steps perform a "mvn test" which takes quite a
time in one of my projects so I would like to eleminate the redundant
second test pass. 

Is it possible to do something like "mvn release" which automatically does
both steps in a more clever way or is there something I can write in the 
pom.xml to disable the unit testing only in the release:perform but of course
not in the release:prepare stage?

bye,

-christian-

-- 
NETCOLOGNE Gesellschaft für Telekommunikation mbH
Am Coloneum 9 | 50829 Köln
Tel: 0221 -8711 | Fax: 0221 -78711 

www.netcologne.de

Geschäftsführer:
Werner Hanf
Karl-Heinz Zankel
HRG 25580, AG Köln

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



RE: Install artifact during build

2009-03-16 Thread Will Hoover
Yeah, I want to install the jars into a user's local repository based upon a
path provided in a child projects pom (if not performed in a previous build)


-Original Message-
From: Wendy Smoak [mailto:wsm...@gmail.com] 
Sent: Monday, March 16, 2009 10:39 AM
To: Maven Users List
Subject: Re: Install artifact during build

On Mon, Mar 16, 2009 at 7:31 AM, Will Hoover  wrote:
> Is there a way to install an artifact based upon a path defined in 
> pom? I need to have a parent pom that installs a set of proprietary 
> artifacts based upon a path provided by a child pom...  Is there a way to
do this?

Are you trying to install additional jars into your local Maven repository,
or something else?

--
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: Install artifact during build

2009-03-16 Thread Wendy Smoak
On Mon, Mar 16, 2009 at 7:31 AM, Will Hoover  wrote:
> Is there a way to install an artifact based upon a path defined in pom? I
> need to have a parent pom that installs a set of proprietary artifacts based
> upon a path provided by a child pom...  Is there a way to do this?

Are you trying to install additional jars into your local Maven
repository, or something else?

-- 
Wendy

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



Install artifact during build

2009-03-16 Thread Will Hoover
Is there a way to install an artifact based upon a path defined in pom? I
need to have a parent pom that installs a set of proprietary artifacts based
upon a path provided by a child pom...  Is there a way to do this?


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



Re: problem with two component with the same artifactId,version in different group when copy copy-dependencies

2009-03-16 Thread Isaac
On Mon, Mar 16, 2009 at 9:59 PM, Isaac  wrote:

>
>
> On Mon, Mar 16, 2009 at 8:18 PM, Geoffrey Wiseman <
> geoffrey.wise...@gmail.com> wrote:
>
>> On Mon, Mar 16, 2009 at 6:48 AM, Isaac  wrote:
>>
>> > i get a project with dependencies like this:
>> >
>> >
>> >
>> >groupA
>> >artifactC
>> >1.0.0-SNAPSHOT
>> >
>> >
>> >groupA
>> >artifactC
>> >1.0.0-SNAPSHOT
>> >
>> >
>> >
>>
>> I assume you meant to use two different group ids?
>>
>>  - Geoffrey
>> --
>> Geoffrey Wiseman
>> http://www.geoffreywiseman.ca/
>>
>
>
> yes, two different group ids, but their artifact id are the same. so i get
> only one jar,but i want two.
>


 i made a mistake in the sample code, sorry about that.
groupA and groupB not both groupA


*groupA*
artifactC
1.0.0-SNAPSHOT


*groupB*
artifactC
1.0.0-SNAPSHOT




Re: problem with two component with the same artifactId,version in different group when copy copy-dependencies

2009-03-16 Thread Isaac
On Mon, Mar 16, 2009 at 8:18 PM, Geoffrey Wiseman <
geoffrey.wise...@gmail.com> wrote:

> On Mon, Mar 16, 2009 at 6:48 AM, Isaac  wrote:
>
> > i get a project with dependencies like this:
> >
> >
> >
> >groupA
> >artifactC
> >1.0.0-SNAPSHOT
> >
> >
> >groupA
> >artifactC
> >1.0.0-SNAPSHOT
> >
> >
> >
>
> I assume you meant to use two different group ids?
>
>  - Geoffrey
> --
> Geoffrey Wiseman
> http://www.geoffreywiseman.ca/
>


yes, two different group ids, but their artifact id are the same. so i get
only one jar,but i want two.


Re: Building three artifacts from the same pom

2009-03-16 Thread Stephen Connolly
You'd probably be better off with 4 modules...

module #1 is all the contents of the jar without persistence.xml

module#2-#4 just have the persistence.xml, they use
dependency:unpack-dependencies to unpack module#1 into target/classes

2009/3/16 Aaron Shettleroe 

> I'm trying to build 3 artifacts from the same POM.  The project is
> building an EJB 3.0 jar file and I have 3 different persistence.xml
> files, one per database vendor.  I'd like all 3 jars to be built when I
> do a "mvn package."
>
> I've looked into using the maven-jar-plugin to accomplish this, but I
> can't seem to get the persistence.xml file I need into the JAR.  I tried
> using the include tag but to no avail.  It doesn't "see" files outside
> of src/main/java and src/main/resources.
>
> I have the following structure:
> src/main/persistence/mysql/persistence.xml
> src/main/persistence/oracle/persistence.xml
> src/main/persistence/sqlserver/persistence.xml
>
> How do I get the right persistence.xml into the right JAR?  Again I want
> all three JARs produced at package phase.
>
> Thanks,
> Aaron
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Cobertua error when running site on DBUnit Test

2009-03-16 Thread Mick Knutson
I am still trying to understand how to track down this issue. Any tips on
debugging through this would be appreciated!

So, further investigation, shows that when I just run by build with check
limits in place, I get some expected failures

*[ERROR] com.baselogic.domain.IdentifiedObject failed check. Line coverage
rate of 57.1% is below 80.0%
com.fedex.ground.configuration.DataSourceFactory failed check. Branch
coverage rate of 0.0% is below 40.0%
com.baselogic.dao.jpa.BaseDaoJpaImpl failed check. Branch coverage rate of
50.0% is below 90.0%
com.baselogic.dao.jpa.BaseDaoJpaImpl failed check. Line coverage rate of
66.6% is below 80.0%
com.baselogic.domain.UserNotFoundException failed check. Line coverage rate
of 50.0% is below 80.0%
com.fedex.ground.placeholder.service.impl.PlaceholderServiceImpl failed
check. Branch coverage rate of 0.0% is below 40.
0%
*

So, Cobertura is actually working when I just run my "mvn clean install"
with check on. But, when i try to get my report through "mvn site", I still
get this error that it can not fine the *IdentifiedObject*. Even though you
can see above, the class is there, and has 51% code coverage.

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Mon, Mar 16, 2009 at 8:48 AM, Mick Knutson  wrote:

> *When I run mvn site -e -X I get the following error that Cobertura can
> not find a class which exists in two places*
>
> *[myproject] DEBUG [main] Ejb3Configuration.configure(158) | Creating
> Factory: ApplicationEntityManager*
> *[INFO]
> *
> *[ERROR] FATAL ERROR*
> *[INFO]
> *
> *[INFO] [PersistenceUnit: ApplicationEntityManager] class or package not
> found*
> *com.baselogic.domain.IdentifiedObject*
> *[INFO]
> *
> *[DEBUG] Trace*
> *javax.persistence.PersistenceException: [PersistenceUnit:
> ApplicationEntityManager] class or package not found*
> *at
> org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1093)
> *
> *at
> org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:871)
> *
> *at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:758)*
> *at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:191)*
> *at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)*
> *at
> org.codehaus.mojo.hibernate3.configuration.JPAComponentConfiguration.createConfiguration(JPAComponentConfiguration.java:28)
> *
> *at
> org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:51)
> *
> *at
> org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:87)
> *
> *at
> org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:152)
> *
> *at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:925)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:768)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:550)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
> *
> *at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
> *
> *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:301)*
> *at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
> *at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> *
> 

Building three artifacts from the same pom

2009-03-16 Thread Aaron Shettleroe
I'm trying to build 3 artifacts from the same POM.  The project is
building an EJB 3.0 jar file and I have 3 different persistence.xml
files, one per database vendor.  I'd like all 3 jars to be built when I
do a "mvn package."

I've looked into using the maven-jar-plugin to accomplish this, but I
can't seem to get the persistence.xml file I need into the JAR.  I tried
using the include tag but to no avail.  It doesn't "see" files outside
of src/main/java and src/main/resources.

I have the following structure:
src/main/persistence/mysql/persistence.xml
src/main/persistence/oracle/persistence.xml
src/main/persistence/sqlserver/persistence.xml

How do I get the right persistence.xml into the right JAR?  Again I want
all three JARs produced at package phase.

Thanks,
Aaron

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



Re: problem with two component with the same artifactId,version in different group when copy copy-dependencies

2009-03-16 Thread Geoffrey Wiseman
On Mon, Mar 16, 2009 at 6:48 AM, Isaac  wrote:

> i get a project with dependencies like this:
>
>
>
>groupA
>artifactC
>1.0.0-SNAPSHOT
>
>
>groupA
>artifactC
>1.0.0-SNAPSHOT
>
>
>

I assume you meant to use two different group ids?

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


Maven error with multiple executions in maven-deploy-plugin

2009-03-16 Thread Jürgen Rose
Hi,

I found this nice recipe
http://ionixx.wordpress.com/2008/03/10/running-specified-ant-tasks-within-maven2-outside-the-lifecycle/
and want to use it to deploy some 3rd-party files in our repository

If I do this for one file it works exactly as intended



deploy-libs

deploy:deploy-file


org.apache.maven.plugins
maven-deploy-plugin
2.4

deploy-file


openscada-external
${openscada.distrib.repository}
../openscada_opc_dcom/lib/j-interop.jar

../openscada_opc_dcom/lib/j-interop.pom







If I use an execution block with multiple executions, it doesn't work.
Is this a bug, or is this intended behavior?



deploy-libs

deploy:deploy-file


org.apache.maven.plugins
maven-deploy-plugin
2.4

openscada-external
${openscada.distrib.repository}



j-interop

deploy-file



../openscada_opc_dcom/lib/j-interop.jar

../openscada_opc_dcom/lib/j-interop.pom



j-interopdeps

deploy-file



../openscada_opc_dcom/lib/j-interopdeps.jar

../openscada_opc_dcom/lib/j-interopdeps.pom



jcifs

deploy-file



../openscada_opc_dcom/lib/jcifs-1.2.9.jar

../openscada_opc_dcom/lib/jcifs-1.2.9.pom









The error I get is:

[ERROR] BUILD ERROR
[INFO] 
[INFO] One or more required plugin parameters are invalid/missing for
'deploy:deploy-file'

[0] Inside the definition for plugin 'maven-deploy-plugin' specify the
following:


  ...
  VALUE


-OR-

on the command line, specify: '-Dfile=VALUE'

[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason:
Invalid or missing parameters: [Mojo parameter [name: 'file'; alias:
'null']] for mojo:
org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:587)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
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:597)
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.PluginParameterException: Error
configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason:
Invalid or missing parameters: [Mojo parameter [name: 'file'; alias:
'null']] for mojo:
org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file
at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(DefaultPluginManager.java:1042)
at 
org.apache.maven

problem with two component with the same artifactId,version in different group when copy copy-dependencies

2009-03-16 Thread Isaac
i get a project with dependencies like this:



groupA
artifactC
1.0.0-SNAPSHOT


groupA
artifactC
1.0.0-SNAPSHOT



when i am runnging *mvn
org.apache.maven.plugins:maven-dependency-plugin:2.1:copy-dependencies, *the
dependies are named with *artifactId-version.jar*.
so, one component is lost without any promptions.

Is there any ways two keep both artifactC? or rename jars like *
groupId-artifactId-version.jar*


Re: Multiple module maven project questions

2009-03-16 Thread Stephane Nicoll
See responses inline.

On Sun, Mar 15, 2009 at 12:24 PM, Thai Dang Vu  wrote:

> This is the directory structure of my project
>
>
[...]


>
> I have some questions here:
>
> 1. How to tell the maven-ear-plugin to use my application.xml? And where in
> the ear directory should I place my own application.xml?


The default directory for ear sources is src/main/application. If you put
your application.xml file in src/main/application/META-INF/application.xml,
Maven will pick it up automatically. Most users let maven generates it for
you. The ear plugin does that by default.



>
>
> 2. Because of the dependency on the ejb, I have to run mvn install in the
> ejb directory before I can run mvn compiler:compile in the war directory. Is
> there any way (like target dependencies in ant) to tell maven to compile /
> install all modules needed before the mvn compiler:compile is executed?


Well, you invoke mvn package at the root level and it will do that for you.


>
>
> 3. In my application.xml, beside the ejb and war modules, I need to add one
> more module like this:
>
> jboss-seam-2.1.1.GA.jar
>
> The jboss seam jar file can be found with a . What should I do
> to tell maven to include that file into the root of the ear file it creates
> when I run mvn ear:ear in the ear directory?


Make it a dependency :) If you need something, it needs to be a dependency.
You miss the ejb in the jboss-seam dep.


>
>
> 4. If I don't want to create the seam-glassfish-ear-1.0-SNAPSHOT.ear file,
> but a seam-glassfish-ear-1.0-SNAPSHOT_ear directory in which the ejb module
> is unpacked in the seam-glassfish-ejb-1.0-SNAPSHOT_jar directory, the war
> module is unpacked in the seam-glassfish-war-1.0-SNAPSHOT_war directory and
> the jboss seam library above is unpacked in the jboss-seam-2.1.1.GA_jar
> directory, what should I do?


Read the doc a bit more. To explode the modules, there's an option for that
http://maven.apache.org/plugins/maven-ear-plugin/examples/unpacking-a-module.html

For the EAR itself there's a feature request (
http://jira.codehaus.org/browse/MEAR-51) but you can have a direct solution
with the dependency plugin (unpack goal)


>
>
> I read the http://maven.apache.org/plugins/maven-ear-plugin/ but found no
> shine to my questions (maybe there are, but not apparent to a maven newbie
> like me).


Question 1,2,3 are not maven ear plugin's question but Maven questions. You
better have to read more tutorial on Maven itself first

HTH,

S.


>
> Thank you.
>
>
>
>




-- 
Large Systems Suck: This rule is 100% transitive. If you build one, you
suck" -- S.Yegge


Re: Multiple module maven project questions

2009-03-16 Thread Martin Höller
Hi!

On 15 Mar 2009, Thai Dang Vu wrote:

[...]
> I have some questions here:
> 
> 1. How to tell the maven-ear-plugin to use my application.xml? And where in 
> the ear directory should I place my own application.xml?

The m-ear-p is able to autogenerate an application.xml for you. Maybe you
should try to use this feature. See [1] for details.

If auto-generation doesn't fit your needs, I'd put my application.xml in
src/main/resources/META-INF/application.xml of my ear module. IMHO, this
should work.

> 2. Because of the dependency on the ejb, I have to run mvn install in the ejb 
> directory before I can run mvn compiler:compile in the war directory.

Your dependencies are incorrect! You missed they ejb in your
war dependency declaration.

> 3. In my application.xml, beside the ejb and war modules, I need to add one 
> more module like this:
> 
> jboss-seam-2.1.1.GA.jar
> 
> The jboss seam jar file can be found with a . What should I do to 
> tell maven to include that file into the root of the ear file it creates when 
> I run mvn ear:ear in the ear directory?

Not 100% sure what you want to achieve. Did you try specifying the seam
artifact as a normal dependency (with scope runtime) of your EAR?

hth,
- martin

[1] http://maven.apache.org/plugins/maven-ear-plugin/


signature.asc
Description: PGP signature


Re: Any java ee 5 directory structure available?

2009-03-16 Thread Stephane Nicoll
You could start with this
http://maven.apache.org/plugins/maven-archetype-plugin/examples/j2ee-simple.html

Note that you don't have to explicitly call mvn ear:ear to package an ear
file. The ear project will have an 'ear' packaging type which means that
Maven will call the right things with the standard goal (i.e. mvn package in
that ear project will actually package the ear file)

S.

On Sun, Mar 15, 2009 at 10:04 AM, Thai Dang Vu  wrote:

> Is there any java ee 5 directory structure with maven2 support available on
> the Internet? I'm looking to something like this:
>
> project-name
>|-- ear
>||-- pom.xml
>|-- ejb
>||-- src
>||-- pom.xml
>|-- war
>||-- src
>||-- pom.xml
>|-- pom.xml
>
> with which I can go to the ear directory and type mvn ear:ear and have an
> ear file.
> I'm quite new to maven, so it'll take me a while to make one of my own.
>
>
>
>




-- 
Large Systems Suck: This rule is 100% transitive. If you build one, you
suck" -- S.Yegge


Re: changelog plugin SVN issue

2009-03-16 Thread Reinhard Nägele
Why did you configure connection and developerConnection differently? I 
guess they should both point to the trunk. The changelog plugin by 
default uses "connection."


Reinhard

huser schrieb:

Any ideas anyone ? The code is under "trunk". How/Where can I change the path
for Maven to look at the correct path ?

Thanks,




huser wrote:
  

Hi,

I added the ChangeLog Plugin in Maven2. But I get the following error:

[INFO] Executing: svn --non-interactive log -v -r "{2009-02-11 16:57:46
+}:{
2009-03-14 16:57:46 +}" https://my-co-srvr/ABC_tools/ABC-tool
s-src/ABC-maven/jarred-test-wsdls
[INFO] Working directory:
C:\ABC_tools\ABC-tools-src\ABC-maven\trunk\jarred-test
-wsdls
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn:
'/ABC_tools/!svn/bc/39/ABC-tools-src/ABC-maven/jarred-test-wsdls' p
ath not found

This is because the correct paths need to be  svn --non-interactive log -v
-r "{2009-02-11 16:57:46 +}:{
2009-03-14 16:57:46 +}" https://my-co-srvr/ABC_tools/ABC-tool
s-src/ABC-maven/trunk/jarred-test-wsdls

How can I pass the branch name as trunk ? My POM.xml looks like this:



scm:svn:https://my-co-srvr/ABC_tools/ABC-tools-src/ABC-maven



scm:svn:https://my-co-srvr/atx_tools/ABC-tools-src/ABC-maven/trunk

HEAD
https://my-co-srvr/ABC_tools/ABC-tools-src/ABC-maven



  org.apache.maven.scm
  maven-scm-provider-svnexe
  1.1




1.0-beta-4
  



org.apache.maven.plugins
maven-changelog-plugin







  



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