Re: Why doesn't my index.html get generated when generating my site?

2007-04-27 Thread Eric Redmond

I don't understand your problem - it looks like it is working... you haven't
added any files and the default reports are generating. And?

Eric

On 4/27/07, Ian Rowlands <[EMAIL PROTECTED]> wrote:


I'm using Maven 2.0.5.  My sites have no customisation (which I won't do
until I get this to work).  I am getting the following generated:
Apart from subdirectories, I get:
checkstyle.html (plus checkstyle.rss)
cpd.html and cpd.xml
dependencies.html
integration.html
issue-tracking.html
jdepend-report.html
pmd.html and pmd.xml
project-info.html
project-reports.html
surefire-report.html

I'm using version 2.0-beta-5 of the web site plugin.

Any suggestions on how to get this to work?

Thanks,

Ian





--
Eric Redmond
http://www.sonatype.com


Why doesn't my index.html get generated when generating my site?

2007-04-27 Thread Ian Rowlands
I'm using Maven 2.0.5.  My sites have no customisation (which I won't do
until I get this to work).  I am getting the following generated:
Apart from subdirectories, I get:
checkstyle.html (plus checkstyle.rss)
cpd.html and cpd.xml
dependencies.html
integration.html
issue-tracking.html
jdepend-report.html
pmd.html and pmd.xml
project-info.html
project-reports.html
surefire-report.html

I'm using version 2.0-beta-5 of the web site plugin.

Any suggestions on how to get this to work?

Thanks,

Ian


Re: war plugin: making optinal ?

2007-04-27 Thread Gregory Kick

On 4/28/07, Dan Tran <[EMAIL PROTECTED]> wrote:

is it a bug?


nah, i think that the behavior for  is correct, but since it
was the only option for slimming down wars with the desired manifest,
it was being used in situations that probably didn't make sense.  the
only way that you could argue that this is a problem with the war
plugin is if you thought that there should be a way to differentiate
provided by the ear and provided by the container.

the feature for the ear plugin would definitely be a rfe.  it
certainly works now, but it'd be nice if it cleaned up your libs.



On 4/27/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote:
>
> On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
> > On 4/27/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote:
> > > On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
> > > > I think that instead of using optional, you have been meaning to use
> > > > provided.  This would indicate that the jars are
> > > > necessary, but won't include them in your war because it is assumed
> > > > that it will be provided by the container, or in your case, the ear.
> > >
> > > Nope. Cf last part of
> > >
> 
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html
> >
> > Ouch, that's a little disconcerting.  Here's what the pom reference
> > has to say about optional:
> >
> > "optional: Marks optional a dependency when this project itself is a
> > dependency. Confused? For example, imagine a project A that depends
> > upon project B to compile a portion of code that may not be used at
> > runtime, then we may have no need for project B for all project."
> >
> > Since it sounds like none of your dependencies are optional in either
> > the english or maven senses of the word, I don't see the justification
> > for the way the war manifests are configured.What you've done
> > makes sense in terms of getting the desired effect, but not so much in
> > terms of the meaning of the metadata.
>
> agreed
>
> > What I'd rather see is an option in the ear plugin for removing
> > artifacts from dependencies that are already present in APP-INF/lib.
> > That way, you can remove the optional tag completely, still have your
> > manifests the way you want, be able to test and still have your lean
> > ears.
>
> That would be better as I would have to make a single change to my
> project (the optimization could almost be on by default in a next
> major release of the plugin).
>
> The solution should also update the wars MANIFEST files.
>
> Cheers,
>
> Jerome
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




--
Gregory Kick
http://kickstyle.net/

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



Re: Maven tips

2007-04-27 Thread Tim Kettler
Hi,

I think you've  got the basics right.

1.
You would create one maven project per artifact you are building and
organize them in a tree-like or flat directory structure. 

2.
You then would aggregate the build of this subprojects/modules in a
top-level virtual project with packaging type 'pom' and a 
section where you list the subprojects.

3.
In your subprojects you can define dependencies to other subprojects in
the  sections of the subprojects poms just as you would
for other dependencies.


A good starting point for learning maven is (of course) the 
'Getting Started Guide' [1]. The free maven book [2] from Mergere is also
worth reading. And there was an announcement [3] of another free book just
a few days ago.

HTH
-Tim

[1] http://maven.apache.org/guides/getting-started/index.html
[2] http://library.mergere.com/
[3] 
http://www.nabble.com/A-new-book-for-users%3A-%22Maven%3A-The-Definitive-Guide%22-tf3648569s177.html#a10191220

Am Freitag, den 27.04.2007, 18:24 -0300 schrieb Marcos:
> Hi all,
> 
> I've just started with Maven today and I must admit that I didn't read 
> all Maven's documentation yet ;-(
> But I'm asking just for a tip or maybe a hyperlink I missed out where I 
> could get such information 
> 
> I have the following scenario.:
>   1.) 11 projects developed in Netbeans 5.5
>   2.) Each project has its own ant build file (IDE generated build file) 
> and some of them have customizations such as custom ant tasks.
>   3.) Each project has its own dependencies (.jar files) and these 
> dependencies are redundant between some of them.
>   4.) Each project has JUnit tests.
>   5.) All of these projects together form "one application" (without any 
> gui at all).
>  
> As far as I read ... Maven is the right tool to integrated all of these 
> projects smoothly. But I'm a little confused because I didn't understand 
> some Maven's concepts  ;-(
>   Question 1. Are these projects recognized as "modules" in a maven's 
> pom.xml file ?
>   Question 2. If the above question is true  I think the only thing 
> I need to do is to create some sort of "link" to this "module" inside of 
> pom.xml ... Am I right ? Where can I find more info about that ?
> 
> Thank you very much !!!
> (My apologies for these "basic" questions)
> 


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



Re: optional dependencies got pull into my web app?

2007-04-27 Thread Dan Tran

My bad, it must be Friday!!! how did i missed read that in the pom? :(

Thanks for pointing it out.

-D

On 4/27/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote:


On Fri, 2007-04-27 at 16:04 -0700, Dan Tran wrote:
> Hello,  my webapp depends on commons-logging-1.1 which has a punch of
> optional jars and they are pull into my WEB-INF/lib directory
> is it a expected behavior, the optional depdendency seems to disagree
with
> that

According to the commons-logging POM 1.1 these dependencies are not
optional. To get rid of them you can use exclusions:


commons-logging
commons-logging
1.1

   
 avalon-framework
 avalon-framework
   
   
 javax.servlet
 servlet-api
   
   
 log4j
 log4j
   
   
 logkit
 logkit
   




- Henry



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




Re: optional dependencies got pull into my web app?

2007-04-27 Thread Heinrich Nirschl
On Fri, 2007-04-27 at 16:04 -0700, Dan Tran wrote:
> Hello,  my webapp depends on commons-logging-1.1 which has a punch of
> optional jars and they are pull into my WEB-INF/lib directory
> is it a expected behavior, the optional depdendency seems to disagree with
> that

According to the commons-logging POM 1.1 these dependencies are not
optional. To get rid of them you can use exclusions:


  commons-logging
  commons-logging
  1.1
  

  avalon-framework
  avalon-framework


  javax.servlet
  servlet-api


  log4j
  log4j


  logkit
  logkit

  



- Henry



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



Re: Problem with org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT

2007-04-27 Thread Stuart Guthrie

Danke Thorsten, very helpful.

ATB

Stuart

On 4/28/07, Thorsten Heit <[EMAIL PROTECTED]> wrote:

Hi Stuart,

> When I run mvn integration-test, I get this in the console:
>
>
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-plugins
> Version: 2-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>   org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT
>
> >from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   mortbay.repo (http://www.mortbay.org/maven2/snapshot),
>   codehaus.snapshots (http://snapshots.repository.codehaus.org/),
>   tapestry.javaforge (http://howardlewisship.com/repository)
>
>
> I googled it an several other links, it seems people say this might be
> outdated or something. Is there a work-around or is this a common
> problem? Where should I look?

This file should be available at the following snapshot repository:
http://people.apache.org/maven-snapshot-repository/


HTH

Thorsten

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





--
Director
Polonious Pty Ltd
(m) 0403 470 123
Polonious Support Numbers:
Sydney: 61-2-9007-9842
Chicago: 1-312-212-3952

This above all: to thine ownself be true,
And it must follow, as the night the day,
Thou canst not then be false to any man.

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



Re: war plugin: making optinal ?

2007-04-27 Thread Dan Tran

is it a bug?

On 4/27/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote:


On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
> On 4/27/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote:
> > On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
> > > I think that instead of using optional, you have been meaning to use
> > > provided.  This would indicate that the jars are
> > > necessary, but won't include them in your war because it is assumed
> > > that it will be provided by the container, or in your case, the ear.
> >
> > Nope. Cf last part of
> >
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html
>
> Ouch, that's a little disconcerting.  Here's what the pom reference
> has to say about optional:
>
> "optional: Marks optional a dependency when this project itself is a
> dependency. Confused? For example, imagine a project A that depends
> upon project B to compile a portion of code that may not be used at
> runtime, then we may have no need for project B for all project."
>
> Since it sounds like none of your dependencies are optional in either
> the english or maven senses of the word, I don't see the justification
> for the way the war manifests are configured.What you've done
> makes sense in terms of getting the desired effect, but not so much in
> terms of the meaning of the metadata.

agreed

> What I'd rather see is an option in the ear plugin for removing
> artifacts from dependencies that are already present in APP-INF/lib.
> That way, you can remove the optional tag completely, still have your
> manifests the way you want, be able to test and still have your lean
> ears.

That would be better as I would have to make a single change to my
project (the optimization could almost be on by default in a next
major release of the plugin).

The solution should also update the wars MANIFEST files.

Cheers,

Jerome

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




optional dependencies got pull into my web app?

2007-04-27 Thread Dan Tran

Hello,  my webapp depends on commons-logging-1.1 which has a punch of
optional jars and they are pull into my WEB-INF/lib directory
is it a expected behavior, the optional depdendency seems to disagree with
that


here is a pom to produce a the issue, makesure to create a empty
src/main/webapp/WEB-INF/web.xml file before run mvn package


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


 com.mycom
 mycom-webapp
 1.0-SNAPSHOT

 mycom-webapp

 war


 

   
 commons-logging
 commons-logging
 1.1
   

 





I am using maven-2.0.6


Re: Maven surefire question

2007-04-27 Thread Barrie Treloar

On 4/28/07, Si'mon <[EMAIL PROTECTED]> wrote:


When a JUnit test fails I would like Maven:surefire to exit and not run
additional tests.  Anyone know how to do this?  It keeps going for some time
and then stops but I want it to come to a screeching halt right then.


As Wayne suggests this sounds reasonable, but what is your reasoning behind it?

It's most likely because running surefire-report:report re-runs the
lifecycle again, which is damn annoying.  There is a patch which
creates surefire-report:report-only which only generates the reports,
you must have already run surefire before.

I'm looking at putting a release of surefire-report together soonish
so that this patch can get included, at the moment you have to install
it locally yourself.

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



Re: Coping w/ 3rd party libs ... jar plus dependencies.

2007-04-27 Thread Danny MacMillan

Hervé BOUTEMY wrote:
to write the pom, please read 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
in your wase, it will only be used for the dependencies declaration, not to 
build the jar


once the pom is written, to deploy the existing jar with its pom, please read 
http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html


and voila
:)


Thanks ... I had read that first link before but was still confused 
since I didn't think you could have just dependencies without any Java 
build stuff in the POM.  But I figured it out by looking at the POM 
files for artifacts already in the repository and seeing how they handle 
dependencies.


The second link was very helpful :)

--
Danny MacMillan

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



Re: Maven surefire question

2007-04-27 Thread Wayne Fay

Sounds like a reasonable request, but I don't believe this is
currently available in Surefire. So you'll need to file a JIRA
Enhancement Request for a new "failFast" configuration parameter (or
something along those lines) if you would like to request the Maven
Dev team adds this feature to the Surefire plugin.

You can also hit Ctrl-X to break execution of Maven at any time during
the build.

Wayne

On 4/27/07, Si'mon <[EMAIL PROTECTED]> wrote:


When a JUnit test fails I would like Maven:surefire to exit and not run
additional tests.  Anyone know how to do this?  It keeps going for some time
and then stops but I want it to come to a screeching halt right then.

thanks

Si'mon
--
View this message in context: 
http://www.nabble.com/Maven-surefire-question-tf3660069s177.html#a10227127
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Maven surefire question

2007-04-27 Thread Si'mon

When a JUnit test fails I would like Maven:surefire to exit and not run
additional tests.  Anyone know how to do this?  It keeps going for some time
and then stops but I want it to come to a screeching halt right then.

thanks

Si'mon
-- 
View this message in context: 
http://www.nabble.com/Maven-surefire-question-tf3660069s177.html#a10227127
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to access a file that's inside an executable jar assembly, programatically

2007-04-27 Thread Ed Young

Thanks guys! That did the trick.

On 4/27/07, Wayne Fay <[EMAIL PROTECTED]> wrote:

John Casey sent this method a while ago that might be useful:

private File getFile( String resourceName )
{
   ClassLoader cloader = Thread.currentThread().getContextClassLoader();
   URL resource = cloader.getResource( resourceName );

   if ( resource == null )
   {
   throw new IllegalArgumentException( "Could not get resource: " +
resourceName );
   }

   return new File( resource.getPath() );
}

Wayne

On 4/27/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote:
> On 4/27/07, Ed Young <[EMAIL PROTECTED]> wrote:
> > I'd like to display the license information contained in a file that
> > has been assembled into an executable jar file assembly when the user
> > passes a command line parameter.
> >
> > I'm not sure if this is a maven issue, really, but the executable
> > assembly was created using the maven assembly plugin.
>
> Indeed not a maven issue. You have to load it as a resource. This link
> should help:
> 
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String)
>
> - Henry
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Ed

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



Maven tips

2007-04-27 Thread Marcos

Hi all,

I've just started with Maven today and I must admit that I didn't read 
all Maven's documentation yet ;-(
But I'm asking just for a tip or maybe a hyperlink I missed out where I 
could get such information 


I have the following scenario.:
 1.) 11 projects developed in Netbeans 5.5
 2.) Each project has its own ant build file (IDE generated build file) 
and some of them have customizations such as custom ant tasks.
 3.) Each project has its own dependencies (.jar files) and these 
dependencies are redundant between some of them.

 4.) Each project has JUnit tests.
 5.) All of these projects together form "one application" (without any 
gui at all).


As far as I read ... Maven is the right tool to integrated all of these 
projects smoothly. But I'm a little confused because I didn't understand 
some Maven's concepts  ;-(
 Question 1. Are these projects recognized as "modules" in a maven's 
pom.xml file ?
 Question 2. If the above question is true  I think the only thing 
I need to do is to create some sort of "link" to this "module" inside of 
pom.xml ... Am I right ? Where can I find more info about that ?


Thank you very much !!!
(My apologies for these "basic" questions)

--
Marcos H. W.
Softing Systems
Systems Analyst
+55 11 38770360

/** 
* @see https://jaxb2-commons.dev.java.net

*/

/**
* "...Use the Force ...;-)" */
*
* @see http://www.gentoo.org/
*/



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



Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Heinrich Nirschl
On Fri, 2007-04-27 at 15:17 -0400, Jared Blitzstein wrote:
> Thanks, I've read that as well as http://maven.apache.org/guides/ 
> getting-started/index.html#How%20do%20I%20filter%20resource%20files  
> and it's basically the same thing as the WAR plugin...I believe.  
> Since I need this on both the WAR and the exploded app for jetty, I'm  
> not sure if the war plugin is what I need to be using. But the files  
> are actually being filtered, it's just they're not ending up in /WEB- 
> INF/config/ like I want.  They're going to /WEB-INF/classes/WEB-INF/ 
> config/. Here is the snippet from my pom
> 
>   
>   src/main/filters/${env}.var
>   
>   
>   
>   
> src/main/webapp/WEB-INF/config
>   true
>   WEB-INF/config/
>   
>   
> 
> 
> Any ideas?
> 

I have not tried this, but according to the documentation a
configuration similar to this for the war plugin should work:

  
org.apache.maven.plugins
maven-war-plugin

  
src/main/filters/${env}.var
  
  
 
   
   configurations 
   WEB-INF/config
   
   true
 
  

  

- Henry


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



RE: Tasks aren't run for the maven-antrun-plugin

2007-04-27 Thread jbonevich

Actually, keep configuration where it was under executions, just add the
goals/goal to execution and it works:


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

  deploy
  
run
  
  

  
  

  

  
 

Seems like bad doco on the plugin usage page.

jeff


Doug Tanner-2 wrote:
> 
> Answer, apparently configuration needs to be outside the execution tags:
> 
> 
>   org.apache.maven.plugins
>   maven-antrun-plugin
>   1.1
>   
> deploy
> 
>   run
> 
> 
>   
>   
> 
>   
>   
> 
>   deploy
>   
> run
>   
> 
>   
> 
> 
> 
> Doug Tanner
>  
> 
> 
> 
> 
> 
> BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is
> intended only for the individual or entity to which it is addressed and
> may contain information that is confidential and protected by law.
> Unauthorized review, use, disclosure, or dissemination of this
> communication or its contents in any way is prohibited and may be
> unlawful. If you are not the intended recipient or a person responsible
> for delivering this message to an intended recipient, please notify the
> original sender immediately by e-mail or telephone, return the original
> message to the original sender or to [EMAIL PROTECTED], and
> destroy all copies or derivations of the original message. Thank you. 
> (BFeComNote Rev. 08/01/2005)
> ***
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tasks-aren%27t-run-for-the-maven-antrun-plugin-tf3608756s177.html#a10226093
Sent from the Maven - Users mailing list archive at Nabble.com.


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



running webapp (war) in a multiproject environment

2007-04-27 Thread Carsten Krebs
Hi,

I'm trying to run a maven build war file using one of the container plugins 
(cargo, tomcat or jetty). While this works fine in single project setup, I 
don't know how to get it properly work in multi project setup, if I have 
dependencies from the war module to at least on other child project. The 
multiproject setup I'm using is similar to the following (pom file are below):

parent (pom) / child1 (jar)
 / child2 (war)

where the child2 module depends on the module child1.
Building and packaging all modules from the top-level project works fine, but 
starting the webapp (child2.war) is not possible. Running a "mvn tomcat:run" 
from inside of module "child2" results in the following error:

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

[INFO] Building Unnamed - example:child2:war:1.0-SNAPSHOT
[INFO]task-segment: [tomcat:run]
[INFO] 

[INFO] Preparing tomcat:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

Missing:
--
1) example:child1:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
  mvn install:install-file -DgroupId=example -DartifactId=child1 \
  -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
1) example:child2:war:1.0-SNAPSHOT
2) example:child1:jar:1.0-SNAPSHOT

--
1 required artifact is missing.

for artifact: 
  example:child2:war:1.0-SNAPSHOT


As far I understand maven, this error is comprehensible, because when running 
maven from inside of the child module, maven doesn't know how to build the 
child1 dependency. So I would think, that running "mvn tomcat:run" from inside 
of the top-level module would be more appropriate. But this isn't possible, 
too, because the top-level module doesn't know anything about  the 
maven-tomcat-plugin. For sure, I can solve this problem, by running a "mvn 
install" first, go into the child2 module and run a "mvn tomcat:run". This 
seems to me a little bit too complicated.
So I wonder if there something wrong with my project setup or if there is 
better way to run the webapp using maven?


Carsten


===

top-level module



4.0.0
example
parent
pom
1.0-SNAPSHOT

child1
child2


${project.version}




child1
--



example
parent
1.0-SNAPSHOT

4.0.0
example
child1
jar


child2
--



example
parent
1.0-SNAPSHOT

4.0.0
example
child2
war



org.codehaus.mojo
tomcat-maven-plugin


org.codehaus.cargo
cargo-maven2-plugin



tomcat5x

/opt/apache-tomcat-5.5.17







example
child1
${example.version}






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



RE: Setting up Repository

2007-04-27 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
The guide to deploying third-party jars is where I got all the
information I needed to be able to deploy artifacts to our internal
repository.  When running mvn deploy, you have to have your Maven
environment (M2_HOME, Maven installation, ~/m2.settings or other way to
locate the local repository) all set up.
 
All you need is the jar/war/ear file.  The pom is optional.  mvn deploy
will generate the pom if you want, or will deploy an existing pom if you
have one.  You have to set the correct arguments to get it to do what
you want.
 
The one thing that I found tricky, and I had to experiment with it, is
specify the repository to deploy to.  You don't have to specify a
repository id.  You can just specify the URL.
 
The jar/war/ear file and the pom file can be anywhere. They don't have
be and probably should not be in the local repository you use for this
operation. The current working directory is a good place. The artifact
and pom will be deployed to both your local repository and to the
repository specified in the url definition.   
 
Hope this helps.
--Marilyn




From: Petr V. [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 12:23 PM
To: Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco);
Maven Users List
Subject: RE: Setting up Repository


No, I did not try that. 

I found this page when I googled mvn deploy


http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html
but it is not making lots of sense to me. Problem is that server that is
gonna host the repository would have no outside world connection so I
have to simply create a repository of required artifacts manually. 

Any pointers ???



"Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)"
<[EMAIL PROTECTED]> wrote: 


Have you tried mvn deploy?
--Marilyn

> -Original Message-
> From: Petr V. [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 27, 2007 12:03 PM
> To: Maven Users List
> Subject: Setting up Repository
> 
> I have to set up repository for the developers in my
company.
> 
> I added following in my settings.xml and run http
server at localhost
> 
> 
> default-repositories
> 
> 
> my-internal
> http://localhost:/repository/
> 
> 
> 
> 
> 
> my-internal
> http://localhost:/repository/
> 
> 
> 
> 
> 
> 
> default-repositories
> 
> 
> Now issue is, how can I install the required jar file
etc 
> into localhost/repository.
> Can I simply copy repository (from one of developer's
machine 
> which he got via ibiblio by default) into loclahost
repository ?
> 
> Any help is really really appreciated. I am now
desperate. I 
> have tried many things and nothing seem to work.
> 
> Thanks,
> 
> Petr V.
> 
> 
> 
> 
> -
> Ahhh...imagining that irresistible "new car" smell?
> Check outnew cars at Yahoo! Autos.
> 






Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
  



Re: Weird url while trying to download a dependency

2007-04-27 Thread mateamargo

I mean, the only place where I specify /var/www is in the url while
deploying, but I don't understand why the POM's are being downloaded fine
but not the jar.
-- 
View this message in context: 
http://www.nabble.com/Weird-url-while-trying-to-download-a-dependency-tf3658648s177.html#a10225265
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Setting up Repository

2007-04-27 Thread Petr V.
No, I did not try that. 

I found this page when I googled mvn deploy

http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html but it 
is not making lots of sense to me. Problem is that server that is gonna host 
the repository would have no outside world connection so I have to simply 
create a repository of required artifacts manually. 

Any pointers ???



"Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco)" <[EMAIL PROTECTED]> 
wrote:  
Have you tried mvn deploy?
--Marilyn

> -Original Message-
> From: Petr V. [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 27, 2007 12:03 PM
> To: Maven Users List
> Subject: Setting up Repository
> 
> I have to set up repository for the developers in my company.
> 
> I added following in my settings.xml and run http server at localhost
> 
> 

>   default-repositories
>   
>
>my-internal
>http://localhost:/repository/
>
>   
> 
>   

>

>my-internal
>http://localhost:/repository/
>

>

>   

> 
> 
> 
> default-repositories
> 
> 
> Now issue is, how can I install the required jar file etc 
> into localhost/repository.
> Can I simply copy repository (from one of developer's machine 
> which he got via ibiblio by default) into loclahost repository ?
> 
> Any help is really really appreciated. I am now desperate. I 
> have tried many things and nothing seem to work.
> 
> Thanks,
> 
> Petr V.
> 
> 
> 
>
> -
> Ahhh...imagining that irresistible "new car" smell?
>  Check outnew cars at Yahoo! Autos.
> 


   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

maven-changelog-plugin

2007-04-27 Thread Jay Packard
The maven-changelog-plugin is not working for me.  I'm I allowed to have 
an https url in ?  Can you point me to any other 
documentation that might help me get this working?


Jay

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



Re: Compile and runtime dependency on the same jar file

2007-04-27 Thread Wayne Fay

Read the M2 scope document again... Compile scoped artifacts are
packaged just like runtime. The only difference is that runtime
artifacts are not available in the compile-time classpath.

Wayne

On 4/27/07, Enrique Gaona <[EMAIL PROTECTED]> wrote:



Hi,
I have a project that has a compile dependency to a jar file
(tpmclient.jar) and at the same time it needs to be packaged into the final
war.My questions, what's the elegant or right way of solving this
problem wihtout having to copy the tpmclient.jar into my project directory?
The tpmclient.jar is already installed in my maven repository and I don't
really want to copy the same jarfile into my project directory.   Thanks in
advance.

Enrique



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



Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Jared Blitzstein
Thanks, I've read that as well as http://maven.apache.org/guides/ 
getting-started/index.html#How%20do%20I%20filter%20resource%20files  
and it's basically the same thing as the WAR plugin...I believe.  
Since I need this on both the WAR and the exploded app for jetty, I'm  
not sure if the war plugin is what I need to be using. But the files  
are actually being filtered, it's just they're not ending up in /WEB- 
INF/config/ like I want.  They're going to /WEB-INF/classes/WEB-INF/ 
config/. Here is the snippet from my pom



src/main/filters/${env}.var




src/main/webapp/WEB-INF/config
true
WEB-INF/config/




Any ideas?


On Apr 27, 2007, at 12:28 PM, Heinrich Nirschl wrote:


On 4/27/07, Jared Blitzstein <[EMAIL PROTECTED]> wrote:

I'm using the webapp archetype and our apps are configured to have
the properties files in /WEB-INF/config/ rather than /WEB-INF/
classes/ which maven defaults to for resource filtering. I see the
"targetPath" tag in the resource tag but that's only for packages,
not directories outside classes. I tried tricking it with a path
of ../config/ but that only works when it creates the classes
directory, not the WAR or exploded app. Any suggestions to get this
to work without having to run an ant script afterwards to move the
files?


The war plugin can do that. Have a look at
http://maven.apache.org/plugins/maven-war-plugin/examples/adding- 
filtering-webresources.html


- Henry

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





Re: Problem - Plugin release.

2007-04-27 Thread Emmanuel Venisse

In the next version, you'll can add a comment prefix to the commit message, it 
is already implemented in trunk.

Emmanuel

Paola a écrit :

   [INFO]

[INFO] Checking in modified POMs...
[INFO] Executing: svn --username p.montini --password *
--non-interactive commit --file C:\Temp\maven-scm-403088690.commit
C:/java/workspace/YMF-AMPLIS-APP/pom.xml
[INFO] Working directory: C:\java\workspace\YMF-AMPLIS-APP
[INFO] Unknown line: 'Enviando   pom.xml'
[INFO] Unknown line: 'Transmitindo dados do arquivo .'
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit falhou (detalhes a seguir):
svn: Requisi‡Æo MERGE falhou em '/svn/amplis/trunk/DEV/YMF-AMPLIS-APP'
svn: General svn error from server

[INFO]

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

[INFO] Total time: 45 seconds
[INFO] Finished at: Fri Apr 27 14:50:32 GMT-03:00 2007
[INFO] Final Memory: 6M/11M
[INFO]


This is hapened because the hook post-commit svn I need put number
ticket.
I know!???



Antonio Petrelli-3 wrote:

2007/4/27, Paola <[EMAIL PROTECTED]>:

I try use the release plugin in my project and occured problems when
the
plugin, make commit in my repository...

Can you post the error that you get?

Antonio

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








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



Re: Setting up Repository

2007-04-27 Thread Wayne Fay

No, this is not sufficient as there is additional metadata required.

You should install Archiva, Proximity, Artifactory, etc.

Wayne

On 4/27/07, Petr V. <[EMAIL PROTECTED]> wrote:

I have to set up repository for the developers in my company.

I added following in my settings.xml and run http server at localhost


 default-repositories
 
  
  my-internal
  http://localhost:/repository/
  
 

 
  
  my-internal
  http://localhost:/repository/
  
  
 



   default-repositories


Now issue is, how can I install the required jar file etc into 
localhost/repository.
Can I simply copy repository (from one of developer's machine which he got via 
ibiblio by default) into loclahost repository ?

Any help is really really appreciated. I am now desperate. I have tried many 
things and nothing seem to work.

Thanks,

Petr V.




-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


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



Re: Scanning for projects... FOREVER !!

2007-04-27 Thread Wayne Fay

You'll probably have better luck with these issues on the M2Eclipse Users list.
http://m2eclipse.codehaus.org/mail-lists.html

Wayne

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

Hello, (I added this topic to be more specific)



I'm using Maven 2.0 integration 0.0.11.20070304-1200 from 
http://m2eclipse.codehaus.org/update-dev/



but eclipse is hanging on :





[INFO] Scanning for projects...





when running a m2 compile goal from external tools>>Maven Build >> new : ...





why ?

how can I fix that ?





Thanks


Nawfel




___
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com


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



Setting up Repository

2007-04-27 Thread Petr V.
I have to set up repository for the developers in my company.

I added following in my settings.xml and run http server at localhost


  default-repositories
  
   
   my-internal
   http://localhost:/repository/
   
  

  
   
   my-internal
   http://localhost:/repository/
   
   
   



default-repositories 


Now issue is, how can I install the required jar file etc into 
localhost/repository.
Can I simply copy repository (from one of developer's machine which he got via 
ibiblio by default) into loclahost repository ?

Any help is really really appreciated. I am now desperate. I have tried many 
things and nothing seem to work.

Thanks,

Petr V.



   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: Problem - Plugin release.

2007-04-27 Thread Paola

When the release plugin asked me about next version!?

tks



Emmanuel Venisse wrote:
> 
> In the next version, you'll can add a comment prefix to the commit
> message, it is already implemented in trunk.
> 
> Emmanuel
> 
> Paola a écrit :
>>[INFO]
>> 
>> [INFO] Checking in modified POMs...
>> [INFO] Executing: svn --username p.montini --password *
>> --non-interactive commit --file C:\Temp\maven-scm-403088690.commit
>> C:/java/workspace/YMF-AMPLIS-APP/pom.xml
>> [INFO] Working directory: C:\java\workspace\YMF-AMPLIS-APP
>> [INFO] Unknown line: 'Enviando   pom.xml'
>> [INFO] Unknown line: 'Transmitindo dados do arquivo .'
>> [INFO]
>> 
>> [ERROR] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Unable to commit files
>> Provider message:
>> The svn command failed.
>> Command output:
>> svn: Commit falhou (detalhes a seguir):
>> svn: Requisi‡Æo MERGE falhou em '/svn/amplis/trunk/DEV/YMF-AMPLIS-APP'
>> svn: General svn error from server
>> 
>> [INFO]
>> 
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> 
>> [INFO] Total time: 45 seconds
>> [INFO] Finished at: Fri Apr 27 14:50:32 GMT-03:00 2007
>> [INFO] Final Memory: 6M/11M
>> [INFO]
>> 
>> 
>> This is hapened because the hook post-commit svn I need put number
>> ticket.
>> I know!???
>> 
>> 
>> 
>> Antonio Petrelli-3 wrote:
>>> 2007/4/27, Paola <[EMAIL PROTECTED]>:
 I try use the release plugin in my project and occured problems
 when
 the
 plugin, make commit in my repository...
>>> Can you post the error that you get?
>>>
>>> Antonio
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem---Plugin-release.-tf3658108s177.html#a10224076
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Problem - Plugin release.

2007-04-27 Thread Paola

Ok 
I will wait for this...

Tks a lot



Emmanuel Venisse wrote:
> 
> In the next version of the release plugin. We'll probably release
> 2.0-beta-5 next week.
> 
> Emmanuel
> 
> Paola a écrit :
>> When the release plugin asked me about next version!?
>> 
>> tks
>> 
>> 
>> 
>> Emmanuel Venisse wrote:
>>> In the next version, you'll can add a comment prefix to the commit
>>> message, it is already implemented in trunk.
>>>
>>> Emmanuel
>>>
>>> Paola a écrit :
[INFO]
 
 [INFO] Checking in modified POMs...
 [INFO] Executing: svn --username p.montini --password *
 --non-interactive commit --file C:\Temp\maven-scm-403088690.commit
 C:/java/workspace/YMF-AMPLIS-APP/pom.xml
 [INFO] Working directory: C:\java\workspace\YMF-AMPLIS-APP
 [INFO] Unknown line: 'Enviando   pom.xml'
 [INFO] Unknown line: 'Transmitindo dados do arquivo .'
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Unable to commit files
 Provider message:
 The svn command failed.
 Command output:
 svn: Commit falhou (detalhes a seguir):
 svn: Requisi‡Æo MERGE falhou em '/svn/amplis/trunk/DEV/YMF-AMPLIS-APP'
 svn: General svn error from server

 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 45 seconds
 [INFO] Finished at: Fri Apr 27 14:50:32 GMT-03:00 2007
 [INFO] Final Memory: 6M/11M
 [INFO]
 

 This is hapened because the hook post-commit svn I need put number
 ticket.
 I know!???



 Antonio Petrelli-3 wrote:
> 2007/4/27, Paola <[EMAIL PROTECTED]>:
>> I try use the release plugin in my project and occured problems
>> when
>> the
>> plugin, make commit in my repository...
> Can you post the error that you get?
>
> Antonio
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem---Plugin-release.-tf3658108s177.html#a10224328
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re-enable disabled repository

2007-04-27 Thread Ben Tatham

Hello all,
I have seen people talking about this, but it always seems to be a 
different issue...


I am getting "Skipping disabled repository" for our Archiva server.  Why 
did maven "disable" it, and how do I re-enable it to make it try again?  
I can find no documentation on this.  How is it persisting that the repo 
is "disabled". 


Please help!

Thanks,
Ben

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



Re: Problem - Plugin release.

2007-04-27 Thread Emmanuel Venisse

In the next version of the release plugin. We'll probably release 2.0-beta-5 
next week.

Emmanuel

Paola a écrit :

When the release plugin asked me about next version!?

tks



Emmanuel Venisse wrote:

In the next version, you'll can add a comment prefix to the commit
message, it is already implemented in trunk.

Emmanuel

Paola a écrit :

   [INFO]

[INFO] Checking in modified POMs...
[INFO] Executing: svn --username p.montini --password *
--non-interactive commit --file C:\Temp\maven-scm-403088690.commit
C:/java/workspace/YMF-AMPLIS-APP/pom.xml
[INFO] Working directory: C:\java\workspace\YMF-AMPLIS-APP
[INFO] Unknown line: 'Enviando   pom.xml'
[INFO] Unknown line: 'Transmitindo dados do arquivo .'
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit falhou (detalhes a seguir):
svn: Requisi‡Æo MERGE falhou em '/svn/amplis/trunk/DEV/YMF-AMPLIS-APP'
svn: General svn error from server

[INFO]

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

[INFO] Total time: 45 seconds
[INFO] Finished at: Fri Apr 27 14:50:32 GMT-03:00 2007
[INFO] Final Memory: 6M/11M
[INFO]


This is hapened because the hook post-commit svn I need put number
ticket.
I know!???



Antonio Petrelli-3 wrote:

2007/4/27, Paola <[EMAIL PROTECTED]>:

I try use the release plugin in my project and occured problems
when
the
plugin, make commit in my repository...

Can you post the error that you get?

Antonio

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





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








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



Re: [m2] adding classpathentry with maven-eclipse-plugin

2007-04-27 Thread Adrian Herscu
Here is one use case (or probably something missing from 
maven-eclipse-plugin):


- add a resource folder to your Java project
- add it in the pom.xml
- write some code to load some resource (e.g. using getResourceAsStream)
- test the project using M2 -- the resource will be found
- test the project in Eclipse -- the resource will *not* be found

In order to run/test/debug the project in Eclipse, you will have to 
manually add that resource folder to the .classpath descriptor file.
The maven-eclipse-plugin could automatically add that resource folder as 
a classpathentry.

Adrian.

Adrian Herscu wrote:

Solved by adding that classpath using the build-helper-maven-plugin.

Thorsten Heit wrote:

Hi Adrian,


Is there some way to add a classpathentry such as

   

to the .classpath file?

It seems that the plugin knows only about classpath containers :-(


AFAIK no. The plugin only adds all the dependencies contained in your 
pom.xml to the .classpath file. Just for curiosity: What's your use case?



Thorsten



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



Re: Problem - Plugin release.

2007-04-27 Thread Paola

   [INFO]

[INFO] Checking in modified POMs...
[INFO] Executing: svn --username p.montini --password *
--non-interactive commit --file C:\Temp\maven-scm-403088690.commit
C:/java/workspace/YMF-AMPLIS-APP/pom.xml
[INFO] Working directory: C:\java\workspace\YMF-AMPLIS-APP
[INFO] Unknown line: 'Enviando   pom.xml'
[INFO] Unknown line: 'Transmitindo dados do arquivo .'
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit falhou (detalhes a seguir):
svn: Requisi‡Æo MERGE falhou em '/svn/amplis/trunk/DEV/YMF-AMPLIS-APP'
svn: General svn error from server

[INFO]

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

[INFO] Total time: 45 seconds
[INFO] Finished at: Fri Apr 27 14:50:32 GMT-03:00 2007
[INFO] Final Memory: 6M/11M
[INFO]


This is hapened because the hook post-commit svn I need put number
ticket.
I know!???



Antonio Petrelli-3 wrote:
> 
> 2007/4/27, Paola <[EMAIL PROTECTED]>:
>> I try use the release plugin in my project and occured problems when
>> the
>> plugin, make commit in my repository...
> 
> Can you post the error that you get?
> 
> Antonio
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem---Plugin-release.-tf3658108s177.html#a10223615
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Compile and runtime dependency on the same jar file

2007-04-27 Thread Enrique Gaona


Hi,
I have a project that has a compile dependency to a jar file
(tpmclient.jar) and at the same time it needs to be packaged into the final
war.My questions, what's the elegant or right way of solving this
problem wihtout having to copy the tpmclient.jar into my project directory?
The tpmclient.jar is already installed in my maven repository and I don't
really want to copy the same jarfile into my project directory.   Thanks in
advance.

Enrique


Re: Weird url while trying to download a dependency

2007-04-27 Thread mateamargo


Heinrich Nirschl wrote:
> 
> Just a wild guess, do you have the var/www specified in the url of your
> pluginRepository section in the pom?
> 
> - Henry
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

I don't have specified any pluginRepository section.
I've specified everything in the parameters when I deployed it
-- 
View this message in context: 
http://www.nabble.com/Weird-url-while-trying-to-download-a-dependency-tf3658648s177.html#a10223505
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Scanning for projects... FOREVER !!

2007-04-27 Thread spouynt
Hello, (I added this topic to be more specific)



I'm using Maven 2.0 integration 0.0.11.20070304-1200 from 
http://m2eclipse.codehaus.org/update-dev/



but eclipse is hanging on :





[INFO] Scanning for projects...





when running a m2 compile goal from external tools>>Maven Build >> new : ... 





why ?

how can I fix that ?





Thanks


Nawfel



  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: Weird url while trying to download a dependency

2007-04-27 Thread Heinrich Nirschl
On Fri, 2007-04-27 at 10:03 -0700, mateamargo wrote:
> I have deployed a maven-plugin in a remote repository with this commands:
> 
> mvn deploy:deploy-file -DgroupId=org.apache.jmeter
> -DartifactId=maven-jmeter-plugin -Dversion=1.0-SNAPSHOT
> -Dpackaging=maven-plugin -Dfile=maven-jmeter-plugin-1.0-SNAPSHOT.jar
> -DrepositoryId=internal.repo -DpomFile=pom.xml
> -Durl=file:///var/www/projects/maven/internal
> 
> When Maven tries to download the POM, the url is fine:
> 
> http://server/projects/maven/internal//org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.pom
> 
> but when it tries to download the jar:
> 
> http://server/var/www/projects/maven/internal/org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.jar
> 
> it adds a "var/www/" into the URL, and I don't know why
> 
> any ideas?
> 
> thanks.

Just a wild guess, do you have the var/www specified in the url of your
pluginRepository section in the pom?

- Henry


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



Re: How to access a file that's inside an executable jar assembly, programatically

2007-04-27 Thread Wayne Fay

John Casey sent this method a while ago that might be useful:

private File getFile( String resourceName )
{
  ClassLoader cloader = Thread.currentThread().getContextClassLoader();
  URL resource = cloader.getResource( resourceName );

  if ( resource == null )
  {
  throw new IllegalArgumentException( "Could not get resource: " +
resourceName );
  }

  return new File( resource.getPath() );
}

Wayne

On 4/27/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote:

On 4/27/07, Ed Young <[EMAIL PROTECTED]> wrote:
> I'd like to display the license information contained in a file that
> has been assembled into an executable jar file assembly when the user
> passes a command line parameter.
>
> I'm not sure if this is a maven issue, really, but the executable
> assembly was created using the maven assembly plugin.

Indeed not a maven issue. You have to load it as a resource. This link
should help:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String)

- Henry

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




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



Re: How to access a file that's inside an executable jar assembly, programatically

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Ed Young <[EMAIL PROTECTED]> wrote:

I'd like to display the license information contained in a file that
has been assembled into an executable jar file assembly when the user
passes a command line parameter.

I'm not sure if this is a maven issue, really, but the executable
assembly was created using the maven assembly plugin.


Indeed not a maven issue. You have to load it as a resource. This link
should help:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String)

- Henry

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



Re: Class not found only during Test phase

2007-04-27 Thread Wayne Fay

Unpack the jar and make sure its really there. We've seen similar
reports from people who were surprised when classes really didn't
exist in their jar.

If its there, I'd guess you might be running into a class loading
issue... Check how that class is being loaded in the
DOMXMLReaderImpl.hasBinaryValue() method.

Wayne

On 4/27/07, Chris Russell <[EMAIL PROTECTED]> wrote:

Hello,

I'm trying to run a junit test and I'm getting the following error:

java.lang.NoClassDefFoundError: oracle/j2ee/ws/saaj/soap/BinaryTextImpl
at
oracle.j2ee.ws.common.streaming.DOMXMLReaderImpl.hasBinaryValue(DOMXMLReaderImpl.java:217)

at
oracle.j2ee.ws.common.encoding.literal.LiteralSimpleTypeSerializer.deserialize(LiteralSimpleTypeSerializer.java:132)

at
com.siebel.xml.timezoneorion.runtime.TimeZone_LiteralSerializer.doDeserialize(TimeZone_LiteralSerializer.java:102)

at
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)

at
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)

at
com.siebel.xml.timezoneorion.runtime.ListOfTimezoneorion_LiteralSerializer.doDeserialize(ListOfTimezoneorion_LiteralSerializer.java:60)

at
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)

at
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)

at
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZoneQueryByExample_Output_LiteralSerializer.doDeserialize(TimeZoneQueryByExample_Output_LiteralSerializer.java:57)

at
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)

at
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)

at
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZone_Stub._deserialize_TimeZoneQueryByExample(TimeZone_Stub.java:126)

at
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZone_Stub._readFirstBodyElement(TimeZone_Stub.java:112)

at
oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:333)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZone_Stub.timeZoneQueryByExample(TimeZone_Stub.java:76)

at
com.oracle.orion.ml3.proxy.timezone.TimeZoneClient.timeZoneQueryByExample(TimeZoneClient.java:40)

at
com.oracle.orion.ml3.ejb.EJBCCTimezoneSessionBean.getTimezoneList(EJBCCTimezoneSessionBean.java:45)

at
test.com.oracle.orion.ml3.ejb.EJBCCTimezoneSessionBeanTest.testGetTimezoneList(EJBCCTimezoneSessionBeanTest.java:44)



The file BinaryTextImpl is located in the orasaaj.jar file.
I have the following dependency in both the project that is running the
test and the WebService project:

  
jax
orasaaj
10.1.3
test
  

I had needed to add this dependency a week ago to get around another
"Class Not Found" problem and that issue was resolved.

Any idea why its not finding this class?

Thanks in advance,
Chris

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




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



Weird url while trying to download a dependency

2007-04-27 Thread mateamargo

I have deployed a maven-plugin in a remote repository with this commands:

mvn deploy:deploy-file -DgroupId=org.apache.jmeter
-DartifactId=maven-jmeter-plugin -Dversion=1.0-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=maven-jmeter-plugin-1.0-SNAPSHOT.jar
-DrepositoryId=internal.repo -DpomFile=pom.xml
-Durl=file:///var/www/projects/maven/internal

When Maven tries to download the POM, the url is fine:

http://server/projects/maven/internal//org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.pom

but when it tries to download the jar:

http://server/var/www/projects/maven/internal/org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.jar

it adds a "var/www/" into the URL, and I don't know why

any ideas?

thanks.
-- 
View this message in context: 
http://www.nabble.com/Weird-url-while-trying-to-download-a-dependency-tf3658648s177.html#a10222433
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Weird url while trying to download a dependency

2007-04-27 Thread mateamargo

I have deployed a maven-plugin in a remote repository with this commands:

mvn deploy:deploy-file -DgroupId=org.apache.jmeter
-DartifactId=maven-jmeter-plugin -Dversion=1.0-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=maven-jmeter-plugin-1.0-SNAPSHOT.jar
-DrepositoryId=internal.repo -DpomFile=pom.xml
-Durl=file:///var/www/projects/maven/internal

When Maven tries to download the POM, the url is fine:

http://server/projects/maven/internal//org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.pom

but when it tries to download the jar:

http://server/var/www/projects/maven/internal/org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter-plugin-1.0-20070427.164340-1.jar

it adds a "var/www/" into the URL, and I don't know why

any ideas?

thanks.
-- 
View this message in context: 
http://www.nabble.com/Weird-url-while-trying-to-download-a-dependency-tf3658647s177.html#a10222431
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to access a file that's inside an executable jar assembly, programatically

2007-04-27 Thread Ed Young

I'd like to display the license information contained in a file that
has been assembled into an executable jar file assembly when the user
passes a command line parameter.

I'm not sure if this is a maven issue, really, but the executable
assembly was created using the maven assembly plugin.

When viewing the jar file contents, the file appears in the top level
of the jar:
...
 -rw-r--r--   137  27-Apr-2007  10:24:08
META-INF/maven/com.mycompany/crawler-common/pom.properties
 -rw-r--r--   967  23-Apr-2007  14:05:36
META-INF/maven/com.mycompany/crawler-common/pom.xml
 -rw-r--r-- 14918  27-Apr-2007  10:24:08
com/mycompany/crawler/console/ConsoleApp.class
 -rw-r--r--  2827  27-Apr-2007  10:24:08  LICENSE.apache_1.1.txt
 -rw-r--r-- 10317  27-Apr-2007  10:24:08  LICENSE.apache_2.0.txt
 -rw-r--r-- 11950  27-Apr-2007  10:24:08  LICENSE.cpl_1.0.txt
 -rw-r--r--  4083  27-Apr-2007  10:24:08  LICENSE.dom-documentation.txt
 -rw-r--r--  3595  27-Apr-2007  10:24:08  LICENSE.dom-software.txt
 -rw-r--r--   804  27-Apr-2007  10:24:08  LICENSE.sax.txt
 -rw-r--r--   731  27-Apr-2007  10:24:08  log4j.properties
 -rw-r--r--   138  27-Apr-2007  10:24:08
META-INF/maven/com.mycompany/mycompany-console/pom.properties

If I want to display the LICENSE.apache_1.1.txt file, how can I access
it programatically?

I tried the simple
   File testFilePresence = new File("LICENSE.apache_1.1.txt");
   if(testFilePresence.exists())
   {
   logger.info("file " + testFilePresence.getName()+" is visible");
   }
   else
   {
   logger.info("file " + testFilePresence.getAbsolutePath()+"
is NOT visible");
   logger.info("file " + testFilePresence.getName()+" is NOT
visible");
   }

and it is not visible.

Thanks in advance.

--
Ed

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



Class not found only during Test phase

2007-04-27 Thread Chris Russell

Hello,

I'm trying to run a junit test and I'm getting the following error:

java.lang.NoClassDefFoundError: oracle/j2ee/ws/saaj/soap/BinaryTextImpl
at 
oracle.j2ee.ws.common.streaming.DOMXMLReaderImpl.hasBinaryValue(DOMXMLReaderImpl.java:217) 

at 
oracle.j2ee.ws.common.encoding.literal.LiteralSimpleTypeSerializer.deserialize(LiteralSimpleTypeSerializer.java:132) 

at 
com.siebel.xml.timezoneorion.runtime.TimeZone_LiteralSerializer.doDeserialize(TimeZone_LiteralSerializer.java:102) 

at 
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250) 

at 
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159) 

at 
com.siebel.xml.timezoneorion.runtime.ListOfTimezoneorion_LiteralSerializer.doDeserialize(ListOfTimezoneorion_LiteralSerializer.java:60) 

at 
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250) 

at 
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159) 

at 
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZoneQueryByExample_Output_LiteralSerializer.doDeserialize(TimeZoneQueryByExample_Output_LiteralSerializer.java:57) 

at 
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250) 

at 
oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159) 

at 
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZone_Stub._deserialize_TimeZoneQueryByExample(TimeZone_Stub.java:126) 

at 
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZone_Stub._readFirstBodyElement(TimeZone_Stub.java:112) 

at 
oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:333)

at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at 
com.oracle.orion.ml3.proxy.timezone.runtime.TimeZone_Stub.timeZoneQueryByExample(TimeZone_Stub.java:76) 

at 
com.oracle.orion.ml3.proxy.timezone.TimeZoneClient.timeZoneQueryByExample(TimeZoneClient.java:40) 

at 
com.oracle.orion.ml3.ejb.EJBCCTimezoneSessionBean.getTimezoneList(EJBCCTimezoneSessionBean.java:45) 

at 
test.com.oracle.orion.ml3.ejb.EJBCCTimezoneSessionBeanTest.testGetTimezoneList(EJBCCTimezoneSessionBeanTest.java:44) 




The file BinaryTextImpl is located in the orasaaj.jar file.
I have the following dependency in both the project that is running the 
test and the WebService project:


  
jax
orasaaj
10.1.3
test
  

I had needed to add this dependency a week ago to get around another 
"Class Not Found" problem and that issue was resolved.


Any idea why its not finding this class?

Thanks in advance,
Chris

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



Re: excluding junit from assembly

2007-04-27 Thread Ed Young

It's resolved, and I did not have to specify an assembly plugin version.

The key was to add an empty  tag to the 
section of the .

The  looks like this:
  


true
runtime


So now the junit component is not in the assembly, i can still run
JUnit tests in eclipse, and  the final assembly is executable.

Thanks,

Ed


On 4/26/07, Trevor Spackman <[EMAIL PROTECTED]> wrote:

Which version of the assembly plugin are you using?  They recently
released a new version of it.  I couldn't get rid of the junit folder by
the method you described so I reverted back to the last non-beta
version.

Trevor Spackman



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ed Young
Sent: Thursday, April 26, 2007 3:02 PM
To: Maven Users List
Subject: excluding junit from assembly

I'm trying to reduce the size of an executable jar file by
elimintating it's junit jar file when it is assembled.

I thought this could be accomplished by simply specifying
test in the junit dependency in the parent pom, but
when looking at the assembled jar file contents, junit is present.


  junit
  junit
  3.8.1
  test
 

I thought when I executed
mvn clean package assembly:assembly

I'd get the assembled executable jar file with no junit component.

Here's the assembly-descriptor.xml:

  package
  
jar
  
  false

  

  
module a
module b
  

  
/
true
true
  

  


Next I tried adding an  descriptor to the
assembly-descriptors.xml file like this:

  

   junit:junit

  


In all cases, junit appears in he resulting assembled jar.

What am I doing wrong?

Thanks in advance.

--
Ed

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




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





--
Ed

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



Re : Cannot create the build number ?! (solved)

2007-04-27 Thread spouynt
Oh ! thanks ! 

I've missed the line "You can suppress this behaviour with 
-Dmaven.buildNumber.doCheck=false (or remove the configuration info)." in my 
first reading ! 

Thanks

- Message d'origine 
De : ben short <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 27 Avril 2007, 15h47mn 09s
Objet : Re: Cannot create the build number ?!

The plugins home page [1] explains all of this and how you can stop it
from checking for modified files.

[1] http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

On 4/27/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Not only that, it tells you which files you need to do something with:
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classpath:modified]
>
> You need to add or ignore the unknowns, and commit the modifieds.
>
> Wayne
>
> On 4/27/07, Tim Kettler <[EMAIL PROTECTED]> wrote:
> > I agree that maven error messages are not always as self explaining as
> > they should but in this case it's quite obvious what's wrong:
> >
> >  > [INFO]
> > 
> >  > [ERROR] BUILD ERROR
> >  > [INFO]
> > 
> >  > [INFO] Cannot create the build number because you have local
> > modifications :
> >
> > Your Working copy contains localy modified files and the build-number
> > plugin doesn't lke that.
> >
> > -Tim
> >
> > [EMAIL PROTECTED] schrieb:
> > > Hi Mavenizers,
> > >
> > > After installing the subversion binaries, and retrying to compile I had 
> > > this :
> > >
> > > [DEBUG] Configuring mojo 
> > > 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> > > [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> > > [DEBUG]   (s) doCheck = true
> > > [DEBUG]   (s) doUpdate = true
> > > [DEBUG]   (f) project = [EMAIL PROTECTED]
> > > [DEBUG]   (s) urlScm = 
> > > scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> > > [DEBUG] -- end configuration --
> > > [INFO] [buildnumber:create {execution: default}]
> > > [INFO] Verifying there are no local modifications ...
> > > [INFO] Executing: svn --non-interactive status
> > > [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> > > [INFO] Unknown file status: '!'.
> > > [INFO] Unknown file status: '!'.
> > > [INFO] Unknown file status: '!'.
> > > [INFO] 
> > > 
> > > [ERROR] BUILD ERROR
> > > [INFO] 
> > > 
> > > [INFO] Cannot create the build number because you have local 
> > > modifications :
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classpath:modified]
> > >
> > > [INFO] 
> > > 
> > > [DEBUG] Trace
> > > org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the 
> > > build number because you have local modifications :
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classpath:modified]
> > >
> > > at 
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> > > at 
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> > > at 
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> > > at 
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> > > at 
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> > > at 
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > > 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.MojoExecutionException: Cannot create 
> > > the build number because you have local modifications :
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classp

Re: Re : Cannot create the build number ?!

2007-04-27 Thread Julian Wood
You can get a buildnumber from your locally modified version, but it  
is going to be the revision number from svn, from the last time you  
did an update. Just suppress the doCheck.



false
false


J

On 27-Apr-07, at 9:48 AM, [EMAIL PROTECTED] wrote:

I know that the error is about locally modified files.. I  
understand English (-_^) (just kidding)


what I mean is : why I cant get a build number from my local  
modified version ? (if I can, how will I do ?)
also I just want to precise that the project was developed and  
built many times using Ant, and now we're moving to maven, so I  
need to fill some properties like :





a helpful member of the list has pointed me to use  :


 org.codehaus.mojo
  maven-buildnumber-plugin
  0.9.4
  

  validate
  
create
  

  

  
true
true
  



so the plugin wanted scm ! I added :

 
 scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
https://www.mycompany.ma/svnrepos/myAppName/v1.3
  

after that eclipse told me that scm is not recognized as an  
internal command, so I installed scm binaries (for windows) and now  
it tells that it's not permitted to generate build numbers for  
locally modified projects ?!


(how can I build a project locally if maven doesn't want to do the  
build ? )


please help me I'm out of solutions and above all I'm a newbie ! (a  
real one)


Thanks for helping
Nawfel


- Message d'origine 
De : Tim Kettler <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 27 Avril 2007, 15h19mn 43s
Objet : Re: Cannot create the build number ?!

I agree that maven error messages are not always as self explaining as
they should but in this case it's quite obvious what's wrong:


[INFO]
-- 
--

[ERROR] BUILD ERROR
[INFO]
-- 
--

[INFO] Cannot create the build number because you have local

modifications :

Your Working copy contains localy modified files and the build-number
plugin doesn't lke that.

-Tim

[EMAIL PROTECTED] schrieb:

Hi Mavenizers,

After installing the subversion binaries, and retrying to compile  
I had this :


[DEBUG] Configuring mojo 'org.codehaus.mojo:maven-buildnumber- 
plugin:0.9.4:create' -->

[DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
[DEBUG]   (s) doCheck = true
[DEBUG]   (s) doUpdate = true
[DEBUG]   (f) project =  
[EMAIL PROTECTED]
[DEBUG]   (s) urlScm = scm:svn:https://www.mycompany.ma/svnrepos/ 
myAppName/v1.3

[DEBUG] -- end configuration --
[INFO] [buildnumber:create {execution: default}]
[INFO] Verifying there are no local modifications ...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
[INFO] Unknown file status: '!'.
[INFO] Unknown file status: '!'.
[INFO] Unknown file status: '!'.
[INFO]  
- 
---

[ERROR] BUILD ERROR
[INFO]  
- 
---
[INFO] Cannot create the build number because you have local  
modifications :

[pom.xml:unknown]
[mvn:unknown]
[.project:modified]
[.classpath:modified]

[INFO]  
- 
---

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot  
create the build number because you have local modifications :

[pom.xml:unknown]
[mvn:unknown]
[.project:modified]
[.classpath:modified]

at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:564)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi 
fecycle(DefaultLifecycleExecutor.java:480)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:459)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan 
dleFailures(DefaultLifecycleExecutor.java:311)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen 
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:143)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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.c

Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Jared Blitzstein <[EMAIL PROTECTED]> wrote:

I'm using the webapp archetype and our apps are configured to have
the properties files in /WEB-INF/config/ rather than /WEB-INF/
classes/ which maven defaults to for resource filtering. I see the
"targetPath" tag in the resource tag but that's only for packages,
not directories outside classes. I tried tricking it with a path
of ../config/ but that only works when it creates the classes
directory, not the WAR or exploded app. Any suggestions to get this
to work without having to run an ant script afterwards to move the
files?


The war plugin can do that. Have a look at
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

- Henry

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



Re: Re : Cannot create the build number ?!

2007-04-27 Thread Wayne Fay

I don't use the buildnumber plugin, so you're on your own here unless
someone else who is using it pipes up.

If you get a good working config, please contribute it back.

Wayne

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

I can not commit anything on the server, I just want to do tests locally to 
test if maven will efficiently replace Ant and do it's work

is it possible to do so ?

Thanks all
Nawfel

- Message d'origine 
De : Wayne Fay <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 27 Avril 2007, 15h39mn 27s
Objet : Re: Cannot create the build number ?!

Not only that, it tells you which files you need to do something with:
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]

You need to add or ignore the unknowns, and commit the modifieds.

Wayne

On 4/27/07, Tim Kettler <[EMAIL PROTECTED]> wrote:
> I agree that maven error messages are not always as self explaining as
> they should but in this case it's quite obvious what's wrong:
>
>  > [INFO]
> 
>  > [ERROR] BUILD ERROR
>  > [INFO]
> 
>  > [INFO] Cannot create the build number because you have local
> modifications :
>
> Your Working copy contains localy modified files and the build-number
> plugin doesn't lke that.
>
> -Tim
>
> [EMAIL PROTECTED] schrieb:
> > Hi Mavenizers,
> >
> > After installing the subversion binaries, and retrying to compile I had 
this :
> >
> > [DEBUG] Configuring mojo 
'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> > [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> > [DEBUG]   (s) doCheck = true
> > [DEBUG]   (s) doUpdate = true
> > [DEBUG]   (f) project = [EMAIL PROTECTED]
> > [DEBUG]   (s) urlScm = 
scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> > [DEBUG] -- end configuration --
> > [INFO] [buildnumber:create {execution: default}]
> > [INFO] Verifying there are no local modifications ...
> > [INFO] Executing: svn --non-interactive status
> > [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> > [INFO] Unknown file status: '!'.
> > [INFO] Unknown file status: '!'.
> > [INFO] Unknown file status: '!'.
> > [INFO] 

> > [ERROR] BUILD ERROR
> > [INFO] 

> > [INFO] Cannot create the build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > [INFO] 

> > [DEBUG] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the 
build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > 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.MojoExecutionException: Cannot create 
the build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:347)
> > at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
> > at 
org.apache.maven.plugin.DefaultPlu

Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Jared Blitzstein
I'm using the webapp archetype and our apps are configured to have  
the properties files in /WEB-INF/config/ rather than /WEB-INF/ 
classes/ which maven defaults to for resource filtering. I see the  
"targetPath" tag in the resource tag but that's only for packages,  
not directories outside classes. I tried tricking it with a path  
of ../config/ but that only works when it creates the classes  
directory, not the WAR or exploded app. Any suggestions to get this  
to work without having to run an ant script afterwards to move the  
files?


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



Re : Cannot create the build number ?!

2007-04-27 Thread spouynt
I can not commit anything on the server, I just want to do tests locally to 
test if maven will efficiently replace Ant and do it's work 

is it possible to do so ?

Thanks all
Nawfel

- Message d'origine 
De : Wayne Fay <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 27 Avril 2007, 15h39mn 27s
Objet : Re: Cannot create the build number ?!

Not only that, it tells you which files you need to do something with:
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]

You need to add or ignore the unknowns, and commit the modifieds.

Wayne

On 4/27/07, Tim Kettler <[EMAIL PROTECTED]> wrote:
> I agree that maven error messages are not always as self explaining as
> they should but in this case it's quite obvious what's wrong:
>
>  > [INFO]
> 
>  > [ERROR] BUILD ERROR
>  > [INFO]
> 
>  > [INFO] Cannot create the build number because you have local
> modifications :
>
> Your Working copy contains localy modified files and the build-number
> plugin doesn't lke that.
>
> -Tim
>
> [EMAIL PROTECTED] schrieb:
> > Hi Mavenizers,
> >
> > After installing the subversion binaries, and retrying to compile I had 
> > this :
> >
> > [DEBUG] Configuring mojo 
> > 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> > [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> > [DEBUG]   (s) doCheck = true
> > [DEBUG]   (s) doUpdate = true
> > [DEBUG]   (f) project = [EMAIL PROTECTED]
> > [DEBUG]   (s) urlScm = 
> > scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> > [DEBUG] -- end configuration --
> > [INFO] [buildnumber:create {execution: default}]
> > [INFO] Verifying there are no local modifications ...
> > [INFO] Executing: svn --non-interactive status
> > [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> > [INFO] Unknown file status: '!'.
> > [INFO] Unknown file status: '!'.
> > [INFO] Unknown file status: '!'.
> > [INFO] 
> > 
> > [ERROR] BUILD ERROR
> > [INFO] 
> > 
> > [INFO] Cannot create the build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > [INFO] 
> > 
> > [DEBUG] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the 
> > build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> > at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> > at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> > at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> > at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> > at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > 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.MojoExecutionException: Cannot create 
> > the build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > at 
> > org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:347)
> > at 
> > org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
> > at 
> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> > at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.j

Re : Cannot create the build number ?!

2007-04-27 Thread spouynt
I know that the error is about locally modified files.. I understand English 
(-_^) (just kidding) 

what I mean is : why I cant get a build number from my local modified version ? 
(if I can, how will I do ?)
also I just want to precise that the project was developed and built many times 
using Ant, and now we're moving to maven, so I need to fill some properties 
like :



a helpful member of the list has pointed me to use  :


 org.codehaus.mojo
  maven-buildnumber-plugin
  0.9.4
  

  validate
  
create
  

  
 
  
true
true
  
 


so the plugin wanted scm ! I added :

 
 scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
https://www.mycompany.ma/svnrepos/myAppName/v1.3
  

after that eclipse told me that scm is not recognized as an internal command, 
so I installed scm binaries (for windows) and now it tells that it's not 
permitted to generate build numbers for locally modified projects ?!

(how can I build a project locally if maven doesn't want to do the build ? )

please help me I'm out of solutions and above all I'm a newbie ! (a real one)

Thanks for helping 
Nawfel


- Message d'origine 
De : Tim Kettler <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Vendredi, 27 Avril 2007, 15h19mn 43s
Objet : Re: Cannot create the build number ?!

I agree that maven error messages are not always as self explaining as 
they should but in this case it's quite obvious what's wrong:

 > [INFO] 

 > [ERROR] BUILD ERROR
 > [INFO] 

 > [INFO] Cannot create the build number because you have local 
modifications :

Your Working copy contains localy modified files and the build-number 
plugin doesn't lke that.

-Tim

[EMAIL PROTECTED] schrieb:
> Hi Mavenizers,
> 
> After installing the subversion binaries, and retrying to compile I had this :
> 
> [DEBUG] Configuring mojo 
> 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> [DEBUG]   (s) doCheck = true
> [DEBUG]   (s) doUpdate = true
> [DEBUG]   (f) project = [EMAIL PROTECTED]
> [DEBUG]   (s) urlScm = 
> scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> [DEBUG] -- end configuration --
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Verifying there are no local modifications ...
> [INFO] Executing: svn --non-interactive status
> [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> [INFO] Unknown file status: '!'.
> [INFO] Unknown file status: '!'.
> [INFO] Unknown file status: '!'.
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Cannot create the build number because you have local modifications : 
> [pom.xml:unknown]
> [mvn:unknown]
> [.project:modified]
> [.classpath:modified]
> 
> [INFO] 
> 
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the 
> build number because you have local modifications : 
> [pom.xml:unknown]
> [mvn:unknown]
> [.project:modified]
> [.classpath:modified]
> 
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> 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.main

Re: Cannot create the build number ?!

2007-04-27 Thread ben short

The plugins home page [1] explains all of this and how you can stop it
from checking for modified files.

[1] http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

On 4/27/07, Wayne Fay <[EMAIL PROTECTED]> wrote:

Not only that, it tells you which files you need to do something with:
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]

You need to add or ignore the unknowns, and commit the modifieds.

Wayne

On 4/27/07, Tim Kettler <[EMAIL PROTECTED]> wrote:
> I agree that maven error messages are not always as self explaining as
> they should but in this case it's quite obvious what's wrong:
>
>  > [INFO]
> 
>  > [ERROR] BUILD ERROR
>  > [INFO]
> 
>  > [INFO] Cannot create the build number because you have local
> modifications :
>
> Your Working copy contains localy modified files and the build-number
> plugin doesn't lke that.
>
> -Tim
>
> [EMAIL PROTECTED] schrieb:
> > Hi Mavenizers,
> >
> > After installing the subversion binaries, and retrying to compile I had 
this :
> >
> > [DEBUG] Configuring mojo 
'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> > [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> > [DEBUG]   (s) doCheck = true
> > [DEBUG]   (s) doUpdate = true
> > [DEBUG]   (f) project = [EMAIL PROTECTED]
> > [DEBUG]   (s) urlScm = 
scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> > [DEBUG] -- end configuration --
> > [INFO] [buildnumber:create {execution: default}]
> > [INFO] Verifying there are no local modifications ...
> > [INFO] Executing: svn --non-interactive status
> > [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> > [INFO] Unknown file status: '!'.
> > [INFO] Unknown file status: '!'.
> > [INFO] Unknown file status: '!'.
> > [INFO] 

> > [ERROR] BUILD ERROR
> > [INFO] 

> > [INFO] Cannot create the build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > [INFO] 

> > [DEBUG] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the 
build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > 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.MojoExecutionException: Cannot create 
the build number because you have local modifications :
> > [pom.xml:unknown]
> > [mvn:unknown]
> > [.project:modified]
> > [.classpath:modified]
> >
> > at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:347)
> > at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
> > at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> > at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> > ... 16 more
> > [INFO] 

> > [INFO] Total time: 33 seconds
> > [INFO] Finished at: Fri Apr 27 14:44:39 GMT 2007
> > [INFO] F

Re: Cannot create the build number ?!

2007-04-27 Thread Wayne Fay

Not only that, it tells you which files you need to do something with:

> [pom.xml:unknown]
> [mvn:unknown]
> [.project:modified]
> [.classpath:modified]


You need to add or ignore the unknowns, and commit the modifieds.

Wayne

On 4/27/07, Tim Kettler <[EMAIL PROTECTED]> wrote:

I agree that maven error messages are not always as self explaining as
they should but in this case it's quite obvious what's wrong:

 > [INFO]

 > [ERROR] BUILD ERROR
 > [INFO]

 > [INFO] Cannot create the build number because you have local
modifications :

Your Working copy contains localy modified files and the build-number
plugin doesn't lke that.

-Tim

[EMAIL PROTECTED] schrieb:
> Hi Mavenizers,
>
> After installing the subversion binaries, and retrying to compile I had this :
>
> [DEBUG] Configuring mojo 
'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> [DEBUG]   (s) doCheck = true
> [DEBUG]   (s) doUpdate = true
> [DEBUG]   (f) project = [EMAIL PROTECTED]
> [DEBUG]   (s) urlScm = 
scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> [DEBUG] -- end configuration --
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Verifying there are no local modifications ...
> [INFO] Executing: svn --non-interactive status
> [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> [INFO] Unknown file status: '!'.
> [INFO] Unknown file status: '!'.
> [INFO] Unknown file status: '!'.
> [INFO] 

> [ERROR] BUILD ERROR
> [INFO] 

> [INFO] Cannot create the build number because you have local modifications :
> [pom.xml:unknown]
> [mvn:unknown]
> [.project:modified]
> [.classpath:modified]
>
> [INFO] 

> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the 
build number because you have local modifications :
> [pom.xml:unknown]
> [mvn:unknown]
> [.project:modified]
> [.classpath:modified]
>
> at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> 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.MojoExecutionException: Cannot create the 
build number because you have local modifications :
> [pom.xml:unknown]
> [mvn:unknown]
> [.project:modified]
> [.classpath:modified]
>
> at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:347)
> at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
> at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> ... 16 more
> [INFO] 

> [INFO] Total time: 33 seconds
> [INFO] Finished at: Fri Apr 27 14:44:39 GMT 2007
> [INFO] Final Memory: 4M/9M
> [INFO] 

>
>
>
> I just want a SIMPLE Build Number ! why is it so complicated ??
>
> (sorry)
>
> Thanks for helping
> Nawfel BERAICH
>
>
>
>
>
> ___
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
> Profitez

Re: Cannot create the build number ?!

2007-04-27 Thread Tim Kettler
I agree that maven error messages are not always as self explaining as 
they should but in this case it's quite obvious what's wrong:


> [INFO] 


> [ERROR] BUILD ERROR
> [INFO] 

> [INFO] Cannot create the build number because you have local 
modifications :


Your Working copy contains localy modified files and the build-number 
plugin doesn't lke that.


-Tim

[EMAIL PROTECTED] schrieb:

Hi Mavenizers,

After installing the subversion binaries, and retrying to compile I had this :

[DEBUG] Configuring mojo 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' 
-->
[DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
[DEBUG]   (s) doCheck = true
[DEBUG]   (s) doUpdate = true
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (s) urlScm = scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
[DEBUG] -- end configuration --
[INFO] [buildnumber:create {execution: default}]
[INFO] Verifying there are no local modifications ...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
[INFO] Unknown file status: '!'.
[INFO] Unknown file status: '!'.
[INFO] Unknown file status: '!'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Cannot create the build number because you have local modifications : 
[pom.xml:unknown]

[mvn:unknown]
[.project:modified]
[.classpath:modified]

[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the build number because you have local modifications : 
[pom.xml:unknown]

[mvn:unknown]
[.project:modified]
[.classpath:modified]

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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.MojoExecutionException: Cannot create the build number because you have local modifications : 
[pom.xml:unknown]

[mvn:unknown]
[.project:modified]
[.classpath:modified]

at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:347)
at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
[INFO] 
[INFO] Total time: 33 seconds
[INFO] Finished at: Fri Apr 27 14:44:39 GMT 2007
[INFO] Final Memory: 4M/9M
[INFO] 



I just want a SIMPLE Build Number ! why is it so complicated ??

(sorry)

Thanks for helping
Nawfel BERAICH




  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com



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



Re: Problem - Plugin release.

2007-04-27 Thread Antonio Petrelli

2007/4/27, Paola <[EMAIL PROTECTED]>:

I try use the release plugin in my project and occured problems when the
plugin, make commit in my repository...


Can you post the error that you get?

Antonio

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



Re : Re : Re : Re :Re : Re : Re : Step by Step guide

2007-04-27 Thread spouynt
I have already all my dependencies libs (.jar) added to my build path !

Thanks 
Nawfel BERAICH

- Message d'origine 
De : Phill Moran <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED]
Envoyé le : Vendredi, 27 Avril 2007, 14h26mn 08s
Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Re :Re : Re :  Re : 
Step by Step guide



 
DIV {
MARGIN:0px;}



go into build path for the project, select 
libraries->add library->maven2 managed dependencies. Once done try a 
recompile and see if things change. 

If this does not work we will next look at builders - Also 
read the docs about WTP (if you are using it)

 

Phill




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 

Sent: April 27, 2007 10:10 AM
To: 
[EMAIL PROTECTED]; users@maven.apache.org
Subject: 
[m2eclipse-user] Re : [m2eclipse-user] Re : Re :Re : Re : Re : Step by Step 
guide






>Dos your 
project have a long list of dependencies in it or just the maven dependency 
container?
my project have a long list of 
dependencies

>What version of eclipse are you 
using?
I'm using MyEclipse 5.5 
M2

Thanks
Nawfel


- 
Message d'origine 
De : Phill Moran <[EMAIL PROTECTED]>
À : 
[EMAIL PROTECTED]; users@maven.apache.org
Envoyé le : Vendredi, 27 
Avril 2007, 13h21mn 36s
Objet : RE: [m2eclipse-user] Re : Re :Re : Re : 
Re : Step by Step guide


DIV {
MARGIN:0px;}


Dos your project have a long list of dependencies in it or 
just the maven dependency container?

What version of eclipse are you using?

 

Phill




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 

Sent: April 27, 2007 6:55 AM
To: 
[EMAIL PROTECTED]; users@maven.apache.org
Subject: 
[m2eclipse-user] Re : Re :Re : Re : Re : Step by Step guide






Thanks 
for the trick,
But I think that there's a problem with that plugin ! once I 
lunch a compile goal I haave only this output for long time !! : 

[INFO] 
Scanning for projects...

and nothing else ! 

Thanks for 
helping
Nawfel BERAICH


- 
Message d'origine 
De : VUB Stefan Seidel <[EMAIL PROTECTED]>
À : 
[EMAIL PROTECTED]
Envoyé le : Vendredi, 27 Avril 2007, 8h32mn 
51s
Objet : Re: [m2eclipse-user] Re :Re : Re : Re : Step by Step 
guide


Very heated discussion here... AFAICS you just have a very old 
version
of the plugin where the compile errors were not printed out in 
the
Eclipse console. Install the dev version from
http://m2eclipse.codehaus.org/update-dev/
and check whether 
is works better for you.

Stefan

Am Donnerstag, den 26.04.2007, 
18:46 + schrieb [EMAIL PROTECTED]:
> >>I have no idea what Nawfel 
BERAICH means - please tell???
> Nawfel = my first name , BERAICH = my 
last name
> (^_^)
> 
> >>Just run this from command 
prompt for now. You do not need to use
> the external -> tools thing 
you just can. Once working re-run
> eclipse:eclipse in the project dir, 
add maven dependencies and your
> off
> 
> but what I need is 
to compile through eclipse and have the same log as
> the one I have in 
the command prompt like :
> 
> 
C:\works\workspaceM2\myAppName-v1.3\src\main\java\com\some\bl\domain
> 
\AClassDaoImpl.java:[127,87] cannot find symbol
> symbol  : 
class AClassDTO
> location: package com.some.dto
> 
> because 
I have an existing project that uses Ant for builds and
> compiles and I 
have to "mavenize" it  
> 
> 
> 
> Thanks for 
helping
> Nawfel BERAICH
> 
> - Message d'origine 

> De : Phill Moran <[EMAIL PROTECTED]>
> À : 
[EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 18h23mn 
01s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re :
> 
[m2eclipse-user] Re : Step by Step guide
> 
> I have no idea what 
Nawfel BERAICH means - please tell???
>  
> Just run this 
from command prompt for now. You do not need to use the
> external -> 
tools thing you just can. Once working re-run
> eclipse:eclipse in the 
project dir, add maven dependencies and your
> 
off
>  
> At least that is what I 
did
>  
>  
> Phill
> 
> 

> 
__
> 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 
1:50 PM
> To: [EMAIL PROTECTED]
> Subject: 
[m2eclipse-user] Re : [m2eclipse-user] Re : [m2eclipse-user]
> Re : Step 
by Step guide
> 
> 
> 
> do you mean that I have to add 
an external call to maven in external
> tools>>program>>new 
program and put the path to maven.bat then add
> 'compile -X' in Arguments 
??
> 
> Nawfel BERAICH
> 
> - Message d'origine 

> De : Phill Moran <[EMAIL PROTECTED]>
> À : 
[EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 17h30mn 
22s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by 
Step
> guide
> 
> Forgot to mention that you should run this 
from the command line and
> get the POM right then move to Eclipse. Use 
the -X I mention below
>  
> Phill
> 
> 

> 
__
> 
From: Phill Moran [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 
12:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: 
[m2eclipse-us

HOWTO: (Build / ) Release mgmt in multi environment (test, staging, production)

2007-04-27 Thread Maarten Volders

Hi,

I have the following question on how to setup a Maven environment in a multi
environment (test, staging, production). Ps.this is the first Maven project
I'm doing ... having an ANT background.

Lets' start by talking what I have. We have a multi project structure and
are using profiles (-Denv=test) which sets all the configuration data during
the build lifecycle. Up until now we were just using the
1.0-SNAPSHOTversion for all our modules but a release is coming near
and it seems I
don't have a clear view on what has to happen now.

I've read about the release:prepare / perform plugin but I'm unsure how it
should be handled in a multi environment. So here come the questions:

1. What exactly does the release plugin provide on the end, is it a packaged
module .war / .jar with the newly set version and stored in the repository?

2. Now we deploy a version to our servers using cargo and specify the
profile we want to use, for example -Denv=test when we want to put something
in the test environment. What I've seen so far of the release plugin is that
you need to specify the profile to which environment you are building.
Because the DB url / driver are kept in the maven profiles and are needed to
run the tests and to work with in the deployed application. So do we need to
release multiple versions? What I mean is do we need to release something
like app-test-1.0.war app-staging-1.0.war app-production-1.0.war? I guess so
because how else will we get the correct version if we want to deploy on a
specific version, if we have just version application-1.0.war we have no
idea for which environment it can be used. But .. if so ... I have no idea
on how to do this with the release plugin, because you can add a version id
like test1.0 or production-1.0 but after the first entry the sources will
already be tagged in scm, so what about the others?

Or do you provide just one release app-1.0.jar ... which actually makes more
sense to me because we release 1 version which needs to work for all
environments. But how do we handle this Up until now I've always put my
application variables in the profiles (i.e. datasource, connection url,
userid passw, email settings ...) but when we only release one version an
use that to deploy to ALL environments how will the correct application
values be set?

3. Also the same for testing (unit / integration), during the development we
test against the test database, we we deploy to staging the build lifecycle
rexecutes all these tests again, should these tests be ran against the test
database or against the staging database? But what about production do you
still run the test against the production database that way, but we still
want to run tests.. against which database are we testing this? Test, Dev?

I would really like to know what the best practices are on how to build /
deploy / release in a multi environment. And feel free to inform me on this
topic and not be limited to the questions above ;-)

Looking forward to your responses!!!

Grtz

M.


Re: Re : Re : Re : Re : Build number and current date

2007-04-27 Thread Wayne Fay

Maven SCM calls out to your svn binary to do its work. Therefore, you
must have a Subversion binary somewhere on your path. I have no idea
if the Eclipse bundle includes a binary or not.

Wayne

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

I'm  using 'The Eclipse Team Provider for the Subversion version control 
system.' not the binary

is it necessary to have the binary if I want to get the build number ?

Thanks friends
Nawfel

- Message d'origine 
De : Wayne Fay <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Jeudi, 26 Avril 2007, 19h47mn 19s
Objet : Re: Re : Re : Re : Build number and current date

You *are* using Subversion for your source code management/repository, correct?

Make sure the "svn" binary is installed on your machine and in your
path -- typing "svn --version" should give a result. Then type "mvn
..." from that same command line.

Wayne

On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I used this in my pom :
>
>  
> scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
>scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
>https://www.mycompany.ma/svnrepos/myAppName/v1.3
>  
>
> but i had this in the log :
>
> [DEBUG] Configuring mojo 
'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> [DEBUG]   (s) doCheck = true
> [DEBUG]   (s) doUpdate = true
> [DEBUG]   (f) project = [EMAIL PROTECTED]
> [DEBUG]   (s) urlScm = 
scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> [DEBUG] -- end configuration --
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Verifying there are no local modifications ...
> [INFO] Executing: svn --non-interactive status
> [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> Provider message:
> The svn command failed.
> [INFO] 

> [ERROR] BUILD ERROR
> [INFO] 

> Command output:
> 'svn' is not recognized as an internal or external command,
> operable program or batch file.
>
> [INFO] An error has occurred while checking scm status.
>
> Embedded error: Error!
> [INFO] 

> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred 
while checking scm status.
>at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>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.MojoExecutionException: An error has 
occurred while checking scm status.
>at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:331)
>at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
>at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>... 16 more
> Caused by: org.apache.maven.scm.ScmException: Error!
>at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkResult(BuildNumberMojo.java:510)
>at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.getStatus(BuildNumberMojo.java:388)
>at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:327)
>... 19 more
> [INFO] 

> [INFO] Total time: 3 seconds
> [INFO] Finished at: Thu Apr 26 19:03:22 GMT 2007
> [INFO] Final Mem

Problem - Plugin release.

2007-04-27 Thread Paola

Hi
I try use the release plugin in my project and occured problems when the
plugin, make commit in my repository...
I use svn repository and the hook post- commit is active. I need a ticket
number for make commit in my repository...
I try use tag arguments with refs ticket , for used release plugin... but
retorne error
Somebody, help me
I need put one arguments in commit 

Tks
-- 
View this message in context: 
http://www.nabble.com/Problem---Plugin-release.-tf3658108s177.html#a10220633
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Cannot create the build number ?!

2007-04-27 Thread spouynt
Hi Mavenizers,

After installing the subversion binaries, and retrying to compile I had this :

[DEBUG] Configuring mojo 
'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
[DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
[DEBUG]   (s) doCheck = true
[DEBUG]   (s) doUpdate = true
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (s) urlScm = scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
[DEBUG] -- end configuration --
[INFO] [buildnumber:create {execution: default}]
[INFO] Verifying there are no local modifications ...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
[INFO] Unknown file status: '!'.
[INFO] Unknown file status: '!'.
[INFO] Unknown file status: '!'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Cannot create the build number because you have local modifications : 
[pom.xml:unknown]
[mvn:unknown]
[.project:modified]
[.classpath:modified]

[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the build 
number because you have local modifications : 
[pom.xml:unknown]
[mvn:unknown]
[.project:modified]
[.classpath:modified]

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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.MojoExecutionException: Cannot create the 
build number because you have local modifications : 
[pom.xml:unknown]
[mvn:unknown]
[.project:modified]
[.classpath:modified]

at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:347)
at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
[INFO] 
[INFO] Total time: 33 seconds
[INFO] Finished at: Fri Apr 27 14:44:39 GMT 2007
[INFO] Final Memory: 4M/9M
[INFO] 



I just want a SIMPLE Build Number ! why is it so complicated ??

(sorry)

Thanks for helping
Nawfel BERAICH




  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: Problem with org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT

2007-04-27 Thread Thorsten Heit
Hi Stuart,

> When I run mvn integration-test, I get this in the console:
> 
> 
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-plugins
> Version: 2-SNAPSHOT
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT
> 
> >from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   mortbay.repo (http://www.mortbay.org/maven2/snapshot),
>   codehaus.snapshots (http://snapshots.repository.codehaus.org/),
>   tapestry.javaforge (http://howardlewisship.com/repository)
> 
> 
> I googled it an several other links, it seems people say this might be
> outdated or something. Is there a work-around or is this a common
> problem? Where should I look?

This file should be available at the following snapshot repository:
http://people.apache.org/maven-snapshot-repository/


HTH

Thorsten

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



Re : [m2eclipse-user] Re : Re :Re : Re : Re : Step by Step guide

2007-04-27 Thread spouynt
>Dos your project have a long list of dependencies in it or 
just the maven dependency container?
my project have a long list of dependencies

>What version of eclipse are you using?
I'm using MyEclipse 5.5 M2

Thanks
Nawfel

- Message d'origine 
De : Phill Moran <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED]; users@maven.apache.org
Envoyé le : Vendredi, 27 Avril 2007, 13h21mn 36s
Objet : RE: [m2eclipse-user] Re : Re :Re : Re :  Re : Step by Step guide



 
DIV {
MARGIN:0px;}



Dos your project have a long list of dependencies in it or 
just the maven dependency container?

What version of eclipse are you using?

 

Phill




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 

Sent: April 27, 2007 6:55 AM
To: 
[EMAIL PROTECTED]; users@maven.apache.org
Subject: 
[m2eclipse-user] Re : Re :Re : Re : Re : Step by Step guide






Thanks 
for the trick,
But I think that there's a problem with that plugin ! once I 
lunch a compile goal I haave only this output for long time !! : 

[INFO] 
Scanning for projects...

and nothing else ! 

Thanks for 
helping
Nawfel BERAICH


- 
Message d'origine 
De : VUB Stefan Seidel <[EMAIL PROTECTED]>
À : 
[EMAIL PROTECTED]
Envoyé le : Vendredi, 27 Avril 2007, 8h32mn 
51s
Objet : Re: [m2eclipse-user] Re :Re : Re : Re : Step by Step 
guide


Very heated discussion here... AFAICS you just have a very old 
version
of the plugin where the compile errors were not printed out in 
the
Eclipse console. Install the dev version from
http://m2eclipse.codehaus.org/update-dev/
and check whether 
is works better for you.

Stefan

Am Donnerstag, den 26.04.2007, 
18:46 + schrieb [EMAIL PROTECTED]:
> >>I have no idea what Nawfel 
BERAICH means - please tell???
> Nawfel = my first name , BERAICH = my 
last name
> (^_^)
> 
> >>Just run this from command 
prompt for now. You do not need to use
> the external -> tools thing 
you just can. Once working re-run
> eclipse:eclipse in the project dir, 
add maven dependencies and your
> off
> 
> but what I need is 
to compile through eclipse and have the same log as
> the one I have in 
the command prompt like :
> 
> 
C:\works\workspaceM2\myAppName-v1.3\src\main\java\com\some\bl\domain
> 
\AClassDaoImpl.java:[127,87] cannot find symbol
> symbol  : 
class AClassDTO
> location: package com.some.dto
> 
> because 
I have an existing project that uses Ant for builds and
> compiles and I 
have to "mavenize" it  
> 
> 
> 
> Thanks for 
helping
> Nawfel BERAICH
> 
> - Message d'origine 

> De : Phill Moran <[EMAIL PROTECTED]>
> À : 
[EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 18h23mn 
01s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re :
> 
[m2eclipse-user] Re : Step by Step guide
> 
> I have no idea what 
Nawfel BERAICH means - please tell???
>  
> Just run this 
from command prompt for now. You do not need to use the
> external -> 
tools thing you just can. Once working re-run
> eclipse:eclipse in the 
project dir, add maven dependencies and your
> 
off
>  
> At least that is what I 
did
>  
>  
> Phill
> 
> 

> 
__
> 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 
1:50 PM
> To: [EMAIL PROTECTED]
> Subject: 
[m2eclipse-user] Re : [m2eclipse-user] Re : [m2eclipse-user]
> Re : Step 
by Step guide
> 
> 
> 
> do you mean that I have to add 
an external call to maven in external
> tools>>program>>new 
program and put the path to maven.bat then add
> 'compile -X' in Arguments 
??
> 
> Nawfel BERAICH
> 
> - Message d'origine 

> De : Phill Moran <[EMAIL PROTECTED]>
> À : 
[EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 17h30mn 
22s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by 
Step
> guide
> 
> Forgot to mention that you should run this 
from the command line and
> get the POM right then move to Eclipse. Use 
the -X I mention below
>  
> Phill
> 
> 

> 
__
> 
From: Phill Moran [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 
12:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: 
[m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 

> 
> 
> If you are using the straight up eclipse compile then 
it is somewhat
> filtered (not sure why). But you can do this from the 
command line or
> external->tools. What I would say is do it with the 
-X flag (turn on
> trace) or -e flag expanded stack trace. I don't think 
you need both
>  
> Phill
> 
> 
> 
__
> 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 
10:22 AM
> To: [EMAIL PROTECTED]
> Subject: 
[m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 

> 
> 
> I'm speaking about this :
> 
> 
[INFO]
> 

> 
[INFO] Building Unnamed - com:AstreeTutelec:jar:1.3
> 
[INFO]task-segment: [package]
> [INFO]

Problem with org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT

2007-04-27 Thread Stuart Guthrie

Hi there,

I'm trying to follow an excellent tutorial on selenium/cargo/maven etc.

http://binil.wordpress.com/2006/12/08/automated-smoke-tests-with-selenium-cargo-testng-and-maven/

We use maven2 all the time at work but this integration-test software
loads lots more dependencies and plugins than we do.

The problem I am getting is at step1 (which is funnily enough the 2nd step)..

When I run mvn integration-test, I get this in the console:


[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 2-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 mortbay.repo (http://www.mortbay.org/maven2/snapshot),
 codehaus.snapshots (http://snapshots.repository.codehaus.org/),
 tapestry.javaforge (http://howardlewisship.com/repository)


I googled it an several other links, it seems people say this might be
outdated or something. Is there a work-around or is this a common
problem? Where should I look?

TIA

Stuart

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



Is it a bug ?

2007-04-27 Thread Charles Paulet

Hi,

Is this problem a normal behaviour ?

1 - The root user create a new user (projectleader) with a password ans 
sets privileges.

2 - The root user logs out.
3 - The projectleader logs in, AND checks the "remember me" checkbox.
4 - Continuum asks to change the projectleader password

Here if you don't delete the cookie, you can't exit the 
security/password.action page.

- Logout doesn't work
- Restart Continuum doesn't work
- Click menu item doesn't work

Charles


RE: [m2eclipse-user] Re : Re :Re : Re : Re : Step by Step guide

2007-04-27 Thread Phill Moran
Dos your project have a long list of dependencies in it or just the maven
dependency container?
What version of eclipse are you using?
 
Phill

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: April 27, 2007 6:55 AM
To: [EMAIL PROTECTED]; users@maven.apache.org
Subject: [m2eclipse-user] Re : Re :Re : Re : Re : Step by Step guide


Thanks for the trick,
But I think that there's a problem with that plugin ! once I lunch a compile
goal I haave only this output for long time !! : 

[INFO] Scanning for projects...

and nothing else ! 

Thanks for helping
Nawfel BERAICH


- Message d'origine 
De : VUB Stefan Seidel <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED]
Envoyé le : Vendredi, 27 Avril 2007, 8h32mn 51s
Objet : Re: [m2eclipse-user] Re :Re : Re : Re : Step by Step guide


Very heated discussion here... AFAICS you just have a very old version
of the plugin where the compile errors were not printed out in the
Eclipse console. Install the dev version from
http://m2eclipse.codehaus.org/update-dev/
and check whether is works better for you.

Stefan

Am Donnerstag, den 26.04.2007, 18:46 + schrieb [EMAIL PROTECTED]:
> >>I have no idea what Nawfel BERAICH means - please tell???
> Nawfel = my first name , BERAICH = my last name
> (^_^)
> 
> >>Just run this from command prompt for now. You do not need to use
> the external -> tools thing you just can. Once working re-run
> eclipse:eclipse in the project dir, add maven dependencies and your
> off
> 
> but what I need is to compile through eclipse and have the same log as
> the one I have in the command prompt like :
> 
> C:\works\workspaceM2\myAppName-v1.3\src\main\java\com\some\bl\domain
> \AClassDaoImpl.java:[127,87] cannot find symbol
> symbol  : class AClassDTO
> location: package com.some.dto
> 
> because I have an existing project that uses Ant for builds and
> compiles and I have to "mavenize" it  
> 
> 
> 
> Thanks for helping
> Nawfel BERAICH
> 
> - Message d'origine 
> De : Phill Moran <[EMAIL PROTECTED]>
> À : [EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 18h23mn 01s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re :
> [m2eclipse-user] Re : Step by Step guide
> 
> I have no idea what Nawfel BERAICH means - please tell???
>  
> Just run this from command prompt for now. You do not need to use the
> external -> tools thing you just can. Once working re-run
> eclipse:eclipse in the project dir, add maven dependencies and your
> off
>  
> At least that is what I did
>  
>  
> Phill
> 
> 
> __
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 1:50 PM
> To: [EMAIL PROTECTED]
> Subject: [m2eclipse-user] Re : [m2eclipse-user] Re : [m2eclipse-user]
> Re : Step by Step guide
> 
> 
> 
> do you mean that I have to add an external call to maven in external
> tools>>program>>new program and put the path to maven.bat then add
> 'compile -X' in Arguments ??
> 
> Nawfel BERAICH
> 
> - Message d'origine 
> De : Phill Moran <[EMAIL PROTECTED]>
> À : [EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 17h30mn 22s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 
> Forgot to mention that you should run this from the command line and
> get the POM right then move to Eclipse. Use the -X I mention below
>  
> Phill
> 
> 
> __
> From: Phill Moran [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 
> 
> 
> If you are using the straight up eclipse compile then it is somewhat
> filtered (not sure why). But you can do this from the command line or
> external->tools. What I would say is do it with the -X flag (turn on
> trace) or -e flag expanded stack trace. I don't think you need both
>  
> Phill
> 
> 
> __
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 10:22 AM
> To: [EMAIL PROTECTED]
> Subject: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 
> 
> 
> I'm speaking about this :
> 
> [INFO]
> 
> [INFO] Building Unnamed - com:AstreeTutelec:jar:1.3
> [INFO]task-segment: [package]
> [INFO]
> 
> [INFO] resources:resources
> [INFO] Using default encoding to copy filtered resources.
> [INFO] compiler:compile
> [INFO] Nothing to compile - all classes are up to date
> [INFO] resources:testResources
> [INFO] Using default encoding to copy filtered resources.
> [INFO] compiler:testCompile
> [INFO] No sources to compile
> [INFO] surefire:test
> [INFO] No tests to run.
> [INFO] jar:jar
> [INFO] Building jar: C:\works\workspaceM2\TutelecOJV-v1.3\target
> \AstreeTutelec-1.3

Re: Releasing a branch?

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Roland Asmann <[EMAIL PROTECTED]> wrote:

Branching (as I've stated a couple of time now) is an issue, which I feel can
and should be automated. However, the merging of code is something that I
feel should be left with manual intervention.

Some bugs that have been fixed in a branch, may have been solved in the head
already by e.g. implementing a new feature (maybe you stumbled upon the bug
or you had to refactor some code and fixed the bug without knowing). So, in
my opinion, the merging must remain a manual process.


I fully agree, I am not proposing that it should be automated. The
issue is, even if the difficulties you mentioned don't come up, there
is one place where you *always* get conflicts, namely the version
fields in the POMs.

Henry

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



Problem 1.1.alpha.1 : avoid scanning ant

2007-04-27 Thread Charles Paulet

Hi,

Is it possible to stop the scanning of ant path when continuum starts ?
2007-04-26 11:55:45,833 [main] INFO  ContinuumBuildExecutor:ant - 
Resolved the executable 'ant' to '/usr/bin/ant'.


For automated builds with 1.0.3, we use another ant file.

Thx,
Charles


Re: Releasing a branch?

2007-04-27 Thread Roland Asmann
Branching (as I've stated a couple of time now) is an issue, which I feel can 
and should be automated. However, the merging of code is something that I 
feel should be left with manual intervention.

Some bugs that have been fixed in a branch, may have been solved in the head 
already by e.g. implementing a new feature (maybe you stumbled upon the bug 
or you had to refactor some code and fixed the bug without knowing). So, in 
my opinion, the merging must remain a manual process.

However, don't let me keep you from exploring things that might help you in 
your development-process! Keep turning the issue around, and maybe you even 
find a solution that makes me change my mind! ;-)


On Friday 27 April 2007 12:23, Heinrich Nirschl wrote:
> There is another, slightly related issue. From time to time, you want
> to merge the bug fixes from the maintenance branch back to the trunk.
> The problem is, that you get merge conflicts on all the POMs because
> of the version fields that have changed on the trunk and on the
> maintenance branch. This makes again some manual intervention
> necessary. I don't have a good solution for that either. Ideas are
> welcome.
>
> I think part of the problem with branching and merging is that even if
> you keep all the module versions in sync you have the version
> information literally written in every POM in your project (as version
> of the artifact or as version of the parent POM). It would be much
> less painful if there was just one place to adapt. However, I don't
> see how a central specification of the version could be achieved
> without loosing the ability to build modules individually.
>
> - Henry

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



Re: war plugin: making optinal ?

2007-04-27 Thread Jerome Lacoste

On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:

On 4/27/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote:
> On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
> > I think that instead of using optional, you have been meaning to use
> > provided.  This would indicate that the jars are
> > necessary, but won't include them in your war because it is assumed
> > that it will be provided by the container, or in your case, the ear.
>
> Nope. Cf last part of
> 
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html

Ouch, that's a little disconcerting.  Here's what the pom reference
has to say about optional:

"optional: Marks optional a dependency when this project itself is a
dependency. Confused? For example, imagine a project A that depends
upon project B to compile a portion of code that may not be used at
runtime, then we may have no need for project B for all project."

Since it sounds like none of your dependencies are optional in either
the english or maven senses of the word, I don't see the justification
for the way the war manifests are configured.What you've done
makes sense in terms of getting the desired effect, but not so much in
terms of the meaning of the metadata.


agreed


What I'd rather see is an option in the ear plugin for removing
artifacts from dependencies that are already present in APP-INF/lib.
That way, you can remove the optional tag completely, still have your
manifests the way you want, be able to test and still have your lean
ears.


That would be better as I would have to make a single change to my
project (the optimization could almost be on by default in a next
major release of the plugin).

The solution should also update the wars MANIFEST files.

Cheers,

Jerome

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



Re: How to put cobertura.ser in target DIR

2007-04-27 Thread Hugues Pisapia

Hi There,

I've had the antrun plugin does thi for me by adding this the parent
pom of my multi project:

 
   maven-antrun-plugin
   
 
   process-test-resources
   cobertura:bugfix
   
 
   
 
   
   
 run
   
 
   
 

And it seems to fix the stuff with sirefire 2.3 and cobertura 2.1.

- Hugues


2007/1/8, Hans L'Hoest <[EMAIL PROTECTED]>:

Hello all,

I seem to be running into the same problem: I can't configure the
cobertura datafile.

When running cobertura:cobertura I am getting:

"Cobertura: Coverage data file C:\projects\myproject\cobertura.ser
either does not exist or is not readable.  Creating a new data file."

Followed by lines like:

"[cobertura] INFO  [main]
net.sourceforge.cobertura.reporting.html.HTMLReport - Data file does
not contain instrumentation information for the file
MethodEditor.java.  Ensure this class was instrumented, and this data
file contains the instrumentation information."

It seems the instrumentation is saved to a different ser file than the
one that is being used by the report generation. (The instrument goal
instruments more classes than on the 2nd run with the cobertura goal.)

I can get it to work with a manual step:
* First run: mvn clean cobertura:instrument
* Then I copy the cobertura.ser file from
C:\projects\myproject\target\cobertura to C:\projects\myproject
* I run mvn cobertura:cobertura

My report is generated fine. No errors.

Any idea how I can fix this (this has nothing to do with the clean
goal it seems as the correct file cannot be found.)?

Thank you,
Kind regards,

Hans



On 10/4/06, Joakim Erdfelt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The situation with the dataFile parameter, is that it is unreliable to
> use System Properties from within the embedded nature of the
> cobertura-maven-plugin.
>
> The bug has a fix on the cobertura side:
> 
https://sourceforge.net/tracker/index.php?func=detail&aid=1543280&group_id=130558&atid=720017
>
> Go encourage the cobertura folks to commit that patch.
> Full disclosure: Yes I wrote that patch, so I'm a little biased. ;-)
>
> The current cobertura-maven-plugin snapshot available in subversion
> already supports that cobertura patch.
>
> Once that patch is applied on the cobertura side, we should be able to
> reliably set the dataFile parameter. yay!
>
> You can also use the maven-clean-plugin to clean out that file.
>
> 
>   org.apache.maven.plugins
>   maven-clean-plugin
>   
> 
>   
> ${basedir}
> 
>   cobertura.ser
> 
>   
> 
>   
> 
>
> (caution, I wrote this out from memory, it might contain typos.)
>
> - Joakim Erdfelt
>
> dan tran wrote:
> > oopps, the doc did say we can not change this location due to bug in
> > corbertura 1.6
> >
> > how about remove that file in your post-clean phase
> >
> > -D
> >
> >
> > On 10/4/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >>
> >> So how would I configure dataFile  in my plugin?
> >>
> >>
> >>
> >>
> >> On 10/4/06, dan tran <[EMAIL PROTECTED]> wrote:
> >> >
> >> > http://mojo.codehaus.org/cobertura-maven-plugin/cobertura-mojo.html
> >> >
> >> > On 10/4/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >> > >
> >> > > I want to know how I can put cobertura.ser into my target DIR so
> >> when
> >> I
> >> > > run
> >> > > mvn clean, the cobertura files get cleaned as well.
> >> > >
> >> > > --
> >> > >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Hugues
--
e: [EMAIL PROTECTED]
jid: [EMAIL PROTECTED]
Fight Multiple Sclerosis - http://odyssee-espoir.com

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



Re: maven 1.1 site generation

2007-04-27 Thread Arnaud HERITIER

yep, I understand now why I remember to have see this issue ;-)

Arnaud

On 27/04/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:


http://jira.codehaus.org/browse/MPXDOC-196

This one?

-Lukas


Arnaud HERITIER wrote:
> With with browser ?
> IE 5 ?
> I thought I already saw this bug and there's an issue open in JIRA in
the
> xdoc plugin.
>
> Arnaud
>
>
> On 27/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>
>>
>> but it keeps getting the central part of the page below everything...
>>
>> Emerson
>>
>> On 27/04/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:
>> > ${maven.docs.src}/style/project.css
>> >
>> > See http://maven.apache.org/maven-1.x/plugins/xdoc/.
>> >
>> > HTH,
>> > -Lukas
>> >
>> >
>> > emerson cargnin wrote:
>> > > I tried it and then although the project names fit in the box the
>> > > right part of the page looses the configuration. where should I put
>> > > the overinding css file to be included (initially I fixed directly
in
>> > > the maven-base.css )?
>> > >
>> > > thanks
>> > > emerson
>> > >
>> > > On 24/04/07, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
>> > >
>> > >> It's certainly a problem in the stylesheet.
>> > >> in the maven-base.css there's a fixed width :
>> > >>
>> > >> #leftColumn (line 58)
>> > >>
>> > >> {
>> > >>
>> > >>  width: 150px;
>> > >>
>> > >>  float: left;
>> > >>
>> > >> }
>> > >> You can try to override this style in your own project.css
>> > >> Open an issue in the xdoc plugin you you want that we change it.
>> > >>
>> > >> Arnaud
>> > >>
>> > >> On 24/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>> > >> >
>> > >> > Hi
>> > >> >
>> > >> > In the site generated, the left column, with the sub projects
>> > >> > (Projects title), the name of the projects goes out of the
column
>> when
>> > >> > it's more than abount 21 chars. In the 1.0.2 it was alright,
does
>> > >> > anyone know how to correct it?
>> > >> >
>> > >> > thanks
>> > >> > emerson
>> > >> >
>> > >> >
>> -
>> > >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >> >
>> > >> >
>> > >>
>> > >
>> > >
-
>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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




Re: maven 1.1 site generation

2007-04-27 Thread Lukas Theussl

http://jira.codehaus.org/browse/MPXDOC-196

This one?

-Lukas


Arnaud HERITIER wrote:

With with browser ?
IE 5 ?
I thought I already saw this bug and there's an issue open in JIRA in the
xdoc plugin.

Arnaud


On 27/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:



but it keeps getting the central part of the page below everything...

Emerson

On 27/04/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:
> ${maven.docs.src}/style/project.css
>
> See http://maven.apache.org/maven-1.x/plugins/xdoc/.
>
> HTH,
> -Lukas
>
>
> emerson cargnin wrote:
> > I tried it and then although the project names fit in the box the
> > right part of the page looses the configuration. where should I put
> > the overinding css file to be included (initially I fixed directly in
> > the maven-base.css )?
> >
> > thanks
> > emerson
> >
> > On 24/04/07, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> >
> >> It's certainly a problem in the stylesheet.
> >> in the maven-base.css there's a fixed width :
> >>
> >> #leftColumn (line 58)
> >>
> >> {
> >>
> >>  width: 150px;
> >>
> >>  float: left;
> >>
> >> }
> >> You can try to override this style in your own project.css
> >> Open an issue in the xdoc plugin you you want that we change it.
> >>
> >> Arnaud
> >>
> >> On 24/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
> >> >
> >> > Hi
> >> >
> >> > In the site generated, the left column, with the sub projects
> >> > (Projects title), the name of the projects goes out of the column
when
> >> > it's more than abount 21 chars. In the 1.0.2 it was alright, does
> >> > anyone know how to correct it?
> >> >
> >> > thanks
> >> > emerson
> >> >
> >> >
-
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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






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



Re: maven 1.1 site generation

2007-04-27 Thread Arnaud HERITIER

With with browser ?
IE 5 ?
I thought I already saw this bug and there's an issue open in JIRA in the
xdoc plugin.

Arnaud


On 27/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:


but it keeps getting the central part of the page below everything...

Emerson

On 27/04/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:
> ${maven.docs.src}/style/project.css
>
> See http://maven.apache.org/maven-1.x/plugins/xdoc/.
>
> HTH,
> -Lukas
>
>
> emerson cargnin wrote:
> > I tried it and then although the project names fit in the box the
> > right part of the page looses the configuration. where should I put
> > the overinding css file to be included (initially I fixed directly in
> > the maven-base.css )?
> >
> > thanks
> > emerson
> >
> > On 24/04/07, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> >
> >> It's certainly a problem in the stylesheet.
> >> in the maven-base.css there's a fixed width :
> >>
> >> #leftColumn (line 58)
> >>
> >> {
> >>
> >>  width: 150px;
> >>
> >>  float: left;
> >>
> >> }
> >> You can try to override this style in your own project.css
> >> Open an issue in the xdoc plugin you you want that we change it.
> >>
> >> Arnaud
> >>
> >> On 24/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
> >> >
> >> > Hi
> >> >
> >> > In the site generated, the left column, with the sub projects
> >> > (Projects title), the name of the projects goes out of the column
when
> >> > it's more than abount 21 chars. In the 1.0.2 it was alright, does
> >> > anyone know how to correct it?
> >> >
> >> > thanks
> >> > emerson
> >> >
> >> >
-
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




Process resources (date,build number, version...etc)

2007-04-27 Thread spouynt
Hi all,
I need to process some resources which was properties in Ant like this :



where :











how can I fill this property in maven ? and process it through filtered 
resources ?

I know I'm asking too much, but its the only way to have the maximum of your 
experience friends ! ;-)

Thanks
Nawfel




  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: war plugin: making optinal ?

2007-04-27 Thread Gregory Kick

On 4/27/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote:

On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
> I think that instead of using optional, you have been meaning to use
> provided.  This would indicate that the jars are
> necessary, but won't include them in your war because it is assumed
> that it will be provided by the container, or in your case, the ear.

Nope. Cf last part of
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html


Ouch, that's a little disconcerting.  Here's what the pom reference
has to say about optional:

"optional: Marks optional a dependency when this project itself is a
dependency. Confused? For example, imagine a project A that depends
upon project B to compile a portion of code that may not be used at
runtime, then we may have no need for project B for all project."

Since it sounds like none of your dependencies are optional in either
the english or maven senses of the word, I don't see the justification
for the way the war manifests are configured.What you've done
makes sense in terms of getting the desired effect, but not so much in
terms of the meaning of the metadata.

What I'd rather see is an option in the ear plugin for removing
artifacts from dependencies that are already present in APP-INF/lib.
That way, you can remove the optional tag completely, still have your
manifests the way you want, be able to test and still have your lean
ears.

How's that sound?



> As far as your testing, you could setup a container that has those
> artifacts as part of the common libraries and deploy to that.  For
> example, if you're using the jetty plugin,
> http://ramblingabout.wordpress.com/2007/01/12/jsf-on-jetty-and-maven/
> says that you can just add them as dependencies for the plugin.  I
> haven't tried it, but it seems reasonable.

That's not satisfying. I will have to put this environment each time
my dependencies are changed. That's just pushing the problem away.

Cheers,

Jerome

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





--
Gregory Kick
http://kickstyle.net/

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



Re: maven 1.1 site generation

2007-04-27 Thread emerson cargnin

but it keeps getting the central part of the page below everything...

Emerson

On 27/04/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:

${maven.docs.src}/style/project.css

See http://maven.apache.org/maven-1.x/plugins/xdoc/.

HTH,
-Lukas


emerson cargnin wrote:
> I tried it and then although the project names fit in the box the
> right part of the page looses the configuration. where should I put
> the overinding css file to be included (initially I fixed directly in
> the maven-base.css )?
>
> thanks
> emerson
>
> On 24/04/07, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
>
>> It's certainly a problem in the stylesheet.
>> in the maven-base.css there's a fixed width :
>>
>> #leftColumn (line 58)
>>
>> {
>>
>>  width: 150px;
>>
>>  float: left;
>>
>> }
>> You can try to override this style in your own project.css
>> Open an issue in the xdoc plugin you you want that we change it.
>>
>> Arnaud
>>
>> On 24/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi
>> >
>> > In the site generated, the left column, with the sub projects
>> > (Projects title), the name of the projects goes out of the column when
>> > it's more than abount 21 chars. In the 1.0.2 it was alright, does
>> > anyone know how to correct it?
>> >
>> > thanks
>> > emerson
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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




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



Re: pom.xml URL - CVS access

2007-04-27 Thread Rodrigo Gonçalves

THX for your answer Rahul...

I already try that, but it does not work. Our web-cvs doesn't support 
that kind of authentication.  :(


Any other ideas ?



Rahul Thakur wrote:
You want to know how to specify username & password to add your 
pom.xml from CVS, correct?


Something like:
https://username:[EMAIL PROTECTED]/cgi-bin/cvsweb.cgi/~checkout~/module_path/file_name 



HTH,

Rahul


- Original Message - From: "Rodrigo Gonçalves" 
<[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2007 10:20 PM
Subject: pom.xml URL - CVS access



 Hi...

 Until now in our CVS server we could via web access a file without 
web login, with the direct link: 
https://cvs.cvsservername.com/cgi-bin/cvsweb.cgi/~checkout~/module_path/file_name 

but that security problem was resolved, leaving us with a problem on 
the continuum server.


 Adding a new project to continuum is now impossible. Continuum 
requires an URL to access the pom.xml and create a new project. Well, 
to access an URL in our WEB-CVS we need to authenticate via WEB. And 
the POM upload works only for a single projects without modules.


 After we add the project there is no problem because we have pageant 
running as a server on the same machine, and continuum checkout the 
projects, and works perfectly.


 So how can we add new projects to continuum?

 Any help, ideas or workarounds, would be very appreciated.


 Regards,
 Rodrigo.








Re: maven 1.1 site generation

2007-04-27 Thread Lukas Theussl

${maven.docs.src}/style/project.css

See http://maven.apache.org/maven-1.x/plugins/xdoc/.

HTH,
-Lukas


emerson cargnin wrote:

I tried it and then although the project names fit in the box the
right part of the page looses the configuration. where should I put
the overinding css file to be included (initially I fixed directly in
the maven-base.css )?

thanks
emerson

On 24/04/07, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:


It's certainly a problem in the stylesheet.
in the maven-base.css there's a fixed width :

#leftColumn (line 58)

{

 width: 150px;

 float: left;

}
You can try to override this style in your own project.css
Open an issue in the xdoc plugin you you want that we change it.

Arnaud

On 24/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> In the site generated, the left column, with the sub projects
> (Projects title), the name of the projects goes out of the column when
> it's more than abount 21 chars. In the 1.0.2 it was alright, does
> anyone know how to correct it?
>
> thanks
> emerson
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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


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



Re : Re :Re : Re : Re : Step by Step guide

2007-04-27 Thread spouynt
Thanks for the trick,
But I think that there's a problem with that plugin ! once I lunch a compile 
goal I haave only this output for long time !! : 

[INFO] Scanning for projects...

and nothing else ! 

Thanks for helping
Nawfel BERAICH

- Message d'origine 
De : VUB Stefan Seidel <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED]
Envoyé le : Vendredi, 27 Avril 2007, 8h32mn 51s
Objet : Re: [m2eclipse-user] Re :Re : Re :  Re : Step by Step guide

Very heated discussion here... AFAICS you just have a very old version
of the plugin where the compile errors were not printed out in the
Eclipse console. Install the dev version from
http://m2eclipse.codehaus.org/update-dev/
and check whether is works better for you.

Stefan

Am Donnerstag, den 26.04.2007, 18:46 + schrieb [EMAIL PROTECTED]:
> >>I have no idea what Nawfel BERAICH means - please tell???
> Nawfel = my first name , BERAICH = my last name
> (^_^)
> 
> >>Just run this from command prompt for now. You do not need to use
> the external -> tools thing you just can. Once working re-run
> eclipse:eclipse in the project dir, add maven dependencies and your
> off
> 
> but what I need is to compile through eclipse and have the same log as
> the one I have in the command prompt like :
> 
> C:\works\workspaceM2\myAppName-v1.3\src\main\java\com\some\bl\domain
> \AClassDaoImpl.java:[127,87] cannot find symbol
> symbol  : class AClassDTO
> location: package com.some.dto
> 
> because I have an existing project that uses Ant for builds and
> compiles and I have to "mavenize" it  
> 
> 
> 
> Thanks for helping
> Nawfel BERAICH
> 
> - Message d'origine 
> De : Phill Moran <[EMAIL PROTECTED]>
> À : [EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 18h23mn 01s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re :
> [m2eclipse-user] Re : Step by Step guide
> 
> I have no idea what Nawfel BERAICH means - please tell???
>  
> Just run this from command prompt for now. You do not need to use the
> external -> tools thing you just can. Once working re-run
> eclipse:eclipse in the project dir, add maven dependencies and your
> off
>  
> At least that is what I did
>  
>  
> Phill
> 
> 
> __
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 1:50 PM
> To: [EMAIL PROTECTED]
> Subject: [m2eclipse-user] Re : [m2eclipse-user] Re : [m2eclipse-user]
> Re : Step by Step guide
> 
> 
> 
> do you mean that I have to add an external call to maven in external
> tools>>program>>new program and put the path to maven.bat then add
> 'compile -X' in Arguments ??
> 
> Nawfel BERAICH
> 
> - Message d'origine 
> De : Phill Moran <[EMAIL PROTECTED]>
> À : [EMAIL PROTECTED]
> Envoyé le : Jeudi, 26 Avril 2007, 17h30mn 22s
> Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 
> Forgot to mention that you should run this from the command line and
> get the POM right then move to Eclipse. Use the -X I mention below
>  
> Phill
> 
> 
> __
> From: Phill Moran [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 
> 
> 
> If you are using the straight up eclipse compile then it is somewhat
> filtered (not sure why). But you can do this from the command line or
> external->tools. What I would say is do it with the -X flag (turn on
> trace) or -e flag expanded stack trace. I don't think you need both
>  
> Phill
> 
> 
> __
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: April 26, 2007 10:22 AM
> To: [EMAIL PROTECTED]
> Subject: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
> guide
> 
> 
> 
> I'm speaking about this :
> 
> [INFO]
> 
> [INFO] Building Unnamed - com:AstreeTutelec:jar:1.3
> [INFO]task-segment: [package]
> [INFO]
> 
> [INFO] resources:resources
> [INFO] Using default encoding to copy filtered resources.
> [INFO] compiler:compile
> [INFO] Nothing to compile - all classes are up to date
> [INFO] resources:testResources
> [INFO] Using default encoding to copy filtered resources.
> [INFO] compiler:testCompile
> [INFO] No sources to compile
> [INFO] surefire:test
> [INFO] No tests to run.
> [INFO] jar:jar
> [INFO] Building jar: C:\works\workspaceM2\TutelecOJV-v1.3\target
> \AstreeTutelec-1.3.jar
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
> [INFO]
> 
> [INFO] Total time: 7 second
> [INFO] Finished at: Thu Apr 26 14:20:49 GMT 2007
> [INFO] Memory 2M/9M
> [INFO]
> ---

Re: maven 1.1 site generation

2007-04-27 Thread emerson cargnin

I tried it and then although the project names fit in the box the
right part of the page looses the configuration. where should I put
the overinding css file to be included (initially I fixed directly in
the maven-base.css )?

thanks
emerson

On 24/04/07, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:

It's certainly a problem in the stylesheet.
in the maven-base.css there's a fixed width :

#leftColumn (line 58)

{

 width: 150px;

 float: left;

}
You can try to override this style in your own project.css
Open an issue in the xdoc plugin you you want that we change it.

Arnaud

On 24/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> In the site generated, the left column, with the sub projects
> (Projects title), the name of the projects goes out of the column when
> it's more than abount 21 chars. In the 1.0.2 it was alright, does
> anyone know how to correct it?
>
> thanks
> emerson
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: maven 1.0.2 to 1.1 beta 3

2007-04-27 Thread emerson cargnin

I was using standard CS configuration, when i switch for our own
configuration, it got a lot faster. Thanks for the help.
Emerson

On 23/04/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:

3Ms is certainly a big file especially since the raw reports are
probably bigger... did you try already to disable some of the checks? I
just ran checkstyle on a project with 207 files, the
checkstyle-summary-report.xml is 5450 bytes and it took exactly 1
minute, so 4mins for your project doesn't surprise me.

-Lukas


emerson cargnin wrote:
> i found out that the part that takes the most of time (4 minutes for
> 500 files) is
>
>   input="${maven.checkstyle.output.xml}"
>  output="checkstyle-summary-report.xml"
>  outputDirectory="${maven.checkstyle.dir}"
>  stylesheet="${plugin.resources}/checkstyle-summary.jsl"
>  encoding="${maven.docs.outputencoding}"
>  outputMode="xml"
>  prettyPrint="true"/>
>
> that's the raw report...
>
> and the file generated has 3088523 bytes. Is it normal?
>
> thanks
> emerson
>
> On 23/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>
>> anyone has any clue how I could investigate this better???
>>
>> thanks
>>
>> On 20/04/07, emerson cargnin <[EMAIL PROTECTED]> wrote:
>> > ok
>> >
>> > thanks a lot
>> >
>> > would anyone else have a clue why my build hangs for so long on the
>> > following point?
>> >
>> > [exec] checkstyle:report-internal:
>> > [exec] [mkdir] Created dir:
>> >
>> 
/subversion/users/client/cruise/checkout/build-projet/modules/com.company.java/target/generated-xdocs/checkstyle
>>
>> >
>> >
>> >
>> > On 20/04/07, Lukas Theussl <[EMAIL PROTECTED]> wrote:
>> > >
>> > >
>> > > emerson cargnin wrote:
>> > > > Thanks for the reply lukas.
>> > > >
>> > > > 1) do you run checkstyle? if so, you didn't noticed it takes a
>> quite
>> > > > while to generate the reports?
>> > > > in this line it stops for 3 or 4 minutes
>> > > >
>> > > > [exec] [checkstyle] Running Checkstyle 4.1 on 416 files
>> > > > [exec] checkstyle:report-internal:
>> > > > [exec] [mkdir] Created dir:
>> > > >
>> 
/subversion/users/svnclient/cruise/checkout/build-ucssearch/modules/com.yell.searchengine/target/generated-xdocs/checkstyle
>>
>> > >
>> > > Yes I do run checkstyle, and as I said, I haven't noticed any
>> > > performance problems. However, if I understand correctly from your
>> > > snippet, your build hangs in the checkstyle:report-internal goal.
>> This
>> > > goal is run after checkstyle has processed the source code and all it
>> > > does is generate the xdocs from the checkstyle xml output via some
>> jelly
>> > > scripts. So the problem doesn't seem to be related to checkstyle,
>> but I
>> > > have no idea what it could be...
>> > >
>> > > > 2) Do you need to put the emma.jar in your jre lib/ext ???
>> > >
>> > > No, I just downloaded the emma plugin (maven plugin:download) and ran
>> > > 'maven emma'. No other preparation needed.
>> > >
>> > > -Lukas
>> > >
>> > > -
>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> > >
>> >
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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




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



Re: pom.xml URL - CVS access

2007-04-27 Thread Rahul Thakur
You want to know how to specify username & password to add your pom.xml 
from CVS, correct?


Something like:
https://username:[EMAIL 
PROTECTED]/cgi-bin/cvsweb.cgi/~checkout~/module_path/file_name

HTH,

Rahul


- Original Message - 
From: "Rodrigo Gonçalves" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2007 10:20 PM
Subject: pom.xml URL - CVS access



 Hi...

 Until now in our CVS server we could via web access a file without 
web login, with the direct link: 
https://cvs.cvsservername.com/cgi-bin/cvsweb.cgi/~checkout~/module_path/file_name
but that security problem was resolved, leaving us with a problem on 
the continuum server.


 Adding a new project to continuum is now impossible. Continuum 
requires an URL to access the pom.xml and create a new project. Well, 
to access an URL in our WEB-CVS we need to authenticate via WEB. And 
the POM upload works only for a single projects without modules.


 After we add the project there is no problem because we have pageant 
running as a server on the same machine, and continuum checkout the 
projects, and works perfectly.


 So how can we add new projects to continuum?

 Any help, ideas or workarounds, would be very appreciated.


 Regards,
 Rodrigo.





Re: Releasing a branch?

2007-04-27 Thread Heinrich Nirschl

On 4/27/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:

I'll look at the issue created by Jim, but it was in my planning to implement 
the branch creation in the next month.

Emmanuel


There is another, slightly related issue. From time to time, you want
to merge the bug fixes from the maintenance branch back to the trunk.
The problem is, that you get merge conflicts on all the POMs because
of the version fields that have changed on the trunk and on the
maintenance branch. This makes again some manual intervention
necessary. I don't have a good solution for that either. Ideas are
welcome.

I think part of the problem with branching and merging is that even if
you keep all the module versions in sync you have the version
information literally written in every POM in your project (as version
of the artifact or as version of the parent POM). It would be much
less painful if there was just one place to adapt. However, I don't
see how a central specification of the version could be achieved
without loosing the ability to build modules individually.

- Henry

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



pom.xml URL - CVS access

2007-04-27 Thread Rodrigo Gonçalves

 Hi...

 Until now in our CVS server we could via web access a file without web 
login, with the direct link: 
https://cvs.cvsservername.com/cgi-bin/cvsweb.cgi/~checkout~/module_path/file_name
but that security problem was resolved, leaving us with a problem on the 
continuum server.


 Adding a new project to continuum is now impossible. Continuum 
requires an URL to access the pom.xml and create a new project. Well, to 
access an URL in our WEB-CVS we need to authenticate via WEB. And the 
POM upload works only for a single projects without modules.


 After we add the project there is no problem because we have pageant 
running as a server on the same machine, and continuum checkout the 
projects, and works perfectly.


 So how can we add new projects to continuum?

 Any help, ideas or workarounds, would be very appreciated.


 Regards,
 Rodrigo.



Re: Releasing a branch?

2007-04-27 Thread Emmanuel Venisse

I'll look at the issue created by Jim, but it was in my planning to implement 
the branch creation in the next month.

Emmanuel

Roland Asmann a écrit :

Jim,

Sure we can work on that together. If you don't mind, I'll contact you on that 
privately (don't need to send every single e-mail over the list).


I'll let you know when I start things up on my end, feel free to do the same!


On Thursday 26 April 2007 22:21, Crossley, Jim wrote:

Thanks Roland, Trevor, and Heinrich.  The summary below captures the
problem quite concisely.

Roland, perhaps we can work together to implement, or at least come up
with a proposal for one or both of the solutions below.

And anyone else who has a better idea, please speak up.

Jim





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



Re: Releasing a branch?

2007-04-27 Thread Roland Asmann
On Thursday 26 April 2007 22:38, Crossley, Jim wrote:
> Hi.
>
> "Rapha l Pi roni" <[EMAIL PROTECTED]> writes:
>
> [...]
>
> > is this dumb?
>
> Nope.

Definitely not dumb!

>
> > do that need a enhancement jira?
>
> Yep.  http://jira.codehaus.org/browse/MRELEASE-226

Not sure about this though.. I think it should be a seperate plugin, but maybe 
extending the release-plugin is a good idea... At least it's an option I'll 
consider when analyzing/designing it

>
> Thanks,
> Jim

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



Re: Releasing a branch?

2007-04-27 Thread Roland Asmann
Jim,

Sure we can work on that together. If you don't mind, I'll contact you on that 
privately (don't need to send every single e-mail over the list).

I'll let you know when I start things up on my end, feel free to do the same!


On Thursday 26 April 2007 22:21, Crossley, Jim wrote:
> Thanks Roland, Trevor, and Heinrich.  The summary below captures the
> problem quite concisely.
>
> Roland, perhaps we can work together to implement, or at least come up
> with a proposal for one or both of the solutions below.
>
> And anyone else who has a better idea, please speak up.
>
> Jim

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



Re: war plugin: making optinal ?

2007-04-27 Thread Jerome Lacoste

On 4/27/07, Gregory Kick <[EMAIL PROTECTED]> wrote:

I think that instead of using optional, you have been meaning to use
provided.  This would indicate that the jars are
necessary, but won't include them in your war because it is assumed
that it will be provided by the container, or in your case, the ear.


Nope. Cf last part of
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html


As far as your testing, you could setup a container that has those
artifacts as part of the common libraries and deploy to that.  For
example, if you're using the jetty plugin,
http://ramblingabout.wordpress.com/2007/01/12/jsf-on-jetty-and-maven/
says that you can just add them as dependencies for the plugin.  I
haven't tried it, but it seems reasonable.


That's not satisfying. I will have to put this environment each time
my dependencies are changed. That's just pushing the problem away.

Cheers,

Jerome

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



Re : Re : Re : Re : Build number and current date

2007-04-27 Thread spouynt
I'm  using 'The Eclipse Team Provider for the Subversion version control 
system.' not the binary

is it necessary to have the binary if I want to get the build number ?

Thanks friends
Nawfel

- Message d'origine 
De : Wayne Fay <[EMAIL PROTECTED]>
À : Maven Users List 
Envoyé le : Jeudi, 26 Avril 2007, 19h47mn 19s
Objet : Re: Re : Re : Re : Build number and current date

You *are* using Subversion for your source code management/repository, correct?

Make sure the "svn" binary is installed on your machine and in your
path -- typing "svn --version" should give a result. Then type "mvn
..." from that same command line.

Wayne

On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I used this in my pom :
>
>  
> scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
>scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
>https://www.mycompany.ma/svnrepos/myAppName/v1.3
>  
>
> but i had this in the log :
>
> [DEBUG] Configuring mojo 
> 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> [DEBUG]   (s) doCheck = true
> [DEBUG]   (s) doUpdate = true
> [DEBUG]   (f) project = [EMAIL PROTECTED]
> [DEBUG]   (s) urlScm = 
> scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> [DEBUG] -- end configuration --
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Verifying there are no local modifications ...
> [INFO] Executing: svn --non-interactive status
> [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> Provider message:
> The svn command failed.
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> Command output:
> 'svn' is not recognized as an internal or external command,
> operable program or batch file.
>
> [INFO] An error has occurred while checking scm status.
>
> Embedded error: Error!
> [INFO] 
> 
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred 
> while checking scm status.
>at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>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.MojoExecutionException: An error has 
> occurred while checking scm status.
>at 
> org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:331)
>at 
> org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
>at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>... 16 more
> Caused by: org.apache.maven.scm.ScmException: Error!
>at 
> org.codehaus.mojo.buildNumber.BuildNumberMojo.checkResult(BuildNumberMojo.java:510)
>at 
> org.codehaus.mojo.buildNumber.BuildNumberMojo.getStatus(BuildNumberMojo.java:388)
>at 
> org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:327)
>... 19 more
> [INFO] 
> 
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Thu Apr 26 19:03:22 GMT 2007
> [INFO] Final Memory: 4M/9M
> [INFO] 
> 
>
>
> - Message d'origine 
> De : Phill Moran <[EMAIL PROTECTED]>
> À : [EMAIL PROTECTED]
> Envoyé le : 

Re: war plugin: making optinal ?

2007-04-27 Thread Gregory Kick

I think that instead of using optional, you have been meaning to use
provided.  This would indicate that the jars are
necessary, but won't include them in your war because it is assumed
that it will be provided by the container, or in your case, the ear.

As far as your testing, you could setup a container that has those
artifacts as part of the common libraries and deploy to that.  For
example, if you're using the jetty plugin,
http://ramblingabout.wordpress.com/2007/01/12/jsf-on-jetty-and-maven/
says that you can just add them as dependencies for the plugin.  I
haven't tried it, but it seems reasonable.

On 4/27/07, Jerome Lacoste <[EMAIL PROTECTED]> wrote:

Hi,

our project has several wars all bundled in an ear. In order to reduce
the size, we moved most of the dependencies to the ear using
true.

Now we would like the developers to be able to test & deploy the wars
independently and it is not possible due to the now 'missing'
dependencies.

I can see 2 options:

* use profiles. Not very flexible and project specific

* add an option to ignore the  recommendations in the war
plugin. Later on perhaps create a new fullwar mojo that ignores the
 recommendation by default and store the results in a
different war file. Attach the artifact.

mvn war -DignoreOptional=true
mvn war:fullwar // creates target/$warname-$version-fullwar.war ??

Maybe there's a third solution? Anyone doing similar today ? Comments ?

Cheers,

--
Jerome Lacoste

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





--
Gregory Kick
http://kickstyle.net/

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



Re : Re : Re : Build number and current date

2007-04-27 Thread spouynt

I used this in my pom :







 
scm:svn:https://www.ilem.ma/svnrepos/TutelecOJV/v1.3


scm:svn:https://www.ilem.ma/svnrepos/TutelecOJV/v1.3

https://www.ilem.ma/svnrepos/TutelecOJV/v1.3

  



 
but i had this in the log :



[DEBUG] Configuring mojo  
'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->

[DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3

[DEBUG]   (s) doCheck = true

[DEBUG]   (s) doUpdate = true

[DEBUG]   (f) project = [EMAIL PROTECTED]

[DEBUG]   (s) urlScm = scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3

[DEBUG] -- end configuration --

[INFO] [buildnumber:create {execution: default}]

[INFO] Verifying there are no local modifications ...

[INFO] Executing: svn --non-interactive status

[INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3

Provider message:

The svn command failed.

[INFO] 

[ERROR] BUILD ERROR

[INFO]  

Command output:

'svn' is not recognized as an internal or external command,

operable program or batch file.



[INFO] An error has occurred while checking scm status.



Embedded error: Error!

[INFO] 

[DEBUG] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred 
while checking scm status.

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)

at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)

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.MojoExecutionException: An error has 
occurred while checking scm status.

at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:331)

at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)

at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)

at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)

... 16 more

Caused by: org.apache.maven.scm.ScmException: Error!

at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkResult(BuildNumberMojo.java:510)

at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.getStatus(BuildNumberMojo.java:388)

at 
org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:327)

... 19 more

[INFO] 

[INFO] Total time: 3 seconds

[INFO] Finished at: Thu Apr 26 19:03:22 GMT 2007

[INFO] Final Memory: 4M/9M

[INFO] 





- Message d'origine 

De : Phill Moran  <[EMAIL PROTECTED]>

À : [EMAIL PROTECTED]

Envoyé le : Jeudi, 26 Avril 2007, 18h25mn 03s

Objet : RE: [m2eclipse-user] Re : Re : Build number and current date



DIV { MARGIN:0px;}You use a combination of  
username@ and in your settings.xml you have   and user/password combo

  

Phill

   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]  

Sent: April 26, 2007 2:11 PM

To: Maven Users List;  [EMAIL PROTECTED]

Cc: [EMAIL PROTECTED]

Subject:  [m2eclipse-user] Re : Re : Build number and current date





 

  can  you be more specific please ? 

and about the username and password ? how will  I do ?

is it really necessary ?



thanks 

Nawfel



 -  Message d'origine 

De : Trevor Spackman <[EMAIL PROTECTED]>

À  : Maven Users List 

Envoyé le : Jeudi, 26 Avril  2007, 18h01mn 14s

Objet : RE: Re : Build number and

war plugin: making optinal ?

2007-04-27 Thread Jerome Lacoste

Hi,

our project has several wars all bundled in an ear. In order to reduce
the size, we moved most of the dependencies to the ear using
true.

Now we would like the developers to be able to test & deploy the wars
independently and it is not possible due to the now 'missing'
dependencies.

I can see 2 options:

* use profiles. Not very flexible and project specific

* add an option to ignore the  recommendations in the war
plugin. Later on perhaps create a new fullwar mojo that ignores the
 recommendation by default and store the results in a
different war file. Attach the artifact.

mvn war -DignoreOptional=true
mvn war:fullwar // creates target/$warname-$version-fullwar.war ??

Maybe there's a third solution? Anyone doing similar today ? Comments ?

Cheers,

--
Jerome Lacoste

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



Re: jar with dependencies in a folder

2007-04-27 Thread Gregory Kick

When I read this thread it bothered me that people were recommending
the dependency plugin because it seemed like something that the
assembly plugin should be able to do on its own.  I think that the
following ought to get you what you wanted without that plugin.

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/xsd/assembly-1.0.0.xsd";>
 mydist
 
   zip
 
 
   
 target
 
 
   *.jar
 
   
 
 
   
 lib
 false
 runtime
   
 


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


Finally, it worked...thanks a lot !



Wayne Fay wrote:
>
> I could be wrong about that. Check the other examples. You might
> actually want copy-dependencies.
>
> Wayne
>
> On 4/25/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> You probably want "dependency:unpack-dependencies".
>>
>> Wayne
>>
>> On 4/25/07, JavierL <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > Wayne Fay wrote:
>> > >
>> > > Ah! In that case, you want to use the maven-dependency-plugin:
>> > > http://maven.apache.org/plugins/maven-dependency-plugin/
>> > >
>> >
>> >
>> > I've read docs and see this:
>> >
>> > --
>> > 
>> >
>> >  [ groupId ]
>> >  [ artifactId ]
>> >  [ version ]
>> >  [ packaging ]
>> >  [ true or false ]
>> >  [ output directory ]
>> >  [ filename ]
>> >
>> > ---
>> >
>> > I wonder if it means  every dependency to be copied should be write by
>> hand
>> > in such way.
>> >
>> > I hope to be wrong because I found this totally ilogical. I want
>> something
>> > to do the job automatically and not complicate the verbose maven pom
>> > configuration.
>> >
>> > Thanks in advance
>> >
>> > J
>> >
>> >
>> > J
>> >
>> > --
>> > View this message in context:
>> 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10188383
>> > Sent from the Maven - Users mailing list archive at Nabble.com.
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10195552
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
Gregory Kick
http://kickstyle.net/

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



Re: cobertura and hibernate?

2007-04-27 Thread Hugues Pisapia

Apparently, using the cobertura plugin 2.1 fixes this issue.
Funny enough is that it's still a problem on the plugin's JIRA:
http://jira.codehaus.org/browse/MCOBERTURA-54

- Hugues


2007/4/26, Hugues Pisapia <[EMAIL PROTECTED]>:

Hi Folks,

I'm running a strange probleme here where I have a project running
hibernate/spring that I try to measure the unit test coverage with
cobertura.

- When the Unit Test are run with 'mvn test', all seems fine and the tests pass
- When I run 'mvn cobertura:cobertura' to instrument the classes , run
the tests and generate the report, not a singe test pass and I have
LazyInitialization exceptions like that:
ERROR  , could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy
- the owning Session was closed
at 
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:60)
at 
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:140)
...

I went through the post to this list and to internet and found that
the problem might be because of the asm lib 1.5.3 required by
hibernate. But adding the dependancy to the pom dopes not make it. I
also upgraded both the surefire plugin and the cobertura plugin to
respectively 2.3 and 2.0, but this did not help either.

Any clue?
Thanks !

--
Hugues
--
e: [EMAIL PROTECTED]
jid: [EMAIL PROTECTED]
Fight Multiple Sclerosis - http://odyssee-espoir.com




--
Hugues
--
e: [EMAIL PROTECTED]
jid: [EMAIL PROTECTED]
Fight Multiple Sclerosis - http://odyssee-espoir.com

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