Closed GoogleCodeExporter closed 9 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
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
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
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
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
Original comment by serg472@gmail.com
on 26 Mar 2011 at 8:15
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
I'd like to have htmlcompressor as a Maven artifact too.
Original comment by dsero...@gmail.com
on 10 Jun 2011 at 6:25
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
also original jar will be in maven repo soon
Original comment by alextu...@gmail.com
on 12 Jun 2011 at 9:14
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:
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
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
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
Original issue reported on code.google.com by
yegor256
on 2 Aug 2010 at 1:06