Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK 3.0 change version to Alfresco 5.0 enterprise #461

Closed
zhihailiu opened this issue Apr 21, 2017 · 9 comments
Closed

SDK 3.0 change version to Alfresco 5.0 enterprise #461

zhihailiu opened this issue Apr 21, 2017 · 9 comments
Assignees
Labels
Milestone

Comments

@zhihailiu
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request

Expected Behavior

I am trying to change Alfresco version from
<alfresco.platform.version>5.2.e</alfresco.platform.version>
<alfresco.share.version>5.2.d</alfresco.share.version>
<maven.alfresco.edition>community</maven.alfresco.edition>
to 5.0.2.5 enterprise
<alfresco.platform.version>5.0.2.5</alfresco.platform.version>
<alfresco.share.version>5.0.2.5</alfresco.share.version>
<maven.alfresco.edition>enterprise</maven.alfresco.edition>

Current Behavior

There is no error in log. But localhost:8080/alfresco does not have the link to "Alfresco Administration Console (admin only)". I can login Share but it says the installation is "Alfresco Community v5.0.2".

By the way, changing the version works in other cases such as 5.1.1 enterprise and 5.0.d community. Not sure why it won't work in the combination of 5.0 and enterprise.

Possible Solution

Steps to Reproduce (for bugs)

  1. Change pom.xml as above and start Alfresco

Context

Your Environment

  • Alfresco SDK version used:
  • Alfresco version used:
  • Output of command 'mvn -version':
  • Link to your project:

Additional information

@douglascrp
Copy link
Contributor

@ohej Isn't this one also related with #454 ?
Maybe the problem with the platform artifact name?

@ohej
Copy link
Contributor

ohej commented Apr 21, 2017

Thanks for submitting this issue @zhihailiu. This is indeed a bug.
I've located this bug to https://github.com/Alfresco/alfresco-sdk/blob/master/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/AbstractRunMojo.java#L1565 where the logic needs to be expanded - but also to account for using the "alfresco-platform" version of the artifacts.

Unfortunately due this bug there is no easy work around for this bug, we will have to include this in 3.0.1

@ohej ohej added this to the 3.0.1 milestone Apr 21, 2017
@ohej ohej self-assigned this Apr 21, 2017
@ohej ohej added the bug label Apr 21, 2017
ohej added a commit that referenced this issue Apr 21, 2017
…#461

This also raises questions around the use of <alfresco.platform.war.artifactId />
since this will never have any effect currently
@ohej
Copy link
Contributor

ohej commented Apr 21, 2017

I've committed a fix that fixes this issue, however I'm keeping it open as the fix raises questions around the usage of the <alfresco.platform.war.artifactId /> property. With the fix I've committed it essentially makes the property useless. Would be worth investigating if the plugin can check if the default value has been overriden

@ohej
Copy link
Contributor

ohej commented Apr 21, 2017

@gravitonian Any chance you have any input to the fix I put in 37c26cf ? You did a pull request that changed the default value of the <alfresco.platform.war.artifactId /> property, but I'm questioning if it's relevant to keep the property. Let me know if you have any input

@ohej
Copy link
Contributor

ohej commented Apr 21, 2017

Note to self: 4.2.x enterprise the artifact ID is alfresco, same group id

@ohej
Copy link
Contributor

ohej commented Jun 23, 2017

Last commit does indeed address this issue, will be part of 3.0.1 that will be released shortly.

@ohej ohej closed this as completed Jun 23, 2017
@ohej
Copy link
Contributor

ohej commented Jun 23, 2017

3.0.1 has been released to address this issue.

@zhihailiu
Copy link
Author

Thank you @ohej.

$mvn archetype:generate -Dfilter=org.alfresco:
and select 2 (for alfresco-allinone-archetype).
I still see 3.0.0 instead of 3.0.1 in the list. Does it need to specify archetype catalog?

@touchvignesh
Copy link

@zhihailiu Option 10 should show 3.0.1 among the list.

Choose a number or apply filter (format: [groupId:]artifactId, case sensitive co
ntains): : 2
Choose org.alfresco.maven.archetype:alfresco-allinone-archetype version:
1: 2.0.0-beta-1
2: 2.0.0-beta-2
3: 2.0.0-beta-3
4: 2.0.0-beta-4
5: 2.0.0
6: 2.1.0
7: 2.1.1
8: 2.2.0
9: 3.0.0
10: 3.0.1
Choose a number: 10: 10
Downloading: https://repo.maven.apache.org/maven2/org/alfresco/maven/archetype/a
lfresco-allinone-archetype/3.0.1/alfresco-allinone-archetype-3.0.1.pom....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants