• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maven builds and WOBootstrap.jar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maven builds and WOBootstrap.jar


  • Subject: Re: Maven builds and WOBootstrap.jar
  • From: Henrique Prange <email@hidden>
  • Date: Fri, 20 Nov 2015 14:55:27 -0200

Hi Ramsey,

I found a way to produce the desired result if you cannot avoid the use of WOBootstrap.jar. You may consider it a hack, but it should work.

1) Create a lib folder into your project.

2) Copy the WOBootstrap.jar file into the lib folder.

3) Create a wobuild.properties file into the lib folder containing the following properties:

   wo.bootstrapjar=lib/WOBootstrap.jar 
   wo.wolocalroot=foo
   wo.wosystemroot=bar

4) Create a .mvn folder into your project.

5) Add a file called jvm.config into the .mvn folder containing the following information:

   -DWOBUILD_PROPERTIES=lib/wobuild.properties

Steps #4 and #5 require Maven 3.3.1 or greater. The properties from the jvm.config file are appended to any Maven command executed inside the project. You have to run the Maven command with the -D option explicitly for older versions. For example:

   mvn clean install -DWOBUILD_PROPERTIES=lib/wobuild.properties.

It isn’t a beautiful solution, but it is isolated and keeps your build reproducible across environments. Anyway, I keep saying that unless there is strong reason (as you have), using the WOBootstrap.jar should be discouraged.

I notice on the rather dated roadmap that 3.0 was intended to merge/replace the woproject ant stuff.

https://wiki.wocommunity.org/display/WOL/Roadmap

Have you ever made a branch for that or had any progress in that direction?

No progress in that direction.

Are there any major hurdles blocking that goal?

I guess lack of interest? The cost to produce a general library that could be used by both the Ant tasks and the Maven Mojos wouldn’t worth it.

Cheers,

Henrique

PS.: The wo.wolocalroot and wo.wosystemroot are required to avoid an incorrect BUILD FAILED message.

On 18 de nov de 2015, at 14:26, Ramsey Gurley <email@hidden> wrote:

Thanks for the reply Henrique. I just wanted to make sure I am not overlooking some special magic property to make it work or if there is some way to reference it from my dependency repo. I may see if I can figure out how to make the old woapp script properly escape the () in the path, since it appears to work (at least, on windows 10) otherwise. Then I just won’t need(?) WOBootstrap.jar. 

I gather this is the desired way to go if I want to use WOInject at some point in the future, based on my reading of old threads from the mailing list. Referencing magic jars outside the dependency repo seems like a step backwards when trying to use maven.

I notice on the rather dated roadmap that 3.0 was intended to merge/replace the woproject ant stuff.

https://wiki.wocommunity.org/display/WOL/Roadmap

Have you ever made a branch for that or had any progress in that direction? Are there any major hurdles blocking that goal?

On Nov 18, 2015, at 7:40 AM, Henrique Prange <email@hidden> wrote:

Hi Ramsey,

Theoretically, defining the wo.bootstrapjar variable in the build.properties should work. Defining the full path as you did is another option too. However, as soon as the Maven plugin uses an old version of woproject-ant-tasks, it may not work as we expect it to work (considering the current source code for this library).

I’ll try to debug the plugin execution to understand what’s going on.

Cheers,

Henrique
Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Maven builds and WOBootstrap.jar
      • From: Ramsey Gurley <email@hidden>
References: 
 >Maven builds and WOBootstrap.jar (From: Ramsey Gurley <email@hidden>)
 >Re: Maven builds and WOBootstrap.jar (From: Ramsey Gurley <email@hidden>)
 >Re: Maven builds and WOBootstrap.jar (From: Henrique Prange <email@hidden>)
 >Re: Maven builds and WOBootstrap.jar (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: WOCompile cannot be found.
  • Next by Date: Re: Maven builds and WOBootstrap.jar
  • Previous by thread: Re: Maven builds and WOBootstrap.jar
  • Next by thread: Re: Maven builds and WOBootstrap.jar
  • Index(es):
    • Date
    • Thread