-
Notifications
You must be signed in to change notification settings - Fork 113
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
Upgrade documentation for 2.1.0 to 2.1.1 is wrong #342
Comments
I think @jrosler meant alfresco.solr.dir when he said:
I also see that upgrading created another /absolute/path/to/alf_data_dev in the ${project.parent.basedir} I see when comparing a freshly generated 2.1.0 AIO project to a freshly generated 2.1.1 AIO project a few differences regarding solr properties. I applied the following patch, upgraded, and everything worked fine.
|
What did you do to get around this, @jrosler ? |
See https://issues.alfresco.com/jira/browse/DEVPLAT-380, list what you need to do |
Fixed in 5.0 and 5.1 doc branch |
The doc at http://docs.alfresco.com/5.0/tasks/alfresco-sdk-upgrading-sdkversion-210-211.html states that you can upgrade current sdk 2.1.0 to 2.1.1 by changing the version to the parent sdk in your base project pom. This is not correct. There is a problem with runner/pom.xml.
The 2.1.0 runner/pom.xml alfresco.data.dir was set to
<alfresco.solr.dir>${project.parent.basedir}/${alfresco.data.location}/solr4</alfresco.solr.dir>
and the 2.1.1 runner/pom.xml
<alfresco.solr.dir>${alfresco.data.location}/solr4</alfresco.solr.dir>
the alfresco.data.location in alfresco-sdk-parent-2.1.0.pom
<alfresco.data.location>alf_data_dev</alfresco.data.location>
and the 2.1.1 in alfresco-sdk-parent-2.1.1.pom
<alfresco.data.location>${session.executionRootDirectory}/alf_data_dev</alfresco.data.location>
This causes the alfresco.solr.dir to get set incorrectly to your base directory path twice as it is combined incorrectly.
<alfresco.data.location>${session.executionRootDirectory}/alf_data_dev</alfresco.data.location>
<alfresco.solr.dir>${project.parent.basedir}/${alfresco.data.location}/solr4</alfresco.solr.dir>
You can see the problem if you install an AIO with SDK 2.1.0 and then before running a build updating your project pom.xml to version 2.1.1 and running ./run.sh. solr won't start up because it's config files didn't get copied to the right directory. If you already had already run once with the SDK 2.1.0 before, you can see this by running a purge and then changing the version to 2.1.1.
The text was updated successfully, but these errors were encountered: