maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MSOURCES-46) Manifest generation doesn;t work
Date Wed, 03 Jun 2009 18:08:42 GMT

    [ 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

        

Mime
View raw message