You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2009/06/03 20:08:42 UTC

[jira] Commented: (MSOURCES-46) Manifest generation doesn;t work

    [ http://jira.codehaus.org/browse/MSOURCES-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179214#action_179214 ] 

Dennis Lundberg commented on MSOURCES-46:
-----------------------------------------

Are you sure that you are running version 2.1 of the Source Plugin? Your POM doesn't have a <version> element for it. I suggest you add

{code:xml}
<version>2.1</version>
{code}

to your POM and try again.

Your example above works for me if i remove the <manifestFile> line. I don't have that file...

> Manifest generation doesn;t work
> --------------------------------
>
>                 Key: MSOURCES-46
>                 URL: http://jira.codehaus.org/browse/MSOURCES-46
>             Project: Maven 2.x Source Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Maven 2.1, cuurent plugin
>            Reporter: Krashan Brahmanjara
>
> On source:jat manifest.mf contain only that
>    Manifest-Version: 1.0
>    Archiver-Version: Plexus Archiver
>   Created-By: 11.3-b02 (Sun Microsystems Inc.)
> My plugin is configured to get full information and put it in jar. The same configuration works weel for javadoc-plugin, jar-plugin, ejb-plugin.
> {code:xml}
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-source-plugin</artifactId>
>         <configuration>
>           <encoding>UTF-8</encoding>
>           <charset>UTF-8</charset>
>           <quiet>true</quiet>
>               <archive>
>                 <manifest>
>                   <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
>                   <addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
>                 </manifest>
>                 <manifestEntries>
>                   <Build-Computer-Name>${env.COMPUTERNAME}</Build-Computer-Name>
>                   <Build-User>${env.COMPUTERNAME}</Build-User>
>                   <Build-Compile-Source>${compile.source}</Build-Compile-Source>
>                   <Build-Compile-Target>${compile.target}</Build-Compile-Target>
>                   <Build-Java-Class-Version>${java.class.version}</Build-Java-Class-Version>
>                   <Build-Os>${os.name}/${os.version}/${os.arch}</Build-Os>
>                   <Description>${project.description}</Description>
>                 </manifestEntries>
>                 <manifestFile>${basedir}\.revision</manifestFile>
>               </archive>
>         </configuration>
>         <executions>
>           <execution>
>             <id>attach-sourcedocs</id>
>             <phase>verify</phase>
>             <goals>
>               <goal>jar</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira