Gee ... I sort of hate Ant ;-)
Well I did notice an error in the code for preparing the poms. I fixed this. It 
must have worked, because I didn't use the root of Squiggly as root of the 
project, but the main directory. On my machine executing 

ant -f maven.xml 

inside the main directory correctly installs the artifacts to your local maven 
repo.

ant -f maven.xml deploy

Would start to deploy the SNAPSHOT artifacts to Apaches Snapshot repo. Here you 
have to provide your credentials however by defining two server elements in 
your settings.xml ... looks something like this:

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 
http://maven.apache.org/xsd/settings-1.1.0.xsd"; 
xmlns="http://maven.apache.org/SETTINGS/1.1.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <servers>
    <server>
      <id>apache.releases.https</id>
      <username>your-username</username>
      <password>your-password </password>
    </server>
    <server>
      <id>apache.snapshots.https</id>
      <username>your-username</username>
      <password>your-password </password>
    </server>
  </servers>
</settings>


When preparing a release-candidate you would set the "type" property to 
"RELEASE" and it would use a release version and deploy to Apaches Staging 
repo. Things deployed here are not released yet. Here they can be viewed and 
tested and as soon as all is ok and the release-candidate passes it's vote, you 
can release the staging repo and hereby make the artifacts publically available.

Chris




-----Ursprüngliche Nachricht-----
Von: Justin Mclean [mailto:jus...@classsoftware.com] 
Gesendet: Samstag, 30. August 2014 12:11
An: dev@flex.apache.org
Betreff: Re: [DISCUSSION] Squiggly 1.0 release candidate 0

Hi,

> That was exactly what I was looking for ... thanks :-)

I'm currently getting:
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project 
[unknown-group-id]:[unknown-artifact-id]:[unknown-version] 
(/Users/justinmclean/Documents/ApacheFlexUtilitiesGit/Squiggly/main/maven.xml) 
has 4 errors
[ERROR]     Malformed POM 
/Users/justinmclean/Documents/ApacheFlexUtilitiesGit/Squiggly/main/maven.xml: 
Unknown attribute 'default' for tag 'project' (position: START_TAG seen ...\n  
limitations under the License.\n\n-->\n<project default="install">... @20:28)  
@ /Users/justinmclean/Documents/ApacheFlexUtilitiesGit/Squiggly/main/maven.xml, 
line 20, column 28 -> [Help 2]
[ERROR]     'groupId' is missing. @ line 20, column 28
[ERROR]     'artifactId' is missing. @ line 20, column 28
[ERROR]     'version' is missing. @ line 20, column 28
[ERROR] 

What am I doing wrong?

Justin

Reply via email to