[ 
http://jira.codehaus.org/browse/MNBMODULE-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209439#action_209439
 ] 

Milos Kleint commented on MNBMODULE-76:
---------------------------------------

"Problem is, that project.getVersion() returns unreplaced version tag from 
pom.xml."

there must be something wrong in your setup, MavenProject project instance is 
always resolved by maven core and I suppose much more other things would not be 
working. I've tried locally and got the value correctly replaced in the 
manifest. I've tried with a simple standalone module, without any profiles..
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<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>nbmtest</groupId>
    <artifactId>testmodule1</artifactId>
    <version>1.${num}-SNAPSHOT</version>
    <packaging>nbm</packaging>
    <name>testmodule1</name>

    <properties>
        <num>2.3.4.5</num>
    </properties>
</project>
{code}

> AdaptNBVersion - Add timestamp to OpenIDE-Module-Specification-Version
> ----------------------------------------------------------------------
>
>                 Key: MNBMODULE-76
>                 URL: http://jira.codehaus.org/browse/MNBMODULE-76
>             Project: Maven 2.x Netbeans Module Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Pavel Jisl
>            Assignee: Milos Kleint
>
> When creating webstart application, we need to solve problem with versions in 
> versioned JNLP download server. If the SNAPSHOT versions are used, the major 
> and minor versions are used and there is no chance for versioned JNLP 
> download to serve fresh versions of packages.
> There is a resolved issue in NetBeans nbbuild ant task MakeJNLP (see 
> http://www.netbeans.org/issues/show_bug.cgi?id=160613 ), which gets version 
> from OpenIDE-Module-Specification-Version or Specification-Version and puts 
> it into version.xml and version attribut in jnlp file. Original version of 
> path used OpenIDE-Module-Implementation-Version (Implementation-Version), but 
> it was changed into OpenIDE-Module-Specification-Version 
> (Specification-Version) by developers of NetBeans.
> Actual version of nbm-maven-plugin changes string "-SNAPSHOT" in version to 
> timestamp in case of OpenIDE-Module-Implementation-Version, but in case of 
> OpenIDE-Module-Specification-Version this string (and others, like RC, ...) 
> are stripped without possibility to change this behavior.
> Proposed solution is to change behavior in AdaptNBVersion.java to behave same 
> for both "spec" and "impl" types. We need to replace string "-SNAPSHOT" for 
> OIDE-M-S-V by timestamp, as it is in case of OIDE-M-I-V.
> There should be also parameter, specifying pattern for timestamp - default 
> should be "yyyyMMdd" and we can change it to eg. "yyyyMMddHHmmss"

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to