You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dimuthu Leelarathne <di...@wso2.com> on 2007/07/13 09:51:19 UTC

[Maven2] Building Website using Maven

Hi All,

I am trying to build the website for a project. I managed to attach
userguide.html and other documentation to the site successfully.

The problem occurred when I am trying to generate a custom index.html

I introduced an index.xml file into src/site/xdocs/index.xml. Then i
typed 

$mvn clean site:site

But the default index.html has not changed.

I am using maven 2.0.6.

Am I missing something here?

I really appreciate any help on the issue.

Thank you,
Dimuthu 




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


Re: [Maven2] Building Website using Maven

Posted by Dimuthu Leelarathne <di...@wso2.com>.
It works! 

Thank you,
Dimuthu

On Fri, 2007-07-13 at 13:04 +0200, Lukas Theussl wrote:
> Try src/site/xdoc/index.xml (not xdocs), it works for me.
> 
> HTH,
> -Lukas
> 
> 
> Dimuthu Leelarathne wrote:
> > Hi All,
> > 
> > I am trying to build the website for a project. I managed to attach
> > userguide.html and other documentation to the site successfully.
> > 
> > The problem occurred when I am trying to generate a custom index.html
> > 
> > I introduced an index.xml file into src/site/xdocs/index.xml. Then i
> > typed 
> > 
> > $mvn clean site:site
> > 
> > But the default index.html has not changed.
> > 
> > I am using maven 2.0.6.
> > 
> > Am I missing something here?
> > 
> > I really appreciate any help on the issue.
> > 
> > Thank you,
> > Dimuthu 
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


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


Re: [Maven2] Building Website using Maven

Posted by Lukas Theussl <lt...@apache.org>.
Try src/site/xdoc/index.xml (not xdocs), it works for me.

HTH,
-Lukas


Dimuthu Leelarathne wrote:
> Hi All,
> 
> I am trying to build the website for a project. I managed to attach
> userguide.html and other documentation to the site successfully.
> 
> The problem occurred when I am trying to generate a custom index.html
> 
> I introduced an index.xml file into src/site/xdocs/index.xml. Then i
> typed 
> 
> $mvn clean site:site
> 
> But the default index.html has not changed.
> 
> I am using maven 2.0.6.
> 
> Am I missing something here?
> 
> I really appreciate any help on the issue.
> 
> Thank you,
> Dimuthu 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

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


Re: [Maven2] Building Website using Maven

Posted by Patrick Kimber <ma...@gmail.com>.
Hi Dimuthu

Sorry, I have no idea.  I don't use xdocs.  I hope you find a solution.

Regards.
Patrick

On 13/07/07, Dimuthu Leelarathne <di...@wso2.com> wrote:
> Thank you very much. "src/site/apt/index.apt" works!
>
> But I am wondering why the src/site/xdocs/index.html doesn't work.
>
>
> Regards,
> Dimuthu
>
> On Fri, 2007-07-13 at 09:06 +0100, Patrick Kimber wrote:
> > Hi
> >
> > I create a custom index.html by editing this file:
> > src/site/apt/index.apt
> >
> > This file is in apt format:
> > http://maven.apache.org/guides/mini/guide-apt-format.html
> >
> > Patrick
> >
> > On 13/07/07, Dimuthu Leelarathne <di...@wso2.com> wrote:
> > > Hi All,
> > >
> > > I am trying to build the website for a project. I managed to attach
> > > userguide.html and other documentation to the site successfully.
> > >
> > > The problem occurred when I am trying to generate a custom index.html
> > >
> > > I introduced an index.xml file into src/site/xdocs/index.xml. Then i
> > > typed
> > >
> > > $mvn clean site:site
> > >
> > > But the default index.html has not changed.
> > >
> > > I am using maven 2.0.6.
> > >
> > > Am I missing something here?
> > >
> > > I really appreciate any help on the issue.
> > >
> > > Thank you,
> > > Dimuthu
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


RE: [Maven2] Adding transitive dependencies in EAR

Posted by "Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER)" <jo...@ext.anpe.fr>.
Things works now ! :)

In the EAR project I had forgotten to inherits from parent project.

Joel
 

-----Message d'origine-----
De : Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER) [mailto:joel.costigliola@ext.anpe.fr] 
Envoyé : vendredi 13 juillet 2007 11:39
À : Maven Users List; dimuthul@wso2.com
Objet : [Maven2] Adding transitive dependencies in EAR

Hi,

I'm working on a project (ObjetTrouve) that offers services as EJB packaged in an EAR.

ObjetTrouve structure :
- ObjetTrouveEAR (depends on ObjetTrouveEJB and ObjetTrouveService)
- ObjetTrouveEJB (depends on ObjetTrouveService)
- ObjetTrouveService (depends on third party jar like Spring, log4j, ...)

When buiding the EAR with maven it only packages the direct dependencies i.e. ObjetTrouveEJB and ObjetTrouveService, my application can not work without third party jar needed by ObjetTrouveService.

Questions : 
1 - how configure the EAR plugin to include the dependencies of ObjetTrouveService ?
2 - Is there an elegant solution to this problem ?

One solution may be to repeat ObjetTrouveService dependencies in the EAR project pom.xml but it's an ugly solution as I need to duplicate information.

For information here's EAR pom.xml :

<project xmlns="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">
	<modelVersion>4.0.0</modelVersion>
	<groupId>sapiens</groupId>
	<artifactId>ObjetTrouveEAR</artifactId>
	<packaging>ear</packaging>
	<version>2.6.0</version>
	<name>ObjetTrouveEAR</name>
	<url>http://maven.apache.org</url>
	<dependencies>
		<dependency>
			<groupId>sapiens</groupId>
			<artifactId>ObjetTrouveEJB</artifactId>
			<type>ejb</type>
			<version>2.6.0</version>
		</dependency>
		<dependency>
			<groupId>sapiens</groupId>
			<artifactId>ObjetTrouveService</artifactId>
			<type>jar</type>
			<version>2.6.0</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ear-plugin</artifactId>
				<configuration>
					<modules>
						<jarModule>
							<groupId>sapiens</groupId>
							<artifactId>ObjetTrouveService</artifactId>
							<includeInApplicationXml>
								true
							</includeInApplicationXml>
						</jarModule>
						<ejbModule>
							<groupId>sapiens</groupId>
							<artifactId>ObjetTrouveEJB</artifactId>
						</ejbModule>
					</modules>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>


Regards,
 
Joël Costigliola

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

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


[Maven2] Adding transitive dependencies in EAR

Posted by "Joel COSTIGLIOLA (Services DPT SYSTEME D INFORMATION METIER)" <jo...@ext.anpe.fr>.
Hi,

I'm working on a project (ObjetTrouve) that offers services as EJB packaged in an EAR.

ObjetTrouve structure :
- ObjetTrouveEAR (depends on ObjetTrouveEJB and ObjetTrouveService)
- ObjetTrouveEJB (depends on ObjetTrouveService)
- ObjetTrouveService (depends on third party jar like Spring, log4j, ...)

When buiding the EAR with maven it only packages the direct dependencies i.e. ObjetTrouveEJB and ObjetTrouveService, my application can not work without third party jar needed by ObjetTrouveService.

Questions : 
1 - how configure the EAR plugin to include the dependencies of ObjetTrouveService ?
2 - Is there an elegant solution to this problem ?

One solution may be to repeat ObjetTrouveService dependencies in the EAR project pom.xml but it's an ugly solution as I need to duplicate information.

For information here's EAR pom.xml :

<project xmlns="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">
	<modelVersion>4.0.0</modelVersion>
	<groupId>sapiens</groupId>
	<artifactId>ObjetTrouveEAR</artifactId>
	<packaging>ear</packaging>
	<version>2.6.0</version>
	<name>ObjetTrouveEAR</name>
	<url>http://maven.apache.org</url>
	<dependencies>
		<dependency>
			<groupId>sapiens</groupId>
			<artifactId>ObjetTrouveEJB</artifactId>
			<type>ejb</type>
			<version>2.6.0</version>
		</dependency>
		<dependency>
			<groupId>sapiens</groupId>
			<artifactId>ObjetTrouveService</artifactId>
			<type>jar</type>
			<version>2.6.0</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ear-plugin</artifactId>
				<configuration>
					<modules>
						<jarModule>
							<groupId>sapiens</groupId>
							<artifactId>ObjetTrouveService</artifactId>
							<includeInApplicationXml>
								true
							</includeInApplicationXml>
						</jarModule>
						<ejbModule>
							<groupId>sapiens</groupId>
							<artifactId>ObjetTrouveEJB</artifactId>
						</ejbModule>
					</modules>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>


Regards,
 
Joël Costigliola

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


Re: [Maven2] Building Website using Maven

Posted by Dimuthu Leelarathne <di...@wso2.com>.
Thank you very much. "src/site/apt/index.apt" works!

But I am wondering why the src/site/xdocs/index.html doesn't work.


Regards,
Dimuthu

On Fri, 2007-07-13 at 09:06 +0100, Patrick Kimber wrote:
> Hi
> 
> I create a custom index.html by editing this file:
> src/site/apt/index.apt
> 
> This file is in apt format:
> http://maven.apache.org/guides/mini/guide-apt-format.html
> 
> Patrick
> 
> On 13/07/07, Dimuthu Leelarathne <di...@wso2.com> wrote:
> > Hi All,
> >
> > I am trying to build the website for a project. I managed to attach
> > userguide.html and other documentation to the site successfully.
> >
> > The problem occurred when I am trying to generate a custom index.html
> >
> > I introduced an index.xml file into src/site/xdocs/index.xml. Then i
> > typed
> >
> > $mvn clean site:site
> >
> > But the default index.html has not changed.
> >
> > I am using maven 2.0.6.
> >
> > Am I missing something here?
> >
> > I really appreciate any help on the issue.
> >
> > Thank you,
> > Dimuthu
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


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


Re: [Maven2] Building Website using Maven

Posted by Patrick Kimber <ma...@gmail.com>.
Hi

I create a custom index.html by editing this file:
src/site/apt/index.apt

This file is in apt format:
http://maven.apache.org/guides/mini/guide-apt-format.html

Patrick

On 13/07/07, Dimuthu Leelarathne <di...@wso2.com> wrote:
> Hi All,
>
> I am trying to build the website for a project. I managed to attach
> userguide.html and other documentation to the site successfully.
>
> The problem occurred when I am trying to generate a custom index.html
>
> I introduced an index.xml file into src/site/xdocs/index.xml. Then i
> typed
>
> $mvn clean site:site
>
> But the default index.html has not changed.
>
> I am using maven 2.0.6.
>
> Am I missing something here?
>
> I really appreciate any help on the issue.
>
> Thank you,
> Dimuthu
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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