maven-doxia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Siveton <vincent.sive...@gmail.com>
Subject Re: Using Doxia 1.1 with Maven 2.0.x and more (WAS: svn commit: r740732 - in /maven/doxia: doxia/trunk/doxia-maven-plugin/pom.xml site/pom.xml)
Date Wed, 04 Feb 2009 15:11:24 GMT
Hi Jason,

2009/2/4 Jason van Zyl <jvanzyl@sonatype.com>:
> What happened to doxia 1.0?

Doxia 1.0 should work as usually for Maven 2.0.x.
2.1.M3 should include 1.1

Cheers,

Vincent

> On 4-Feb-09, at 5:39 AM, Vincent Siveton wrote:
>
>> Hi guys,
>>
>> The good news is that using the shade plugin, I was able to run a the
>> latest Doxia plugin (using Doxia 1.1) with mvn 2.0.9 and 2.1.0.M2 and
>> site-plugin 2.0-beta-7.
>> The bad news, I don't know what are the potential side effects.
>>
>> You could do similar things for the pdf plugin [1]. Let's just add the
>> shade-plugin (and fix prerequisites), install and pdf:pdf : you will
>> be able to have a nice pdf.
>>
>> Comments welcome.
>>
>> Cheers,
>>
>> Vincent
>>
>> PS I didn't want to create another branch for this proof of concept so
>> I committed directly under the trunk, we could revert it if needed.
>>
>> [1]
>> https://svn.apache.org/repos/asf/maven/sandbox/trunk/plugins/maven-pdf-plugin
>>
>> ---------- Forwarded message ----------
>> From:  <vsiveton@apache.org>
>> Date: 2009/2/4
>> Subject: svn commit: r740732 - in /maven/doxia:
>> doxia/trunk/doxia-maven-plugin/pom.xml site/pom.xml
>> To: doxia-commits@maven.apache.org
>>
>>
>> Author: vsiveton
>> Date: Wed Feb  4 13:28:25 2009
>> New Revision: 740732
>>
>> URL: http://svn.apache.org/viewvc?rev=740732&view=rev
>> Log:
>> MNG-3402: MavenArtifactFilterManager needs to not filtering doxia-sink-api
>>
>> o proof of concept for a workaround using shade-plugin
>> o mvn site on the Doxia site generates correctly the site using Maven
>> 2.0.9 and 2.1.0.M2
>>
>> Modified:
>>  maven/doxia/doxia/trunk/doxia-maven-plugin/pom.xml
>>  maven/doxia/site/pom.xml
>>
>> Modified: maven/doxia/doxia/trunk/doxia-maven-plugin/pom.xml
>> URL:
>> http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-maven-plugin/pom.xml?rev=740732&r1=740731&r2=740732&view=diff
>>
>> ==============================================================================
>> --- maven/doxia/doxia/trunk/doxia-maven-plugin/pom.xml (original)
>> +++ maven/doxia/doxia/trunk/doxia-maven-plugin/pom.xml Wed Feb  4 13:28:25
>> 2009
>> @@ -51,6 +51,49 @@
>>     <version>${projectVersion}</version>
>>   </dependency>
>>   <dependency>
>> +      <groupId>${project.groupId}</groupId>
>> +      <artifactId>doxia-core</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +    <dependency>
>> +      <groupId>${project.groupId}</groupId>
>> +      <artifactId>doxia-logging-api</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +
>> +    <!-- doxia modules ordered -->
>> +    <dependency>
>> +      <groupId>org.apache.maven.doxia</groupId>
>> +      <artifactId>doxia-module-apt</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +    <dependency>
>> +      <groupId>org.apache.maven.doxia</groupId>
>> +      <artifactId>doxia-module-docbook-simple</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +    <dependency>
>> +      <groupId>org.apache.maven.doxia</groupId>
>> +      <artifactId>doxia-module-itext</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +    <dependency>
>> +      <groupId>org.apache.maven.doxia</groupId>
>> +      <artifactId>doxia-module-latex</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +    <dependency>
>> +      <groupId>org.apache.maven.doxia</groupId>
>> +      <artifactId>doxia-module-xdoc</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +    <dependency>
>> +      <groupId>org.apache.maven.doxia</groupId>
>> +      <artifactId>doxia-module-xhtml</artifactId>
>> +      <version>${projectVersion}</version>
>> +    </dependency>
>> +
>> +    <dependency>
>>     <groupId>org.codehaus.plexus</groupId>
>>     <artifactId>plexus-utils</artifactId>
>>   </dependency>
>> @@ -61,6 +104,42 @@
>>   </dependency>
>>  </dependencies>
>>
>> +  <build>
>> +    <plugins>
>> +      <!-- Backward compatibility with Maven 2.0.x (MNG-3402) -->
>> +      <plugin>
>> +        <artifactId>maven-shade-plugin</artifactId>
>> +        <version>1.2</version>
>> +        <executions>
>> +          <execution>
>> +            <phase>package</phase>
>> +            <goals>
>> +              <goal>shade</goal>
>> +            </goals>
>> +            <configuration>
>> +              <finalName>${project.build.finalName}</finalName>
>> +              <createDependencyReducedPom>
>> +                false
>> +              </createDependencyReducedPom>
>> +              <keepDependenciesWithProvidedScope>
>> +                true
>> +              </keepDependenciesWithProvidedScope>
>> +              <transformers>
>> +                <transformer
>>
>> implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer"
>> />
>> +              </transformers>
>> +              <artifactSet>
>> +                <includes>
>> +
>>  <include>org.apache.maven.doxia:doxia-sink-api</include>
>> +
>>  <include>org.apache.maven.doxia:doxia-logging-api</include>
>> +                </includes>
>> +              </artifactSet>
>> +            </configuration>
>> +          </execution>
>> +        </executions>
>> +      </plugin>
>> +    </plugins>
>> +  </build>
>> +
>>  <reporting>
>>   <plugins>
>>     <plugin>
>>
>> Modified: maven/doxia/site/pom.xml
>> URL:
>> http://svn.apache.org/viewvc/maven/doxia/site/pom.xml?rev=740732&r1=740731&r2=740732&view=diff
>>
>> ==============================================================================
>> --- maven/doxia/site/pom.xml (original)
>> +++ maven/doxia/site/pom.xml Wed Feb  4 13:28:25 2009
>> @@ -147,7 +147,7 @@
>>     <plugin>
>>       <groupId>org.apache.maven.doxia</groupId>
>>       <artifactId>doxia-maven-plugin</artifactId>
>> -        <version>1.0-alpha-10</version>
>> +        <version>1.1-SNAPSHOT</version>
>>       <executions>
>>         <execution>
>>           <phase>pre-site</phase>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
> the course of true love never did run smooth ...
>
>  -- Shakespeare
>
>

Mime
View raw message