Re: Site generation tutorials?

2009-07-10 Thread Fiona Mahon
I would like to hear an answer to this one too. I have a multimodule 
project also. Site generation only generations a site with the 
information contained in the parent.xml (that all the modules 
reference), and nothing from each of the modules e.g. there are no 
contributors listed as all this information is down deeper in the module 
poms. I can see that a site is generated under each module, but they are 
all their own independent sites and not linked together in the overall 
project site.


I've tried using a site.xml with the menu ref=modules option to even 
just get a link to each module site, but there are no modules listed 
under the Modules menu in the generated project site.


Anyways, an answer to David's question would help me too.

Fiona.


David C. Hicks wrote:

Is there a decent tutorial out there anywhere on how to build the
project site within Maven?  I've found nothing that I would consider
useful.  MDG is rather short on details, too.

I've got a multi-module project that I'm trying to get the site built
and deployed for.  It seems to build, but trying to examine the site is
fruitless.  Module links take me to the Maven site, and my custom pages
don't show up at all - the links appear to be broken.  I just can't find
any clear information that describes a process by which someone can
iteratively work on the site, as they might work on their code.

Any help?
Thanks,
Dave


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

  




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



Re: How can I set maven memory size?

2009-07-08 Thread Fiona Mahon

Use MAVEN_OPTS -Xmx1024m

for example, put it in your .bashrc or .profile
export MAVEN_OPTS=-Xmx1024m

I am using Hudson and you can specify it in the configuration of your 
project build, under 'Build/Advanced/MAVEN_OPTS


(or also as I had to, on the commandline of the startup of Hudson,
java -Xmx1024m -jar hudson.war
as the checkout of the code was causing the OOM exception, not the build)


youhaodeyi wrote:

I got a maven project and compile it by maven. Then I got the error
java.lang.OutOfMemoryError: Java heap space. How can I set the memory size
running mvn command?

thanks.
  



--
Fiona Mahon
Pervasive Communication Services(PCS),
Applied Research

Telecommunications Software  Systems Group (TSSG),
ArcLabs Research and Innovation Building,
Waterford Institute of Technology,
Carriganore Campus, Carriganore,
Co. Waterford, Ireland

www: www.tssg.org/people/fmahon
tel: +353 (0)51 302 928   
fax: +353 (0)51 341 100  
e-mail: fma...@tssg.org

Skype: fiona_mahon





Dependency-copy:exclude includeScope behaviour

2009-06-19 Thread Fiona Mahon

Hi,

I am using the dependency plugin for maven to copy an artifact and its 
dependencies to a particular folder, that causes the generated artifact 
to be automatically started in a container (an OSGi container in this 
instance).


Without specifying any include/excludeScope parameters, all dependent 
components for my artifact are getting copied over, including the ones I 
have already packaged in with the artifact during compile (as those 
dependencies are defined as 'compile').


My artifact has 2 kinds of dependencies, the ones that are resolved 
during compile and added into the artifact jar, and the ones that will 
be available (provided) at runtime inside the container.


What I want to be able to do is only copy the dependencies that are to 
be provided in the container, to the container folder along with my 
artifact, but not copy the dependencies I have already taken care of by 
including them inside the artifact jar already (i.e. using compile scope).


What I tried was to exclude the compile scope dependencies and include 
the provided dependencies (see below), but what actually happened when I 
did this was that I get all the dependencies copied, both compile and 
provided.




plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-dependency-plugin/artifactId
   executions
 execution
   idcopy/id
   phaseinstall/phase
   goals
 goalcopy/goal
   /goals
 /execution
 execution
   idcopy-dependencies/id
   phaseinstall/phase
   goals
 goalcopy-dependencies/goal
   /goals
   configuration
  excludeScopecompile/excludeScope
  includeScopeprovided/includeScope
 /configuration
   /execution
 
   /executions

   configuration
 overWriteReleasestrue/overWriteReleases
 overWriteSnapshotstrue/overWriteSnapshots
 stripVersiontrue/stripVersion
 !-- this is where your dependent bundles will 
go e.g. junit, log4j etc. --
 
outputDirectory${kf.pssdependencies.deploy.dir}/outputDirectory

   /configuration
 /plugin


I also tried to just exclude the compile scope, but this time I just get 
the test dependencies copied over. I know there is some kind of 
hierarchy of scopes but I haven't see anything anywhere explaining this.


I did see a post explaining how the code works:

public ScopeArtifactFilter( String scope )
{
if ( DefaultArtifact.SCOPE_COMPILE.equals( scope ) )

{ systemScope = true; providedScope = true; compileScope = true; 
runtimeScope = false; testScope = false; }


else if ( DefaultArtifact.SCOPE_RUNTIME.equals( scope ) )

{ systemScope = false; providedScope = false; compileScope = true; 
runtimeScope = true; testScope = false; }


else if ( DefaultArtifact.SCOPE_TEST.equals( scope ) )

{ systemScope = true; providedScope = true; compileScope = true; 
runtimeScope = true; testScope = true; }


else

{ systemScope = false; providedScope = false; compileScope = false; 
runtimeScope = false; testScope = false; }


}

However, what I really want is

SystemScope = true; providedScope = true; compileScope = false; 
runtimeScope = false; testScope = false;


which doesn't seem to be accounted for.

Any help would be great, even a scope hierarchy.

Thanks,
Fiona.


--
Fiona Mahon
Pervasive Communication Services(PCS),
Applied Research

Telecommunications Software  Systems Group (TSSG),
ArcLabs Research and Innovation Building,
Waterford Institute of Technology,
Carriganore Campus, Carriganore,
Co. Waterford, Ireland

www: www.tssg.org/people/fmahon
tel: +353 (0)51 302 928   
fax: +353 (0)51 341 100  
e-mail: fma...@tssg.org

Skype: fiona_mahon




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