the meaning of component.xml?

2008-09-28 Thread 陈思淼
I've read the source code of maven-dependency-plugin and there is a
component.xml,
I know this file is for pluxes container to locate load the plugin, can
anybody tell me the detail meaning of component.xml, or give a document
about the component.xml tags meaning, thanks!


>






org.codehaus.plexus.archiver.UnArchiver

swc



org.codehaus.plexus.archiver.zip.ZipUnArchiver

per-lookup








Problems with path in pom (windows)

2008-09-28 Thread Matthias Dorfner
Hi everybody,

I tried to integrate umlgraph to my pom. It looks as following:

...

  
 
org.apache.maven.plugins
maven-javadoc-plugin

  gr.spinellis.umlgraph.doclet.UmlGraph
  C:\Dokumente und
Einstellungen\Matty\.m2\repository\UMLGraph-5.1\lib\UmlGraph.jar
  
gr.spinellis
UmlGraph
4.4
  
  -views

 
  
   
...


I always get this error while running the mvn site plugin:


[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report: Exit code: 1 - javadoc:
error - Ca
nnot find doclet class gr.spinellis.umlgraph.doclet.UmlGraph

Command line was:E:\jdk1.6.7\jre\..\bin\javadoc.exe @options @packages


I tried it with several properties, different slashes but javadoc never
finds my downloaded umlgraph.jar .

What's wrong? How do you normally integrate path details in my pom with
windows? Is it different to e.g. linux?

Thank you very much!

Regards,
Matthias



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



RE: no pom file found

2008-09-28 Thread Mike Oliver

Yes thanks, I found that, and installed Maven 2, and "mvn install" did its
magic and all is well.

Ollie

Jeff Jensen wrote:
> 
>> what am I doing wrong.
> 
> Not understanding Maven 1 vs Maven 2!
> 
> Maven 1.1 uses project.xml files.  Maven 2.x uses pom.xml files.
> 
> 
> -Original Message-
> From: Mike Oliver [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, September 27, 2008 10:53 PM
> To: users@maven.apache.org
> Subject: no pom file found
> 
> 
> I am using maven 1.1 and navigate to a project root folder where there is
> a
> pom.xml and it points to all the sub directories.
> 
> When I run maven in that directory with one of the targets in the pom.xml 
> such as
> 
> maven jar
> 
> I get the Warning: No pom file was found
> 
> what am I doing wrong.
> 
> Ollie
> -- 
> View this message in context:
> http://www.nabble.com/no-pom-file-found-tp19708683p19708683.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/no-pom-file-found-tp19708683p19711502.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



This file is derived, do you really want to edit it

2008-09-28 Thread Mike Oliver

What does this mean?

I used subversion to check out a branch of JackRabbit that uses Maven 2 into
an Eclipse project.

I created a new class from an existing class java source extending from the
same abstract class.

I ran "mvn install" to build from the pom.xml checked out.

It reported an error in my new class.

When I went to the new class file to edit it, I got the message dialog "This
file is derived, do you really want to edit it"  I responded yes and fixed
the syntax error previously reported then went back to maven and ran it
again and it doesn't show the fix.  I tried updating dependencies and no
change.

It is also odd that Project Build is grayed out.

Newbe 
-- 
View this message in context: 
http://www.nabble.com/This-file-is-derived%2C-do-you-really-want-to-edit-it-tp19711874p19711874.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Problems with path in pom (windows)

2008-09-28 Thread Wendy Smoak
On Sun, Sep 28, 2008 at 4:28 AM, Matthias Dorfner
<[EMAIL PROTECTED]> wrote:

> I tried to integrate umlgraph to my pom. It looks as following:
>  C:\Dokumente und
> Einstellungen\Matty\.m2\repository\UMLGraph-5.1\lib\UmlGraph.jar

Most likely the spaces in the path are causing problems.

The best bet is to install the jar into your local repository using
"mvn install:install-file", and then use docletArtifact instead of
docletPath, as shown here:

http://maven.apache.org/plugins/maven-javadoc-plugin/examples/alternate-doclet.html

The UMLGraph artifacts belong in groupId=gr.spinellis and
artifactId=UmlGraph , see
http://repo1.maven.org/maven2/gr/spinellis/UmlGraph/

(Adding arbitrary paths to ~/.m2/repository as you've done, apparently
by unpacking the UMLGraph distribution, isn't recommended.  The local
repository has a specific format.)

If you are working with a team and have a shared (internal) "remote"
repository, then deploy the artifact there instead, and/or submit it
for upload to the central repo.

-- 
Wendy

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



Cannot run program "env"

2008-09-28 Thread greeklinux

Hello,

I am using maven, and I setup an CI system on a virtual server.
When the build process starts, maven fails with the
following error:

Parsing POMs
ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "env": java.io.IOException:
error=12, Cannot allocate memory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:250)
at
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:216)
at
org.apache.maven.project.interpolation.RegexBasedModelInterpolator.(RegexBasedModelInterpolator.java:63)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:655)
at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:75)
at hudson.tasks.Maven$MavenInstallation.createEmbedder(Maven.java:337)
at
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:691)
at
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:640)
at hudson.FilePath.act(FilePath.java:363)
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:390)
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:285)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:240)
at hudson.model.Run.run(Run.java:793)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205)
at hudson.model.ResourceController.execute(ResourceController.java:70)
at hudson.model.Executor.run(Executor.java:88)
Caused by: java.io.IOException: java.io.IOException: error=12, Cannot
allocate memory
at java.lang.UNIXProcess.(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 41 more


Is this because maven cannot create a new process? Or some other problem?

Thanks

-- 
View this message in context: 
http://www.nabble.com/Cannot-run-program-%22env%22-tp19712302p19712302.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Problems with path in pom (windows)

2008-09-28 Thread Martin Gainty

Matthias-

try deploying to repositories which are known to be valid as wendy suggested

if your requirment demands you use local repositories I would suggest shying 
from whitespace characters in folder names and use the 8.3 folder names change
C:\Dokumente und 
Einstellungen\Matty\.m2\repository\UMLGraph-5.1\lib\UmlGraph.jar
to
C:\DOKUME~1\Matty\.m2\REPOSI~1\UMLGRA~1\lib\UMLGRA~1.JAR

Viel Gluck
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Sun, 28 Sep 2008 13:28:32 +0200
> Subject: Problems with path in pom (windows)
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> 
> Hi everybody,
> 
> I tried to integrate umlgraph to my pom. It looks as following:
> 
> ...
> 
>   
>  
> org.apache.maven.plugins
> maven-javadoc-plugin
> 
>   gr.spinellis.umlgraph.doclet.UmlGraph
>   C:\Dokumente und
> Einstellungen\Matty\.m2\repository\UMLGraph-5.1\lib\UmlGraph.jar
>   
> gr.spinellis
> UmlGraph
> 4.4
>   
>   -views
> 
>  
>   
>
> ...
> 
> 
> I always get this error while running the mvn site plugin:
> 
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error during page generation
> 
> Embedded error: Error rendering Maven report: Exit code: 1 - javadoc:
> error - Ca
> nnot find doclet class gr.spinellis.umlgraph.doclet.UmlGraph
> 
> Command line was:E:\jdk1.6.7\jre\..\bin\javadoc.exe @options @packages
> 
> 
> I tried it with several properties, different slashes but javadoc never
> finds my downloaded umlgraph.jar .
> 
> What's wrong? How do you normally integrate path details in my pom with
> windows? Is it different to e.g. linux?
> 
> Thank you very much!
> 
> Regards,
> Matthias
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

AW: Problems with path in pom (windows)

2008-09-28 Thread Matthias Dorfner
Thx Wendy And Martin, it works fine now using UmlGraph 4.6!

Regards,
Matthias

-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 28. September 2008 17:11
An: Maven Users List
Betreff: RE: Problems with path in pom (windows)


Matthias-

try deploying to repositories which are known to be valid as wendy suggested

if your requirment demands you use local repositories I would suggest shying 
from whitespace characters in folder names and use the 8.3 folder names change
C:\Dokumente und 
Einstellungen\Matty\.m2\repository\UMLGraph-5.1\lib\UmlGraph.jar
to
C:\DOKUME~1\Matty\.m2\REPOSI~1\UMLGRA~1\lib\UMLGRA~1.JAR

Viel Gluck
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Sun, 28 Sep 2008 13:28:32 +0200
> Subject: Problems with path in pom (windows)
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> 
> Hi everybody,
> 
> I tried to integrate umlgraph to my pom. It looks as following:
> 
> ...
> 
>   
>  
> org.apache.maven.plugins
> maven-javadoc-plugin
> 
>   gr.spinellis.umlgraph.doclet.UmlGraph
>   C:\Dokumente und
> Einstellungen\Matty\.m2\repository\UMLGraph-5.1\lib\UmlGraph.jar
>   
> gr.spinellis
> UmlGraph
> 4.4
>   
>   -views
> 
>  
>   
>
> ...
> 
> 
> I always get this error while running the mvn site plugin:
> 
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error during page generation
> 
> Embedded error: Error rendering Maven report: Exit code: 1 - javadoc:
> error - Ca
> nnot find doclet class gr.spinellis.umlgraph.doclet.UmlGraph
> 
> Command line was:E:\jdk1.6.7\jre\..\bin\javadoc.exe @options @packages
> 
> 
> I tried it with several properties, different slashes but javadoc never
> finds my downloaded umlgraph.jar .
> 
> What's wrong? How do you normally integrate path details in my pom with
> windows? Is it different to e.g. linux?
> 
> Thank you very much!
> 
> Regards,
> Matthias
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008


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



Re: the meaning of component.xml?

2008-09-28 Thread supareno

you caould find some infos here:
http://maven.apache.org/plugins/maven-assembly-plugin/component.html

I've read the source code of maven-dependency-plugin and there is a
component.xml,
I know this file is for pluxes container to locate load the plugin, can
anybody tell me the detail meaning of component.xml, or give a document
about the component.xml tags meaning, thanks!


  







org.codehaus.plexus.archiver.UnArchiver

swc



org.codehaus.plexus.archiver.zip.ZipUnArchiver

per-lookup







  



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



Re: [ANN] Maven Reactor Plugin 1.0 Released

2008-09-28 Thread Dan Fabulich

Paul Benedict wrote:


Congrats on the plugin. Could you maybe add to the plugin home page
why this plugin is required or useful? What common problem is it
trying to solve? It would be nice to know that background, because I
am grasping to find its purpose.


Which plugin home page do you mean?  Do you mean this page?

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

I feel like that page pretty clearly outlines what you can do with Maven 
Reactor Plugin.  Does that not make (enough) sense?


There's a more detailed explanation of use cases for the reactor plugin 
here:  http://maven.apache.org/plugins/maven-reactor-plugin/examples.html


And some of it is based on the page here:
http://docs.codehaus.org/display/MAVEN/Make+Like+Reactor+Mode

Hopefully the Examples page makes more sense...  If the plugin still makes 
absolutely no sense after reading that stuff, let's chat on IRC or 
something and I'll try to figure out what to add.


If, on the other hand, the Examples page makes perfect sense but the 
homepage makes no sense, I'd appreciate concrete suggestions on how to 
make the home page better. :-)


-Dan

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



maven archetype

2008-09-28 Thread Matthias Dorfner
Sorry for that maybe stupid question, but I didn’t find an answer consulting 
the maven website and google.

 

I created an archetype quickstart skeleton, as well as a dedicated site 
skeleton with the archetype plugin (with the goals create and generate).

What I’m looking for is a skeleton that combines both. So I can put my already 
existing java files in the src/java folder, configure my site templates, apt, 
faq files etc. within the src/site folder and use the site plugin to generate a 
customized project page with javadoc, project reports information… for my 
source code.

 

How can I set this up easily?

 

Thanks in advance!

 

Regards,

Matthias

 

 

 



no main or test directories created when using webapp archetype?

2008-09-28 Thread Rick
I'm confused... when I run the maven webapp archetype I only end up
with "resources" and "webapp" directories created.. no java/src/main
or java/src/test ? Shouldn't it make those directories for me?

I tested with the archetype as shown here on the maven2 site:

http://maven.apache.org/guides/mini/guide-webapp.html

-- 
Rick

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



Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Rick
I should clarify.. 'main' is created.. just no java directory (or
test) is created even when I provide the package declaration with
-DpackageName=com.foobar

On Sun, Sep 28, 2008 at 4:55 PM, Rick <[EMAIL PROTECTED]> wrote:
> I'm confused... when I run the maven webapp archetype I only end up
> with "resources" and "webapp" directories created.. no java/src/main
> or java/src/test ? Shouldn't it make those directories for me?
>
> I tested with the archetype as shown here on the maven2 site:
>
> http://maven.apache.org/guides/mini/guide-webapp.html
>
> --
> Rick
>



-- 
Rick

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



Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Wendy Smoak
On Sun, Sep 28, 2008 at 1:55 PM, Rick <[EMAIL PROTECTED]> wrote:
> I'm confused... when I run the maven webapp archetype I only end up
> with "resources" and "webapp" directories created.. no java/src/main
> or java/src/test ? Shouldn't it make those directories for me?

The archetype is encouraging the best practice of putting the Java
code in a separate module.

If you need the directories, you can create them.  If this is
something you need often, you can create your own archetype.

-- 
Wendy

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



Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Rick
On Sun, Sep 28, 2008 at 5:11 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> The archetype is encouraging the best practice of putting the Java
> code in a separate module.
>
> If you need the directories, you can create them.  If this is
> something you need often, you can create your own archetype.

Ok interesting. Thanks Wendy. I didn't think of creating a separate
module for the web-related java classes. Is this a common practice? I
agree in separation of concerns, but that might be a bit much. In
other words a servlet isn't going to be any good stand-alone (outside
of the concept of web project) so it makes sense for me to have all
that in a 'web module.'

(Now if Eclipse supported multi-modules better I wouldn't' mind as
much. I wish there was a way I could have a project in eclipse
represented by the parent pom and then have all the sub modules
beneath it. Back when I used IDEA, I think this was possible. Does
NetBeans maybe support this?)

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



Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Graham Leggett

Rick wrote:


(Now if Eclipse supported multi-modules better I wouldn't' mind as
much. I wish there was a way I could have a project in eclipse
represented by the parent pom and then have all the sub modules
beneath it. Back when I used IDEA, I think this was possible. Does
NetBeans maybe support this?)


Eclipse does support multi-modules, use it all the time.

Make sure that your eclipse config is generated by the 
maven-eclipse-plugin to do this the easy way. Each module of a 
multi-module project will be added as a project dependency (instead of a 
jar dependency) in eclipse.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Question about Change List?

2008-09-28 Thread Brett Porter
Are you using this plugin already?

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

2008/9/28 陈思淼 <[EMAIL PROTECTED]>:
> We would like to document some change list information about our maven
> project, for example. level up from 1.2 to 1.3. wo have  fix Bug
> connection time out in Connection.java
> < Improvement > ...
> because we use JIRA together. so we think It's great if we can combine maven
> change list with JIRA, anybody have some Idea about that?
> Thank you for help.
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: the meaning of component.xml?

2008-09-28 Thread 陈思淼
I find a document which have some detail description about the
component.xml.http://www.sonatype.com/book/reference/public-b ook.htm l (the
plugin chapter)
thank you all the same.

2008/9/29 supareno <[EMAIL PROTECTED]>

> you caould find some infos here:
> http://maven.apache.org/plugins/maven-assembly-plugin/component.html
>
>  I've read the source code of maven-dependency-plugin and there is a
>> component.xml,
>> I know this file is for pluxes container to locate load the plugin, can
>> anybody tell me the detail meaning of component.xml, or give a document
>> about the component.xml tags meaning, thanks!
>>
>> 
>>  
>>
>> 
>>
>> 
>>
>> org.codehaus.plexus.archiver.UnArchiver
>>
>> swc
>>
>> 
>>
>>
>> org.codehaus.plexus.archiver.zip.ZipUnArchiver
>>
>> per-lookup
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Question about Change List?

2008-09-28 Thread 陈思淼
That help me a lot, thanks

2008/9/29 Brett Porter <[EMAIL PROTECTED]>

> Are you using this plugin already?
>
> http://maven.apache.org/plugins/maven-changes-plugin/
>
> 2008/9/28 陈思淼 <[EMAIL PROTECTED]>:
> > We would like to document some change list information about our maven
> > project, for example. level up from 1.2 to 1.3. wo have  fix Bug
> > connection time out in Connection.java
> > < Improvement > ...
> > because we use JIRA together. so we think It's great if we can combine
> maven
> > change list with JIRA, anybody have some Idea about that?
> > Thank you for help.
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>


Re: maven archetype

2008-09-28 Thread Thor
The only thing I can come up with it's to add each file as a resource on the
archetpe.xml of your archetype (wich is a real pain). Or you could try the
mvn archetype:create-from-project, it'll generate an archetype from your
current project (though, I haven't used it for that kind configuration)

hope it helps...
My regards...


On Sun, Sep 28, 2008 at 2:07 PM, Matthias Dorfner
<[EMAIL PROTECTED]>wrote:

> Sorry for that maybe stupid question, but I didn't find an answer
> consulting the maven website and google.
>
>
>
> I created an archetype quickstart skeleton, as well as a dedicated site
> skeleton with the archetype plugin (with the goals create and generate).
>
> What I'm looking for is a skeleton that combines both. So I can put my
> already existing java files in the src/java folder, configure my site
> templates, apt, faq files etc. within the src/site folder and use the site
> plugin to generate a customized project page with javadoc, project reports
> information… for my source code.
>
>
>
> How can I set this up easily?
>
>
>
> Thanks in advance!
>
>
>
> Regards,
>
> Matthias
>
>
>
>
>
>
>
>


Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Thor
I agree with Rick, if you have servlets, filters, even actions (struts,
webwork, etc.) i think there is no need to separate the code from your web
module (if your views depends on it). Nevertheless, separating the code from
the views it's a very elegant approach...

If the Eclipse workspace wasn't flat, I think it would be easier and pretty
much straightforward to work with multimodule projects. It can be really
messy if you have, let's say, three or four projects with 4 or five
different modules. But that's just my opinion.
I read somewhere that the Eclipse guys were considering to change it's
workpace structure in future releases...
But like Graham said Eclipse does support multimodule projects (of course
with the help of the maven eclipse plugin!!!)

Regards people...


On Sun, Sep 28, 2008 at 4:27 PM, Graham Leggett <[EMAIL PROTECTED]> wrote:

> Rick wrote:
>
>  (Now if Eclipse supported multi-modules better I wouldn't' mind as
>> much. I wish there was a way I could have a project in eclipse
>> represented by the parent pom and then have all the sub modules
>> beneath it. Back when I used IDEA, I think this was possible. Does
>> NetBeans maybe support this?)
>>
>
> Eclipse does support multi-modules, use it all the time.
>
> Make sure that your eclipse config is generated by the maven-eclipse-plugin
> to do this the easy way. Each module of a multi-module project will be added
> as a project dependency (instead of a jar dependency) in eclipse.
>
> Regards,
> Graham
> --
>


Re: This file is derived, do you really want to edit it

2008-09-28 Thread Brett Porter
This might be specific to your IDE integration, so you can always ask
on their lists.

It appears you are editing a file that was in the 'target' directory,
so that when the build occurs, clean will delete it losing the change.

- Brett

2008/9/29 Mike Oliver <[EMAIL PROTECTED]>:
>
> What does this mean?
>
> I used subversion to check out a branch of JackRabbit that uses Maven 2 into
> an Eclipse project.
>
> I created a new class from an existing class java source extending from the
> same abstract class.
>
> I ran "mvn install" to build from the pom.xml checked out.
>
> It reported an error in my new class.
>
> When I went to the new class file to edit it, I got the message dialog "This
> file is derived, do you really want to edit it"  I responded yes and fixed
> the syntax error previously reported then went back to maven and ran it
> again and it doesn't show the fix.  I tried updating dependencies and no
> change.
>
> It is also odd that Project Build is grayed out.
>
> Newbe
> --
> View this message in context: 
> http://www.nabble.com/This-file-is-derived%2C-do-you-really-want-to-edit-it-tp19711874p19711874.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Cannot run program "env"

2008-09-28 Thread Brett Porter
I believe someone encountered this recently and it was a result of
running as the super user which had a very limited environment. You
might find more information in the archives.

Cheers,
Brett

2008/9/29 greeklinux <[EMAIL PROTECTED]>:
>
> Hello,
>
> I am using maven, and I setup an CI system on a virtual server.
> When the build process starts, maven fails with the
> following error:
>
> Parsing POMs
> ERROR: Failed to parse POMs
> java.io.IOException: Cannot run program "env": java.io.IOException:
> error=12, Cannot allocate memory
>at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
>at java.lang.Runtime.exec(Runtime.java:593)
>at java.lang.Runtime.exec(Runtime.java:431)
>at java.lang.Runtime.exec(Runtime.java:328)
>at
> org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:250)
>at
> org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:216)
>at
> org.apache.maven.project.interpolation.RegexBasedModelInterpolator.(RegexBasedModelInterpolator.java:63)
>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>at java.lang.Class.newInstance0(Class.java:355)
>at java.lang.Class.newInstance(Class.java:308)
>at
> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>at
> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>at
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>at
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>at
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
>at
> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>at
> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>at
> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
>at
> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
>at
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>at
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
>at
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>at
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
>at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
>at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:655)
>at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:75)
>at hudson.tasks.Maven$MavenInstallation.createEmbedder(Maven.java:337)
>at
> hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:691)
>at
> hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:640)
>at hudson.FilePath.act(FilePath.java:363)
>at
> hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:390)
>at
> hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:285)
>at 
> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:240)
>at hudson.model.Run.run(Run.java:793)
>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205)
>at hudson.model.ResourceController.execute(ResourceController.java:70)
>at hudson.model.Executor.run(Executor.java:88)
> Caused by: java.io.IOException: java.io.IOException: error=12, Cannot
> allocate memory
>at java.lang.UNIXProcess.(UNIXProcess.java:148)
>at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
>... 41 more
>
>
> Is this because maven cannot create a new process? Or some other problem?
>
> Thanks
>
> --
> View this message in context: 
> http://www.nabble.com/Cannot-run-program-%2

Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Wendy Smoak
On Sun, Sep 28, 2008 at 3:05 PM, Rick <[EMAIL PROTECTED]> wrote:

> Ok interesting. Thanks Wendy. I didn't think of creating a separate
> module for the web-related java classes. Is this a common practice? I
> agree in separation of concerns, but that might be a bit much. In
> other words a servlet isn't going to be any good stand-alone (outside
> of the concept of web project) so it makes sense for me to have all
> that in a 'web module.'

It's up to you, and I do see many webapp modules with code in them.

One advantage of keeping the code separate is that it encourages
testing outside of the container.

-- 
Wendy

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