EmidioStani / htmlcompressor

Automatically exported from code.google.com/p/htmlcompressor
Apache License 2.0
0 stars 0 forks source link

maven2 resource, would be nice to have #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would be nice to have an ability to use the library as maven resource. Instead 
of copying `.tld` file into `WEB-INF` I would include a dependency in `pom.xml`.

Original issue reported on code.google.com by yegor256 on 2 Aug 2010 at 1:06

GoogleCodeExporter commented 8 years ago
Sorry, I am not familiar with maven. What kind of change is it?

Original comment by serg472@gmail.com on 2 Aug 2010 at 3:41

GoogleCodeExporter commented 8 years ago
Maven is an easier way of performing Ant tasks and synchronizing jar libraries 
across environments. I would offer to help but I am still learning it myself.

If someone knowledgeable is able to do this, they can add this to a maven 
repository at https://maven2-repository.dev.java.net/ . Follow the step 'Post 
Your Artifacts'.

Original comment by erich.re...@gmail.com on 5 Nov 2010 at 10:33

GoogleCodeExporter commented 8 years ago
having htmlcompressor as maven goal would be really cool, unfortunatelly i do 
not have enough knowledge myself to write it, but i guess 
http://alchim.sourceforge.net/yuicompressor-maven-plugin/ or 
http://code.google.com/p/maven-samaxes-plugin/source/checkout could serve as a 
guide how to write the plugin

Original comment by fordf...@gmail.com on 7 Nov 2010 at 2:29

GoogleCodeExporter commented 8 years ago
A Google Code hosted project did the same recently, you could see the 
instructions (and an ant script) at
  http://stackoverflow.com/questions/1280470/maven-repository-for-google-code-project

What maven users finally need is only that:
  http://code.google.com/p/equalsverifier/wiki/Maven

Original comment by jmigue...@gmail.com on 2 Jan 2011 at 10:07

GoogleCodeExporter commented 8 years ago
Sorry for my last comment. As seen at
  http://www.thewebsemantic.com/2009/04/11/your-very-own-google-code-maven-repo/comment-page-1/#comment-1313
that is not the correct approach.

You could try the free sonatype repositories
  https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
(7c is the best choice for your project).

Original comment by jmigue...@gmail.com on 2 Jan 2011 at 10:33

GoogleCodeExporter commented 8 years ago

Original comment by serg472@gmail.com on 26 Mar 2011 at 8:15

GoogleCodeExporter commented 8 years ago
From JMigue... it seems another google code project did this by adding the 
following target to their build.xml:

        <target name="publish-maven" depends="-publish-validate, -checkCredentialsFile, deploy">
                <mkdir dir="${tag.dir}" />
                <mkdir dir="${mvn.dir}" />

                <echo message="Checking out ${project.svn}/tags/${tag}" />
                <exec dir="${tag.dir}" executable="${svn.cmd}" failonerror="true">
                        <arg line="checkout ${project.svn}/tags/${tag} --username ${google.username} --password ${google.password}" />
                </exec>

                <echo message="Bumping version in ${equalsverifier.pom}" />
                <replace file="${equalsverifier.pom}" token="???" value="${version}" />

                <echo message="Committing files in ${tag.dir}" />
                <exec dir="${tag.dir}/${tag}" executable="${svn.cmd}" failonerror="true">
                        <arg line='commit -m "Version bump" --username ${google.username} --password ${google.password}' />
                </exec>

                <echo message="Checking out ${project.svn}/maven" />
                <exec dir="${mvn.dir}" executable="${svn.cmd}" failonerror="true">
                        <arg line="checkout ${project.svn}/maven --username ${google.username} --password ${google.password}" />
                </exec>

                <echo message="Preparing Maven repo" />
                <exec dir="${tag.dir}" executable="${mvn.cmd}" failonerror="true">
                        <arg line="deploy:deploy-file -Durl=file://${mvn.dir}/maven -Dfile=${equalsverifier.jar} -DpomFile=${equalsverifier.pom}" />
                </exec>

                <echo message="Adding contents of ${mvn.dir}/maven to SVN" />
                <exec dir="${mvn.dir}/maven" executable="${svn.cmd}" failonerror="true">
                        <arg line="add . --force --username ${google.username} --password ${google.password}" />
                </exec>

                <echo message="Committing Maven repo in ${mvn.dir} to SVN" />
                <exec dir="${mvn.dir}/maven" executable="${svn.cmd}" failonerror="true">
                        <arg line='commit -m "Deploy to Maven repo: version ${version}" --username ${google.username} --password ${google.password}' />
                </exec>
        </target>

Original comment by erich.re...@gmail.com on 13 Apr 2011 at 5:38

GoogleCodeExporter commented 8 years ago
I'd like to have htmlcompressor as a Maven artifact too.

Original comment by dsero...@gmail.com on 10 Jun 2011 at 6:25

GoogleCodeExporter commented 8 years ago
i'm going to develop maven plugin which will be using htmlcompressor library. 
checkout this thread soon- i'l post here a reference to that plugin.

Original comment by alextu...@gmail.com on 12 Jun 2011 at 9:02

GoogleCodeExporter commented 8 years ago
also original jar will be in maven repo soon

Original comment by alextu...@gmail.com on 12 Jun 2011 at 9:14

GoogleCodeExporter commented 8 years ago
Finally I've completed migration of this project to maven and have already sent 
the bundle to the owner for review. It took me 9 hours to complete migration. 
So waiting for review now. Hope that will not take him a lot of time. Also if 
you don't want to wait for review here is attached file with integrated maven 
and you can install to you local repo while waiting it to be published on maven 
central repo.

Original comment by alextu...@gmail.com on 12 Jun 2011 at 7:21

Attachments:

GoogleCodeExporter commented 8 years ago
we're almost done with maven migration. also I've completed 
htmlcompressor-maven-plugin which is using htmlcompressor lib and allows you to 
compress html and xml files by placing a few lines in the project pom file. 
I'll release it as soon as htmlcompressor lib will be on maven centaral repo. 
Hope you'll enjoy that plugin.

Original comment by alextu...@gmail.com on 30 Jun 2011 at 7:56

GoogleCodeExporter commented 8 years ago
changes merged to trunk, so waiting for review and coming release onto maven 
central repository.

Original comment by alextu...@gmail.com on 3 Jul 2011 at 10:46

GoogleCodeExporter commented 8 years ago
here is maven plugin for htmlcompressor library
http://code.google.com/p/htmlcompressor-maven-plugin/

Original comment by alextu...@gmail.com on 23 Jul 2011 at 1:32