Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] aggregate and osgi profiles

I went ahead and tweaked the profile activation to cast a wider net with regards to maven versions.
Here's the test results.

Test #1 (maven 3.0.2)

$ mvn --version
Apache Maven 3.0.2 (r1056850; 2011-01-08 17:58:10-0700)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-28-generic", arch: "amd64", family: "unix"

$ mvn help:active-profiles -N
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Jetty :: Project 7.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-help-plugin:2.1.1:active-profiles (default-cli) @ jetty-project ---
[INFO] 
Active Profiles for Project 'org.eclipse.jetty:jetty-project:pom:7.3.1-SNAPSHOT': 

The following profiles are active:

 - aggregates (source: pom)
 - osgi (source: pom)
 - maven-3 (source: pom)


Test #2 (maven 2.2.1)

$ mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_22
Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-28-generic" arch: "amd64" Family: "unix"

$ mvn help:active-profiles -N
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Jetty :: Project
[INFO]    task-segment: [help:active-profiles] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [help:active-profiles {execution: default-cli}]
[INFO] 
Active Profiles for Project 'org.eclipse.jetty:jetty-project:pom:7.3.1-SNAPSHOT': 

The following profiles are active:

 - aggregates (source: pom)
 - osgi (source: pom)


Test #3 (maven 3.0)

$ mvn --version
Apache Maven 3.0 (r1004208; 2010-10-04 04:50:56-0700)
Java version: 1.6.0_22
Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-28-generic" arch: "amd64" Family: "unix"

$ mvn help:active-profiles -N
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Jetty :: Project 7.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-help-plugin:2.1.1:active-profiles (default-cli) @ jetty-project ---
[INFO] 
Active Profiles for Project 'org.eclipse.jetty:jetty-project:pom:7.3.1-SNAPSHOT': 

The following profiles are active:

 - aggregates (source: pom)
 - osgi (source: pom)
 - maven-3 (source: pom)


- Joakim



On Tue, Feb 15, 2011 at 7:02 AM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
Well,

<mythbusters>well, there's your problem</mythbusters>

Maven 3.0 has many bugs still.
Upgrade to Maven 3.0.2 for starters.

For the record...
I've tested those changes with Maven 2.2.1 and Maven 3.0.2, both work as advertised. :-)

- Joakim

On Mon, Feb 14, 2011 at 9:26 PM, Greg Wilkins <gregw@xxxxxxxxxxx> wrote:
Joakime,

the problem that I was having with building jetty-hightide is that the
jetty-distribution and jetty-osgi stuff is not being built by default.
 It took me several goes around the
delete-my-repository-merry-go-round to realise that these have been
moved to profiles - which is a good enough idea to avoid the
duplication of reporting - but the on by default part of these
profiles is not working for me and I have to explicitly declare these
profiles on the command line?

I'm on Apache Maven 3.0 (r1004208; 2010-10-04 22:50:56+1100)
and I have no active profiles declared in my settings.xml

cheers



Back to the top