-1

Here's the situation.

I use Maven to manage dependencies and compile and deploy the project in development, and that's fine.

But in test and production, the machines don't have Maven, so I need some easy way to have compiled the project for manual deployment to Weblogic there.

My solution was to use Maven to compile the project as an exploded .war and commit that war to SVN.

For deployment in Test and Production you can just then check out the .war and deploy it.

Unfortunately SVN wants to ignore the .class files.

Can I tell it to not ignore them for this project?

The SVN config looks like:

# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo __pycache__
#   *.rej *~ #*# .#* .*.swp .DS_Store

So I can't see that .class files are ignored here.

Or do you have an alternative suggestion for compiling a war and deploying, that doesn't require Maven?

dwjohnston
  • 11,163
  • 32
  • 99
  • 194

3 Answers3

0

Your last question is the real question. Checking the derived artifacts into source control is never going to be the path.

Look into jenkins or some other continuous integration server. You can have that machine build your war one time and then deploy that war to multiple environments.

You will likely want to publish the war somewhere - look into artifactory or nexus. Then you can script your deploy to grab the latest snapshot or release.

thekbb
  • 7,668
  • 1
  • 36
  • 61
0

I can't see that .class files are ignored here

You must to know - Subversion have more than single way to define ignore-pattern for any PATH/IN/REPO

Except global definition in config, it can be properties svn:ignore|svn:global-ignores (SVN 1.8.*), defined in the context of repository-tree. You have to add .class file in WC and with svn pg svn:ignore + svn pg svn:global-ignores -v --show-inherited-props find the point of injection of ignoring in question

Lazy Badger
  • 94,711
  • 9
  • 78
  • 110
0

Have you considered pushing the compiled WAR file to a Maven repository manager like Nexus or Artifactory? Test and Production systems could then pull down any built version of your project.

Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185