DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Purge profile should also wipe out solr indexes #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by bwav...@ziaconsulting.com on 9 May 2013 at 3:27

GoogleCodeExporter commented 9 years ago
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

Original comment by samuel.l...@alfresco.com on 31 May 2013 at 4:28

GoogleCodeExporter commented 9 years ago
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?

Original comment by bwav...@ziaconsulting.com on 31 May 2013 at 8:40

GoogleCodeExporter commented 9 years ago
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!

Original comment by colum...@gmail.com on 21 Jun 2013 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by colum...@gmail.com on 21 Jun 2013 at 11:15

GoogleCodeExporter commented 9 years ago
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?

Original comment by samuel.l...@alfresco.com on 21 Jun 2013 at 11:43

GoogleCodeExporter commented 9 years ago
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_f
iles.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?

Original comment by gabriele...@alfresco.com on 13 Aug 2013 at 3:03

GoogleCodeExporter commented 9 years ago
Issue 138 has been merged into this issue.

Original comment by colum...@gmail.com on 13 Sep 2013 at 12:52

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r713.

Original comment by colum...@gmail.com on 30 Oct 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Now the purge profile cleans also Solr folder and all **/*.log files found 
recursively from basedir.

Original comment by colum...@gmail.com on 30 Oct 2013 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by colum...@gmail.com on 30 Oct 2013 at 7:35