Issue 122 in maven-alfresco-archetypes: Purge profile should also wipe out solr indexes

25 views
Skip to first unread message

maven-alfres...@googlecode.com

unread,
May 9, 2013, 11:27:42 AM5/9/13
to maven-a...@googlegroups.com
Status: New
Owner: bwav...@ziaconsulting.com
Labels: Type-Defect Priority-Medium

New issue 122 by bwav...@ziaconsulting.com: Purge profile should also wipe
out solr indexes
http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=122

Currently mvn clean -Ppurge will wipe out alf_data_dev (assuming it's in
the project structure). It does not however wipe out the
solr/solr_home/archive and solr/solr_home/workspace index folders. As such
if you purge you end up with a new database and an old index.

I propose that we update the purge profile defined in the parent pom to
also remove these index folders if they are found.

I'm happy to do this work if folks think this is a good idea

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

maven-alfres...@googlecode.com

unread,
May 31, 2013, 12:29:04 PM5/31/13
to maven-a...@googlegroups.com

Comment #1 on issue 122 by samuel.l...@alfresco.com: Purge profile should
I, for one, do think it is a very sensible idea :-)
I'm happy for you to do the work, if you are...

Thank you

maven-alfres...@googlecode.com

unread,
May 31, 2013, 4:40:47 PM5/31/13
to maven-a...@googlegroups.com

Comment #2 on issue 122 by bwav...@ziaconsulting.com: Purge profile should
In my environment I have purge removing the solr_home directory... do you
think it makes more sense to do that or to remove the individual index
folders?

maven-alfres...@googlecode.com

unread,
Jun 21, 2013, 7:14:31 AM6/21/13
to maven-a...@googlegroups.com
Updates:
Status: Accepted
Owner: samuel.l...@alfresco.com
Labels: Milestone-Release-sdk-unscheduled

Comment #3 on issue 122 by colum...@gmail.com: Purge profile should also
Sam, you seemed to volunteer yourself for this one...as I'm cleaning up the
issues, shall I schedule this for 1.0.2 (ASAP) or 1.1.0 (later with more
features)?


Thanks guys!

maven-alfres...@googlecode.com

unread,
Jun 21, 2013, 7:17:31 AM6/21/13
to maven-a...@googlegroups.com
Updates:
Labels: -Type-Defect Type-Enhancement

Comment #4 on issue 122 by colum...@gmail.com: Purge profile should also
(No comment was entered for this change.)

maven-alfres...@googlecode.com

unread,
Jun 21, 2013, 7:44:00 AM6/21/13
to maven-a...@googlegroups.com

Comment #5 on issue 122 by samuel.l...@alfresco.com: Purge profile should
No, I just thought it was a good idea :-)
I can do it though.
What should be deleted then? See above question:
> In my environment I have purge removing the solr_home directory...
> do you think it makes more sense to do that or to remove the individual
> index folders?

maven-alfres...@googlecode.com

unread,
Aug 13, 2013, 11:03:51 AM8/13/13
to maven-a...@googlegroups.com

Comment #6 on issue 122 by gabriele...@alfresco.com: Purge profile should
If we bind to the "clean" phase, then the custom configuration of the
maven-clean-plugin will just "decorate" the standard clean process. I
suggest then to delete the full folder as it will have to be recreated by
this build.

Long story short we just need this (as per
https://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html):

<profile>
<id>purge</id>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>

<directory>${project.build.directory}/solr_home</directory>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>

Or something like this. Sam, want to commit this one?

maven-alfres...@googlecode.com

unread,
Sep 13, 2013, 8:52:56 AM9/13/13
to maven-a...@googlegroups.com

Comment #7 on issue 122 by colum...@gmail.com: Purge profile should also
Issue 138 has been merged into this issue.

maven-alfres...@googlecode.com

unread,
Oct 30, 2013, 3:35:51 AM10/30/13
to maven-a...@googlegroups.com
Updates:
Status: Fixed

Comment #8 on issue 122 by colum...@gmail.com: Purge profile should also
This issue was closed by revision r713.

maven-alfres...@googlecode.com

unread,
Oct 30, 2013, 3:36:51 AM10/30/13
to maven-a...@googlegroups.com

Comment #9 on issue 122 by colum...@gmail.com: Purge profile should also
Now the purge profile cleans also Solr folder and all **/*.log files found
recursively from basedir.

maven-alfres...@googlecode.com

unread,
Oct 30, 2013, 3:37:51 AM10/30/13
to maven-a...@googlegroups.com
Updates:
Labels: -Milestone-Release-sdk-unscheduled Milestone-Release-sdk-1.1.0

Comment #10 on issue 122 by colum...@gmail.com: Purge profile should also
(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages