You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michal Hlavac (JIRA)" <ji...@codehaus.org> on 2011/04/29 09:23:22 UTC

[jira] Created: (MEAR-138) Ear plugin doesn't attach jars with timestamp

Ear plugin doesn't attach jars with timestamp
---------------------------------------------

                 Key: MEAR-138
                 URL: http://jira.codehaus.org/browse/MEAR-138
             Project: Maven 2.x Ear Plugin
          Issue Type: Bug
    Affects Versions: 2.5
         Environment: maven 3.0.3
            Reporter: Michal Hlavac


Since maven 3 ignore <uniqueVersion>true</uniqueVersion> all snapshots are built with timestamp. EJB plugin creates manifest with classpath that contains jars with timestamps (e.g. artefact-1.0-20110429.071946-2.jar) but ear plugin attach file artefact-1.0-SNAPSHOT.jar).

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

        

[jira] Commented: (MEAR-138) Ear plugin doesn't attach jars with timestamp

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265206#action_265206 ] 

Joerg Schaible commented on MEAR-138:
-------------------------------------

You may configure the ejb-plugin instead to use non-unique versions in the manifest:
{noformat}
<configuration>
  <archive>
    <manifest>
      <useUniqueVersions>false</useUniqueVersions>
    </manifest>
  </archive>
</configuration>
{noformat}

Otherwise you will always have to rebuild all EJBs and EARs at once in development. That would create a major headache for us.

> Ear plugin doesn't attach jars with timestamp
> ---------------------------------------------
>
>                 Key: MEAR-138
>                 URL: http://jira.codehaus.org/browse/MEAR-138
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: maven 3.0.3
>            Reporter: Michal Hlavac
>
> Since maven 3 ignore <uniqueVersion>true</uniqueVersion> all snapshots are built with timestamp. EJB plugin creates manifest with classpath that contains jars with timestamps (e.g. artefact-1.0-20110429.071946-2.jar) but ear plugin attach file artefact-1.0-SNAPSHOT.jar).

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

        

[jira] Commented: (MEAR-138) Ear plugin doesn't attach jars with timestamp

Posted by "Thomas Demande (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MEAR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280741#comment-280741 ] 

Thomas Demande commented on MEAR-138:
-------------------------------------

Joerg, I don't get why you would still have a mismatch with your sugestion?

> Ear plugin doesn't attach jars with timestamp
> ---------------------------------------------
>
>                 Key: MEAR-138
>                 URL: https://jira.codehaus.org/browse/MEAR-138
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: maven 3.0.3
>            Reporter: Michal Hlavac
>
> Since maven 3 ignore <uniqueVersion>true</uniqueVersion> all snapshots are built with timestamp. EJB plugin creates manifest with classpath that contains jars with timestamps (e.g. artefact-1.0-20110429.071946-2.jar) but ear plugin attach file artefact-1.0-SNAPSHOT.jar).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MEAR-138) Ear plugin doesn't attach jars with timestamp

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265285#action_265285 ] 

Stephane Nicoll commented on MEAR-138:
--------------------------------------

Yes the bundle filename indeed is rebuilt from the Artifact metadata. I would consider to use what Joerg suggests.

Would that be enough for you?

> Ear plugin doesn't attach jars with timestamp
> ---------------------------------------------
>
>                 Key: MEAR-138
>                 URL: http://jira.codehaus.org/browse/MEAR-138
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: maven 3.0.3
>            Reporter: Michal Hlavac
>
> Since maven 3 ignore <uniqueVersion>true</uniqueVersion> all snapshots are built with timestamp. EJB plugin creates manifest with classpath that contains jars with timestamps (e.g. artefact-1.0-20110429.071946-2.jar) but ear plugin attach file artefact-1.0-SNAPSHOT.jar).

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

        

[jira] Commented: (MEAR-138) Ear plugin doesn't attach jars with timestamp

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265301#action_265301 ] 

Joerg Schaible commented on MEAR-138:
-------------------------------------

The only problem with my solution is, that it does not work if the snapshot dependency had not been built locally, but downloaded from remote repository. In this case there will be also a mismatch between manifest entry and bundled jar.

> Ear plugin doesn't attach jars with timestamp
> ---------------------------------------------
>
>                 Key: MEAR-138
>                 URL: http://jira.codehaus.org/browse/MEAR-138
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: maven 3.0.3
>            Reporter: Michal Hlavac
>
> Since maven 3 ignore <uniqueVersion>true</uniqueVersion> all snapshots are built with timestamp. EJB plugin creates manifest with classpath that contains jars with timestamps (e.g. artefact-1.0-20110429.071946-2.jar) but ear plugin attach file artefact-1.0-SNAPSHOT.jar).

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