portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject Re: [M2 build design] Getting started - status update
Date Thu, 23 Aug 2007 07:29:45 GMT

On Aug 23, 2007, at 12:03 AM, David Sean Taylor wrote:

>
> On Aug 21, 2007, at 7:40 PM, Ate Douma wrote:
>
>> The trunk is now (partly) buildable *and* testable again!
>>
>> You need to update you the local m2 settings.xml with the  
>> following required properties for your selected database (I've  
>> updated settings.xml.sample with example values):
>>
>>     <org.apache.jetspeed.test.jdbc.driver.groupId>SETGROUPID</ 
>> org.apache.jetspeed.test.jdbc.driver.groupId>
>>      
>> <org.apache.jetspeed.test.jdbc.driver.artifactId>SETARTIFACTID</ 
>> org.apache.jetspeed.test.jdbc.driver.artifactId>
>>     <org.apache.jetspeed.test.jdbc.driver.version>SETVERSION</ 
>> org.apache.jetspeed.test.jdbc.driver.version>
>>      
>> <org.apache.jetspeed.production.jdbc.driver.groupId>SETGROUPID</ 
>> org.apache.jetspeed.test.jdbc.driver.groupId>
>>      
>> <org.apache.jetspeed.production.jdbc.driver.artifactId>SETARTIFACTID< 
>> /org.apache.jetspeed.test.jdbc.driver.artifactId>
>>      
>> <org.apache.jetspeed.production.jdbc.driver.version>SETVERSION</ 
>> org.apache.jetspeed.test.jdbc.driver.version>
>>
>> Then create a new portal test database schema:
>>   $ mvn -P test-setup org.apache.portals.jetspeed-2:jetspeed-maven- 
>> plugins:init-db
>>
>
> [ERROR] BUILD FAILURE
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Unable to build project 'jetspeed-2/pom.xml; it requires  
> Maven version 2.0.7
>
OK, I installed 2.0.7

Try again:

mvn -P test-setup org.apache.portals.jetspeed-2:jetspeed-maven- 
plugins:init-db

Now I get:

[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found -  
check that the goal name is correct: Unable to download the artifact  
from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
     mvn install:install-file -DgroupId=org.apache.portals.jetspeed-2  
-DartifactId=jetspeed-maven-plugins \
         -Dversion=2.2-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/ 
to/file
Alternatively, if you host your own repository you can deploy the  
file there:     mvn deploy:deploy-file - 
DgroupId=org.apache.portals.jetspeed-2 -DartifactId=jetspeed-maven- 
plugins \
         -Dversion=2.2-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/ 
to/file \
          -Durl=[url] -DrepositoryId=[id]


So I wasn't sure what to do next, and tried:

$ cd maven/jetspeed-maven-plugins/
$ mvn install

(man that command must have downloaded an army of jar files)
tried again:

mvn -P test-setup org.apache.portals.jetspeed-2:jetspeed-maven- 
plugins:init-db

and then I get:

[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.portals.jetspeed-2
ArtifactId: jetspeed-portal-resources
Version: 2.2-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
     mvn install:install-file -DgroupId=org.apache.portals.jetspeed-2  
-DartifactId=jetspeed-portal-resources \
         -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the  
file there:     mvn deploy:deploy-file - 
DgroupId=org.apache.portals.jetspeed-2 -DartifactId=jetspeed-portal- 
resources \
         -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
          -Durl=[url] -DrepositoryId=[id]

   org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar:2.2- 
SNAPSHOT


So I tried building the portal resources, but that didn't work either
So then I tried going to the jetspeed root directory

$ mvn install

[INFO]  
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]  
------------------------------------------------------------------------


back to your instructions:

mvn -P test-setup org.apache.portals.jetspeed-2:jetspeed-maven- 
plugins:init-db

and it got further, it didn't find my jdbc driver:

ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Driver class not found: com.mysql.jdbc.Driver

The properties are set in my settings.xml to the best of my abilities.
However, I think that it fails because the the format of the  
settings.xml changed, and I need to convert over to your new sample  
settings.xml
I have this kind of thing in there:

         <activeProfile>jetspeed-db-drivers-path</activeProfile>

But now there is some new format like:

         <profile>
             <id>jetspeed-mysql</id>

I will try to switch to that format next....
Is this property required?:

                 <org.apache.jetspeed.test.jdbc.drivers.path>$ 
{org.apache.jetspeed.server.home}/shared/lib/mysql-connector- 
java-5.0.4-bin.jar</org.apache.jetspeed.test.jdbc.drivers.path>




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message