missing usage of css class in generated html

2006-10-23 Thread Mark Sudau Consulting Software




Hi folks,

I don't understand what is going on while generating a project
documentation using the maven 2 plugin site.

What I coded in the Xdoc is:

...
td class="status" style="background: url('images/stat090.png')
repeat-y;
   90%
/td
...

This is the css-file:

.status {
 text-align: center;
 vertical-align: middle;
}

And here is the code that was generated from the xml file.

...
td
90%
/td

...


As you can see, I am missing the complete style definition in the td
tag.

Is this a bug or is there a proved way to add user defined styles.?

Regards Mark 


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

build error while executing site of M2

2006-10-20 Thread Mark Sudau Consulting Software

Hi folks,

I tried to generate the site documentation from parent of a multi-project.

And I always get this message:

[ERROR] BUILD ERROR
[INFO] 


[INFO] Error reading site descriptor

Embedded error: input contained no data
[INFO] 


[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error reading 
site descriptor
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error reading 
site descriptor
   at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.readDecorationModel(AbstractSiteRenderingMojo.java:249)
   at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getDecorationModel(AbstractSiteRenderingMojo.java:209)
   at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getDecorationModel(AbstractSiteRenderingMojo.java:490)
   at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:429)
   at 
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:108)

   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

   ... 16 more
Caused by: java.io.EOFException: input contained no data
   at 
org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:2979)
   at 
org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3022)
   at 
org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1407)
   at 
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1392)
   at 
org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
   at 
org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:1107)
   at 
org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Reader.read(DecorationXpp3Reader.java:1121)
   at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.readDecorationModel(AbstractSiteRenderingMojo.java:241)

   ... 23 more

The site.xml looks like:

project name=Maven
 bannerLeft
   nameMaven/name
   srchttp://maven.apache.org/images/apache-maven-project.png/src
   hrefhttp://maven.apache.org//href
 /bannerLeft
 bannerRight
   srchttp://maven.apache.org/images/maven-small.gif/src
 /bannerRight

 publishDate position=navigation-bottom format=MM-dd-yy/

 body
   links
 item name=Apache href=http://www.apache.org/; /
 item name=Maven 1.0 href=http://maven.apache.org//
 item name=Maven 2 href=http://maven.apache.org/maven2//
   /links
  
   menu ref=modules /


   menu name=Maven 2.0
 item name=Introduction href=index.html/
 item name=Download href=download.html/
 item name=Release Notes href=release-notes.html /
 item name=General Information href=about.html/
 item name=For Maven 1.0 Users href=maven1.html/
 item name=Road Map href=roadmap.html /
   /menu

   ${reports}

 /body
/project

and in the parent I created this structure

src/
`-- site
   |-- apt
   |   `-- index.apt
   `-- site.xml


in the parent pom I added

   reporting
   plugins
[...]
   plugin
   groupIdorg.apache.maven.plugins/groupId
   

bundle archives to ejb or war

2006-10-18 Thread Mark Sudau

Hi Folks,

actually I have successfully moved my project from Maven 1 to Maven 2. 
Now I want to bundle some archives from the dependencies to my ejb or my 
war file. This is to run different web applications with different 
dependencies on the same applicatoinserver.


In Maven 1 I could set properties for the dependencies like
properties
   ejb.bundletrue/ejb.bundle
properties
in the ejb project and

properties
   war.bundletrue/war.bundle
properties
in the web application project.

Now how can I do in Maven 2

Thanks for helpeing

Mark


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



problems in using changelog plugin [M2]

2006-10-18 Thread Mark Sudau

Hi folks,

actually I moved my Project from maven 1 to maven 2. Now I want to 
generate some reports. All are runing fine except the changelog. I 
wonder why as I copied the configureation from the web into my pom.


Here is the configuration:

   scm
   
connectionscm:cvs:pserver:cvs:@cvsserver:/home/cvs:test/connection
   
developerConnectionscm:cvs:pserver:someuser:@cvsserver:/home/cvs:test/developerConnection

   /scm


   reporting
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-changelog-plugin/artifactId
   version2.0-SNAPSHOT/version
   /plugin
   ...   
   /reporting



Using this configuration I receive the following message from commandline:

...
[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-changelog-plugin
Version: 2.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-changelog-plugin:pom:2.0-SNAPSHOT

from the specified remote repositories:
 ibiblio (http://www.ibiblio.org/maven2),
 central (http://repo1.maven.org/maven2),
 apache-repo (http://myfaces.zones.apache.org/dist/maven-repository),
 codehaus (http://repository.codehaus.org)

...

The network is on and the compile works fine with downloading archives 
from the web.


Thanks for helping

Mark

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



Re: problems in using changelog plugin [M2]

2006-10-18 Thread Mark Sudau Consulting Software

found the error.

It may not be :cvs:@cvsserver: but :[EMAIL PROTECTED]: So I hab a : to much.

Mark Sudau schrieb:

Hi folks,

actually I moved my Project from maven 1 to maven 2. Now I want to 
generate some reports. All are runing fine except the changelog. I 
wonder why as I copied the configureation from the web into my pom.


Here is the configuration:

   scm
   
connectionscm:cvs:pserver:cvs:@cvsserver:/home/cvs:test/connection
   
developerConnectionscm:cvs:pserver:someuser:@cvsserver:/home/cvs:test/developerConnection 


   /scm


   reporting
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-changelog-plugin/artifactId
   version2.0-SNAPSHOT/version
   /plugin
   ...  /reporting


Using this configuration I receive the following message from 
commandline:


...
[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-changelog-plugin
Version: 2.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-changelog-plugin:pom:2.0-SNAPSHOT

from the specified remote repositories:
 ibiblio (http://www.ibiblio.org/maven2),
 central (http://repo1.maven.org/maven2),
 apache-repo (http://myfaces.zones.apache.org/dist/maven-repository),
 codehaus (http://repository.codehaus.org)

...

The network is on and the compile works fine with downloading archives 
from the web.


Thanks for helping

Mark

-
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: bundle archives to ejb or war

2006-10-18 Thread Mark Sudau

Well I think I got miss understood.

I have a multi project containing an ejb-project a war-project and an 
ear-project. The fianlly produced ear-archive will be deployed to jboss.
To reuse the ejb-archive I need to bundle some of the dependencies to 
the ejb-archive.
To use jsp / xml validation in the web-application I need to bundle the 
tld's to the war-archive.


So as you can see there are different projects which have the same problem.

thanks
Mark



Geoffrey De Smet schrieb:

1 artifact = 1 pom with 1 packaging (default is jar).

By using scopes on your dependencies in that pom:
scopecompile/scope
runtime
provided
etc

see guides.

It's best to inherit the version tags of the dependencies from a 
parent pom's dependencyManagament.


Mark Sudau wrote, On 2006-10-18 2:09 PM:

Hi Folks,

actually I have successfully moved my project from Maven 1 to Maven 
2. Now I want to bundle some archives from the dependencies to my ejb 
or my war file. This is to run different web applications with 
different dependencies on the same applicatoinserver.


In Maven 1 I could set properties for the dependencies like
properties
   ejb.bundletrue/ejb.bundle
properties
in the ejb project and

properties
   war.bundletrue/war.bundle
properties
in the web application project.

Now how can I do in Maven 2

Thanks for helpeing

Mark





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



Re: Which way of directory structure is bettter?????

2006-03-22 Thread Mark Sudau Consulting Software

Hi Raja,

to solve the problem of loosing CVS history you can create an new 
Version of project and stopp usign the actual CVS module.
Depending on the size of your project this means a more or less long 
production stopp as any developer should help elp in moving the projects 
source.


After this I think best practise would be using the maven project structure

Mark

Arnaud HERITIER schrieb:

Please raja, CAN YOU STOP TO SEND THE SAME MAIL 3 TIMES IN 1 HOUR ??

It's better to migrate if you can.
It depends if it creates a problem for you. For example it's not easy to do
it if you use CVS as a SCM because you'll lost your history. With subversion
it's possible to move directories without to lost your history.

Arnaud

On 3/22/06, raja bangaru [EMAIL PROTECTED] wrote:
  

My project which is build in ant does'nt use maven standard directory
structure

src/main/java   java source files
src/test/java -   java test files

Now i want to migrate to maven

Which way of directory structure is bettter?

moving my files to the above directory structure?
   OR
change my POM ?

Help me pls





  



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